test-raise: don't assume 199 is an invalid signal
[gnulib.git] / ChangeLog
1 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2
3         test-raise: don't assume 199 is an invalid signal
4         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
5
6         sh-quote-tests: port to Solaris 9
7         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
8         Problem reported by Dagobert Michelsen in
9         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
10
11 2012-10-28  Jim Meyering  <jim@meyering.net>
12
13         maint.mk: rename a new configurable variable
14         * top/maint.mk (_gl_translatable_string_re): Rename from
15         translation-markers: _gl_ prefix to insulate from user Makefile code,
16         and the _re suffix to inform that it's a regular expression.
17
18 2012-10-26  Eric Blake  <eblake@redhat.com>
19
20         maint.mk: let packages tweak sc_po_check pattern
21         * top/maint.mk (sc_po_check): Add translation-markers, to allow
22         finding files with other translation markers.
23
24 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25
26         euidaccess: speed up 'configure' on GNU hosts
27         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
28         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
29         it's needed only in this case.  Use AC_CHECK_DECLS, not
30         AC_CHECK_DECLS_ONCE.
31         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33
34         * lib/regexec.c (re_search_internal): Fix grammar in comment.
35
36 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37
38         fchmodat, fchownat, fstatat: port to non-inlining compilers
39         Problem reported for FreeBSD 9 by Jim Meyering in
40         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
41         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
42         New files, which define FCHMODAT_INLINE etc.
43         * lib/fchmodat.c (FCHMODAT_INLINE):
44         * lib/fchownat.c (FCHOWNAT_INLINE):
45         * lib/fstatat.c (FSTATAT_INLINE):
46         Remove, as chmodat.c etc. now do this.
47         * modules/fchmodat (Files): Add lib/chmodat.c.
48         * modules/fchownat (Files): Add lib/chownat.c.
49         * modules/fstatat (Files): Add lib/statat.c.
50
51 2012-10-15  Jim Meyering  <jim@meyering.net>
52
53         fchmodat.c, fchownat.c: compile-impeding typos
54         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
55         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
56         Introduced in commit v0.0-7636-gd202279.
57
58 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59
60         fcntl-h: support GNU flags like O_IGNORE_CTTY
61         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
62         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
63         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
64         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
65         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
66         Define to 0 if not already defined.
67         * tests/test-fcntl-h.c: Test these new flags.
68
69 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70
71         faccessat, etc.: support AT_FDCWD-only use
72         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
73         this function only if its first argument is AT_FDCWD.
74         Emacs wants faccessat for AT_EACCESS but not for any first-arg
75         values other than AT_FDCWD, so it doesn't want all the openat
76         machinery with fchdir etc.
77         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
78         * modules/fstatat, modules/mkdirat, modules/openat (Files):
79         * modules/unlinkat (Files):
80         Remove lib/openat-priv.h, as at-internal supplies this file.
81         Removing this file here allows us to support programs like Emacs
82         that avoid at-internal.
83
84         faccessat: speed up 'configure' on mainstream hosts
85         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
86         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
87         since it's only on unusual platforms that we need to check for
88         'access', and it's better not to slow 'configure' down on all
89         platforms.
90
91         faccessat: port to Solaris 10
92         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
93         Needed on Solaris 10, which doesn't have AT_EACCESS,
94         so we need the Gnulib fcntl.h, which defines it.
95
96 2012-10-14  Pádraig Brady  <P@draigBrady.com>
97         canonicalize: fix C89 compilation
98         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
99         declarations so C89 is supported.  Also remove the comment
100         referencing memorty allocation as the suggested feature could
101         not be implemented as suggested.
102         Reported by Michael Goffioul.
103
104 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
105
106         group-member: omit unnecessary dependencies
107         This is for Emacs, which has its own allocator and where we
108         don't want to use xalloc.
109         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
110         since we no longer use xmalloc.  Do not include stdbool.h, since
111         the changes below happen to remove the only use of bool.
112         (GROUPBUF_SIZE): New constant.
113         (struct group_info): Remove n_groups member.  Add groupbuf member.
114         This lets us get the groups without using malloc, usually.
115         (free_group_info, get_group_info): Adjust to this.
116         (get_group_info): Return the number of groups found, or -1 on error.
117         Use plain malloc not xmalloc, and treat its failure as if there
118         are no groups, as the user already loses in case of error.
119         (group_member): Simplify, based on changes to get_group_info.
120         * modules/group-member (Depends-on): Remove dependencies on
121         xalloc and stdbool.  Add dependency on xalloc-oversized.
122
123 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
124
125         gethrxtime: port to C++
126         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
127
128 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
129
130         ptsname: fix macro-name typo
131         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
132
133 2012-10-03  Simon Josefsson  <simon@josefsson.org>
134
135         inttostr: Relax license.
136         * modules/inttostr (License): Change from LGPL to LGPLv2+.
137
138 2012-10-03  Eric Blake  <eblake@redhat.com>
139
140         ptsname_r: support ptys returned by FreeBSD posix_openpt
141         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
142         lives in /dev/pts/.
143
144 2012-10-02  Eric Blake  <eblake@redhat.com>
145
146         pselect: reject invalid file descriptors
147         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
148         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
149         * modules/pselect (Depends-on): Add dup2.
150         * doc/posix-functions/pselect.texi (pselect): Document this.
151
152         select: reject invalid file descriptors
153         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
154         * lib/select.c (rpl_select) [!win32]: Work around it.
155         * modules/select (Depends-on): Add dup2.
156         * doc/posix-functions/select.texi (select): Document this.
157
158         select: enhance test
159         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
160         New functions.
161         (test_function): Enhance test.
162         (do_select_bad_fd): Avoid any stale errno values.
163
164         ptsname: reject invalid file descriptors
165         http://www.austingroupbugs.net/view.php?id=503
166         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
168         * modules/stdlib (Makefile.am): Replace witness.
169         * lib/stdlib.in.h (ptsname): Allow for replacement.
170         * modules/ptsname (configure.ac): Trigger replacement.
171         * doc/posix-functions/ptsname.texi (ptsname): Document this.
172
173 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
174
175         hash-pjw-bare: new module
176         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
177         * lib/hash-pjw-bare.h: Likewise.
178         * modules/hash-pjw-bare: New file.
179         * MODULES.html.sh (Misc): Add it.
180
181 2012-10-02  Eric Blake  <eblake@redhat.com>
182
183         manywarnings: cater to more gcc infelicities
184         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
185         -Wuninitialized without -O.
186
187 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
188
189         select, poll tests: Make setsockopt invocation effective.
190         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
191         the bind() call.
192         * tests/test-select.h (open_server_socket): Likewise.
193
194 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
195
196         sockets, sys_stat: restore AC_C_INLINE
197         This undoes the 2012-09-22 patch.
198         * m4/sockets.m4 (gl_SOCKETS):
199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
200         Restore AC_C_INLINE, since MSVC requires __inline or _inline
201         and does not support plain 'inline'.  Reported by Bruno Haible in
202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
203
204 2012-09-30  Bruno Haible  <bruno@clisp.org>
205
206         localeconv tests: Avoid test failure on OpenIndiana.
207         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
208         skip the 'grouping' and 'mon_grouping' tests.
209         Reported by Jim Meyering.
210
211 2012-09-30  Bruno Haible  <bruno@clisp.org>
212
213         havelib: Follow libtool developments.
214         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
215         Suggested by Simon Josefsson.
216
217 2012-09-29  Jim Meyering  <meyering@redhat.com>
218
219         fstatat.c: fix a compile-impeding typo
220         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
221         Introduced in commit v0.0-7636-gd202279.
222         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
223
224 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
225
226         extern-inline: provide a -Wundef safe config.h
227         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
228         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
229         to produce a -Wundef warning free config.h.
230
231 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
232
233         hash-pjw: relax license to LGPLv2+
234         * modules/hash-pjw (License): Relax, with consent of author.
235
236 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
237
238         maint.mk: fix strict vs. lazy variable issues with RELEASE
239         * top/maint.mk (_equal): New function.
240         (member_check): Strip the result to avoid spurious spaces.
241         (url_dir_list): Do not use ifeq, which is strict, as it will
242         require RELEASE_TYPE to be defined.
243         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
244         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
245         (announcement_Cc_alpha,announcement_mail_headers_alpha)
246         (announcement_Cc_beta,announcement_mail_headers_beta)
247         (announcement_Cc_stable,announcement_mail_headers_stable): these.
248         (release): Do not depend on $(release-type), as it forces its
249         evaluation.  Bounce to it.
250
251 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
252
253         maint.mk: formatting changes
254         * top/maint.mk: Indent bodies of if's.
255
256 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
257
258         maint.mk: factor the validation of RELEASE_TYPE
259         With help from Jim Meyering.
260         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
261         * top/maint.mk (_empty, _sp): Move their definition earlier.
262         (member-check, release-type): New.
263         Use the latter instead of $(RELEASE_TYPE).
264         Remove now useless local checks.
265
266 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
267
268         maint.mk: provide "make upload" to ease uploading
269         See
270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
271         Do not depend simply on the current $(VERSION), as there may have been
272         new commits since the tarball generation.  Rather, rely on $(RELEASE),
273         as "make release-commit" already does.
274
275         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
276         "make TYPE".
277
278         * top/maint.mk (upload_command, upload, release): New.
279         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
280         (VERSION): first word of $(RELEASE) is always right.
281         (emit_upload_commands): Adjust.
282         * top/README-release: Update.
283
284 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
285
286         maint.mk: silent rules
287         With help from Stefano Lattarini.
288         * top/maint.mk (writable-files): Use $(AM_V_GEN).
289         (announcement): Use $(AM_V_at).
290
291 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
292
293         localename: port gl_locale_name_thread_unsafe to FreeBSD
294         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
295         and use the simpler FreeBSD implementation on Mac OS X as well.
296         Original idea suggested by Ed Maste in
297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
298
299 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
300
301         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
302         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
303         * lib/mbuiter.c, lib/xsize.c: New files.
304         * lib/binary-io.h (BINARY_IO_INLINE):
305         * lib/eealloc.h (EEALLOC_INLINE):
306         * lib/mbfile.h (MBFILE_INLINE):
307         * lib/mbiter.h (MBITER_INLINE):
308         * lib/mbuiter.h (MBUITER_INLINE):
309         * lib/xsize.h (XSIZE_INLINE):
310         New macros.
311         Replace all uses of 'static inline' with them.
312         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
313         * m4/eealloc.m4 (gl_EEALLOC):
314         * m4/mbfile.m4 (gl_MBFILE):
315         * m4/mbiter.m4 (gl_MBITER):
316         * m4/xsize.m4 (gl_XSIZE):
317         Do not require AC_C_INLINE.
318         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
319         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
320         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
321         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
322         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
323         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
324         * modules/binary-io, modules/eealloc, modules/mbfile:
325         * modules/mbiter, modules/mbuiter:
326         (Depends-on): Add extern-inline.
327
328         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
329         * lib/pipe-filter-aux.c: New file.
330         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
331         Replace all uses of 'static inline' with it.
332         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
333         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
334         (filter_retcode): No real need for inline here.
335         * modules/pipe-filter-gi, modules/pipe-filter-ii:
336         (Files): Add lib/pipe-filter-aux.c.
337         (Depends-on): Add extern-inline.
338         (configure.ac): Do not require AC_C_INLINE.
339         (lib_SOURCES): Add pipe-filter-aux.c.
340
341         fdutimensat: omit unnecessary AC_C_INLINE
342         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
343
344         fchmodat, fchownat, fstatat: use extern-inline
345         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
346         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
347         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
348         New macros.
349         * lib/openat.h:
350         Replace all uses of 'static inline' with them.
351         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
352         * modules/fchmodat, modules/fchownat, modules/fstatat:
353         * modules/openat-h:
354         (Depends-on):
355         Add extern-inline.
356         (configure.ac): Remove AC_C_INLINE.
357
358         acl, mbchar, priv-set: use extern-inline
359         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
360         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
361         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
362         New macros.
363         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
364         Replace all uses of 'static inline' with it.
365         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
366         * m4/acl.m4 (gl_FUNC_ACL):
367         * m4/mbchar.m4 (gl_MBCHAR):
368         * m4/priv-set.m4 (gl_PRIV_SET):
369         Remove AC_C_INLINE, since 'inline' is no longer used directly.
370         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
371         Add extern-inline.
372
373         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
374         * m4/sockets.m4 (gl_SOCKETS):
375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
376         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
377         environments where it's already guaranteed to work, so we needn't
378         check for it at 'configure'-time.
379
380         tls-tests: omit unnecessary 'inline'
381         * tests/test-tls.c (perhaps_yield): No longer inline.
382         Simplicity and portability trump efficiency in test cases.
383
384         utimens-tests: avoid unnecessary 'inline'
385         * modules/fdutimensat-tests (configure.ac):
386         * modules/futimens-tests (configure.ac):
387         * modules/utimens-tests (configure.ac):
388         * modules/utimensat-tests (configure.ac):
389         Remove AC_C_INLINE.
390         * tests/test-utimens-common.h (ctime_compare):
391         No longer inline.  Simplicity and portability trump efficiency here.
392
393         misc: don't limit commentary to inline functions
394         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
395         * lib/xalloc-oversized.h, lib/xsize.h:
396         Contrast macros to functions in general, not just to inline functions,
397         when the commentary does not apply only to inline functions.
398
399 2012-09-20  Jim Meyering  <meyering@redhat.com>
400
401         non-recursive-gnulib-prefix-hack: new module
402         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
403         the file that originated in Bison.
404         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
405         largely copied from a snippet that resided in bison's configure.ac.
406         * modules/non-recursive-gnulib-prefix-hack: New file.
407         * MODULES.html.sh (Support for maintaining and releasing projects):
408         Add it.
409
410 2012-09-18  Jim Meyering  <meyering@redhat.com>
411
412         maint.mk: generalize _gl_tight_scope for non-recursive make
413         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
414         that *.h would describe additional .h files in the directory
415         specified by $(_gl_TS_dir).  I.e., add this...
416         (_gl_TS_other_headers): New variable.
417
418         maint.mk: exempt trailing blanks found in "binary" files
419         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
420         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
421         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
422
423 2012-09-17  Jim Meyering  <meyering@redhat.com>
424
425         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
426         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
427         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
428         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
429
430 2012-09-17  Jim Meyering  <meyering@redhat.com>
431
432         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
433         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
434         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
435         It is not in the same category as "exit (0)" or "exit (1)", and
436         besides, I know of no symbolic name for that 77.  Reported by
437         Richard W.M. Jones in
438         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
439
440 2012-09-17  Jim Meyering  <meyering@redhat.com>
441
442         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
443         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
444         all uses of #define, not just those that start in column 1.
445         Richard W.M. Jones reported a false positive in
446         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
447
448 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
449
450         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
451         * lib/localcharset.c (locale_charset) [DARWIN7]:
452         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
453         as these two values are incompatible.  Problem reported by Max Horn.
454         For more discussion, please see
455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
456
457         doc: document sticky-EOF issue
458         * doc/posix-functions/fgetc.texi (fgetc):
459         * doc/posix-functions/fgets.texi (fgets):
460         * doc/posix-functions/fread.texi (fread):
461         * doc/posix-functions/fscanf.texi (fscanf):
462         * doc/posix-functions/getc.texi (getc):
463         * doc/posix-functions/getchar.texi (getchar):
464         * doc/posix-functions/scanf.texi (scanf):
465         Mention that glibc and default Solaris do not conform to
466         C99 and POSIX-2001 or later, with respect to how getchar
467         etc. behave when feof reports nonzero.
468
469 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
470
471         poll: fix poll(0, NULL, msec)
472         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
473         but nfd is 0.  In that case poll should behave like select.
474
475 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
476             Paolo Bonzini <bonzini@gnu.org>
477
478         poll: fix for systems that can't recv() on a non-socket
479         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
480         is readable.  In this case POLLHUP will not be supported.
481         * doc/posix-functions/poll.texi: Document this.
482
483 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
484
485         poll/select: document portability problems not fixed by Gnulib.
486         * doc/posix-functions/poll.texi: poll does not work well on
487         pipes under Windows.  It has the same limitations as select on
488         BeOS.
489         * doc/posix-functions/select.texi: select does not work well
490         on pipes under Windows.
491
492 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
493
494         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
495         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
496         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
497         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
498
499 2012-09-06  Eric Blake  <eblake@redhat.com>
500
501         net_if: give more details about the bug being fixed
502         * doc/posix-headers/net_if.texi: Add clarification.
503
504 2012-09-05  Eric Blake  <eblake@redhat.com>
505
506         net_if: new module
507         * modules/net_if: New module, borrowing ideas from netinet_in.
508         * m4/net_if_h.m4: New file.
509         * lib/net_if.in.h: Likewise.
510         * doc/posix-headers/net_if.texi (net/if.h): Document it.
511         * MODULES.html.sh (lacking POSIX:2008): Likewise.
512         * tests/test-net_if.c: Make function checks conditional.
513         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
514
515 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
516
517         readutmp: fix non-portable UT_PID use
518         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
519         Use `UT_PID (u) > 0' as absolute condition.
520
521 2012-09-04  Jim Meyering  <meyering@redhat.com>
522
523         fts: reduce two or more trailing spaces to just one, usually
524         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
525         or more slashes, trim all but the final one.  But if a name consists
526         solely of two slashes, don't modify it.  If it consists solely of
527         three or more slashes, strip all but one.
528
529         This is part of the solution to a minor problem with rm:
530         it would print a bogus ELOOP diagnostic when failing to remove
531         the slash-decorated name of a symlink-to-directory:
532
533             $ mkdir d && ln -s d s && env rm -r s/
534             rm: cannot remove 's': Too many levels of symbolic links
535
536         With the change below and a trivial don't-trim-trailing-slashes
537         adjustment to remove.c, it does this:
538
539             $ env rm -r s/
540             rm: cannot remove 's/': Not a directory
541
542         Improved by: Eric Blake
543
544         fts: when there is no risk of overlap, use memcpy, not memmove
545         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
546
547 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
548
549         stdbool: be more compatible with mixed C/C++ compiles
550         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
551         Define to bool, true, false, respectively, as GCC's builtin
552         stdbool.h does.  Problem reported by Michael Goffioul in
553         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
554
555 2012-08-28  Jim Meyering  <meyering@redhat.com>
556
557         revert last change: it was not needed
558         * tests/test-vc-list-files-git.sh: There's already a test for
559         a working git, just below.
560
561 2012-08-28  Jim Meyering  <meyering@redhat.com>
562
563         tests: test-vc-list-files-git.sh: skip if git is not available
564         * tests/test-vc-list-files-git.sh: Skip this test when git is
565         not available.
566
567 2012-08-26  Bruno Haible  <bruno@clisp.org>
568
569         gnulib-tool: Remove no-op option --no-changelog.
570         * gnulib-tool (func_usage): Don't mention --no-changelog.
571         (do_changelog): Remove variable.
572         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
573
574 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
575
576         doc: remove fdl-1.2.texi
577         It is no longer used or maintained, and its use of @acronym
578         is problematic.  See the thread containing
579         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
580         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
581         * doc/old-licenses/fdl-1.2.texi: Remove.
582
583         execinfo: port to FreeBSD
584         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
585         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
586         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
587         * modules/execinfo (Link): Add $(LIB_EXECINFO).
588
589 2012-08-23  Jim Meyering  <meyering@redhat.com>
590
591         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
592         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
593         to placate gcc's -Wold-style-declaration.
594
595 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
596
597         doc: do not use @acronym
598         * doc/inet_ntoa.texi (inet_ntoa):
599         * doc/parse-datetime.texi (Seconds since the Epoch)
600         (Specifying time zone rules):
601         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
602         Don't use @acronym.  Problem reported by John Darlington in
603         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
604
605 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
606
607         stdnoreturn: port to newer GCCs
608         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
609         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
610         Problem reported by Jim Meyering in
611         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
612         Also, rename the 'test' function to a void a clash with the
613         already-supplied 'main' function; this fixes a bug that incorrectly
614         rejected GCC 4.7.1's <stdnoreturn.h>.
615         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
616         Document GCC problem.
617
618 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
619
620         pipe-filter: fix comment typo
621         * lib/pipe-filter.h: Mention correct function.
622
623 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
624
625         execinfo: new module
626         This is for Emacs.  Currently, it provides a no-effect stub
627         on all platforms where it does not already work.
628         It already works on glibc-based systems, and on Solaris 11.
629         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
630         New files.
631         * doc/glibc-headers/execinfo.texi (execinfo.h):
632         * MODULES.html.sh (Misc): Document it.
633
634 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
635
636         extern-inline: support old GCC 'inline'
637         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
638         if available.  This applies to GCC versions 2.7 through 4.2, or
639         when newer GCC is using -fgnu89-inline.  The goal is to address
640         some of the performance issues mentioned by Bruno Haible in
641         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
642
643 2012-08-20  Eric Blake  <eblake@redhat.com>
644
645         maint.mk: avoid redundant file name in message
646         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
647         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
648         (sc_makefile_path_separator_check): Remove bogus $(ME).
649
650 2012-08-20  Mike Frysinger <vapier@gentoo.org>
651
652         timer-time: fix link order when static linking on glibc
653         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
654         _after_ -lrt so that it's significant.
655
656 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
657
658         timespec: omit unnecessary AC_C_INLINE
659         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
660
661         stat-time: omit unnecessary AC_C_INLINE
662         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
663         Do not require AC_C_INLINE.
664
665         ignore-value: omit unnecessary AC_C_INLINE
666         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
667
668         sys_select: avoid 'static inline'
669         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
670
671         mktime: avoid 'static inline'
672         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
673         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
674
675 2012-08-19  Bruno Haible  <bruno@clisp.org>
676
677         gnulib-tool: Improve coding style.
678         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
679         func_emit_lib_Makefile_am.
680         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
681
682 2012-08-19  Bruno Haible  <bruno@clisp.org>
683
684         gnulib-tool: Fix indentation.
685         * gnulib-tool (func_import): Fix indentation.
686
687 2012-08-19  Bruno Haible  <bruno@clisp.org>
688
689         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
690         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
691         on the list of removed files.
692
693 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
694
695         test-parse-datetime: avoid glibc leap-second glitch
696         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
697         with the 2012 rules.  Problem reported by Bruce Dubbs in
698         <http://bugs.gnu.org/12206>.
699
700 2012-08-14  Bruno Haible  <bruno@clisp.org>
701
702         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
703         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
704         from argument.
705         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
706
707 2012-08-14  Eric Blake  <eblake@redhat.com>
708
709         ldexp: relax license
710         * modules/ldexp (License): Trivial relax, since the module only
711         provides a permissively licensed m4 file.
712
713 2012-08-13  Bruno Haible  <bruno@clisp.org>
714
715         gnulib-tool: Fix persistence of --witness-c-macro option.
716         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
717         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
718
719 2012-08-11  Eric Blake  <eblake@redhat.com>
720
721         count-leading-zeros: use a lookup table on non-gcc compilers
722         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
723         alternate implementation, suggested by Jim Meyering.
724
725 2012-08-10  Eric Blake  <eblake@redhat.com>
726
727         count-leading-zeros: new module
728         * modules/count-leading-zeros: New module.
729         * m4/count-leading-zeros.m4: New file.
730         * lib/count-leading-zeros.h: Likewise.
731         * modules/count-leading-zeros-tests: New test.
732         * tests/test-count-leading-zeros.c: New file.
733         * MODULES.html.sh (Integer arithmetic functions): Document it.
734
735 2012-08-07  Simon Josefsson  <simon@josefsson.org>
736             Jim Meyering  <meyering@redhat.com>
737
738         maintainer-makefile: Fix syntax error with dash.
739         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
740         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
741
742 2012-08-05  Jim Meyering  <meyering@redhat.com>
743
744         extern-inline: also ignore -Wmissing-declarations
745         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
746         required with gcc-4.8.0-to-be.
747
748         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
749         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
750         for /error ?([^,]*)/.  This avoids false-positives for strings like
751         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
752
753 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
754
755         gnumakefile: better interaction with Automake-NG
756         * modules/gnumakefile [Makefile.am]: The makefiles generated by
757         Automake-NG always contain a definition of VPATH, even in non-VPATH
758         builds (its value being simply '.' in that case).  So, in the
759         'clean-GNUmakefile' rule, to determine whether running under a
760         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
761         '$(VPATH)' expands to the empty string.
762
763 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
764
765         base64: Use extern C scope in header file, for C++.
766         * lib/base64.h: Add C++ namespace protection.
767
768 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
769
770         stat-time, timespec, u64: support naive out-of-dir builds
771         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
772         Use '#include "foo.h"', not '#include <foo.h>', when including
773         one's own interface.  This works better when configuring with
774         out-of-directory builds, since packages need not add an
775         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
776
777 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
778
779         utimens: use extern-inline
780         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
781         * lib/utimens.h: Add copyright notice, since this is now large enough
782         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
783         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
784         * modules/utimens (Depends-on): Add extern-inline.
785
786         u64: use extern-inline
787         * lib/u64.c: New file.
788         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
789         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
790         * modules/u64 (Files): Add lib/u64.c.
791         (Depends-on): Add extern-inline.
792         (configure.ac): No need to require AC_C_INLINE, since extern-inline
793         does that now.
794         (lib_SOURCES): Add u64.c.
795
796         timespec: use extern-inline
797         * lib/timespec.c: New file.
798         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
799         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
800         * modules/timespec (Files): Add lib/timespec.c.
801         (Depends-on): Add extern-inline.
802         (lib_SOURCES): Add timespec.c.
803
804         stat-time: use extern-inline
805         * lib/stat-time.c: New file.
806         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
807         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
808         * modules/stat-time (Files): Add lib/stat-time.c.
809         (Depends-on): Add extern-inline.
810         (lib_SOURCES): Add stat-time.c.
811
812         extern-inline: new module
813         * modules/extern-inline, m4/extern-inline.m4: New files.
814         This is for better support of 'extern inline' a la ISO C99,
815         with a portable alternative on compilers that do not support
816         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
817         of the Emacs executable, when compiled with debugging disabled,
818         which is a typical way that Emacs is built while developing.
819
820 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
821
822         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
823         * build-aux/do-release-commit-and-tag: Move variable definitions
824         together.
825         ($branch): Instead of defaulting to "master", default to the current
826         branch (as gnu-web-doc-update does).
827         (help): Display the current values of the option arguments.
828         * top/maint.mk (release-commit): New.
829         * top/README-release: Simplify the corresponding step.
830
831 2012-07-30  Eric Blake  <eblake@redhat.com>
832
833         passfd: fix comment on recvfd
834         * lib/passfd.c (recvfd): Fix comment.
835         Reported by Jann Horn <jannhorn@googlemail.com>.
836
837 2012-07-30  Jim Meyering  <meyering@redhat.com>
838
839         maint.mk: avoid a sub-shell
840         * top/maint.mk (release-prep): Remove unneeded sub-shell.
841
842 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
843
844         maint.mk: use silent-rules support from Automake
845         * top/maint.mk (news-check, vc-diff-check, announcement)
846         (no-submodule-changes, alpha beta stable, release-prep)
847         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
848
849 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
850
851         maint.mk: provide a web-manual-update target
852         * top/maint.mk: here.
853         * top/README-release: Use it to simplify the web manual update step.
854
855 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
856
857         README-release: shorten the circuit to post a news
858         * top/README-release: Point directly to the news submission form.
859
860 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
861
862         gnu-web-doc-update: fix --help
863         * build-aux/gnu-web-doc-update: The information "top level" was written
864         twice.
865
866 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
867
868         maint.mk: absolute VPATH issue
869         * top/maint.mk (release-prep): Help Git find .git/.
870         From Jim Meyering.
871
872 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
873
874         gitlog-to-changelog: fix previous change
875         * build-aux/gitlog-to-changelog: Fix condition.
876         Add missing ";".
877
878 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
879
880         gitlog-to-changelog: don't expect .git to be in $srcdir
881         Reported by Bruno Haible.
882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
883         * build-aux/gitlog-to-changelog (&git_dir_option): New.
884         Use it.
885
886 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
887
888         maint.mk: absolute VPATH build fix
889         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
890         $(srcdir) is not a parent of $(builddir).
891
892 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
893
894         clean-temp: Fix memory leak.
895         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
896         'files' members of tmpdir.
897
898 2012-07-27  Jim Meyering  <meyering@redhat.com>
899
900         maint.mk: new rule: refresh-gnulib-patches
901         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
902         Use this rule to refresh them.
903         * top/maint.mk (refresh-gnulib-patches): New rule.
904
905 2012-07-24  Bruno Haible  <bruno@clisp.org>
906
907         gnulib-tool: Fix handling of inctests variable.
908         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
909         Reported by Nick Bowler <nbowler@elliptictech.com>.
910
911 2012-07-22  Bruno Haible  <bruno@clisp.org>
912
913         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
914         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
915         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
916         Remove exemption for getpass.h.
917         Suggested by Eric Blake.
918
919 2012-07-20  Eric Blake  <eblake@redhat.com>
920
921         verify: document conflict with -Wnested-externs
922         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
923
924         maint.mk: forbid exit(-1)
925         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
926
927 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
928
929         fsusage: port back to Solaris
930         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
931         error (fsd not declared) on Solaris 10.  Reported privately by
932         Andrew Borodin.
933
934 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
935
936         gnu-web-doc-update: fix error messages
937         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
938
939         gnu-web-doc-update: check the requirements.
940         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
941         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
942         * build-aux/bootstrap (find_tool): Comment change.
943
944 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
945
946         maint.mk: minor simplication.
947         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
948         for default values.
949
950 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
951
952         gitlog-to-changelog: VPATH build issues
953         If builddir is not a subdirectory of srcdir, running git from it will
954         fail.
955         * build-aux/gitlog-to-changelog (--srcdir): New option.
956
957 2012-07-15  Bruno Haible  <bruno@clisp.org>
958
959         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
960         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
961         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
962         Remove exemption for fpending.h.
963         Suggested by Eric Blake.
964
965 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
966
967         pthread_sigmask: fix bug on FreeBSD 9
968         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
969         Include string.h.
970         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
971         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
972         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
973         but pthread_sigmask (1729, NULL, NULL) returns zero.
974         See <http://bugs.gnu.org/11884>.
975         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
976         by inspecting whether the main call changed the old mask.
977
978 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
979
980         README-release: make it more legible
981         * top/README-release: Improve typography slightly.
982
983 2012-07-15  Jim Meyering  <meyering@redhat.com>
984
985         maint: require that each sc_... command start with "@"
986         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
987         "make sc_maint" helps us avoid this nit.
988
989 2012-07-15  Jim Meyering  <meyering@redhat.com>
990
991         maint.mk: add leading "@" to quiet new "make syntax-check" rule
992         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
993
994 2012-07-13  Eric Blake  <eblake@redhat.com>
995
996         maint.mk: new syntax check for HAVE_DECL checks
997         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
998         * cfg.mk
999         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1000         Exempt some false positives.
1001         Based on a report by Karel Zak.
1002
1003         argp: make HAVE_DECL usage consistent
1004         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1005         macros, not whether they are defined.
1006         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1007         convention with other declaration checks.
1008         Reported by Karel Zak, with suggestions from Paul Eggert.
1009
1010         stat-time: relax license to LGPLv2+
1011         * modules/stat-time (License): Relax, with consent of all authors.
1012
1013         strndup: fix m4 usage error
1014         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1015         defined, to either 0 or 1.
1016         Reported by Karel Zak.
1017
1018 2012-07-11  Jim Meyering  <meyering@redhat.com>
1019
1020         maint: enable the sc_avoid_if_before_free syntax-check rule
1021         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1022         (if_before_free_offenders_): Define.
1023         (if_before_free_basename_re_): Define.
1024         Exempt current files with useless if-before-free.
1025
1026 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1027
1028         gettext: do not assume '#define ... defined ...' behavior
1029         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1030         Do not use '#define FOO ... defined BAR ...', as the C standard says
1031         it's not portable to expect that this works after macro expansion.
1032         Problem reported for gzip by Steven M. Schweda in
1033         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1034
1035 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         getloadavg: clean out old Emacs and Autoconf cruft
1038         See Glenn Morris in <http://bugs.gnu.org/11905>.
1039         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1040         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1041         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1042         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1043
1044 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1045
1046         bootstrap: let warn be like tests/init.sh's warn_
1047         Reported by Jim Meyering.
1048         * build-aux/bootstrap (warn): Remove, replaced by...
1049         (warnf_, warn_): these.
1050         Adjust callers.
1051         Shorten messages that no longer fit in 80 columns.
1052
1053 2012-07-09  Bruno Haible  <bruno@clisp.org>
1054
1055         getopt: Simplify after Emacs changed.
1056         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1057         (gl_GETOPT_IFELSE): Remove macro.
1058
1059 2012-07-09  Jim Meyering  <meyering@redhat.com>
1060
1061         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1062         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1063
1064         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1065         Bugs in both of those conspired to make the
1066         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1067         _sc_search_regexp's handling of non-empty $in_files would filter
1068         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1069         choice of in_files value meant there would be no match in most
1070         projects, due to the presence of two or more Makefile.in files.
1071         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1072         Fix a bug in how a non-empty $$in_files was processed:
1073         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1074         in spite of the name, it's a regexp, not a list of file names.
1075
1076 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         getloadavg, getopt: fix commentary re configure.in
1079         Autoconf is deprecating the name 'configure.in', so change it to
1080         to the new name 'configure.ac' in a couple of places.
1081         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1082         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1083         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1084         Emacs has renamed it to configure.ac, and it no longer refers
1085         to these macros anyway.
1086
1087         timespec: mark functions with const attributes
1088         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1089         Mark with _GL_ATTRIBUTE_CONST.
1090
1091 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1092
1093         canonicalize[-lgpl]: handle "guessing" values when cross-building
1094         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1095         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1096         matches "*yes" instead of just "yes".  Regression introduced in commit
1097         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1098
1099 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1100             Bruno Haible  <bruno@clisp.org>
1101
1102         canonicalize: make the right guess when cross-compiling to GNU
1103         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1104         determine whether cross-compiling to glibc systems, so as to
1105         include GNU/Hurd.
1106
1107 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         timespec-sub: avoid duplicate include
1110         * lib/timespec-sub.c: Do not include <config.h> twice.
1111         Reported by Juanma Barranquero.
1112
1113 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1114
1115         bootstrap: use a more consistent error reporting scheme
1116         * build-aux/bootstrap (warn, die): New.
1117         Use them.
1118
1119 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1120
1121         sys_time: allow too-wide tv_sec
1122         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1123         timeval even if tv_sec is wider than time_t.  This allows
1124         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1125         as without this patch gnulib replaces struct timeval
1126         and OpenBSD futimes therefore has a type mismatch.
1127         * doc/posix-headers/sys_time.texi: Mention this.
1128
1129         pthread: check for both pthread_create and pthread_join
1130         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1131         alter the check so that it tests for both pthread_create and
1132         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1133         Suggested by Bruno Haible and Richard Yao in
1134         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1135
1136         parse-datetime: doc tuneup
1137         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1138         spacing issues.
1139
1140 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1141
1142         do-release-commit-and-tag: fix the previous commit
1143         * build-aux/do-release-commit-and-tag: Actually the test was right,
1144         but the comment and the error message were misleading.
1145         Fix comment, and improve error message.
1146         Perform check first, so that NEWS is not modified uselessly.
1147
1148         do-release-commit-and-tag: fix typo
1149         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1150         _not_ start with a stub.
1151
1152 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         pthread: check for pthread_create, not pthread_join
1155         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1156         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1157         pthread_join in libc.  I hope this removes the need for all the
1158         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1159         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1160
1161 2012-07-04  Jim Meyering  <meyering@redhat.com>
1162
1163         parse-datetime: fix failure to diagnose invalid input
1164         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1165         rather than diagnosing the invalid input.  Now it reports this:
1166         date: invalid date '\260'
1167         * lib/parse-datetime.y (to_uchar): Define.
1168         (yylex): Don't sign-extend "other" bytes.
1169         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1170         Thanks to Bruno Haible for the patch to this file.
1171         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1172         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1173
1174 2012-07-03  Jim Meyering  <meyering@redhat.com>
1175
1176         bootstrap: do not require now-removed build-aux/missing
1177         Now that build-aux/missing is, er, missing, bootstrap would
1178         silently fail.
1179         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1180         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1181         no longer part of gnulib.
1182         Diagnose the failure.
1183
1184 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1185
1186         alloca: add support for HP NonStop TNS/E native
1187         * lib/alloca.in.h (alloca): Support the new host.
1188         From a suggestion by Joachim Schmitz in
1189         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1190
1191 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1192
1193         fsusage: remove code not needed on non GNU/Linux systems.
1194
1195         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1196         Don't include headers no longer needed in this case.
1197         * lib/fsusage.c [STAT_STATVFS &&
1198         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1199         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1200
1201 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1202
1203         fsusage: include files needed for glibc 2.6 fallback
1204         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1205         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1206         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1207         Problem reported by Ludovic Courtès in
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1209
1210         fsusage: avoid needless check on GNU/Linux
1211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1212         on GNU/Linux systems, since it can't possibly work.
1213
1214 2012-07-01  Bruno Haible  <bruno@clisp.org>
1215
1216         log: Fix an autoconf >= 2.64 warning.
1217         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1218         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1219
1220 2012-06-28  Bruno Haible  <bruno@clisp.org>
1221
1222         log10f: Fix possible configuration problem.
1223         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1224         $LOGF_LIBM.
1225         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1226
1227 2012-06-28  Bruno Haible  <bruno@clisp.org>
1228
1229         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1230         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1231         not gl_cv_func_unlink_works.
1232         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1233
1234 2012-06-27  Eric Blake  <eblake@redhat.com>
1235
1236         config: drop scripts that automake says are not independent
1237         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1238         * build-aux/elisp-comp: Delete.
1239         * build-aux/missing: Likewise.
1240         * build-aux/ylwrap: Likewise.
1241         * modules/elisp-comp: Likewise.
1242         * MODULES.html.sh: Drop mention of elisp-comp.
1243         * NEWS: Mention this.
1244
1245 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1246
1247         root-uid: new module
1248         This is for portability to Tandem's NonStop Kernel.
1249         * lib/root-uid.h, modules/root-uid: New files.
1250         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1251         * lib/write-any-file.c, tests/test-sethostname2.c:
1252         Include "root-uid.h".
1253         * lib/euidaccess.c (euidaccess):
1254         * lib/pt_chown.c (main):
1255         * lib/unlinkdir.c (cannot_unlink_dir):
1256         * lib/write-any-file.c (can_write_any_file):
1257         * m4/mknod.m4 (gl_FUNC_MKNOD):
1258         * tests/test-sethostname2.c (geteuid, main):
1259         Don't assume ROOT_UID == 0.
1260         * modules/euidaccess (Depends-on):
1261         * modules/pt_chown (Depends-on):
1262         * modules/sethostname-tests (Depends-on):
1263         * modules/unlinkdir (Depends-on):
1264         * modules/write-any-file (Depends-on):
1265         Add root-uid.
1266
1267         regex: use locale-independent comparison for codeset name
1268         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1269         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1270         for codeset name.
1271         * lib/regex_internal.h: Do not include <strings.h>, since we
1272         no longer use strcasecmp.
1273         * modules/regex (Depends-on): Remove strcase.
1274
1275 2012-06-23  Bruno Haible  <bruno@clisp.org>
1276
1277         getopt-posix: No longer guarantee that option processing is resettable.
1278         * doc/posix-functions/getopt.texi: Drop description of problem with
1279         internal state. Fix info about mingw and msvc9.
1280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1281         option processing by getopt(). Run three test programs instead of one.
1282         Simplify cross-compilation guess.
1283         * NEWS: Mention the change.
1284         Reported by Rich Felker <dalias@aerifal.cx>.
1285
1286 2012-06-26  Bruno Haible  <bruno@clisp.org>
1287
1288         argp, regex: Ensure strcasecmp gets declared.
1289         * lib/argp-help.c: Include <strings.h>.
1290         * lib/regex_internal.h: Likewise.
1291         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1292
1293 2012-06-24  Bruno Haible  <bruno@clisp.org>
1294
1295         ptsname_r: Make it consistent with ptsname on AIX.
1296         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1297         implementation as for OSF/1.
1298         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1299         a pty master.
1300
1301         ptsname_r: Make it consistent with ptsname on OSF/1.
1302         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1303         OSF/1.
1304
1305 2012-06-24  Bruno Haible  <bruno@clisp.org>
1306
1307         ttyname_r: Fix result on OSF/1, Solaris.
1308         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1309
1310 2012-06-24  Bruno Haible  <bruno@clisp.org>
1311
1312         ptsname_r: Add support for Solaris.
1313         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1314         Solaris.
1315
1316         ptsname_r: Fix test failure on native Windows.
1317         * modules/ptsname_r (Depends-on): Add isatty.
1318
1319         ptsname_r: Fix test failures on IRIX, Solaris.
1320         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1321         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1322         accordingly.
1323         * lib/ptsname_r.c: Include <fcntl.h>.
1324         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1325         set errno if fd is invalid.
1326         * tests/test-isatty.c (main): Update comments.
1327
1328 2012-06-24  Bruno Haible  <bruno@clisp.org>
1329
1330         ptsname test: Extend test.
1331         * tests/test-ptsname.c: Include <errno.h>.
1332         (main): Test behaviour with invalid file descriptor.
1333
1334 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1335
1336         time: fix obsolete comment
1337         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1338         reference to HAVE_STRUCT_TIMESPEC in comment.
1339
1340 2012-06-23  Bruno Haible  <bruno@clisp.org>
1341
1342         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1344         does not handle abbreviated long options with equivalent
1345         disambiguations, set gl_replace_getopt to yes.
1346         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1347
1348 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1349
1350         time_r: fix typo that always overrode localtime_r decl
1351         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1352         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1353         not in a standard include.
1354
1355 2012-06-22  Bruno Haible  <bruno@clisp.org>
1356
1357         Write "Mac OS X" instead of "MacOS X".
1358         * README: Write "Mac OS X" instead of "MacOS X".
1359         * build-aux/bootstrap: Likewise.
1360         * build-aux/install-reloc: Likewise.
1361         * lib/acl-internal.h: Likewise.
1362         * lib/acl_entries.c: Likewise.
1363         * lib/argp-ba.c: Likewise.
1364         * lib/argp-pv.c: Likewise.
1365         * lib/config.charset: Likewise.
1366         * lib/copy-acl.c: Likewise.
1367         * lib/csharpexec.c: Likewise.
1368         * lib/euidaccess.c: Likewise.
1369         * lib/fbufmode.c: Likewise.
1370         * lib/fflush.c: Likewise.
1371         * lib/file-has-acl.c: Likewise.
1372         * lib/filemode.h: Likewise.
1373         * lib/fpurge.c: Likewise.
1374         * lib/freadable.c: Likewise.
1375         * lib/freadahead.c: Likewise.
1376         * lib/freading.c: Likewise.
1377         * lib/freadptr.c: Likewise.
1378         * lib/freadseek.c: Likewise.
1379         * lib/fseeko.c: Likewise.
1380         * lib/fseterr.c: Likewise.
1381         * lib/fsusage.c: Likewise.
1382         * lib/fwritable.c: Likewise.
1383         * lib/fwriting.c: Likewise.
1384         * lib/get-rusage-as.c: Likewise.
1385         * lib/get-rusage-data.c: Likewise.
1386         * lib/getdomainname.c: Likewise.
1387         * lib/idpriv-drop.c: Likewise.
1388         * lib/idpriv-droptemp.c: Likewise.
1389         * lib/localcharset.c: Likewise.
1390         * lib/locale.in.h: Likewise.
1391         * lib/localename.c: Likewise.
1392         * lib/mbsrtowcs-state.c: Likewise.
1393         * lib/nproc.c: Likewise.
1394         * lib/passfd.c: Likewise.
1395         * lib/posix_openpt.c: Likewise.
1396         * lib/printf-parse.c: Likewise.
1397         * lib/progreloc.c: Likewise.
1398         * lib/safe-read.h: Likewise.
1399         * lib/safe-write.h: Likewise.
1400         * lib/sched.in.h: Likewise.
1401         * lib/set-mode-acl.c: Likewise.
1402         * lib/signal.in.h: Likewise.
1403         * lib/stdint.in.h: Likewise.
1404         * lib/stdio-impl.h: Likewise.
1405         * lib/stdlib.in.h: Likewise.
1406         * lib/strtod.c: Likewise.
1407         * lib/sys_select.in.h: Likewise.
1408         * lib/tcgetsid.c: Likewise.
1409         * lib/unistd.in.h: Likewise.
1410         * lib/unlockpt.c: Likewise.
1411         * lib/vasnprintf.c: Likewise.
1412         * lib/vma-iter.c: Likewise.
1413         * lib/wcsrtombs-state.c: Likewise.
1414         * m4/acl.m4: Likewise.
1415         * m4/acosl.m4: Likewise.
1416         * m4/asinl.m4: Likewise.
1417         * m4/atanl.m4: Likewise.
1418         * m4/c-stack.m4: Likewise.
1419         * m4/cosl.m4: Likewise.
1420         * m4/expl.m4: Likewise.
1421         * m4/extensions.m4: Likewise.
1422         * m4/fdatasync.m4: Likewise.
1423         * m4/fmal.m4: Likewise.
1424         * m4/frexp.m4: Likewise.
1425         * m4/frexpf.m4: Likewise.
1426         * m4/frexpl.m4: Likewise.
1427         * m4/fsusage.m4: Likewise.
1428         * m4/getdomainname.m4: Likewise.
1429         * m4/getloadavg.m4: Likewise.
1430         * m4/getopt.m4: Likewise.
1431         * m4/gettext.m4: Likewise.
1432         * m4/gnulib-common.m4: Likewise.
1433         * m4/intdiv0.m4: Likewise.
1434         * m4/intlmacosx.m4: Likewise.
1435         * m4/largefile.m4: Likewise.
1436         * m4/ldexpl.m4: Likewise.
1437         * m4/link-follow.m4: Likewise.
1438         * m4/locale-ar.m4: Likewise.
1439         * m4/locale-fr.m4: Likewise.
1440         * m4/locale-ja.m4: Likewise.
1441         * m4/locale-tr.m4: Likewise.
1442         * m4/locale-zh.m4: Likewise.
1443         * m4/locale_h.m4: Likewise.
1444         * m4/lock.m4: Likewise.
1445         * m4/logl.m4: Likewise.
1446         * m4/mathfunc.m4: Likewise.
1447         * m4/minus-zero.m4: Likewise.
1448         * m4/mktime.m4: Likewise.
1449         * m4/mmap-anon.m4: Likewise.
1450         * m4/multiarch.m4: Likewise.
1451         * m4/nanosleep.m4: Likewise.
1452         * m4/nocrash.m4: Likewise.
1453         * m4/poll.m4: Likewise.
1454         * m4/printf-frexpl.m4: Likewise.
1455         * m4/printf.m4: Likewise.
1456         * m4/signbit.m4: Likewise.
1457         * m4/sinl.m4: Likewise.
1458         * m4/sqrtl.m4: Likewise.
1459         * m4/strerror_r.m4: Likewise.
1460         * m4/tanl.m4: Likewise.
1461         * m4/threadlib.m4: Likewise.
1462         * m4/ttyname_r.m4: Likewise.
1463         * m4/unlink.m4: Likewise.
1464         * m4/visibility.m4: Likewise.
1465         * m4/wcwidth.m4: Likewise.
1466         * tests/minus-zero.h: Likewise.
1467         * tests/test-alloca-opt.c: Likewise.
1468         * tests/test-copy-acl.sh: Likewise.
1469         * tests/test-copy-file.sh: Likewise.
1470         * tests/test-fdatasync.c: Likewise.
1471         * tests/test-file-has-acl.sh: Likewise.
1472         * tests/test-flock.c: Likewise.
1473         * tests/test-fsync.c: Likewise.
1474         * tests/test-localename.c: Likewise.
1475         * tests/test-malloca.c: Likewise.
1476         * tests/test-nonblocking-pipe.h: Likewise.
1477         * tests/test-nonblocking-socket.h: Likewise.
1478         * tests/test-openpty.c: Likewise.
1479         * tests/test-posix_openpt.c: Likewise.
1480         * tests/test-ptsname.c: Likewise.
1481         * tests/test-ptsname_r.c: Likewise.
1482         * tests/test-sameacls.c: Likewise.
1483         * tests/test-select.h: Likewise.
1484         * tests/test-set-mode-acl.sh: Likewise.
1485         * tests/test-snprintf-posix.h: Likewise.
1486         * tests/test-sprintf-posix.h: Likewise.
1487         * tests/test-strtod.c: Likewise.
1488         * tests/test-time.c: Likewise.
1489         * tests/test-vasnprintf-posix.c: Likewise.
1490         * tests/test-vasprintf-posix.c: Likewise.
1491         * doc/acl-resources.txt: Likewise.
1492         * doc/**/*.texi: Likewise.
1493         Reported by Max Horn <max@quendi.de>.
1494
1495 2012-06-22  Bruno Haible  <bruno@clisp.org>
1496
1497         grantpt: Relax requirement regarding invalid file descriptors.
1498         * lib/grantpt.c: Don't include <fcntl.h>.
1499         (grantpt): Don't verify the validity of the file descriptor.
1500         * modules/grantpt (Depends-on): Remove fcntl-h.
1501         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1502         file descriptors.
1503         * doc/posix-functions/grantpt.texi: Document more platforms on which
1504         grantpt succeeds for invalid file descriptors.
1505         Reported by Rich Felker <dalias@aerifal.cx>.
1506
1507 2012-06-22  Bruno Haible  <bruno@clisp.org>
1508
1509         fbufmode test: Don't test unportable behaviour.
1510         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1511         (main): Invoke it three times.
1512         Reported by Szabolcs Nagy <nsz@port70.net>
1513         and Rich Felker <dalias@aerifal.cx>.
1514
1515 2012-06-21  Bruno Haible  <bruno@clisp.org>
1516
1517         gnulib-tool: Refactor inctests variable.
1518         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1519         (func_modules_transitive_closure,
1520         func_modules_transitive_closure_separately,
1521         func_import, func_create_testdir): Update.
1522
1523         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1524         * gnulib-tool: Accept option --without-tests.
1525         (func_usage): Document --without-tests option. Rearrange.
1526         (inctests): Normalize according to the mode.
1527         * NEWS: Mention the change.
1528         Suggested by Simon Josefsson.
1529
1530 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1531
1532         parse-duration test: Avoid spurious output.
1533         * tests/test-parse-duration.sh: Reindent with leading tabs.
1534
1535 2012-06-21  Jim Meyering  <meyering@redhat.com>
1536
1537         maint: disable the strncpy prohibition
1538         * cfg.mk: Do not prohibit strncpy here.
1539
1540 2012-06-21  Bruno Haible  <bruno@clisp.org>
1541
1542         nonblocking: Avoid compilation error on mingw64.
1543         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1544         fscanf.
1545         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1546         * modules/vfscanf (configure.ac): Likewise.
1547         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1548         definition only if stdio.h has prepared it.
1549         Reported by Daniel P. Berrange <berrange@redhat.com>.
1550
1551 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1552
1553         gnulib-tool: Use readlink if it is available.
1554         * gnulib-tool (func_readlink): Choose function more appropriately.
1555
1556 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1557
1558         posixtm-tests: port to buggy compiler
1559         Problem reported by Simon Josefsson in
1560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1561         * modules/posixtm-tests (Depends-on): Add stdint.
1562         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1563         Now of type int_least64_t, not int64_t, both because that's
1564         what INT64_C returns and because int_least64_t works even
1565         on 72-bit hosts.
1566         (T): Use INT64_C on constants outside the traditional int range,
1567         to work around compiler bug noted by Simon.
1568
1569         mktime: fix integer overflow in 'configure'-time test
1570         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1571         after integer overflow.  Problem reported by Rich Felker in
1572         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1573         Also, don't look for further instances of a bug if we've already
1574         found one instance; this helps 'configure' run faster.
1575
1576 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1577
1578         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1579         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1580         GetVersionEx correctly.
1581         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1582
1583 2012-06-20  Bruno Haible  <bruno@clisp.org>
1584
1585         fdopen: Allow implementations that don't reject invalid fd arguments.
1586         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1587         succeeds.
1588         Reported by Rich Felker <dalias@aerifal.cx>.
1589
1590 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1591
1592         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1593         bring in LIBINTL.
1594
1595 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         init.sh: do not rely on autoupated PWD
1598         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1599         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1600         Although Nelson's bug was not necessarily fixed by this patch,
1601         it seems wise to make the change for safety.
1602         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1603         automagically after 'cd'; this is not reliable on older shells.
1604         (setup_): Fail if we cannot cd to temporary directory.
1605
1606 2012-06-19  Bruno Haible  <bruno@clisp.org>
1607
1608         stat, fstat: Avoid warnings on mingw64.
1609         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1610         redefining.
1611         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1612         Reported by Daniel P. Berrange <berrange@redhat.com>.
1613
1614 2012-06-19  Bruno Haible  <bruno@clisp.org>
1615
1616         stdioext: Add support for musl libc.
1617
1618         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1619         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1620
1621         * m4/fseterr.m4: New file.
1622         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1623         function exists.
1624         * modules/fseterr (Files): Add m4/fseterr.m4.
1625         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1626         __fseterr does not exist.
1627         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1628
1629         * lib/freadable.h: Update comment.
1630
1631         * lib/fwritable.h: Update comment.
1632
1633         * lib/freading.h: Update comment.
1634
1635         * lib/fwriting.h: Update comment.
1636
1637         * m4/freadahead.m4: New file.
1638         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1639         that function exists.
1640         * modules/freadahead (Files): Add m4/freadahead.m4.
1641         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1642         __freadahead does not exist.
1643         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1644
1645         * m4/freadptr.m4: New file.
1646         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1647         function exists.
1648         * modules/freadptr (Files): Add m4/freadptr.m4.
1649         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1650         __freadptr does not exist.
1651         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1652
1653         * m4/freadseek.m4: New file.
1654         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1655         exists.
1656         * modules/freadseek (Files): Add m4/freadseek.m4.
1657         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1658
1659         * lib/fpurge.c (fpurge): Update comment.
1660
1661         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1662
1663 2012-06-19  Bruno Haible  <bruno@clisp.org>
1664
1665         *printf-posix: Put more info into config.log.
1666         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1667         exit code into config.log.
1668
1669 2012-06-19  Bruno Haible  <bruno@clisp.org>
1670
1671         getopt-gnu: Fix exit code overflow in autoconf test.
1672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1673         to keep them below < 128.
1674
1675 2012-06-17  Jim Meyering  <meyering@redhat.com>
1676
1677         maint.mk: fix typo in code to derive GPG key at release time
1678         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1679
1680 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1681
1682         regex: avoid warning when pointers are not long
1683         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1684         and uintptr_t, not long, for portability to hosts where pointers and
1685         long have different sizes.  Issue noted by Daniel P. Berrange in
1686         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1687         and fix suggested by Bruno Haible in
1688         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1689
1690 2012-06-17  Bruno Haible  <bruno@clisp.org>
1691
1692         dummy: Relicense into the public domain.
1693         * modules/dummy (License): Set to "public domain".
1694         Suggested by Reuben Thomas.
1695
1696 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1697
1698         announce-gen: VPATH issues
1699         * build-aux/announce-gen (--srcdir): New option, used to trim the
1700         $srcdir part of the path from $builddir to NEWS.
1701         * top/maint.mk (announcement): Adjust.
1702
1703 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1704
1705         gnu-web-doc-update: VPATH builds
1706         * build-aux/gnu-web-doc-update (--builddir): New option.
1707         Revamp the handling of options.
1708         Prefer $(...) to `...`.
1709         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1710         the template, and it is GNU mktemp specific.
1711         Prefer set -e to long series of &&.
1712         Restore the initial git branch, not "master".
1713         Properly initialize submodules (don't rely only on bootstrap).
1714         Do not reconfigure blindly, use config.status.
1715         * top/README-release: Update instructions for gnu-web-doc-update.
1716
1717 2012-06-11  Jim Meyering  <meyering@redhat.com>
1718
1719         maint.mk: revert most of the previous change re "all these"
1720         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1721         For rationale, see the discussion at
1722         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1723
1724 2012-06-10  Karl Berry  <karl@gnu.org>
1725
1726         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1727
1728         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1729
1730 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1731
1732         parse-duration: Relicense under LGPLv2+.
1733         * modules/parse-duration (License): Change to LGPLv2+.
1734
1735 2012-06-10  Jim Meyering  <meyering@redhat.com>
1736
1737         maint.mk: prohibit common grammar error: "all these"
1738         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1739         the list of prohibited word sequences.  It should be "all of these".
1740         * lib/tempname.c (__gen_tempname): Fix one of them.
1741
1742 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1743
1744         do-release-commit-and-tag: support VPATH builds
1745         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1746         (noteworthy): Defined earlier to factor its value.
1747         (noteworthy_stub): New.
1748         Use it to factor.
1749         (help_version): Split into...
1750         (help, version): these.
1751         Adjust the option processing part.
1752         Support "--option=value" in addition to "--option value".
1753         (builddir): New.
1754         (--builddir): New option.
1755         * top/README-release: Document this.
1756         Reword slightly so that the reader cannot understand that he
1757         has to do these steps before calling do-release-commit-and-tag.
1758
1759 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1760
1761         readme-release: also require announce-gen and maintainer-makefile
1762         * modules/readme-release (Depends-on): here.
1763         * modules/announce-gen, modules/do-release-commit-and-tag,
1764         modules/gnu-web-doc-update, modules/maintainer-makefile
1765         (Description): Point to readme-release.
1766
1767 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1768
1769         maint.mk: fix VPATH issues.
1770         * top/maint.mk (news-check): GNU Make understand $< very well.
1771         (release-prep): NEWS is in $(srcdir).
1772
1773 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1774
1775         readme-release: require the promoted modules.
1776         * modules/readme-release (Depends-on): Add
1777         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1778         in this text.
1779
1780 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1781             Bruno Haible  <bruno@clisp.org>
1782
1783         error, strerror-override: Support mingw64 from Fedora 17.
1784         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1785         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1786         EINPROGRESS.
1787         * lib/strerror-override.h (strerror_override): Test it.
1788         * lib/strerror-override.c (strerror_override): Likewise.
1789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1790
1791 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1792             Bruno Haible  <bruno@clisp.org>
1793
1794         error, strerror-override: Support mingw64 from Fedora 17.
1795         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1796         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1797         * lib/strerror-override.h (strerror_override): Test it.
1798         * lib/strerror-override.c (strerror_override): Likewise.
1799
1800 2012-06-03  Bruno Haible  <bruno@clisp.org>
1801
1802         error, strerror-override: Support new errno values from POSIX:2008.
1803         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1804         ENOTRECOVERABLE.
1805         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1806         platforms.
1807         * lib/strerror-override.c (strerror_override): Conditionalize the
1808         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1809         * lib/strerror-override.h (strerror_override): Declare also if
1810         GNULIB_defined_EOWNERDEAD is defined.
1811         * tests/test-errno.c (e130, e131): New variables.
1812         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1813         ENOTRECOVERABLE.
1814         Reported by Paolo Bonzini.
1815
1816 2012-05-31  Jim Meyering  <meyering@redhat.com>
1817
1818         savewd: add missing dependency on sys_wait module
1819         * modules/savewd (Depends-on): Add sys_wait, needed at least
1820         for MSVC.  Report and suggested change by Michael Goffioul.
1821
1822 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1823
1824         system-quote-tests: port to CentOS 5
1825         Problem reported by Tom G. Christensen in
1826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1827         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1828
1829 2012-05-29  Jim Meyering  <meyering@redhat.com>
1830
1831         maint: fix typos in comments and ChangeLog
1832         Culprits identified and fixed mostly automatically using these commands:
1833         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1834         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1835         using http://github.com/lyda/misspell-check
1836         * ChangeLog: Fix typos.
1837         * doc/solaris-versions: Likewise.
1838         * lib/regexec.c (re_search_stub): Likewise.
1839         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1840
1841 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         manywarnings: remove duplicate -Wmultichar entry
1844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1845         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1846         so keep the entry marked as documented.
1847
1848 2012-05-27  Karl Berry  <karl@gnu.org>
1849
1850         * config/srclist.txt (mktime.c): remove last libc sync,
1851         perhaps just temporarily.
1852
1853 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         regex: don't assume uint64_t or uint32_t
1856         * lib/regcomp.c (init_word_char): Don't assume that the types
1857         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1858         them, and on some 32-bit compilers there is no uint64_t.
1859         Problem reported by Gianluigi Tiesi in
1860         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1861
1862 2012-05-25  Jim Meyering  <meyering@redhat.com>
1863
1864         maint.mk: add strncpy-prohibiting syntax-check rule
1865         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1866
1867 2012-05-24  Jim Meyering  <meyering@redhat.com>
1868
1869         maint.mk: compute $(gpg_key_ID) more portably
1870         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1871         That use of sed is not portable to some fringe systems.
1872         Reported by Paul Eggert in
1873         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1874
1875 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         mktime: sync from glibc
1878         * config/srclist.txt: Uncomment mktime.c.
1879         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1880         First, indent with tabs, since glibc uses tabs and doesn't want to
1881         change and we'd rather be identical to glibc.  Also, two small
1882         coding changes:
1883         (isdst_differ): Use &&, not &, as && is the usual style.
1884         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1885         for clarity.
1886
1887 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1888
1889         announce-gen: du -h is more portable than du --human
1890         * build-aux/announce-gen (sizes): Invoke du with -h instead
1891         of --human.  Accept leading white space in its output.
1892
1893 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1894
1895         announce-gen: Improve diagnostics.
1896         * build-aux/announce-gen: When parsing command line options,
1897         prefer "announce-gen: option --release-type requires an argument"
1898         to "Option release-type requires an argument".
1899
1900 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1901
1902         maint.mk: gpg_key_ID: use sed more portably
1903         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1904         the closing brace.
1905         (refresh-po): Fuse two sed invocations into one.
1906
1907 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1908
1909         gitlog-to-changelog: support the log message format used in Bison.
1910         * build-aux/gitlog-to-changelog: Support --strip-tab and
1911         --strip-cherry-picked.
1912
1913 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1914
1915         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1916         the rest of the current time slice to another thread in the current
1917         process. So if the thread that feeds the file decscriptor we're
1918         polling is not in the current process, we get busy-waiting.
1919         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1920         Patch from Theodore Leblond.
1921         * lib/select.c: Split polling out of the loop that sets the output
1922         fd_sets.  Check for zero result and loop if the wait timeout is
1923         infinite.
1924
1925 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1926
1927         select: Fix build error on IRIX 6.5.
1928         * lib/select.c: Include stddef.h for NULL.
1929
1930 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1931
1932         gc: fix libgcrypt detection on older machines.
1933         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1934         copyright years because the file has been distributed every year
1935         since it was created.
1936
1937 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         crypto: fix bug in large buffer handling
1940         Problem reported by Serge Belyshev for glibc in
1941         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1942         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1943         * lib/md4.c (md4_process_block):
1944         * lib/md5.c (md5_process_block):
1945         * lib/sha1.c (sha1_process_block):
1946         * lib/sha256.c (sha256_process_block):
1947         Don't assume the buffer length is less than 2**32.
1948         * lib/sha512.c (sha512_process_block): Likewise.
1949         Here, the bug is present only in the rare case where the host does
1950         not support uint64_t or where size_t is wider than 64 bits.
1951         Use u64size to work around the problems.
1952         * lib/u64.h (u64size): New macro.
1953
1954 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1955
1956         fsusage: fix block size returned on older Linux 2.6
1957
1958         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1959         which is available since Linux 2.6.
1960         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1961         when the member is available so it can be used as a fallback.
1962         * doc/posix-functions/statvfs.texi: Mention the hang issue
1963         on Linux < 2.6.36.
1964
1965 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1966
1967         bootstrap: suppress stderr chatter
1968         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1969         Omit unnecessary chatter to stderr.  The main program chatter
1970         was there only inadvertantly.
1971
1972         bootstrap: .gitignore files created by autopoint, libtool
1973         I ran into this problem when bootstrapping the latest diffutils.
1974         After './bootstrap', 'git status' reported lots of untracked files
1975         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1976         autopoint and do not need to be version-controlled.
1977         * build-aux/bootstrap: Put into .gitignore the files that
1978         autopoint and libtool create, by keeping track of files that exist
1979         after but not before these programs are run.
1980         (version_controlled_file): Move up.  2nd arg is now full file
1981         name, not base name; this is more convenient.  Put CVS at the end,
1982         as it's now somewhat deprecated.
1983
1984 2012-05-14  Jim Meyering  <meyering@redhat.com>
1985
1986         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1987         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1988         definition.  Reported by Bruno Haible.
1989
1990 2012-05-13  Bruno Haible  <bruno@clisp.org>
1991             Paul Eggert  <eggert@cs.ucla.edu>
1992
1993         binary-io: Define set_binary_mode function.
1994         * lib/binary-io.h (set_binary_mode): New function.
1995         (SET_BINARY): Define in terms of set_binary_mode.
1996         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1997         * tests/test-binary-io.c (main): Accept an argument, and test either
1998         set_binary_mode or SET_BINARY depending on the argument.
1999         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2000         argument. Clean up also t-bin-out0.tmp.
2001
2002 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2003
2004         bootstrap: take advantage of POSIX shell features
2005
2006         The 'bootstrap' script offered by Gnulib script already uses POSIX
2007         shell features (like $((...)) arithmetic expansions) that are not
2008         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2009         means that bootstrap must already be run using a proper POSIX shell,
2010         which will thus provide more features, like ${var#pattern} parameter
2011         expansion or inversion of a command exit status with '!'.  We can
2012         thus use these features to improve the clarity and the performances
2013         of the bootstrap script.
2014
2015         Suggested by Eric Blake.
2016
2017         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2018         of sed/expr plus command substitutions, to save some forks.  While
2019         we are at it, prefer the POSIX $(...) form of command substitution,
2020         rather than the legacy form `...` (since the former is visually
2021         clearer and interacts better with quoting), and prefer the idiom:
2022           "if ! CMD; then ACTION ..."
2023         over the idiom:
2024           "if CMD; then :; else ACTION ..."
2025         which was required by legacy Bourne shells not supporting '!'.
2026
2027 2012-05-12  Bruno Haible  <bruno@clisp.org>
2028
2029         system-quote: Add more comments.
2030         * lib/system-quote.h: Add more comments about wilcards and limitations.
2031         Suggested by Eli Zaretskii <eliz@gnu.org>.
2032
2033         sh-quote, system-quote: Add comments about wildcards.
2034         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2035         * lib/system-quote.h: Likewise.
2036         Reported by Eli Zaretskii <eliz@gnu.org>.
2037
2038 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2039
2040         fsusage: check for GNU/Linux statvfs problem dynamically
2041         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2042         Define STAT_STATFS2_BSIZE too, since in this case the code now
2043         checks dynamically whether statvfs is reliable, falling back on
2044         Linux-style statfs otherwise.
2045         (statvfs_works): New function, for dynamically testing statvfs.
2046         (get_fs_usage) [STAT_STATVFS]: Use it.
2047         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2048         statvfs on GNU/Linux hosts, since it's now done dynamically.
2049
2050 2012-05-10  Bruno Haible  <bruno@clisp.org>
2051
2052         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2053         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2054         '?' character.
2055         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2056         * tests/test-system-quote-main.c (check_all): Check also strings like
2057         "??????????".
2058         Reported by Eli Zaretskii <eliz@gnu.org>.
2059
2060 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         _Noreturn: port config.h to gcc -Wundef
2063         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2064         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2065         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2066
2067 2012-05-10  Bruno Haible  <bruno@clisp.org>
2068
2069         system-quote: Refactor.
2070         * lib/system-quote.h (system_quote_copy): Fix comment.
2071         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2072         New functions, extracted from system_quote_copy.
2073         (system_quote_length, system_quote_copy): Use these functions.
2074         Reported by Paul Eggert.
2075
2076 2012-05-08  Bruno Haible  <bruno@clisp.org>
2077
2078         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2079         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2080
2081 2012-05-08  Bruno Haible  <bruno@clisp.org>
2082
2083         Tests for module 'system-quote'.
2084         * modules/system-quote-tests: New file.
2085         * tests/test-system-quote.sh: New file.
2086         * tests/test-system-quote-main.c: New file.
2087         * tests/test-system-quote-child.c: New file.
2088
2089         New module 'system-quote'.
2090         * lib/system-quote.h: New file.
2091         * lib/system-quote.c: New file.
2092         * modules/system-quote: New file.
2093
2094 2012-05-08  Bruno Haible  <bruno@clisp.org>
2095
2096         sh-quote: Make C++ safe and allow multiple inclusion.
2097         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2098         declarations in extern "C".
2099
2100 2012-05-08  Bruno Haible  <bruno@clisp.org>
2101
2102         sh-quote tests: Make tests stricter.
2103         * tests/test-sh-quote.c (check_one): Check the return value of
2104         shell_quote_copy.
2105         (main): Check a string with a CR character. Check a string that
2106         contains UCHAR_MAX.
2107
2108 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2109
2110         warnings.m4: provide a means to specify the program to compile.
2111         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2112         (gl_WARN_ADD): here.
2113         Use gl_AS_VAR_APPEND.
2114         Support an argument to specify the program to compile.
2115         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2116         AC_SUBST the WARN_CFLAGS when they are used.
2117         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2118         leave this to gl_WARN_ADD.
2119
2120 2012-05-08  Eric Blake  <eblake@redhat.com>
2121
2122         doc: recommendations on gettext version
2123         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2124         choice between versions.
2125         * DEPENDENCIES (gettext): Cover both approaches.
2126
2127 2012-05-08  Jim Meyering  <meyering@redhat.com>
2128
2129         init.sh: explain why EXEEXT support uses aliases rather than functions
2130         * tests/init.sh: Add a comment.
2131
2132         init.sh: don't let bash aliases interfere with tests
2133         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2134         is bash.  This avoids problems for those who alias standard commands to
2135         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2136         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2137
2138 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         stdint: be more consistent with glibc, SunOS libc
2141         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2142         (gl_int_fast16_t, gl_uint_fast16_t)
2143         (gl_int_fast32_t, gl_uint_fast32_t)
2144         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2145         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2146         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2147         Be consistent with glibc by default, and with SunOS 5.10 and later
2148         if __sun is defined.  This lessens the likelihood of clashes if
2149         code compiled for older hosts is combined with code compiled for
2150         newer ones.  Problem reported by Niels Möller in
2151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2152
2153 2012-05-07  Eric Blake  <eblake@redhat.com>
2154
2155         isatty: relax license to LGPLv2+
2156         * modules/isatty (License): Relax license.
2157
2158 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         stat-size: comment fix
2161         * lib/stat-size.h: Remove obsolete comment about indenting.
2162
2163 2012-05-06  Bruno Haible  <bruno@clisp.org>
2164
2165         Tests for module 'sh-quote'.
2166         * modules/sh-quote-tests: New file.
2167         * tests/test-sh-quote.c: New file.
2168
2169 2012-05-06  Bruno Haible  <bruno@clisp.org>
2170
2171         sh-quote: Improve shell_quote_argv's signature.
2172         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2173         * lib/sh-quote.c (shell_quote_argv): Likewise.
2174
2175 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2176
2177         stdint: document issues with int_fast8_t etc.
2178         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2179         stdint.h substitutes may define these types differently.  See
2180         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2181
2182 2012-05-05  Bruno Haible  <bruno@clisp.org>
2183
2184         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2186         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2187         or 'guessing no (mishandles large arguments)'.
2188
2189 2012-05-05  Bruno Haible  <bruno@clisp.org>
2190
2191         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2192         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2193         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2194         set gl_cv_func_link_follows_symlink to "guessing no".
2195
2196 2012-05-05  Bruno Haible  <bruno@clisp.org>
2197
2198         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2199         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2200         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2201         "guessing no".
2202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2203
2204 2012-05-05  Bruno Haible  <bruno@clisp.org>
2205
2206         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2207         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2208         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2209         set gl_cv_struct_dirent_d_ino to "guessing yes".
2210
2211 2012-05-05  Bruno Haible  <bruno@clisp.org>
2212
2213         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2214         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2215         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2216         "guessing yes".
2217
2218 2012-05-05  Bruno Haible  <bruno@clisp.org>
2219
2220         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2221         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2222         compiling to a glibc system, set gl_cv_func_signbit and
2223         gl_cv_func_signbit_gcc to "guessing yes".
2224
2225 2012-05-05  Bruno Haible  <bruno@clisp.org>
2226
2227         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2228         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2229         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2230         to "guessing yes".
2231         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2232         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2233
2234 2012-05-05  Bruno Haible  <bruno@clisp.org>
2235
2236         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2237         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2238         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2239         gl_cv_func_realpath_works to "guessing yes".
2240
2241 2012-05-05  Bruno Haible  <bruno@clisp.org>
2242
2243         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2245         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2246
2247 2012-05-04  Bruno Haible  <bruno@clisp.org>
2248
2249         Tweak last commit.
2250         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2251         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2252
2253 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2254
2255         unistd_h: make it easier to avoid sys_types_h
2256         This is useful for Emacs, which has its own method of porting to
2257         Windows, and which therefore does not need the sys_types_h module.
2258         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2259         code moved here from gl_SYS_TYPES_H.
2260         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2261         using the code directly.
2262         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2263         gl_SYS_TYPES_H.
2264         * modules/sys_types (Files):
2265         * modules/unistd (Files): Add m4/off_t.m4.
2266
2267 2012-05-03  Bruno Haible  <bruno@clisp.org>
2268
2269         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2270         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2271         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2272         "guessing yes" or "guessing no".
2273         (gl_FUNC_LSTAT): Update.
2274         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2275         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2276         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2277
2278 2012-05-03  Bruno Haible  <bruno@clisp.org>
2279
2280         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2281         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2282         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2283         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2284         cross-compiling, choose the first alternative on glibc systems.
2285         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2286
2287 2012-05-03  Bruno Haible  <bruno@clisp.org>
2288
2289         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2290         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2291         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2292
2293 2012-05-03  Bruno Haible  <bruno@clisp.org>
2294
2295         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2296         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2297
2298 2012-05-03  Bruno Haible  <bruno@clisp.org>
2299
2300         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2301         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2302         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2303         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2304         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2305         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2306         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2307         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2308         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2309         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2310         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2311         gl_cv_func_chown_ctime_works to "guessing yes".
2312         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2313         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2314         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2315         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2316         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2318         compiling to glibc systems, set gl_cv_func_open_directory_works to
2319         "guessing yes".
2320         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2322         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2323         "guessing yes".
2324         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2325         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2326         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2327         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2328         "guessing yes".
2329         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2330         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2331         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2332         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2333         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2334         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2335         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2336         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2337         "guessing yes".
2338         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2339         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2340         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2341         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2342         "guessing yes".
2343         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2344         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2345         "guessing yes".
2346         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2347         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2348         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2349         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2350         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2351         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2352         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2353         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2354         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2355         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2356         "guessing yes".
2357         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2358         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2359         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2360         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2361         "guessing yes".
2362         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2363         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2364         "guessing yes".
2365         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2366         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2367         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2368         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2369         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2370         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2371         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2372         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2373         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2374         "guessing yes".
2375         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2376         compiling to glibc systems, set gl_cv_func_mknod_works to
2377         "guessing yes".
2378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2379         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2380         "guessing yes".
2381         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2382         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2383         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2384         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2385         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2386         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2387         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2388         compiling to glibc systems, set gl_cv_func_svid_putenv to
2389         "guessing yes".
2390         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2391         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2392         "guessing yes".
2393         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2394         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2395         "guessing yes".
2396         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2397         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2398         to "guessing yes".
2399         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2400         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2401         to "guessing yes".
2402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2403         compiling to glibc systems, set gl_cv_func_rmdir_works to
2404         "guessing yes".
2405         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2406         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2407         gl_cv_func_unlink_parent_fails to "guessing yes".
2408         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2409         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2410         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2411         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2412         gl_cv_func_rename_dest_works to "guessing yes".
2413         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2414         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2416         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2417         "guessing yes".
2418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2419         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2420         "guessing yes".
2421         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2422         compiling to glibc systems, set gl_cv_func_setenv_works to
2423         "guessing yes".
2424         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2425         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2426         "guessing yes".
2427         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2428         compiling to glibc systems, set gl_cv_func_sleep_works to
2429         "guessing yes".
2430         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2431         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2432         "guessing yes".
2433         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2434         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2435         "guessing yes".
2436         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2437         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2438         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2439         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2440         "guessing yes".
2441         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2442         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2443         "guessing yes".
2444         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2445         compiling to glibc systems, set gl_cv_func_usleep_works to
2446         "guessing yes".
2447         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2448         compiling to glibc systems, set gl_cv_func_futimesat_works to
2449         "guessing yes".
2450
2451 2012-05-03  Bruno Haible  <bruno@clisp.org>
2452
2453         Say "guessing yes" or "guessing no" when cross-compiling.
2454         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2455         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2456         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2457         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2458         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2459         am_cv_func_working_getline to "guessing yes" or "guessing no".
2460         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2461         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2462         (gl_FUNC_MEMMEM): When cross-compiling, set
2463         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2465         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2466         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2467         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2468         "guessing no".
2469         (gl_FUNC_STRCASESTR): When cross-compiling, set
2470         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2471         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2472         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2473         (gl_FUNC_STRSTR): When cross-compiling, set
2474         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2475         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2476         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2477         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2478         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2479
2480 2012-05-01  Bruno Haible  <bruno@clisp.org>
2481
2482         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2483         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2484         * build-aux/reloc-ldflags: Likewise.
2485         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2486
2487 2012-05-01  Bruno Haible  <bruno@clisp.org>
2488
2489         gnulib-tool: Remove transitional code.
2490         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2491         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2492
2493 2012-05-01  Bruno Haible  <bruno@clisp.org>
2494
2495         getcwd: Fix misindentation.
2496         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2497
2498 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2499
2500         exclude: process exclude and include directives in order
2501         This restores the pre-2009 behavior, and is part of a fix of a
2502         grep bug reported by Quentin Arce in
2503         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2504         * lib/exclude.c (struct exclude): Remove 'tail' member.
2505         (new_exclude_segment): Prepend the new segment instead of appending.
2506         Return void, since that's now more convenient.
2507         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2508         (file_name_matches): Renamed from excluded_file_name_p.
2509         (file_pattern_matches, file_name_matches):
2510         Return true if the pattern matches, not if it excludes.
2511         All callers changed.
2512         (excluded_file_name): Process the list in reverse order;
2513         since the list is now reversed this restores the pre-2009 behavior.
2514         (add_exclude): Adjust to new reversed-order list.  Use local var
2515         rather than macro, for clarity.
2516         * tests/test-exclude7.sh: Adjust to corrected behavior.
2517
2518         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2519         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2520         it's not possible here.  Handle the case of \ at end of pattern
2521         without dumping core.
2522         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2523
2524         _Noreturn: future-proof non-GNU and non-MSVC compilers
2525         * build-aux/snippet/_Noreturn.h (_Noreturn):
2526         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2527         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2528         C11 or later.  This is more likely to work with random future C
2529         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2531
2532         exclude: handle wildcards with FNM_EXTMATCH
2533         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2534         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2535         comment that "has wildcards" really means "has or may have
2536         wildcards".  Simplify by avoiding the need to call strcspn.
2537
2538 2012-04-29  Bruno Haible  <bruno@clisp.org>
2539
2540         gnulib-tool: Fix list of authors.
2541         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2542
2543 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2544
2545         bootstrap: support Automake-NG in $buildreq
2546         * bootstrap (check_versions): Handle automake and aclocal from
2547         Automake-NG specially.  They can be specified as respectively
2548         the "automake-ng" and "aclocal-ng" requirements.
2549
2550 2012-04-25  Eric Blake  <eblake@redhat.com>
2551
2552         bootstrap: only force latest Makefile.in.in for gettext module
2553         * build-aux/bootstrap (with_gettext): Only install latest
2554         Makefile.in.in for projects requesting bleeding edge gettext.
2555
2556 2012-04-22  Bruno Haible  <bruno@clisp.org>
2557
2558         doc: Mention reason for replacement on glibc/Linux systems.
2559         * doc/posix-functions/dprintf.texi: Mention the problem with special
2560         'long double' values.
2561         * doc/posix-functions/fprintf.texi: Likewise.
2562         * doc/posix-functions/printf.texi: Likewise.
2563         * doc/posix-functions/snprintf.texi: Likewise.
2564         * doc/posix-functions/sprintf.texi: Likewise.
2565         * doc/posix-functions/vdprintf.texi: Likewise.
2566         * doc/posix-functions/vfprintf.texi: Likewise.
2567         * doc/posix-functions/vprintf.texi: Likewise.
2568         * doc/posix-functions/vsnprintf.texi: Likewise.
2569         * doc/posix-functions/vsprintf.texi: Likewise.
2570         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2571         platforms with F_DUPFD_CLOEXEC problems.
2572         * doc/posix-functions/glob.texi: Mention which platforms are affected
2573         by the problem with symbolic links.
2574         * doc/posix-functions/linkat.texi: Mention the problem with
2575         AT_SYMLINK_FOLLOW on Linux.
2576
2577 2012-04-22  Bruno Haible  <bruno@clisp.org>
2578
2579         pwrite: Don't replace on all platforms.
2580         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2581
2582 2012-04-22  Bruno Haible  <bruno@clisp.org>
2583
2584         rint* tests: Avoid gcc warnings.
2585         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2586         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2587         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2588
2589 2012-04-21  Bruno Haible  <bruno@clisp.org>
2590
2591         users.txt: Update.
2592         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2593         switched from CVS to git, bzr, or svn.
2594
2595 2012-04-21  Bruno Haible  <bruno@clisp.org>
2596
2597         Large File Support for native Windows platforms.
2598
2599         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2600         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2601
2602         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2603         type.
2604         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2605         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2606         * doc/posix-headers/sys_types.texi: Mention the effect of the
2607         'largefile' module.
2608
2609         * lib/fcntl.in.h: Add comments about off_t.
2610         * modules/fcntl-h (Depends-on): Add sys_types.
2611
2612         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2613         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2614         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2615         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2616         * modules/unistd (Depends-on): Add sys_types.
2617         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2618
2619         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2620         instead of lseek.
2621         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2622         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2623         * modules/lseek (Depends-on): Add sys_types.
2624
2625         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2626         msvc-nothrow.h.
2627         (SetFileSize): New function.
2628         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2629         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2630         if Large File Support is requested.
2631         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2632         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2633
2634         * lib/stdio.in.h: Add comments about off_t.
2635         * modules/stdio (Depends-on): Add sys_types.
2636
2637         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2638         instead of ftello.
2639         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2640         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2641         (gl_PREREQ_FTELLO): New macro.
2642         * modules/ftello (Depends-on): Add sys_types.
2643         (configure.ac): Incoke gl_PREREQ_FTELLO.
2644
2645         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2646         instead of fseeko.
2647         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2648         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2649         (gl_PREREQ_FSEEKO): New macro.
2650         * modules/fseeko (Depends-on): Add sys_types.
2651         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2652
2653         * lib/sys_stat.in.h: Add comments about off_t.
2654         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2655         64-bit integer for st_size in 'struct stat'.
2656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2657         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2658         * modules/sys_stat (Depends-on): Add sys_types.
2659         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2660
2661         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2662         instead of stat or _stat.
2663
2664         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2665         'struct _stati64' instead of fstat and 'struct stat'.
2666         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2667         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2668
2669         Reported by Ray Satiro <raysatiro@yahoo.com>.
2670
2671 2012-04-19  Eric Blake  <eblake@redhat.com>
2672
2673         bootstrap: accommodate older libtool
2674         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2675         Reported by Daniel P. Berrange.
2676
2677 2012-04-19  Jim Meyering  <meyering@redhat.com>
2678
2679         announce-gen: avoid failure due to lack of Digest::SHA1
2680         Even with the preferred Digest::SHA available, this script
2681         would fail when the backup module, Digest::SHA1, was not installed.
2682         * build-aux/announce-gen: Quote the conditional use of "use".
2683         Reported by Reuben Thomas in:
2684         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2685
2686         bootstrap: don't let a user's CDPATH setting affect this script
2687         When CDPATH is set, cd will sometimes generate output.
2688         When "cd" is run in a subshell whose output matters, that
2689         surprising-to-some output can cause malfunction.
2690         Unsetting CDPATH turns off this shell "feature."
2691         * build-aux/bootstrap (CDPATH): Unset.
2692         Reported by Reuben Thomas in:
2693         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2694         and inspired by his patch here:
2695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2696
2697 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2698         and Jim Meyering  <meyering@redhat.com>
2699
2700         maint.mk: catch "see @xref{}" and similar
2701         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2702         prohibit "See also @xref{", "Also see @pxref{", and similar.
2703
2704 2012-04-16  Jim Meyering  <meyering@redhat.com>
2705
2706         bootstrap: really use gnulib's po/Makefile.in.in
2707         * build-aux/bootstrap: Correct the source file name in previous change.
2708         Reported by Akim Demaille.
2709
2710         configmake: correct minor inconsistency in Makefile rule
2711         * modules/configmake (Makefile.am): All other rules like this one
2712         run the final "mv -f ..." in the same backslash-continued command
2713         as the one that does everything else.  This one put the mv -f ...
2714         command on a separate, non-backslash-continued line.
2715         Make it like the others.
2716
2717         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2718         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2719         the one from gettext.  Reported by Akim Demaille.
2720
2721 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2722
2723         Fix recursion of install-* into po directories.
2724         Bison's install-pdf bug reported by Hans Aberg at
2725         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2726         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2727         (install-info, install-pdf, install-ps): New targets.
2728
2729 2012-04-16  Jim Meyering  <meyering@redhat.com>
2730
2731         maint: avoid spurious "make sc_maint" failure
2732         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2733         exempt all *.class file names, for lib/javaversion.class.
2734
2735 2012-04-15  Bruno Haible  <bruno@clisp.org>
2736
2737         lseek: Make configure test independent of environment.
2738         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2739         Windows, we know that lseek() on pipes is broken; skip the runtime
2740         test.
2741
2742 2012-04-14  Bruno Haible  <bruno@clisp.org>
2743
2744         stat: Bypass buggy override in mingw64.
2745         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2746         * lib/stat.c (stat) [mingw64]: Define to _stat.
2747         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2748
2749 2012-04-14  Bruno Haible  <bruno@clisp.org>
2750
2751         pathmax: Fix compilation error on MSVC 9.
2752         * modules/pathmax (Depends-on): Add unistd.
2753
2754 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2755
2756         README: document pointer comparison assumption
2757         * README (Portability guidelines): Document assumption about
2758         pointer comparisons, in response to a recent bug-gnulib comment by
2759         Jeffrey Kegler.
2760
2761 2012-04-12  Bruno Haible  <bruno@clisp.org>
2762
2763         Tests for module 'getrusage'.
2764         * modules/getrusage-tests: New file.
2765         * tests/test-getrusage.c: New file.
2766
2767         New module 'getrusage'.
2768         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2769         warn-on-use.h.
2770         (getrusage): New declaration.
2771         * lib/getrusage.c: New file.
2772         * m4/getrusage.m4: New file.
2773         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2774         is declared.
2775         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2776         HAVE_GETRUSAGE.
2777         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2778         snippet/c++defs, snippet/warn-on-use.
2779         (Makefile.am): Update generation of sys/resource.h. Substitute
2780         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2781         * modules/getrusage: New file.
2782         * doc/posix-functions/getrusage.texi: Mention the new module.
2783
2784 2012-04-12  Bruno Haible  <bruno@clisp.org>
2785
2786         Tests for module 'sys_resource'.
2787         * modules/sys_resource-tests: New file.
2788         * tests/test-sys_resource.c: New file.
2789
2790         New module 'sys_resource'.
2791         * lib/sys_resource.in.h: New file.
2792         * m4/sys_resource_h.m4: New file.
2793         * modules/sys_resource: New file.
2794         * doc/posix-headers/sys_resource.texi: Mention the new module.
2795
2796 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2797
2798         ioctl: Fix compilation error on mingw.
2799         * lib/ioctl.c: Include <windows.h>.
2800         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2801
2802 2012-04-04  Jim Meyering  <meyering@redhat.com>
2803
2804         regex: correct #pragma guard expression
2805         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2806         not 4.3.  Correct its cpp guard expression.
2807
2808 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2809
2810         regex: remove unnecessary type punning
2811         Problem reported by Vladimir Serbinenko in
2812         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2813         * lib/regex.h (struct re_pattern_buffer): Change the type of
2814         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2815         Fix comment to match code.
2816         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2817         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2818         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2819         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2820         (set_regs):
2821         Omit no-longer-necessary casts.
2822
2823 2012-04-03  Bruno Haible  <bruno@clisp.org>
2824
2825         Tests for module 'ilogbl'.
2826         * modules/ilogbl-tests: New file.
2827         * tests/test-ilogbl.c: New file.
2828
2829         New module 'ilogbl'.
2830         * lib/math.in.h (ilogbl): New declaration.
2831         * lib/ilogbl.c: New file.
2832         * m4/ilogbl.m4: New file.
2833         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2835         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2836         Split sed invocation, to avoid the limit of 100 substitutions of
2837         HP-UX 'sed'.
2838         * modules/ilogbl: New file.
2839         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2840         * doc/posix-functions/ilogbl.texi: Mention the new module.
2841
2842 2012-04-03  Bruno Haible  <bruno@clisp.org>
2843
2844         Tests for module 'ilogbf'.
2845         * modules/ilogbf-tests: New file.
2846         * tests/test-ilogbf.c: New file.
2847
2848         New module 'ilogbf'.
2849         * lib/math.in.h (ilogbf): New declaration.
2850         * lib/ilogbf.c: New file.
2851         * m4/ilogbf.m4: New file.
2852         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2854         REPLACE_ILOGBF.
2855         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2856         REPLACE_ILOGBF.
2857         * modules/ilogbf: New file.
2858         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2859         * doc/posix-functions/ilogbf.texi: Mention the new module.
2860
2861 2012-04-03  Bruno Haible  <bruno@clisp.org>
2862
2863         Tests for module 'ilogb'.
2864         * modules/ilogb-tests: New file.
2865         * tests/test-ilogb.c: New file.
2866         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2867         tests/test-logb-ieee.h.
2868
2869         New module 'ilogb'.
2870         * lib/math.in.h (ilogb): New declaration.
2871         * lib/ilogb.c: New file.
2872         * m4/ilogb.m4: New file.
2873         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2875         REPLACE_ILOGB.
2876         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2877         REPLACE_ILOGB.
2878         * modules/ilogb: New file.
2879         * tests/test-math-c++.cc: Check the declaration of ilogb.
2880         * doc/posix-functions/ilogb.texi: Mention the new module.
2881
2882 2012-04-03  Bruno Haible  <bruno@clisp.org>
2883
2884         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2885         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2886         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2887         (main): Check their values.
2888         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2889         problem.
2890
2891 2012-04-03  Bruno Haible  <bruno@clisp.org>
2892
2893         Tests for module 'logbl-ieee'.
2894         * modules/logbl-ieee-tests: New file.
2895         * tests/test-logbl-ieee.c: New file.
2896
2897         New module 'logbl-ieee'.
2898         * modules/logbl-ieee: New file.
2899
2900         Tests for module 'logb-ieee'.
2901         * modules/logb-ieee-tests: New file.
2902         * tests/test-logb-ieee.c: New file.
2903
2904         New module 'logb-ieee'.
2905         * modules/logb-ieee: New file.
2906
2907         Tests for module 'logbf-ieee'.
2908         * modules/logbf-ieee-tests: New file.
2909         * tests/test-logbf-ieee.c: New file.
2910         * tests/test-logb-ieee.h: New file.
2911
2912         New module 'logbf-ieee'.
2913         * modules/logbf-ieee: New file.
2914
2915 2012-04-03  Bruno Haible  <bruno@clisp.org>
2916
2917         Tests for module 'logbl'.
2918         * modules/logbl-tests: New file.
2919         * tests/test-logbl.c: New file.
2920
2921         New module 'logbl'.
2922         * lib/math.in.h (logbl): New declaration.
2923         * lib/logbl.c: New file.
2924         * m4/logbl.m4: New file.
2925         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2927         REPLACE_LOGBL.
2928         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2929         REPLACE_LOGBL.
2930         * modules/logbl: New file.
2931         * tests/test-math-c++.cc: Check the declaration of logbl.
2932         * doc/posix-functions/logbl.texi: Mention the new module.
2933
2934 2012-04-02  Bruno Haible  <bruno@clisp.org>
2935
2936         Tests for module 'logbf'.
2937         * modules/logbf-tests: New file.
2938         * tests/test-logbf.c: New file.
2939
2940         New module 'logbf'.
2941         * lib/math.in.h (logbf): New declaration.
2942         * lib/logbf.c: New file.
2943         * m4/logbf.m4: New file.
2944         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2946         REPLACE_LOGBF.
2947         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2948         REPLACE_LOGBF.
2949         * modules/logbf: New file.
2950         * tests/test-math-c++.cc: Check the declaration of logbf.
2951         * doc/posix-functions/logbf.texi: Mention the new module.
2952
2953 2012-04-02  Bruno Haible  <bruno@clisp.org>
2954
2955         logb tests: More tests.
2956         * tests/test-logb.h: New file, based on tests/test-logb.c and
2957         tests/test-frexp.h.
2958         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2959         (main): Just invoke test_function.
2960         * modules/logb-tests (Files): Add tests/test-logb.h,
2961         tests/minus-zero.h, tests/randomd.c.
2962         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2963
2964         logb: Provide replacement and workarounds.
2965         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2966         is 1.
2967         * lib/logb.c: New file.
2968         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2969         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2971         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2972         * modules/logb (Files): Add lib/logb.c.
2973         (Depends-on): Add isfinite, frexp, isnand.
2974         (configure.ac): Compile the replacement code logb.c if needed.
2975         * tests/test-math-c++.cc: Check the declaration of logb.
2976         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2977         with subnormal numbers.
2978
2979 2012-04-02  Bruno Haible  <bruno@clisp.org>
2980
2981         log10* tests: Speed up.
2982         * tests/test-log10.h (test_function): Reduce amount of random numbers
2983         to test.
2984
2985 2012-04-01  Bruno Haible  <bruno@clisp.org>
2986
2987         logf-ieee: Fix test whether logf works.
2988         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2989
2990 2012-04-01  Bruno Haible  <bruno@clisp.org>
2991
2992         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2993         * lib/log10l.c: Include <float.h>
2994         (log10l): On IRIX, normalize the +Infinity value.
2995         * modules/log10l (Depends-on): Add 'float'.
2996         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2997         +Infinity.
2998
2999         log10f-ieee: Work around test failure on NetBSD 5.1.
3000         * m4/log10f-ieee.m4: New file.
3001         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3002         test whether log10f works with a negative argument. Replace it if not.
3003         * lib/log10f.c (log10f): For negative arguments, return NaN.
3004         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3005         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3006         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3007
3008         log10f-ieee: Work around test failure on Solaris 9.
3009         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3010         (configure.ac): Require gl_FUNC_LOG10F.
3011
3012         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3013         * m4/log10-ieee.m4: New file.
3014         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3015         whether log10 works with a negative argument. Replace it if not.
3016         * lib/log10.c (log10): For negative arguments, return NaN.
3017         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3018         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3019         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3020
3021         Tests for module 'log10l-ieee'.
3022         * modules/log10l-ieee-tests: New file.
3023         * tests/test-log10l-ieee.c: New file.
3024
3025         New module 'log10l-ieee'.
3026         * modules/log10l-ieee: New file.
3027
3028         Tests for module 'log10-ieee'.
3029         * modules/log10-ieee-tests: New file.
3030         * tests/test-log10-ieee.c: New file.
3031
3032         New module 'log10-ieee'.
3033         * modules/log10-ieee: New file.
3034
3035         Tests for module 'log10f-ieee'.
3036         * modules/log10f-ieee-tests: New file.
3037         * tests/test-log10f-ieee.c: New file.
3038         * tests/test-log10-ieee.h: New file.
3039
3040         New module 'log10f-ieee'.
3041         * modules/log10f-ieee: New file.
3042
3043 2012-04-01  Bruno Haible  <bruno@clisp.org>
3044
3045         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3046         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3047         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3048         workaround.
3049         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3050         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3052         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3053         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3054         (Depends-on): Update conditions.
3055         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3056         IRIX 6.5, OSF/1 5.1 problems.
3057
3058 2012-04-01  Bruno Haible  <bruno@clisp.org>
3059
3060         log10f: Work around OSF/1 5.1 bug.
3061         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3062         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3063         workaround.
3064         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3065         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3067         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3068         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3069         (Depends-on): Update conditions.
3070         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3071
3072 2012-04-01  Bruno Haible  <bruno@clisp.org>
3073
3074         log10: Work around OSF/1 5.1 bug.
3075         * lib/math.in.h (log10): New declaration.
3076         * lib/log10.c: New file.
3077         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3078         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3079         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3081         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3082         * modules/log10 (Files): Add lib/log10.c.
3083         (Depends-on): Add math.
3084         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3085         * tests/test-math-c++.cc: Check the declaration of log10.
3086         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3087
3088 2012-03-31  Bruno Haible  <bruno@clisp.org>
3089
3090         log10l tests: More tests.
3091         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3092         tests/minus-zero.h, tests/randoml.c.
3093         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3094         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3095         (main): Invoke test_function.
3096
3097         log10f tests: More tests.
3098         * modules/log10f-tests (Files): Add tests/test-log10.h,
3099         tests/minus-zero.h, tests/randomf.c.
3100         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3101         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3102         (main): Invoke test_function.
3103
3104         log10 tests: More tests.
3105         * tests/test-log10.h: New file.
3106         * modules/log10-tests (Files): Add tests/test-log10.h,
3107         tests/minus-zero.h, tests/randomd.c.
3108         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3109         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3110         (main): Invoke test_function.
3111
3112 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3113
3114         fflush: Fix syntax error.
3115         * lib/fflush.c: Include unused-parameter.h, needed for
3116         _GL_UNUSED_PARAMETER.
3117         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3118
3119 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3120
3121         regex: pacify GCC when compiling GRUB
3122         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3123         a diagnostic.  Reported by Vladimir Serbinenko in
3124         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3125
3126 2012-03-29  Eric Blake  <eblake@redhat.com>
3127
3128         stdio: don't assume gets any more
3129         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3130         support.
3131         * modules/stdio (Makefile.am): Likewise.
3132         * lib/stdio-read.c (gets): Likewise.
3133         * tests/test-stdio-c++.cc: Likewise.
3134         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3135         * lib/stdio.in.h (gets): Make warning occur in more places.
3136         * doc/posix-functions/gets.texi (gets): Update documentation.
3137         Reported by Christer Solskogen.
3138
3139         maint.mk: fix syntax checks without exclusions
3140         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3141         Reported by Daniel P. Berrange.
3142
3143         strerror_r: avoid compiler warning
3144         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3145         level.
3146
3147         fflush: avoid compiler warning
3148         * lib/fflush.c (update_fpos_cache): Mark variables that are
3149         potentially unused.
3150
3151 2012-03-25  Bruno Haible  <bruno@clisp.org>
3152
3153         Tests for module 'localeconv'.
3154         * modules/localeconv-tests: New file.
3155         * tests/test-localeconv.c: New file.
3156
3157         New module 'localeconv'.
3158         * lib/locale.in.h (localeconv): New declaration.
3159         * lib/localeconv.c: New file.
3160         * m4/localeconv.m4: New file.
3161         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3162         REPLACE_LOCALECONV.
3163         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3164         REPLACE_LOCALECONV.
3165         * modules/localeconv: New file.
3166         * modules/nl_langinfo (Depends-on): Add localeconv.
3167         * modules/human (Depends-on): Likewise.
3168         * doc/posix-functions/localeconv.texi: Mention the new module.
3169
3170 2012-03-25  Bruno Haible  <bruno@clisp.org>
3171
3172         locale: Provide a complete 'struct lconv'.
3173         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3174         'struct lconv' does not contain int_p_cs_precedes.
3175         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3176         * doc/posix-headers/locale.texi: Update.
3177
3178         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3179         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3180         * doc/posix-headers/locale.texi: Update.
3181
3182         locale: Provide a working 'struct lconv'.
3183         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3184         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3185         'struct lconv' does not even contain decimal_point.
3186         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3187         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3188         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3189         * doc/posix-headers/locale.texi: Mention the problems with
3190         'struct lconv'.
3191         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3192
3193 2012-03-24  Bruno Haible  <bruno@clisp.org>
3194
3195         Enable common subexpression optimization in GCC.
3196         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3197         macros.
3198         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3199         GCC attribute 'const'.
3200         (uc_locale_language): Declare with GCC attribute 'pure'.
3201         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3202         with GCC attribute 'const'.
3203         * lib/unictype.in.h (uc_is_general_category_withtable,
3204         uc_combining_class, uc_combining_class_name,
3205         uc_combining_class_long_name, uc_bidi_class_name,
3206         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3207         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3208         uc_decimal_value, uc_digit_value, uc_numeric_value,
3209         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3210         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3211         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3212         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3213         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3214         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3215         Declare with GCC attribute 'const'.
3216         (uc_general_category_name, uc_general_category_long_name,
3217         uc_general_category_byname, uc_general_category,
3218         uc_is_general_category, uc_combining_class_byname,
3219         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3220         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3221         Declare with GCC attribute 'pure'.
3222         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3223         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3224         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3225         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3226         with GCC attribute 'pure'.
3227         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3228         'const'.
3229         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3230         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3231         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3232         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3233         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3234         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3235         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3236         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3237         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3238         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3239         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3240         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3241         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3242         GCC attribute 'pure'.
3243         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3244         'const'.
3245         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3246         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3247         u32_strwidth): Declare with GCC attribute 'pure'.
3248
3249         Enable common subexpression optimization in GCC.
3250         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3251         (alphasort): Declare with GCC attribute 'pure'.
3252         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3253         (atoll): Declare with GCC attribute 'pure'.
3254         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3255         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3256         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3257         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3258         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3259         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3260         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3261
3262 2012-03-24  Bruno Haible  <bruno@clisp.org>
3263
3264         gnulib-tool: Avoid unintended error output from 'cmp'.
3265         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3266         "cmp -s", not "cmp > /dev/null".
3267
3268 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3269
3270         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3271
3272         It's not just Automake versions < 1.9b that creates an empty
3273         pkgdatadir at installation time if pkgdata_DATA is specified
3274         to empty; modern automake versions do this as well, at least
3275         until automake 1.11.4 (not yet released at the moment of writing,
3276         but soon to appear).  That behaviour was generally considered a
3277         feature rather than a bug, at least until this discussion:
3278         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3279
3280         See also automake bugs #10997 and #11030.
3281
3282         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3283         reference to relevant automake bug numbers.
3284         (func_emit_tests_Makefile_am): Likewise.
3285
3286 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3287
3288         announce-gen: use Digest::SHA when possible
3289         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3290         back to Digest::SHA1 if necessary.
3291
3292 2012-03-20  Jim Meyering  <meyering@redhat.com>
3293
3294         tests: avoid gcc warnings about argv vs. const initializers
3295         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3296         warnings about discarding 'const' qualifier from pointer target type.
3297         * tests/test-posix_spawn2.c (main): Likewise.
3298
3299 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3300
3301         README-release: simplify slightly
3302         * top/README-release: Run "git checkout master" only once.
3303
3304 2012-03-15  Mark Wielaard  <mark@klomp.org>
3305
3306         git-merge-changelog: add specific example on how to use with hg.
3307         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3308
3309 2012-03-18  Mark Wielaard  <mark@klomp.org>
3310
3311         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3312
3313 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3314
3315         git-version-gen: don't let "prefix" envvar cause trouble
3316         * build-aux/git-version-gen (prefix): Initialize properly,
3317         so as not to use a value specified via the environment.
3318         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3319
3320 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3321
3322         regex: diagnose too-large repeat counts in EREs
3323         Previously, the code did not diagnose the too-large repeat count
3324         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3325         as if it were 'b\{1000000000}', which is unexpected.
3326         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3327         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3328         is a reasonable one for this problem.  Another option would be to
3329         create a new REG_OVERFLOW error for repeat counts that are too large.
3330         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3331         count is too large, so that the caller can distinguish the two cases.
3332         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3333         "Too large" return code, and that repeat counts are one example of this.
3334
3335 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3336
3337         doc: some glibc x32 integer width issues
3338         * doc/posix-headers/sys_types.texi (sys/types.h):
3339         * doc/posix-headers/time.texi (time.h):
3340         Mention that glibc x32 does not conform to POSIX in a couple of
3341         areas related to integer widths.
3342
3343 2012-03-15  Bruno Haible  <bruno@clisp.org>
3344
3345         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3346         * lib/fma.c (VOLATILE): New macro.
3347         (FUNC): Use it to work around a GCC compiler bug.
3348
3349 2012-03-13  Bruno Haible  <bruno@clisp.org>
3350
3351         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3352         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3353         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3354         REPLACE_HYPOTL to 1.
3355         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3356
3357 2012-03-13  Bruno Haible  <bruno@clisp.org>
3358
3359         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3360         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3361         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3362         REPLACE_REMAINDERL to 1.
3363         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3364         bug.
3365
3366 2012-03-13  Bruno Haible  <bruno@clisp.org>
3367
3368         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3369         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3370         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3371         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3372         too big rounding errors.
3373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3374         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3375         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3376         (Depends-on): Update conditions.
3377         * tests/test-sqrtl.c (my_ldexpl): New function.
3378         (main): Add test of a particular value.
3379         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3380
3381 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3382
3383         doc: Update timer_* platform portability notes.
3384         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3385         that always return ENOSYS.
3386         * doc/posix-functions/timer_delete.texi: Likewise.
3387         * doc/posix-functions/timer_gettime.texi: Likewise.
3388         * doc/posix-functions/timer_settime.texi: Likewise.
3389
3390 2012-03-13  Bruno Haible  <bruno@clisp.org>
3391
3392         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3393         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3394         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3395         REPLACE_CBRTL to 1.
3396         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3397
3398 2012-03-13  Bruno Haible  <bruno@clisp.org>
3399
3400         remainderl: Avoid compilation error on AIX >= 5.2.
3401         * lib/math.in.h (remainderl): Undefine macro from the system header.
3402
3403 2012-03-13  Bruno Haible  <bruno@clisp.org>
3404
3405         Avoid compilation errors with MSVC option -fp:strict.
3406         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3407         * lib/cbrtf.c: Likewise.
3408         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3409
3410 2012-03-12  Bruno Haible  <bruno@clisp.org>
3411
3412         uninorm: Don't crash in out-of-memory conditions.
3413         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3414         gracefully.
3415         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3416         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3417
3418 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3419
3420         quote: fix syntax-check
3421         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3422         also exports quote_quoting_options.
3423
3424 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3425
3426         Collapse list of copyright years to ranges.  See
3427         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3428         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3429         build-aux/csharpexec.sh.in, build-aux/gnupload,
3430         build-aux/install-reloc, build-aux/javacomp.sh.in,
3431         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3432         build-aux/move-if-change, build-aux/reloc-ldflags,
3433         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3434
3435 2012-03-11  Bruno Haible  <bruno@clisp.org>
3436
3437         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3438         * m4/log2f-ieee.m4: New file.
3439         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3440         whether log2f works with a minus zero argument. Replace it if not.
3441         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3442         (Depends-on): Add log2-ieee.
3443         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3444         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3445
3446         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3447         * m4/log2-ieee.m4: New file.
3448         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3449         whether log2 works with a minus zero argument. Replace it if not.
3450         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3451         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3452         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3453
3454         Tests for module 'log2l-ieee'.
3455         * modules/log2l-ieee-tests: New file.
3456         * tests/test-log2l-ieee.c: New file.
3457
3458         New module 'log2l-ieee'.
3459         * modules/log2l-ieee: New file.
3460
3461         Tests for module 'log2-ieee'.
3462         * modules/log2-ieee-tests: New file.
3463         * tests/test-log2-ieee.c: New file.
3464
3465         New module 'log2-ieee'.
3466         * modules/log2-ieee: New file.
3467
3468         Tests for module 'log2f-ieee'.
3469         * modules/log2f-ieee-tests: New file.
3470         * tests/test-log2f-ieee.c: New file.
3471         * tests/test-log2-ieee.h: New file.
3472
3473         New module 'log2f-ieee'.
3474         * modules/log2f-ieee: New file.
3475
3476 2012-03-11  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for module 'log2l'.
3479         * modules/log2l-tests: New file.
3480         * tests/test-log2l.c: New file.
3481
3482         New module 'log2l'.
3483         * lib/math.in.h (log2l): New declaration.
3484         * lib/log2l.c: New file.
3485         * m4/log2l.m4: New file.
3486         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3488         REPLACE_LOG2L.
3489         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3490         REPLACE_LOG2L.
3491         * modules/log2l: New file.
3492         * tests/test-math-c++.cc: Check the declaration of log2l.
3493         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3494         and OSF/1 problems.
3495
3496 2012-03-11  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'log2f'.
3499         * modules/log2f-tests: New file.
3500         * tests/test-log2f.c: New file.
3501
3502         New module 'log2f'.
3503         * lib/math.in.h (log2f): New declaration.
3504         * lib/log2f.c: New file.
3505         * m4/log2f.m4: New file.
3506         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3508         REPLACE_LOG2F.
3509         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3510         REPLACE_LOG2F.
3511         * modules/log2f: New file.
3512         * tests/test-math-c++.cc: Check the declaration of log2f.
3513         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3514         and OSF/1 and Cygwin problems.
3515
3516 2012-03-11  Bruno Haible  <bruno@clisp.org>
3517
3518         Tests for module 'log2'.
3519         * modules/log2-tests: New file.
3520         * tests/test-log2.c: New file.
3521         * tests/test-log2.h: New file.
3522
3523         New module 'log2'.
3524         * lib/math.in.h (log2): New declaration.
3525         * lib/log2.c: New file.
3526         * m4/log2.m4: New file.
3527         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3529         REPLACE_LOG2.
3530         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3531         REPLACE_LOG2.
3532         * modules/log2: New file.
3533         * tests/test-math-c++.cc: Check the declaration of log2.
3534         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3535         and OSF/1 and Cygwin problems.
3536
3537 2012-03-11  Bruno Haible  <bruno@clisp.org>
3538
3539         exp2* tests: More tests.
3540         * tests/test-exp2.h (test_function): Test all integral arguments that
3541         don't need to overflow or denormalized numbers.
3542         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3543         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3544         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3545
3546 2012-03-10  Bruno Haible  <bruno@clisp.org>
3547
3548         log1pl-ieee: Work around test failure on AIX 7.1.
3549         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3550
3551         log1pl-ieee: Work around test failure on IRIX 6.5.
3552         * m4/log1pl-ieee.m4: New file.
3553         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3554         test whether log1pl works with a minus zero argument. Replace it if
3555         not.
3556         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3558         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3559         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3560         (Depends-on): Update conditions.
3561         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3562         m4/signbit.m4.
3563         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3564         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3565
3566         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3567         * m4/log1pf-ieee.m4: New file.
3568         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3569         test whether log1pf works with a minus zero argument. Replace it if
3570         not.
3571         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3572         m4/signbit.m4.
3573         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3574         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3575
3576         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3577         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3578         (configure.ac): Require gl_FUNC_LOG1PF.
3579
3580         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3581         * m4/log1p-ieee.m4: New file.
3582         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3583         whether log1p works with a minus zero argument. Replace it if not.
3584         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3586         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3587         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3588         (Depends-on): Update conditions.
3589         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3590         m4/signbit.m4.
3591         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3592         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3593
3594         Tests for module 'log1pl-ieee'.
3595         * modules/log1pl-ieee-tests: New file.
3596         * tests/test-log1pl-ieee.c: New file.
3597
3598         New module 'log1pl-ieee'.
3599         * modules/log1pl-ieee: New file.
3600
3601         Tests for module 'log1p-ieee'.
3602         * modules/log1p-ieee-tests: New file.
3603         * tests/test-log1p-ieee.c: New file.
3604
3605         New module 'log1p-ieee'.
3606         * modules/log1p-ieee: New file.
3607
3608         Tests for module 'log1pf-ieee'.
3609         * modules/log1pf-ieee-tests: New file.
3610         * tests/test-log1pf-ieee.c: New file.
3611         * tests/test-log1p-ieee.h: New file.
3612
3613         New module 'log1pf-ieee'.
3614         * modules/log1pf-ieee: New file.
3615
3616 2012-03-10  Bruno Haible  <bruno@clisp.org>
3617
3618         Tests for module 'log1pl'.
3619         * modules/log1pl-tests: New file.
3620         * tests/test-log1pl.c: New file.
3621
3622         New module 'log1pl'.
3623         * lib/math.in.h (log1pl): New declaration.
3624         * lib/log1pl.c: New file.
3625         * m4/log1pl.m4: New file.
3626         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3628         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3629         * modules/log1pl: New file.
3630         * tests/test-math-c++.cc: Check the declaration of log1pl.
3631         * doc/posix-functions/log1pl.texi: Mention the new module.
3632
3633 2012-03-10  Bruno Haible  <bruno@clisp.org>
3634
3635         Tests for module 'log1pf'.
3636         * modules/log1pf-tests: New file.
3637         * tests/test-log1pf.c: New file.
3638
3639         New module 'log1pf'.
3640         * lib/math.in.h (log1pf): New declaration.
3641         * lib/log1pf.c: New file.
3642         * m4/log1pf.m4: New file.
3643         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3645         REPLACE_LOG1PF.
3646         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3647         REPLACE_LOG1PF.
3648         * modules/log1pf: New file.
3649         * tests/test-math-c++.cc: Check the declaration of log1pf.
3650         * doc/posix-functions/log1pf.texi: Mention the new module.
3651
3652 2012-03-10  Bruno Haible  <bruno@clisp.org>
3653
3654         log1p tests: More tests.
3655         * tests/test-log1p.h: New file.
3656         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3657         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3658         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3659         (main): Invoke test_function.
3660
3661         log1p: Provide replacement for Minix and MSVC.
3662         * lib/math.in.h (log1p): New declaration.
3663         * lib/log1p.c: New file.
3664         * m4/log1p.m4: New file.
3665         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3667         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3668         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3669         (Depends-on): Add math, isnand, log, round.
3670         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3671         HAVE_LOG1P is 0.
3672         * tests/test-math-c++.cc: Check the declaration of log1p.
3673         * doc/posix-functions/log1p.texi: Mention the replacement.
3674
3675 2012-03-10  Bruno Haible  <bruno@clisp.org>
3676
3677         math tests: Small simplification.
3678         * tests/test-exp.h (test_function): Use the same err_bound for
3679         'double' on platforms with sizeof (long double) == sizeof (double)
3680         than on platforms with sizeof (long double) > sizeof (double).
3681         * tests/test-exp2.h (test_function): Likewise.
3682         * tests/test-expm1.h (test_function): Likewise.
3683         * tests/test-log.h (test_function): Likewise.
3684
3685 2012-03-10  Bruno Haible  <bruno@clisp.org>
3686
3687         Fix some comments.
3688         * lib/expl.c: Fix an ambiguous comment.
3689         * lib/expm1.c: Likewise.
3690         * lib/expm1l.c: Likewise.
3691         * lib/exp2.c: Likewise.
3692         * lib/exp2l.c: Likewise.
3693
3694 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         regex: allow inclusion of <regex.h> before <limits.h>
3697         Without this patch, portable programs had to include <limits.h> before
3698         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3699         I ran into this problem with a test version of GNU grep on Solaris 8.
3700         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3701         This is done conditionally so that this change can be merged
3702         back to glibc.
3703         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3704         using the included regex.
3705
3706         fts: depend on fdopendir
3707         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3708         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3709         problem was introduced when fdopendir was split out.
3710
3711 2012-03-10  Bruno Haible  <bruno@clisp.org>
3712
3713         Remove unused variables.
3714         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3715         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3716
3717 2012-03-10  Bruno Haible  <bruno@clisp.org>
3718
3719         isnanf-nolibm: Fix last commit.
3720         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3721
3722         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3723         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3724
3725 2012-03-10  Bruno Haible  <bruno@clisp.org>
3726
3727         logf-ieee: Work around test failure on NetBSD 5.1.
3728         * m4/logf-ieee.m4: New file.
3729         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3730         whether logf works with a negative argument. Replace it if not.
3731         * lib/logf.c (logf): For negative arguments, return NaN.
3732         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3733         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3734         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3735
3736         logf-ieee: Work around test failure on Solaris 9.
3737         * modules/logf-ieee (Depends-on): Add log-ieee.
3738         (configure.ac): Require gl_FUNC_LOGF.
3739
3740         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3741         * m4/log-ieee.m4: New file.
3742         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3743         log works with a negative argument. Replace it if not.
3744         * lib/log.c (log): For negative arguments, return NaN.
3745         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3746         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3747         * doc/posix-functions/log.texi: Mention the log-ieee module.
3748
3749         Tests for module 'logl-ieee'.
3750         * modules/logl-ieee-tests: New file.
3751         * tests/test-logl-ieee.c: New file.
3752
3753         New module 'logl-ieee'.
3754         * modules/logl-ieee: New file.
3755
3756         Tests for module 'log-ieee'.
3757         * modules/log-ieee-tests: New file.
3758         * tests/test-log-ieee.c: New file.
3759
3760         New module 'log-ieee'.
3761         * modules/log-ieee: New file.
3762
3763         Tests for module 'logf-ieee'.
3764         * modules/logf-ieee-tests: New file.
3765         * tests/test-logf-ieee.c: New file.
3766         * tests/test-log-ieee.h: New file.
3767
3768         New module 'logf-ieee'.
3769         * modules/logf-ieee: New file.
3770
3771 2012-03-10  Bruno Haible  <bruno@clisp.org>
3772
3773         log: Fix bug introduced on 2012-03-09.
3774         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3775
3776 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3777
3778         timer-time: link explicitly with pthreads on glibc
3779         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3780         to support static linking, when newer glibc is
3781         detected, as that contains pthread emulation of
3782         POSIX timer functions where required.
3783         * modules/timer-time: Depend on threadlib to
3784         pull in the appropriate library to link.
3785
3786 2012-03-10  Bruno Haible  <bruno@clisp.org>
3787
3788         log* tests: More tests.
3789         * tests/test-log.h: New file.
3790         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3791         (main): Invoke test_function.
3792         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3793         (main): Invoke test_function.
3794         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3795         (main): Invoke test_function.
3796         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3797         tests/randomd.c.
3798         (Makefile.am): Add randomd.c to test_log_SOURCES.
3799         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3800         tests/randomf.c.
3801         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3802         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3803         tests/randoml.c.
3804         (Depends-on): Add 'float'.
3805         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3806
3807 2012-03-09  Bruno Haible  <bruno@clisp.org>
3808
3809         logl: Work around OSF/1 5.1 bug.
3810         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3811         * lib/logl.c (logl): If logl exists, use it and provide just the
3812         workaround.
3813         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3814         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3816         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3817         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3818         (Depends-on): Update conditions.
3819         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3820
3821 2012-03-09  Bruno Haible  <bruno@clisp.org>
3822
3823         logf: Work around OSF/1 5.1 bug.
3824         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3825         * lib/logf.c (logf): If logf exists, use it and provide just the
3826         workaround.
3827         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3828         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3830         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3831         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3832         (Depends-on): Update conditions.
3833         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3834
3835 2012-03-09  Bruno Haible  <bruno@clisp.org>
3836
3837         log: Work around OSF/1 5.1 bug.
3838         * lib/math.in.h (log): New declaration.
3839         * lib/log.c: New file.
3840         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3841         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3842         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3844         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3845         * modules/log (Files): Add lib/log.c.
3846         (Depends-on): Add math.
3847         (configure.ac): If REPLACE_LOG is 1, compile an override.
3848         * tests/test-math-c++.cc: Check the declaration of log.
3849         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3850
3851 2012-03-09  Jim Meyering  <meyering@redhat.com>
3852
3853         readtokens.c: adjust wording in a comment
3854         * lib/readtokens.c: Insert omitted "that" in a comment.
3855
3856 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3857
3858         modechange: add notations +40, 00440, etc.
3859         * lib/modechange.c (mode_compile): Support new notations
3860         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3861
3862 2012-03-08  Bruno Haible  <bruno@clisp.org>
3863
3864         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3865         * m4/exp2l-ieee.m4: New file.
3866         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3867         test whether exp2l works with a NaN argument and with a negative
3868         infinity argument. Replace it if not.
3869         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3871         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3872         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3873         (Depends-on): Update conditions.
3874         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3875         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3876         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3877
3878         Tests for module 'exp2l-ieee'.
3879         * modules/exp2l-ieee-tests: New file.
3880         * tests/test-exp2l-ieee.c: New file.
3881
3882         New module 'exp2l-ieee'.
3883         * modules/exp2l-ieee: New file.
3884
3885         Tests for module 'exp2-ieee'.
3886         * modules/exp2-ieee-tests: New file.
3887         * tests/test-exp2-ieee.c: New file.
3888
3889         New module 'exp2-ieee'.
3890         * modules/exp2-ieee: New file.
3891
3892         Tests for module 'exp2f-ieee'.
3893         * modules/exp2f-ieee-tests: New file.
3894         * tests/test-exp2f-ieee.c: New file.
3895         * tests/test-exp2-ieee.h: New file.
3896
3897         New module 'exp2f-ieee'.
3898         * modules/exp2f-ieee: New file.
3899
3900 2012-03-08  Bruno Haible  <bruno@clisp.org>
3901
3902         Tests for module 'exp2l'.
3903         * modules/exp2l-tests: New file.
3904         * tests/test-exp2l.c: New file.
3905
3906         New module 'exp2l'.
3907         * lib/math.in.h (exp2l): New declaration.
3908         * lib/exp2l.c: New file.
3909         * lib/expl-table.c: New file, extracted from lib/expl.c.
3910         * lib/expl.c (gl_expl_table): New declaration.
3911         (expl): Remove expl_table. Update reference.
3912         * m4/exp2l.m4: New file.
3913         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3915         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3916         * modules/exp2l: New file.
3917         * modules/expl (Files): Add lib/expl-table.c.
3918         (configure.ac): Compile also expl-table.c.
3919         * tests/test-math-c++.cc: Check the declaration of exp2l.
3920         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3921         problem.
3922
3923 2012-03-08  Bruno Haible  <bruno@clisp.org>
3924
3925         Tests for module 'exp2f'.
3926         * modules/exp2f-tests: New file.
3927         * tests/test-exp2f.c: New file.
3928
3929         New module 'exp2f'.
3930         * lib/math.in.h (exp2f): New declaration.
3931         * lib/exp2f.c: New file.
3932         * m4/exp2f.m4: New file.
3933         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3935         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3936         * modules/exp2f: New file.
3937         * tests/test-math-c++.cc: Check the declaration of exp2f.
3938         * doc/posix-functions/exp2f.texi: Mention the new module and the
3939         IRIX problem.
3940
3941 2012-03-08  Bruno Haible  <bruno@clisp.org>
3942
3943         Tests for module 'exp2'.
3944         * modules/exp2-tests: New file.
3945         * tests/test-exp2.c: New file.
3946         * tests/test-exp2.h: New file.
3947
3948         New module 'exp2'.
3949         * lib/math.in.h (exp2): New declaration.
3950         * lib/exp2.c: New file.
3951         * m4/exp2.m4: New file.
3952         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3954         REPLACE_EXP2.
3955         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3956         REPLACE_EXP2.
3957         * modules/exp2: New file.
3958         * tests/test-math-c++.cc: Check the declaration of exp2.
3959         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3960         and OpenBSD problems.
3961
3962 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3963
3964         savedir: fix comment typo
3965         * lib/savedir.c (savedirstream): Fix typo in comment.
3966
3967 2012-03-08  Bruno Haible  <bruno@clisp.org>
3968
3969         test-readtokens.c: use const; remove unwarranted cast
3970         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3971
3972 2012-03-08  Bruno Haible  <bruno@clisp.org>
3973
3974         fmal: Avoid compilation error on AIX.
3975         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3976         AIX 5.2..7.1.
3977
3978 2012-03-08  Bruno Haible  <bruno@clisp.org>
3979
3980         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3981         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3982         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3983         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3984         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3985         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3986         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3987
3988 2012-03-08  Bruno Haible  <bruno@clisp.org>
3989
3990         remainderf: Override buggy system function on IRIX 6.5.
3991         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3992         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3993         when it exists.
3994         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3995
3996 2012-03-08  Jim Meyering  <meyering@redhat.com>
3997
3998         test-readtokens.c: avoid const-related compilation warnings
3999         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4000
4001 2012-03-07  Jim Meyering  <meyering@redhat.com>
4002             Bruno Haible  <bruno@clisp.org>
4003
4004         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4005         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4006         tests/randomd.c.
4007         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4008         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4009         tests/randoml.c.
4010         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4011
4012 2012-03-07  Bruno Haible  <bruno@clisp.org>
4013
4014         expm1l: Avoid compilation error on AIX.
4015         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4016         AIX 5.2..7.1.
4017
4018 2012-03-07  Bruno Haible  <bruno@clisp.org>
4019
4020         expm1l: Don't override undeclared system function on IRIX 6.5.
4021         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4022         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4023         it exists. Set HAVE_DECL_EXPM1L.
4024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4025         HAVE_EXPM1L.
4026         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4027         HAVE_EXPM1L.
4028         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4029
4030 2012-03-07  Bruno Haible  <bruno@clisp.org>
4031
4032         remainderl: Don't override undeclared system function on IRIX 6.5.
4033         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4034         HAVE_REMAINDERL.
4035         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4036         declared when it exists. Set HAVE_DECL_REMAINDERL.
4037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4038         not HAVE_REMAINDERL.
4039         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4040         HAVE_REMAINDERL.
4041         * doc/posix-functions/remainderl.texi: Mention missing declaration
4042         problem.
4043
4044 2012-03-07  Bruno Haible  <bruno@clisp.org>
4045
4046         rintf: Don't override undeclared system function on IRIX 6.5.
4047         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4048         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4049         exists. Set HAVE_DECL_RINTF.
4050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4051         HAVE_RINTF.
4052         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4053         HAVE_RINTF.
4054         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4055
4056 2012-03-07  Bruno Haible  <bruno@clisp.org>
4057
4058         roundl: Avoid compilation error on AIX.
4059         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4060         AIX 5.2..7.1.
4061
4062 2012-03-07  Bruno Haible  <bruno@clisp.org>
4063
4064         roundl: Don't override undeclared system function on IRIX 6.5.
4065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4066         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4067         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4068         * modules/roundl (configure.ac): For replacement code, test
4069         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4070         (Depends-on): Update conditions.
4071         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4072
4073 2012-03-07  Bruno Haible  <bruno@clisp.org>
4074
4075         roundf: Don't override undeclared system function on IRIX 6.5.
4076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4077         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4078         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4079         * modules/roundf (configure.ac): For replacement code, test
4080         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4081         (Depends-on): Update conditions.
4082         * modules/roundf-ieee (Depends-on): Update conditions.
4083         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4084
4085 2012-03-07  Bruno Haible  <bruno@clisp.org>
4086
4087         round: Don't override undeclared system function on IRIX 6.5.
4088         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4089         argument.
4090         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4091         also when it is not declared. Set HAVE_ROUND. For replacement code,
4092         test HAVE_ROUND, not HAVE_DECL_ROUND.
4093         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4094         not HAVE_DECL_ROUND.
4095         (Depends-on): Update conditions.
4096         * modules/round-ieee (Depends-on): Update conditions.
4097         * doc/posix-functions/round.texi: Mention the IRIX problem.
4098
4099 2012-03-07  Bruno Haible  <bruno@clisp.org>
4100
4101         copysignf: Don't override undeclared system function on IRIX 6.5.
4102         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4103         HAVE_COPYSIGNF.
4104         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4105         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4107         not HAVE_COPYSIGNF.
4108         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4109         HAVE_COPYSIGNF.
4110         * doc/posix-functions/copysignf.texi: Mention missing declaration
4111         problem.
4112
4113 2012-03-07  Jim Meyering  <meyering@redhat.com>
4114
4115         readtokens: add tests
4116         * modules/readtokens-tests: New file.
4117         * tests/test-readtokens.c: New file.
4118
4119 2012-03-07  Jim Meyering  <meyering@redhat.com>
4120
4121         quotearg: the module must now include quote.h
4122         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4123         So must the module.
4124         * modules/quotearg (Files): Add quote.h.
4125
4126 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4127
4128         readtokens: avoid core dumps with unusual calling patterns
4129         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4130         * lib/readtokens.c: Include limits.h.
4131         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4132         (readtoken): Don't cache the delimiters; the cache code was buggy
4133         if !delim && saved_delim, or if the new n_delim differs from the old.
4134         Also, it wasn't thread-safe.
4135
4136 2012-03-07  Bruno Haible  <bruno@clisp.org>
4137
4138         quote: Adhere to common module description layout.
4139         * modules/quote (Makefile.am): Add back empty section.
4140
4141 2012-03-06  Akim Demaille  <demaille@gostai.com>
4142
4143         quote: fuse into quotearg
4144         This patch is made for the benefit of Bison.
4145         quote does not leave the choice of the quoting style to the user.
4146         quoting_style provides poor customizability, yet quoting_options,
4147         which is very rich, is hidden inside quotearg.c.  So in order to
4148         allow quote customization, move its implementation to quotearg.c.
4149         * lib/quote.c: Remove.
4150         * modules/quote: Adjust.
4151         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4152         warning: provide all the members of literal structs.
4153         (quote_quoting_options): New.
4154         (quote, quote_n): Import implementation from quote.c.
4155         * lib/quote.h: Import the comments from quote.c.
4156         (quote_quoting_options): New.
4157
4158 2012-03-06  Bruno Haible  <bruno@clisp.org>
4159
4160         Tests for module 'expm1l-ieee'.
4161         * modules/expm1l-ieee-tests: New file.
4162         * tests/test-expm1l-ieee.c: New file.
4163
4164         New module 'expm1l-ieee'.
4165         * modules/expm1l-ieee: New file.
4166
4167         Tests for module 'expm1f-ieee'.
4168         * modules/expm1f-ieee-tests: New file.
4169         * tests/test-expm1f-ieee.c: New file.
4170
4171         New module 'expm1f-ieee'.
4172         * modules/expm1f-ieee: New file.
4173
4174         Tests for module 'expm1-ieee'.
4175         * modules/expm1-ieee-tests: New file.
4176         * tests/test-expm1-ieee.c: New file.
4177         * tests/test-expm1-ieee.h: New file.
4178
4179         New module 'expm1-ieee'.
4180         * modules/expm1-ieee: New file.
4181         * m4/expm1-ieee.m4: New file.
4182         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4183         whether expm1 works with a minus zero argument. Replace it if not.
4184         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4186         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4187         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4188         (Depends-on): Update conditions.
4189         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4190         AIX problem.
4191
4192 2012-03-06  Bruno Haible  <bruno@clisp.org>
4193
4194         Work around expm1f bug on IRIX 6.5.
4195         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4196         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4197         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4198         not work.
4199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4200         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4201         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4202         (Depends-on): Update conditions.
4203         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4204
4205 2012-03-06  Bruno Haible  <bruno@clisp.org>
4206
4207         Tests for module 'expm1l'.
4208         * modules/expm1l-tests: New file.
4209         * tests/test-expm1l.c: New file.
4210
4211         New module 'expm1l'.
4212         * lib/math.in.h (expm1l): New declaration.
4213         * lib/expm1l.c: New file.
4214         * m4/expm1l.m4: New file.
4215         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4217         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4218         * modules/expm1l: New file.
4219         * tests/test-math-c++.cc: Check the declaration of expm1l.
4220         * doc/posix-functions/expm1l.texi: Mention the new module.
4221
4222 2012-03-06  Bruno Haible  <bruno@clisp.org>
4223
4224         Tests for module 'expm1f'.
4225         * modules/expm1f-tests: New file.
4226         * tests/test-expm1f.c: New file.
4227
4228         New module 'expm1f'.
4229         * lib/math.in.h (expm1f): New declaration.
4230         * lib/expm1f.c: New file.
4231         * m4/expm1f.m4: New file.
4232         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4234         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4235         * modules/expm1f: New file.
4236         * tests/test-math-c++.cc: Check the declaration of expm1f.
4237         * doc/posix-functions/expm1f.texi: Mention the new module.
4238
4239 2012-03-06  Bruno Haible  <bruno@clisp.org>
4240
4241         Tests for module 'expm1'.
4242         * modules/expm1-tests: New file.
4243         * tests/test-expm1.c: New file.
4244         * tests/test-expm1.h: New file.
4245
4246         New module 'expm1'.
4247         * lib/math.in.h (expm1): New declaration.
4248         * lib/expm1.c: New file.
4249         * m4/expm1.m4: New file.
4250         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4252         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4253         * modules/expm1: New file.
4254         * tests/test-math-c++.cc: Check the declaration of expm1.
4255         * doc/posix-functions/expm1.texi: Mention the new module.
4256
4257 2012-03-06  Bruno Haible  <bruno@clisp.org>
4258
4259         math: Ensure declarations of math functions.
4260         * modules/acosf (Depends-on): Add 'extensions'.
4261         * modules/asinf (Depends-on): Likewise.
4262         * modules/atan2f (Depends-on): Likewise.
4263         * modules/atanf (Depends-on): Likewise.
4264         * modules/cbrt (Depends-on): Likewise.
4265         * modules/cbrtf (Depends-on): Likewise.
4266         * modules/cbrtl (Depends-on): Likewise.
4267         * modules/copysignf (Depends-on): Likewise.
4268         * modules/copysignl (Depends-on): Likewise.
4269         * modules/cosf (Depends-on): Likewise.
4270         * modules/coshf (Depends-on): Likewise.
4271         * modules/expf (Depends-on): Likewise.
4272         * modules/fabsf (Depends-on): Likewise.
4273         * modules/fabsl (Depends-on): Likewise.
4274         * modules/fmaf (Depends-on): Likewise.
4275         * modules/fmal (Depends-on): Likewise.
4276         * modules/fmodf (Depends-on): Likewise.
4277         * modules/fmodl (Depends-on): Likewise.
4278         * modules/frexpf (Depends-on): Likewise.
4279         * modules/frexpl (Depends-on): Likewise.
4280         * modules/hypot (Depends-on): Likewise.
4281         * modules/hypotf (Depends-on): Likewise.
4282         * modules/hypotl (Depends-on): Likewise.
4283         * modules/ldexpf (Depends-on): Likewise.
4284         * modules/ldexpl (Depends-on): Likewise.
4285         * modules/log10f (Depends-on): Likewise.
4286         * modules/log10l (Depends-on): Likewise.
4287         * modules/log1p (Depends-on): Likewise.
4288         * modules/logb (Depends-on): Likewise.
4289         * modules/logf (Depends-on): Likewise.
4290         * modules/modff (Depends-on): Likewise.
4291         * modules/modfl (Depends-on): Likewise.
4292         * modules/powf (Depends-on): Likewise.
4293         * modules/remainderf (Depends-on): Likewise.
4294         * modules/remainderl (Depends-on): Likewise.
4295         * modules/rintf (Depends-on): Likewise.
4296         * modules/rintl (Depends-on): Likewise.
4297         * modules/sinf (Depends-on): Likewise.
4298         * modules/sinhf (Depends-on): Likewise.
4299         * modules/sqrtf (Depends-on): Likewise.
4300         * modules/tanf (Depends-on): Likewise.
4301         * modules/tanhf (Depends-on): Likewise.
4302         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4303         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4304         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4305         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4306         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4307         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4308         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4309         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4310         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4311         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4312         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4313         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4314         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4315         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4316         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4317         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4318         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4319         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4320         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4321         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4322         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4323         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4324         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4325         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4326         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4327         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4328         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4329         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4330         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4331         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4332         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4333         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4334         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4335         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4336         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4337         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4338         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4339         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4340         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4341         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4342         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4343
4344 2012-03-06  Bruno Haible  <bruno@clisp.org>
4345
4346         math: Update module names in warnings.
4347         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4348         tanl): Use specific module name in warn-on-use warning.
4349
4350 2012-03-06  Bruno Haible  <bruno@clisp.org>
4351
4352         expl: Simplify computation.
4353         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4354
4355 2012-03-05  Bruno Haible  <bruno@clisp.org>
4356
4357         exp* tests: More tests.
4358         * tests/test-exp.h: New file.
4359         * tests/test-exp.c: Include <float.h> and test-exp.h.
4360         (main): Invoke test_function.
4361         * tests/test-expf.c: Include <float.h> and test-exp.h.
4362         (main): Invoke test_function.
4363         * tests/test-expl.c: Include <float.h> and test-exp.h.
4364         (main): Invoke test_function.
4365         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4366         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4367         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4368         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4369         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4370         (Depends-on): Add 'float'.
4371         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4372
4373         expl: Fix precision of computed result.
4374         * lib/expl.c: Completely rewritten.
4375         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4376         (Maintainer): Add me.
4377         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4378
4379 2012-03-05  Bruno Haible  <bruno@clisp.org>
4380
4381         cbrt* tests: More tests.
4382         * tests/test-cbrt.h: New file.
4383         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4384         (main): Invoke test_function.
4385         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4386         (main): Invoke test_function.
4387         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4388         (main): Invoke test_function.
4389         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4390         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4391         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4392         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4393         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4394         (Depends-on): Add 'float'.
4395         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4396
4397 2012-03-05  Bruno Haible  <bruno@clisp.org>
4398
4399         hypot* tests: More tests.
4400         * tests/test-hypot.h: New file, partially extracted from
4401         tests/test-hypotl.c.
4402         * tests/test-hypot.c: Include test-hypot.h.
4403         (main): Invoke test_function.
4404         * tests/test-hypotf.c: Include test-hypot.h.
4405         (main): Invoke test_function.
4406         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4407         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4408         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4409         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4410         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4411         tests/randomf.c.
4412         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4413         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4414         tests/randoml.c.
4415         (Depends-on): Add 'fpucw', 'float'.
4416         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4417
4418 2012-03-05  Bruno Haible  <bruno@clisp.org>
4419
4420         fpucw: Doc about FreeBSD.
4421         * lib/fpucw.h: Mention FreeBSD in comments.
4422
4423 2012-03-04  Bruno Haible  <bruno@clisp.org>
4424
4425         sqrt* tests: More tests.
4426         * tests/test-sqrt.h: New file.
4427         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4428         (main): Invoke test_function.
4429         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4430         (main): Invoke test_function.
4431         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4432         (main): Invoke test_function.
4433         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4434         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4435         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4436         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4437         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4438         (Depends-on): Add 'float'.
4439         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4440
4441 2012-03-04  Bruno Haible  <bruno@clisp.org>
4442
4443         remainder* tests: More tests.
4444         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4445         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4446         (main): Invoke test_function.
4447         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4448         (main): Invoke test_function.
4449         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4450         (main): Invoke test_function.
4451         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4452         tests/randomd.c.
4453         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4454         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4455         tests/randomf.c.
4456         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4457         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4458         tests/randoml.c.
4459         (Depends-on): Add 'float'.
4460         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4461
4462 2012-03-04  Bruno Haible  <bruno@clisp.org>
4463
4464         remainder, remainderf, remainderl: Fix computation for large quotients.
4465         * lib/remainder.c: Completely rewritten.
4466         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4467         USE_FLOAT.
4468         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4469         USE_LONG_DOUBLE.
4470         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4471         isnand, isinf. Remove round, fma.
4472         * modules/remainderf (Files): Add lib/remainder.c.
4473         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4474         Remove roundf, fmaf.
4475         * modules/remainderl (Files): Add lib/remainder.c.
4476         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4477         isinf. Remove roundl, fmal.
4478         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4479         REMAINDER_LIBM.
4480         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4481         REMAINDERF_LIBM.
4482         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4483         REMAINDERL_LIBM.
4484
4485 2012-03-04  Bruno Haible  <bruno@clisp.org>
4486
4487         fmod* tests: More tests.
4488         * tests/test-fmod.h (my_ldexp): New function.
4489         (test_function): Reduce amount of random numbers to test. Add tests
4490         of very large quotients x / y.
4491         * tests/test-fmod.c (MAX_EXP): New macro.
4492         * tests/test-fmodf.c (MAX_EXP): Likewise.
4493         * tests/test-fmodl.c (MAX_EXP): Likewise.
4494
4495 2012-03-04  Bruno Haible  <bruno@clisp.org>
4496
4497         fmod, fmodl: Fix computation for large quotients x / y.
4498         * lib/fmod.c: Completely rewritten.
4499         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4500         USE_LONG_DOUBLE.
4501         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4502         isnand. Remove fma.
4503         * modules/fmodl (Files): Add lib/fmod.c.
4504         (Depends-on): Add float, isfinite, signbit, fabsl,
4505         frexpl, ldexpl, isnanl. Remove fma.
4506         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4507         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4508
4509 2012-03-03  Bruno Haible  <bruno@clisp.org>
4510
4511         fmod* tests: More tests.
4512         * tests/test-fmod.h: New file.
4513         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4514         (main): Invoke test_function.
4515         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4516         (main): Invoke test_function.
4517         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4518         (main): Invoke test_function.
4519         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4520         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4521         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4522         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4523         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4524         (Depends-on): Add 'float'.
4525         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4526
4527 2012-03-03  Bruno Haible  <bruno@clisp.org>
4528
4529         rint* tests: More tests.
4530         * tests/test-rint.h: New file, partially extracted from
4531         tests/test-rintl.c.
4532         * tests/test-rint.c: Include test-rint.h.
4533         (main): Invoke test_function.
4534         * tests/test-rintf.c: Include test-rint.h.
4535         (main): Invoke test_function.
4536         * tests/test-rintl.c: Include test-rint.h.
4537         (main): Invoke test_function.
4538         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4539         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4540         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4541         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4542         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4543         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4544
4545 2012-03-03  Bruno Haible  <bruno@clisp.org>
4546
4547         modf* tests: More tests.
4548         * tests/test-modf.h: New file.
4549         * tests/test-modf.c: Include <float.h> and test-modf.h.
4550         (main): Invoke test_function.
4551         * tests/test-modff.c: Include <float.h> and test-modf.h.
4552         (main): Invoke test_function.
4553         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4554         (main): Invoke test_function.
4555         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4556         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4557         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4558         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4559         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4560         (Depends-on): Add 'float'.
4561         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4562
4563 2012-03-03  Bruno Haible  <bruno@clisp.org>
4564
4565         fabs* tests: More tests.
4566         * tests/test-fabs.h: New file, partially extracted from
4567         tests/test-fabsl.c.
4568         * tests/test-fabs.c (RANDOM): New macro.
4569         * tests/test-fabsf.c (RANDOM): New macro.
4570         * tests/test-fabsl.c (RANDOM): New macro.
4571         * modules/fabs-tests (Files): Add tests/randomd.c.
4572         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4573         * modules/fabsf-tests (Files): Add tests/randomf.c.
4574         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4575         * modules/fabsl-tests (Files): Add tests/randoml.c.
4576         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4577
4578 2012-03-03  Bruno Haible  <bruno@clisp.org>
4579
4580         ldexp* tests: More tests.
4581         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4582         * tests/test-ldexp.c (RANDOM): New macro.
4583         * tests/test-ldexpf.c (RANDOM): New macro.
4584         * tests/test-ldexpl.c (RANDOM): New macro.
4585         * modules/ldexp-tests (Files): Add tests/randomd.c.
4586         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4587         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4588         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4589         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4590         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4591
4592 2012-03-03  Bruno Haible  <bruno@clisp.org>
4593
4594         frexp* tests: More tests.
4595         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4596         * tests/test-frexp.c (RANDOM): New macro.
4597         * tests/test-frexpf.c (RANDOM): New macro.
4598         * tests/test-frexpl.c (RANDOM): New macro.
4599         * modules/frexp-tests (Files): Add tests/randomd.c.
4600         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4601         * modules/frexpf-tests (Files): Add tests/randomf.c.
4602         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4603         * modules/frexpl-tests (Files): Add tests/randoml.c.
4604         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4605
4606 2012-03-03  Bruno Haible  <bruno@clisp.org>
4607
4608         Support for pseudo-random numbers in tests.
4609         * tests/randomf.c: New file.
4610         * tests/randomd.c: New file.
4611         * tests/randoml.c: New file.
4612         * tests/macros.h (randomf, randomd, randoml): New declarations.
4613
4614 2012-03-03  Bruno Haible  <bruno@clisp.org>
4615
4616         frexp* tests: Refactor.
4617         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4618         * tests/test-frexp.c: Include and use it.
4619         * tests/test-frexpf.c: Likewise.
4620         * tests/test-frexpl.c: Likewise.
4621         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4622         * modules/frexpf-tests (Files): Likewise.
4623         * modules/frexpl-tests (Files): Likewise.
4624
4625 2012-03-02  Jim Meyering  <meyering@redhat.com>
4626
4627         maint: don't specify XZ_OPT=-9ev in dist-related rule
4628         Using xz's -9 option is warranted only if you have a very large
4629         tarball (see xz's documentation for the sizes vs. presets), and
4630         requires 64MiB of memory at decompression time.
4631         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4632         Automake's default of just "-e" is fine.  Override on a
4633         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4634
4635 2012-03-01  Eric Blake  <eblake@redhat.com>
4636
4637         maint.mk: allow announcement for non-gnulib project
4638         * maint.mk (announcement): Skip gnulib version if not used.
4639
4640 2012-03-01  Jim Meyering  <meyering@redhat.com>
4641
4642         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4643         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4644         envvar settings cannot interfere.  Otherwise, setting envvars like
4645         prohibit=foo require=bar, etc. would cause spurious test failures.
4646
4647 2012-03-01  Eric Blake  <eblake@redhat.com>
4648
4649         maint.mk: add per-line exclusions to prohibitions
4650         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4651         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4652         (sc_const_long_option): Use it.
4653
4654 2012-03-01  Bruno Haible  <bruno@clisp.org>
4655
4656         Tests for module 'expl-ieee'.
4657         * modules/expl-ieee-tests: New file.
4658         * tests/test-expl-ieee.c: New file.
4659
4660         New module 'expl-ieee'.
4661         * modules/expl-ieee: New file.
4662
4663         Tests for module 'exp-ieee'.
4664         * modules/exp-ieee-tests: New file.
4665         * tests/test-exp-ieee.c: New file.
4666
4667         New module 'exp-ieee'.
4668         * modules/exp-ieee: New file.
4669
4670         Tests for module 'expf-ieee'.
4671         * modules/expf-ieee-tests: New file.
4672         * tests/test-expf-ieee.c: New file.
4673         * tests/test-exp-ieee.h: New file.
4674
4675         New module 'expf-ieee'.
4676         * modules/expf-ieee: New file.
4677
4678 2012-02-29  Bruno Haible  <bruno@clisp.org>
4679
4680         cbrtl-ieee: Work around test failure on IRIX 6.5.
4681         * m4/cbrtl-ieee.m4: New file.
4682         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4683         test whether cbrtl works with a minus zero argument. Replace it if not.
4684         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4686         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4687         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4688         (Depends-on): Update conditions.
4689         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4690         m4/signbit.m4.
4691         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4692         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4693         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4694
4695         Tests for module 'cbrtl-ieee'.
4696         * modules/cbrtl-ieee-tests: New file.
4697         * tests/test-cbrtl-ieee.c: New file.
4698
4699         New module 'cbrtl-ieee'.
4700         * modules/cbrtl-ieee: New file.
4701
4702         Tests for module 'cbrt-ieee'.
4703         * modules/cbrt-ieee-tests: New file.
4704         * tests/test-cbrt-ieee.c: New file.
4705
4706         New module 'cbrt-ieee'.
4707         * modules/cbrt-ieee: New file.
4708
4709         Tests for module 'cbrtf-ieee'.
4710         * modules/cbrtf-ieee-tests: New file.
4711         * tests/test-cbrtf-ieee.c: New file.
4712         * tests/test-cbrt-ieee.h: New file.
4713
4714         New module 'cbrtf-ieee'.
4715         * modules/cbrtf-ieee: New file.
4716
4717 2012-02-29  Bruno Haible  <bruno@clisp.org>
4718
4719         cbrtf: Work around bug in IRIX 6.5 system function.
4720         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4721         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4722         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4723         work.
4724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4725         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4726         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4727         (Depends-on): Update conditions.
4728         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4729
4730 2012-02-29  Bruno Haible  <bruno@clisp.org>
4731
4732         Tests for module 'cbrtl'.
4733         * modules/cbrtl-tests: New file.
4734         * tests/test-cbrtl.c: New file.
4735
4736         New module 'cbrtl'.
4737         * lib/math.in.h (cbrtl): New declaration.
4738         * lib/cbrtl.c: New file.
4739         * m4/cbrtl.m4: New file.
4740         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4742         HAVE_DECL_CBRTL.
4743         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4744         HAVE_DECL_CBRTL.
4745         * modules/cbrtl: New file.
4746         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4747         * doc/posix-functions/cbrtl.texi: Mention the new module.
4748
4749 2012-02-29  Bruno Haible  <bruno@clisp.org>
4750
4751         Tests for module 'cbrtf'.
4752         * modules/cbrtf-tests: New file.
4753         * tests/test-cbrtf.c: New file.
4754
4755         New module 'cbrtf'.
4756         * lib/math.in.h (cbrtf): New declaration.
4757         * lib/cbrtf.c: New file.
4758         * m4/cbrtf.m4: New file.
4759         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4761         HAVE_DECL_CBRTF.
4762         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4763         HAVE_DECL_CBRTF.
4764         * modules/cbrtf: New file.
4765         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4766         * doc/posix-functions/cbrtf.texi: Mention the new module.
4767
4768 2012-02-29  Bruno Haible  <bruno@clisp.org>
4769
4770         cbrt: Provide replacement on MSVC and Minix.
4771         * lib/math.in.h (cbrt): New declaration.
4772         * lib/cbrt.c: New file.
4773         * m4/cbrt.m4: New file.
4774         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4776         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4777         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4778         (Depends-on): Add dependencies.
4779         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4780         * tests/test-math-c++.cc: Check the declaration of cbrt.
4781         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4782         replacement.
4783
4784 2012-02-29  Bruno Haible  <bruno@clisp.org>
4785
4786         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4787         * m4/hypotl-ieee.m4: New file.
4788         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4789         test whether hypotl works with mixed NaN and Infinity arguments.
4790         Replace it if not.
4791         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4793         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4794         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4795         (Depends-on): Update conditions.
4796         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4797         (Depends-on): Add hypot-ieee.
4798         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4799         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4800
4801         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4802         * m4/hypotf-ieee.m4: New file.
4803         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4804         test whether hypotf works with mixed NaN and Infinity arguments.
4805         Replace it if not.
4806         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4807         (Depends-on): Add hypot-ieee.
4808         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4809         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4810
4811         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4812         * lib/math.in.h (hypot): New declaration.
4813         * lib/hypot.c: New file.
4814         * m4/hypot-ieee.m4: New file.
4815         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4816         whether hypot works with mixed NaN and Infinity arguments. Replace it
4817         if not.
4818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4819         REPLACE_HYPOT.
4820         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4821         * modules/hypot (Files): Add lib/hypot.c.
4822         (Depends-on): Add dependencies.
4823         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4824         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4825         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4826         * tests/test-math-c++.cc: Check the declaration of hypot.
4827         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4828
4829         Tests for module 'hypotl-ieee'.
4830         * modules/hypotl-ieee-tests: New file.
4831         * tests/test-hypotl-ieee.c: New file.
4832
4833         New module 'hypotl-ieee'.
4834         * modules/hypotl-ieee: New file.
4835
4836         Tests for module 'hypot-ieee'.
4837         * modules/hypot-ieee-tests: New file.
4838         * tests/test-hypot-ieee.c: New file.
4839
4840         New module 'hypot-ieee'.
4841         * modules/hypot-ieee: New file.
4842
4843         Tests for module 'hypotf-ieee'.
4844         * modules/hypotf-ieee-tests: New file.
4845         * tests/test-hypotf-ieee.c: New file.
4846         * tests/test-hypot-ieee.h: New file.
4847
4848         New module 'hypotf-ieee'.
4849         * modules/hypotf-ieee: New file.
4850
4851 2012-02-29  Bruno Haible  <bruno@clisp.org>
4852
4853         Remove unused variables.
4854         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4855         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4856         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4857         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4858
4859 2012-02-29  Eric Blake  <eblake@redhat.com>
4860
4861         termios: fix pid_t always, not just for tcgetsid
4862         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4863         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4864         just when building tcgetsid.
4865
4866 2012-02-29  Bruno Haible  <bruno@clisp.org>
4867
4868         Tests for module 'hypotl'.
4869         * modules/hypotl-tests: New file.
4870         * tests/test-hypotl.c: New file.
4871
4872         New module 'hypotl'.
4873         * lib/math.in.h (hypotl): New declaration.
4874         * lib/hypotl.c: New file.
4875         * m4/hypotl.m4: New file.
4876         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4878         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4879         * modules/hypotl: New file.
4880         * tests/test-math-c++.cc: Check the hypotl declaration.
4881         * doc/posix-functions/hypotl.texi: Mention the new module.
4882
4883 2012-02-29  Eric Blake  <eblake@redhat.com>
4884
4885         tcgetsid: fix cygwin header bug
4886         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4887
4888         docs: update cygwin progress
4889         * doc/posix-functions/llround.texi (llround): Added in cygwin
4890         1.7.8.
4891         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4892         * doc/glibc-functions/program_invocation_name.texi
4893         (program_invocation_name): Likewise.
4894         * doc/glibc-functions/program_invocation_short_name.texi
4895         (program_invocation_short_name): Likewise.
4896         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4897         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4898         Likewise.
4899         * doc/posix-functions/pthread_spin_destroy.texi
4900         (pthread_spin_destroy): Added in cygwin 1.7.10.
4901         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4902         Likewise.
4903         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4904         Likewise.
4905         * doc/posix-functions/pthread_spin_trylock.texi
4906         (pthread_spin_trylock): Likewise.
4907         * doc/posix-functions/pthread_spin_unlock.texi
4908         (pthread_spin_unlock): Likewise.
4909         * doc/posix-functions/pthread_setschedprio.texi
4910         (pthread_setschedprio): Likewise.
4911         * doc/posix-functions/pthread_attr_getstack.texi
4912         (pthread_attr_getstack): Likewise.
4913         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4914         (pthread_attr_getstackaddr): Likewise.
4915         * doc/glibc-functions/pthread_getattr_np.texi
4916         (pthread_getattr_np): Likewise.
4917         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4918         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4919         * doc/posix-functions/clock_settime.texi (clock_settime):
4920         Likewise.
4921         * doc/posix-functions/pthread_attr_getguardsize.texi
4922         (pthread_attr_getguardsize): Likewise.
4923         * doc/posix-functions/pthread_attr_setguardsize.texi
4924         (pthread_attr_setguardsize): Likewise.
4925         * doc/posix-functions/pthread_attr_setstack.texi
4926         (pthread_attr_setstack): Likewise.
4927         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4928         (pthread_attr_setstackaddr): Likewise.
4929         * doc/posix-functions/clock_getcpuclockid.texi
4930         (clock_getcpuclockid): Likewise.
4931         * doc/posix-functions/pthread_getcpuclockid.texi
4932         (pthread_getcpuclockid): Likewise.
4933         * doc/glibc-functions/error.texi (error): Likewise.
4934         * doc/glibc-functions/error_at_line.texi (error_at_line):
4935         Likewise.
4936         * doc/glibc-functions/error_message_count.texi
4937         (error_message_count): Likewise.
4938         * doc/glibc-functions/error_one_per_line.texi
4939         (error_one_per_line): Likewise.
4940         * doc/glibc-functions/error_print_progname.texi
4941         (error_print_progname): Likewise.
4942         * doc/posix-functions/pthread_condattr_getclock.texi
4943         (pthread_condattr_getclock): Likewise.
4944         * doc/posix-functions/pthread_condattr_setclock.texi
4945         (pthread_condattr_setclock): Likewise.
4946         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4947         Likewise.
4948         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4949         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4950         * doc/glibc-functions/get_current_dir_name.texi
4951         (get_current_dir_name): Likewise.
4952         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4953         Likewise.
4954         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4955         wrong return type.
4956         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4957         1.7.11.
4958
4959 2012-02-29  Bruno Haible  <bruno@clisp.org>
4960
4961         Tests for module 'hypotf'.
4962         * modules/hypotf-tests: New file.
4963         * tests/test-hypotf.c: New file.
4964
4965         New module 'hypotf'.
4966         * lib/math.in.h (hypotf): New declaration.
4967         * lib/hypotf.c: New file.
4968         * m4/hypotf.m4: New file.
4969         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4971         REPLACE_HYPOTF.
4972         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4973         REPLACE_HYPOTF.
4974         * modules/hypotf: New file.
4975         * tests/test-math-c++.cc: Check the hypotf declaration.
4976         * doc/posix-functions/hypotf.texi: Mention the new module.
4977
4978         hypot: Prepare for hypotf module.
4979         * m4/hypot.m4: New file.
4980         * modules/hypot (Files): Add m4/hypot.m4.
4981         (configure.ac): Invoke gl_FUNC_HYPOT.
4982
4983 2012-02-29  Bruno Haible  <bruno@clisp.org>
4984
4985         hypot tests: More tests.
4986         * tests/test-hypot.c: Include <float.h>.
4987         (main): Add tests about overflow and underflow.
4988
4989 2012-02-29  Bruno Haible  <bruno@clisp.org>
4990
4991         math code: Add comments.
4992         * lib/acosl.c: Add comment about related glibc source files.
4993         * lib/asinl.c: Likewise.
4994         * lib/atanl.c: Likewise.
4995         * lib/expl.c: Likewise.
4996         * lib/logl.c: Likewise.
4997         * lib/sincosl.c: Likewise.
4998         * lib/sinl.c: Likewise.
4999         * lib/tanl.c: Likewise.
5000         * lib/trigl.c: Likewise.
5001         * lib/cosl.c: Likewise. Fix comments.
5002
5003 2012-02-28  Bruno Haible  <bruno@clisp.org>
5004
5005         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5006         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5007         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5008         HUGE_VALL are defined.
5009         (numeric_equald): Renamed from numeric_equal.
5010         (numeric_equalf, numeric_equall): New functions.
5011         (main): Check also HUGE_VALF, HUGE_VALL.
5012         * modules/math-tests (Files): Add tests/macros.h.
5013         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5014         HUGE_VALL.
5015
5016 2012-02-28  Bruno Haible  <bruno@clisp.org>
5017
5018         doc: Move ISO C11 feature notes into POSIX chapters.
5019         * doc/posix-functions/aligned_alloc.texi: Renamed from
5020         doc/glibc-functions/aligned_alloc.texi.
5021         * doc/posix-functions/quick_exit.texi: Renamed from
5022         doc/glibc-functions/quick_exit.texi.
5023         * doc/posix-headers/uchar.texi: Renamed from
5024         doc/glibc-headers/uchar.texi.
5025         * doc/posix-functions/c16rtomb.texi: Renamed from
5026         doc/glibc-functions/c16rtomb.texi.
5027         * doc/posix-functions/c32rtomb.texi: Renamed from
5028         doc/glibc-functions/c32rtomb.texi.
5029         * doc/posix-functions/mbrtoc16.texi: Renamed from
5030         doc/glibc-functions/mbrtoc16.texi.
5031         * doc/posix-functions/mbrtoc32.texi: Renamed from
5032         doc/glibc-functions/mbrtoc32.texi.
5033         * doc/gnulib.texi: Update.
5034         (Glibc uchar.h): Remove section.
5035         Suggested by Eric Blake.
5036
5037 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         stdnoreturn: port to MSVC better
5040         MSVC standard headers use __declspec(noreturn), so #define noreturn
5041         to empty on that platform.  Reported by Bruno Haible in
5042         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5043         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5044         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5045
5046 2012-02-28  Bruno Haible  <bruno@clisp.org>
5047
5048         doc: Mention new glibc headers and functions.
5049         * doc/glibc-headers/uchar.texi: New file.
5050         * doc/glibc-functions/aligned_alloc.texi: New file.
5051         * doc/glibc-functions/c16rtomb.texi: New file.
5052         * doc/glibc-functions/c32rtomb.texi: New file.
5053         * doc/glibc-functions/clock_adjtime.texi: New file.
5054         * doc/glibc-functions/fanotify_init.texi: New file.
5055         * doc/glibc-functions/fanotify_mark.texi: New file.
5056         * doc/glibc-functions/inet6_opt_append.texi: New file.
5057         * doc/glibc-functions/inet6_opt_find.texi: New file.
5058         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5059         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5060         * doc/glibc-functions/inet6_opt_init.texi: New file.
5061         * doc/glibc-functions/inet6_opt_next.texi: New file.
5062         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5063         * doc/glibc-functions/inet6_rth_add.texi: New file.
5064         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5065         * doc/glibc-functions/inet6_rth_init.texi: New file.
5066         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5067         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5068         * doc/glibc-functions/inet6_rth_space.texi: New file.
5069         * doc/glibc-functions/login.texi: New file.
5070         * doc/glibc-functions/mbrtoc16.texi: New file.
5071         * doc/glibc-functions/mbrtoc32.texi: New file.
5072         * doc/glibc-functions/name_to_handle_at.texi: New file.
5073         * doc/glibc-functions/ntp_gettimex.texi: New file.
5074         * doc/glibc-functions/open_by_handle_at.texi: New file.
5075         * doc/glibc-functions/prlimit.texi: New file.
5076         * doc/glibc-functions/process_vm_readv.texi: New file.
5077         * doc/glibc-functions/process_vm_writev.texi: New file.
5078         * doc/glibc-functions/recvmmsg.texi: New file.
5079         * doc/glibc-functions/scandirat.texi: New file.
5080         * doc/glibc-functions/sendmmsg.texi: New file.
5081         * doc/glibc-functions/setns.texi: New file.
5082         * doc/glibc-functions/timespec_get.texi: New file.
5083         * doc/gnulib.texi: Include them.
5084         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5085         sections.
5086         Reported by Eric Blake.
5087
5088 2012-02-28  Bruno Haible  <bruno@clisp.org>
5089
5090         Avoid compilation errors with MSVC option -fp:strict.
5091         * lib/floor.c: Use MSVC specific pragma fenv_access.
5092         * lib/ceil.c: Likewise.
5093         * lib/trunc.c: Likewise.
5094         * lib/round.c: Likewise.
5095         * lib/rint.c: Likewise.
5096         * lib/fma.c: Likewise.
5097         * lib/integer_length.c: Likewise.
5098         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5099         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5100         * tests/test-floor2.c: Likewise.
5101         * tests/test-floorf2.c: Likewise.
5102         * tests/test-ceil2.c: Likewise.
5103         * tests/test-ceilf2.c: Likewise.
5104         * tests/test-trunc2.c: Likewise.
5105         * tests/test-truncf2.c: Likewise.
5106         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5107
5108 2012-02-27  Bruno Haible  <bruno@clisp.org>
5109
5110         Tests for module 'sqrtl-ieee'.
5111         * modules/sqrtl-ieee-tests: New file.
5112         * tests/test-sqrtl-ieee.c: New file.
5113
5114         New module 'sqrtl-ieee'.
5115         * modules/sqrtl-ieee: New file.
5116
5117         Tests for module 'sqrt-ieee'.
5118         * modules/sqrt-ieee-tests: New file.
5119         * tests/test-sqrt-ieee.c: New file.
5120
5121         New module 'sqrt-ieee'.
5122         * modules/sqrt-ieee: New file.
5123
5124         Tests for module 'sqrtf-ieee'.
5125         * modules/sqrtf-ieee-tests: New file.
5126         * tests/test-sqrtf-ieee.c: New file.
5127         * tests/test-sqrt-ieee.h: New file.
5128
5129         New module 'sqrtf-ieee'.
5130         * modules/sqrtf-ieee: New file.
5131
5132 2012-02-27  Bruno Haible  <bruno@clisp.org>
5133
5134         remainderl-ieee: Work around test failure on OSF/1.
5135         * m4/remainderl-ieee.m4: New file.
5136         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5137         present, test whether remainderl works with a zero second argument.
5138         Replace it if not.
5139         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5141         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5142         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5143         (Depends-on): Update conditions.
5144         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5145         (Depends-on): Add remainder-ieee.
5146         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5147         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5148         module.
5149
5150         remainderf-ieee: Work around test failure on OSF/1.
5151         * m4/remainderf-ieee.m4: New file.
5152         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5153         present, test whether remainderf works with a zero second argument.
5154         Replace it if not.
5155         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5157         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5158         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5159         (Depends-on): Update conditions.
5160         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5161         (Depends-on): Add remainder-ieee.
5162         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5163         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5164         module.
5165
5166         remainder-ieee: Work around test failure on OSF/1.
5167         * m4/remainder-ieee.m4: New file.
5168         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5169         present, test whether remainder works with a zero second argument.
5170         Replace it if not.
5171         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5173         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5174         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5175         (Depends-on): Update dependencies.
5176         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5177         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5178         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5179
5180         Tests for module 'remainderl-ieee'.
5181         * modules/remainderl-ieee-tests: New file.
5182         * tests/test-remainderl-ieee.c: New file.
5183
5184         New module 'remainderl-ieee'.
5185         * modules/remainderl-ieee: New file.
5186
5187         Tests for module 'remainder-ieee'.
5188         * modules/remainder-ieee-tests: New file.
5189         * tests/test-remainder-ieee.c: New file.
5190
5191         New module 'remainder-ieee'.
5192         * modules/remainder-ieee: New file.
5193
5194         Tests for module 'remainderf-ieee'.
5195         * modules/remainderf-ieee-tests: New file.
5196         * tests/test-remainderf-ieee.c: New file.
5197         * tests/test-remainder-ieee.h: New file.
5198
5199         New module 'remainderf-ieee'.
5200         * modules/remainderf-ieee: New file.
5201
5202 2012-02-27  Bruno Haible  <bruno@clisp.org>
5203
5204         modff, modfl: Fix configure syntax error.
5205         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5206         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5207
5208 2012-02-27  Bruno Haible  <bruno@clisp.org>
5209
5210         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5211         * m4/fmodl-ieee.m4: New file.
5212         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5213         whether fmodl works with zero arguments. Replace it if not.
5214         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5215         (Depends-on): Add fmod-ieee.
5216         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5217         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5218
5219         fmodf-ieee: Work around test failure on OSF/1.
5220         * m4/fmodf-ieee.m4: New file.
5221         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5222         whether fmodf works with zero arguments. Replace it if not.
5223         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5225         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5226         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5227         (Depends-on): Update dependencies.
5228         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5229         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5230         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5231
5232         fmodf-ieee: Work around test failure on MSVC 9.
5233         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5234         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5235
5236         fmod-ieee: Work around test failures on OSF/1, mingw.
5237         * m4/fmod-ieee.m4: New file.
5238         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5239         whether fmod works with zero arguments. Replace it if not.
5240         * lib/math.in.h (fmod): New declaration.
5241         * lib/fmod.c: New file.
5242         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5244         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5245         * modules/fmod (Files): Add lib/fmod.c.
5246         (Depends-on): Add math, isinf, trunc, fma.
5247         (configure.ac): Arrange to compile lib/fmod.c if needed.
5248         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5249         m4/signbit.m4.
5250         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5251         * tests/test-math-c++.cc: Check the declaration of fmod.
5252         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5253
5254         fmodl-ieee: Fix test failures.
5255         * lib/fmodl.c (fmodl): Treat Inf specially.
5256         * modules/fmodl (Depends-on): Add isinf.
5257
5258         Tests for module 'fmodl-ieee'.
5259         * modules/fmodl-ieee-tests: New file.
5260         * tests/test-fmodl-ieee.c: New file.
5261
5262         New module 'fmodl-ieee'.
5263         * modules/fmodl-ieee: New file.
5264
5265         Tests for module 'fmod-ieee'.
5266         * modules/fmod-ieee-tests: New file.
5267         * tests/test-fmod-ieee.c: New file.
5268
5269         New module 'fmod-ieee'.
5270         * modules/fmod-ieee: New file.
5271
5272         Tests for module 'fmodf-ieee'.
5273         * modules/fmodf-ieee-tests: New file.
5274         * tests/test-fmodf-ieee.c: New file.
5275         * tests/test-fmod-ieee.h: New file.
5276
5277         New module 'fmodf-ieee'.
5278         * modules/fmodf-ieee: New file.
5279
5280 2012-02-27  Bruno Haible  <bruno@clisp.org>
5281
5282         Tests for module 'rintl-ieee'.
5283         * modules/rintl-ieee-tests: New file.
5284         * tests/test-rintl-ieee.c: New file.
5285
5286         New module 'rintl-ieee'.
5287         * modules/rintl-ieee: New file.
5288
5289         Tests for module 'rint-ieee'.
5290         * modules/rint-ieee-tests: New file.
5291         * tests/test-rint-ieee.c: New file.
5292
5293         New module 'rint-ieee'.
5294         * modules/rint-ieee: New file.
5295
5296         Tests for module 'rintf-ieee'.
5297         * modules/rintf-ieee-tests: New file.
5298         * tests/test-rintf-ieee.c: New file.
5299         * tests/test-rint-ieee.h: New file.
5300
5301         New module 'rintf-ieee'.
5302         * modules/rintf-ieee: New file.
5303
5304 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         regex: re_search etc. should return -2 when memory exhausted
5307         This bug was uncovered when testing 'grep'.  Without the fix,
5308         re_search and friends return -1 when memory is exhausted, but -1
5309         means no match, and this causes grep to falsely report no-match
5310         instead of memory-exhaustion.  See
5311         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5312         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5313         trouble; this can occur if re_search_internal ran out of memory.
5314
5315 2012-02-26  Bruno Haible  <bruno@clisp.org>
5316
5317         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5318         * m4/modfl-ieee.m4: New file.
5319         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5320         whether modfl works with Inf. Replace it if not.
5321         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5323         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5324         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5325         (Depends-on): Update dependencies.
5326         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5327         m4/signbit.m4.
5328         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5329         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5330
5331         modfl-ieee: Fix dependencies.
5332         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5333
5334         modfl-ieee: Fix test failures.
5335         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5336         * modules/modfl (Depends-on): Add isfinite, isinf.
5337
5338         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5339         * m4/modff-ieee.m4: New file.
5340         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5341         whether modff works with NaN and Inf. Replace it if not.
5342         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5344         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5345         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5346         (Depends-on): Update dependencies.
5347         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5348         m4/signbit.m4.
5349         (Depends-on): Add modf-ieee.
5350         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5351         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5352
5353         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5354         * m4/modf-ieee.m4: New file.
5355         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5356         whether modf works with NaN and Inf. Replace it if not.
5357         * lib/math.in.h (modf): New declaration.
5358         * lib/modf.c: New file.
5359         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5361         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5362         * modules/modf (Files): Add lib/modf.c.
5363         (Depends-on): Add math, isfinite, trunc, isinf.
5364         (configure.ac): Addrange to compile lib/modf.c if needed.
5365         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5366         m4/signbit.m4.
5367         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5368         * tests/test-math-c++.cc: Check the declaration of modf.
5369         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5370
5371         Tests for module 'modfl-ieee'.
5372         * modules/modfl-ieee-tests: New file.
5373         * tests/test-modfl-ieee.c: New file.
5374
5375         New module 'modfl-ieee'.
5376         * modules/modfl-ieee: New file.
5377
5378         Tests for module 'modf-ieee'.
5379         * modules/modf-ieee-tests: New file.
5380         * tests/test-modf-ieee.c: New file.
5381
5382         New module 'modf-ieee'.
5383         * modules/modf-ieee: New file.
5384
5385         Tests for module 'modff-ieee'.
5386         * modules/modff-ieee-tests: New file.
5387         * tests/test-modff-ieee.c: New file.
5388         * tests/test-modf-ieee.h: New file.
5389
5390         New module 'modff-ieee'.
5391         * modules/modff-ieee: New file.
5392
5393 2012-02-26  Bruno Haible  <bruno@clisp.org>
5394
5395         Tests for module 'fabsl-ieee'.
5396         * modules/fabsl-ieee-tests: New file.
5397         * tests/test-fabsl-ieee.c: New file.
5398
5399         New module 'fabsl-ieee'.
5400         * modules/fabsl-ieee: New file.
5401
5402         Tests for module 'fabs-ieee'.
5403         * modules/fabs-ieee-tests: New file.
5404         * tests/test-fabs-ieee.c: New file.
5405
5406         New module 'fabs-ieee'.
5407         * modules/fabs-ieee: New file.
5408
5409         Tests for module 'fabsf-ieee'.
5410         * modules/fabsf-ieee-tests: New file.
5411         * tests/test-fabsf-ieee.c: New file.
5412         * tests/test-fabs-ieee.h: New file.
5413
5414         New module 'fabsf-ieee'.
5415         * modules/fabsf-ieee: New file.
5416
5417 2012-02-26  Bruno Haible  <bruno@clisp.org>
5418
5419         Tests for module 'fmal-ieee'.
5420         * modules/fmal-ieee-tests: New file.
5421         * tests/test-fmal-ieee.c: New file.
5422
5423         New module 'fmal-ieee'.
5424         * modules/fmal-ieee: New file.
5425
5426         Tests for module 'fma-ieee'.
5427         * modules/fma-ieee-tests: New file.
5428         * tests/test-fma-ieee.c: New file.
5429
5430         New module 'fma-ieee'.
5431         * modules/fma-ieee: New file.
5432
5433         Tests for module 'fmaf-ieee'.
5434         * modules/fmaf-ieee-tests: New file.
5435         * tests/test-fmaf-ieee.c: New file.
5436         * tests/test-fma-ieee.h: New file.
5437
5438         New module 'fmaf-ieee'.
5439         * modules/fmaf-ieee: New file.
5440
5441 2012-02-26  Bruno Haible  <bruno@clisp.org>
5442
5443         Tests for module 'ldexpl-ieee'.
5444         * modules/ldexpl-ieee-tests: New file.
5445         * tests/test-ldexpl-ieee.c: New file.
5446
5447         New module 'ldexpl-ieee'.
5448         * modules/ldexpl-ieee: New file.
5449
5450         Tests for module 'ldexp-ieee'.
5451         * modules/ldexp-ieee-tests: New file.
5452         * tests/test-ldexp-ieee.c: New file.
5453
5454         New module 'ldexp-ieee'.
5455         * modules/ldexp-ieee: New file.
5456
5457         Tests for module 'ldexpf-ieee'.
5458         * modules/ldexpf-ieee-tests: New file.
5459         * tests/test-ldexpf-ieee.c: New file.
5460         * tests/test-ldexp-ieee.h: New file.
5461
5462         New module 'ldexpf-ieee'.
5463         * modules/ldexpf-ieee: New file.
5464
5465 2012-02-26  Bruno Haible  <bruno@clisp.org>
5466
5467         Refactor frexp*-ieee tests.
5468         * tests/test-frexp-ieee.h: New file.
5469         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5470         (main): Just call test_function.
5471         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5472         (main): Just call test_function.
5473         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5474         (main): Just call test_function.
5475         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5476         * modules/frexp-ieee-tests (Files): Likewise.
5477         * modules/frexpl-ieee-tests (Files): Likewise.
5478
5479         Tests for module 'frexpl-ieee'.
5480         * modules/frexpl-ieee-tests: New file.
5481         * tests/test-frexpl-ieee.c: New file.
5482
5483         New module 'frexpl-ieee'.
5484         * modules/frexpl-ieee: New file.
5485
5486         Tests for module 'frexp-ieee'.
5487         * modules/frexp-ieee-tests: New file.
5488         * tests/test-frexp-ieee.c: New file.
5489
5490         New module 'frexp-ieee'.
5491         * modules/frexp-ieee: New file.
5492
5493         Tests for module 'frexpf-ieee'.
5494         * modules/frexpf-ieee-tests: New file.
5495         * tests/test-frexpf-ieee.c: New file.
5496
5497         New module 'frexpf-ieee'.
5498         * modules/frexpf-ieee: New file.
5499
5500 2012-02-26  Bruno Haible  <bruno@clisp.org>
5501
5502         roundl-ieee tests: More tests.
5503         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5504         (main): Add tests for [MX] shaded specification in POSIX.
5505         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5506         (Depends-on): Add isnanl-nolibm.
5507
5508         round-ieee tests: More tests.
5509         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5510         (main): Add tests for [MX] shaded specification in POSIX.
5511         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5512         (Depends-on): Add isnand-nolibm.
5513
5514         roundf-ieee tests: More tests.
5515         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5516         (main): Add tests for [MX] shaded specification in POSIX.
5517         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5518         (Depends-on): Add isnanf-nolibm.
5519
5520         truncl-ieee tests: More tests.
5521         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5522         (main): Add tests for [MX] shaded specification in POSIX.
5523         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5524         (Depends-on): Add isnanl-nolibm.
5525
5526         trunc-ieee tests: More tests.
5527         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5528         (main): Add tests for [MX] shaded specification in POSIX.
5529         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5530         (Depends-on): Add isnand-nolibm.
5531
5532         truncf-ieee tests: More tests.
5533         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5534         (main): Add tests for [MX] shaded specification in POSIX.
5535         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5536         (Depends-on): Add isnanf-nolibm.
5537
5538         ceill-ieee tests: More tests.
5539         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5540         (main): Add tests for [MX] shaded specification in POSIX.
5541         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5542         (Depends-on): Add isnanl-nolibm.
5543
5544         ceil-ieee tests: More tests.
5545         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5546         (main): Add tests for [MX] shaded specification in POSIX.
5547         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5548         (Depends-on): Add isnand-nolibm.
5549
5550         ceilf-ieee tests: More tests.
5551         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5552         (main): Add tests for [MX] shaded specification in POSIX.
5553         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5554         (Depends-on): Add isnanf-nolibm.
5555
5556         floorl-ieee tests: More tests.
5557         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5558         (main): Add tests for [MX] shaded specification in POSIX.
5559         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5560         (Depends-on): Add isnanl-nolibm.
5561
5562         floor-ieee tests: More tests.
5563         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5564         (main): Add tests for [MX] shaded specification in POSIX.
5565         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5566         (Depends-on): Add isnand-nolibm.
5567
5568         floorf-ieee tests: More tests.
5569         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5570         (main): Add tests for [MX] shaded specification in POSIX.
5571         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5572         (Depends-on): Add isnanf-nolibm.
5573
5574 2012-02-26  Bruno Haible  <bruno@clisp.org>
5575
5576         fpieee: More comments.
5577         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5578
5579 2012-02-25  Bruno Haible  <bruno@clisp.org>
5580
5581         Tests for module 'log10l'.
5582         * modules/log10l-tests: New file.
5583         * tests/test-log10l.c: New file.
5584         * tests/test-math-c++.cc: Check the declaration of log10l.
5585
5586         New module 'log10l'.
5587         * lib/math.in.h (log10l): New declaration.
5588         * lib/log10l.c: New file.
5589         * m4/log10l.m4: New file.
5590         * modules/log10l: New file.
5591         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5593         HAVE_DECL_LOG10L.
5594         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5595         HAVE_DECL_LOG10L.
5596         * doc/posix-functions/log10l.texi: Mention the new module.
5597
5598 2012-02-25  Bruno Haible  <bruno@clisp.org>
5599
5600         fmodl, remainder*: Avoid wrong results due to rounding errors.
5601         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5602         expected bounds.
5603         * lib/remainderf.c (remainderf): Likewise.
5604         * lib/remainder.c (remainder): Likewise.
5605         * lib/remainderl.c (remainderl): Likewise.
5606
5607 2012-02-25  Bruno Haible  <bruno@clisp.org>
5608
5609         Tests for module 'remainderl'.
5610         * modules/remainderl-tests: New file.
5611         * tests/test-remainderl.c: New file.
5612         * tests/test-math-c++.cc: Check the declaration of remainderl.
5613
5614         New module 'remainderl'.
5615         * lib/math.in.h (remainderl): New declaration.
5616         * lib/remainderl.c: New file.
5617         * m4/remainderl.m4: New file.
5618         * modules/remainderl: New file.
5619         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5621         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5622         HAVE_REMAINDERL.
5623         * doc/posix-functions/remainderl.texi: Mention the new module.
5624
5625 2012-02-25  Bruno Haible  <bruno@clisp.org>
5626
5627         Tests for module 'remainderf'.
5628         * modules/remainderf-tests: New file.
5629         * tests/test-remainderf.c: New file.
5630         * tests/test-math-c++.cc: Check the declaration of remainderf.
5631
5632         New module 'remainderf'.
5633         * lib/math.in.h (remainderf): New declaration.
5634         * lib/remainderf.c: New file.
5635         * m4/remainderf.m4: New file.
5636         * modules/remainderf: New file.
5637         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5639         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5640         HAVE_REMAINDERF.
5641         * doc/posix-functions/remainderf.texi: Mention the new module.
5642
5643 2012-02-25  Bruno Haible  <bruno@clisp.org>
5644
5645         remainder: Support for MSVC.
5646         * lib/math.in.h (remainder): New declaration.
5647         * lib/remainder.c: New file.
5648         * m4/remainder.m4: New file.
5649         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5650         (Depends-on): Add math, round, fma.
5651         (configure.ac): Use results of gl_FUNC_REMAINDER.
5652         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5654         HAVE_DECL_REMAINDER.
5655         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5656         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5657         * tests/test-math-c++.cc: Check the declaration of remainder.
5658         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5659         problems are fixed.
5660
5661 2012-02-25  Bruno Haible  <bruno@clisp.org>
5662
5663         Tests for module 'fmodl'.
5664         * modules/fmodl-tests: New file.
5665         * tests/test-fmodl.c: New file.
5666         * tests/test-math-c++.cc: Check the declaration of fmodl.
5667
5668         New module 'fmodl'.
5669         * lib/math.in.h (fmodl): New declaration.
5670         * lib/fmodl.c: New file.
5671         * m4/fmodl.m4: New file.
5672         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5674         REPLACE_FMODL.
5675         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5676         REPLACE_FMODL.
5677         * modules/fmodl: New file.
5678         * doc/posix-functions/fmodl.texi: Mention the new module.
5679
5680 2012-02-25  Bruno Haible  <bruno@clisp.org>
5681
5682         Tests for module 'modfl'.
5683         * modules/modfl-tests: New file.
5684         * tests/test-modfl.c: New file.
5685         * tests/test-math-c++.cc: Check the declaration of modfl.
5686
5687         New module 'modfl'.
5688         * lib/math.in.h (modfl): New declaration.
5689         * lib/modfl.c: New file.
5690         * m4/modfl.m4: New file.
5691         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5693         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5694         * modules/modfl: New file.
5695         * doc/posix-functions/modfl.texi: Mention the new module.
5696
5697 2012-02-25  Bruno Haible  <bruno@clisp.org>
5698
5699         Tests for module 'fabsl'.
5700         * modules/fabsl-tests: New file.
5701         * tests/test-fabsl.c: New file.
5702         * tests/test-math-c++.cc: Check the declaration of fabsl.
5703
5704         New module 'fabsl'.
5705         * lib/math.in.h (fabsl): New declaration.
5706         * lib/fabsl.c: New file.
5707         * m4/fabsl.m4: New file.
5708         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5710         REPLACE_FABSL.
5711         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5712         REPLACE_FABSL.
5713         * modules/fabsl: New file.
5714         * doc/posix-functions/fabsl.texi: Mention the new module.
5715
5716 2012-02-25  Bruno Haible  <bruno@clisp.org>
5717
5718         fabs tests: More tests.
5719         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5720         (zero): New variable.
5721         (main): Add tests for signed zero.
5722         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5723
5724         fabsf tests: More tests.
5725         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5726         (zero): New variable.
5727         (main): Add tests for signed zero.
5728         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5729
5730 2012-02-24  Bruno Haible  <bruno@clisp.org>
5731
5732         atanl: Provide function definition on MSVC.
5733         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5734         function pointer.
5735         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5736
5737 2012-02-24  Bruno Haible  <bruno@clisp.org>
5738
5739         acosl: Provide function definition on MSVC.
5740         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5741         function pointer.
5742         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5743
5744 2012-02-24  Bruno Haible  <bruno@clisp.org>
5745
5746         asinl: Provide function definition on MSVC.
5747         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5748         function pointer.
5749         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5750
5751 2012-02-24  Bruno Haible  <bruno@clisp.org>
5752
5753         tanl: Provide function definition on MSVC.
5754         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5755         function pointer.
5756         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5757
5758 2012-02-24  Bruno Haible  <bruno@clisp.org>
5759
5760         cosl: Provide function definition on MSVC.
5761         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5762         function pointer.
5763         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5764
5765 2012-02-24  Bruno Haible  <bruno@clisp.org>
5766
5767         sinl: Provide function definition on MSVC.
5768         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5769         function pointer.
5770         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5771
5772 2012-02-24  Bruno Haible  <bruno@clisp.org>
5773
5774         logl: Provide function definition on MSVC.
5775         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5776         function pointer.
5777         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5778
5779 2012-02-24  Bruno Haible  <bruno@clisp.org>
5780
5781         expl: Provide function definition on MSVC.
5782         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5783         function pointer.
5784         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5785
5786 2012-02-24  Bruno Haible  <bruno@clisp.org>
5787
5788         sqrtl: Provide function definition on MSVC.
5789         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5790         a function pointer.
5791         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5792
5793 2012-02-24  Bruno Haible  <bruno@clisp.org>
5794
5795         ceill: Provide function definition on MSVC.
5796         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5797         used as a function pointer.
5798         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5799
5800 2012-02-24  Bruno Haible  <bruno@clisp.org>
5801
5802         floorl: Provide function definition on MSVC.
5803         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5804         used as a function pointer.
5805         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5806
5807 2012-02-24  Bruno Haible  <bruno@clisp.org>
5808
5809         ceilf: Provide function definition on MSVC.
5810         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5811         used as a function pointer.
5812         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5813
5814 2012-02-24  Bruno Haible  <bruno@clisp.org>
5815
5816         floorf: Provide function definition on MSVC.
5817         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5818         used as a function pointer.
5819         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5820
5821 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5822
5823         stdnoreturn: new module
5824         This implements a replacement for C11's <stdnoreturn.h>.
5825         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5826         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5827         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5828         * tests/test-stdnoreturn.c: New files.
5829
5830 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5831
5832         regex: fix false multibyte matches in some regular expressions
5833         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5834         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5835         * lib/regex_internal.c (re_string_skip_chars):
5836         Fix miscomputation of remain_len that may cause incomplete
5837         multi-byte character and false match.
5838
5839 2012-02-24  Jim Meyering  <meyering@redhat.com>
5840
5841         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5842         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5843         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5844         Remove now-unnecessary str''cmp obfuscation.
5845         Suggested by Akim Demaille.
5846
5847 2012-02-24  Bruno Haible  <bruno@clisp.org>
5848
5849         streq: Rename macro.
5850         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5851         * NEWS: Mention the change.
5852         * lib/mbrtowc.c (mbrtowc): Update.
5853         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5854         * lib/wcwidth.c (wcwidth): Update.
5855         Suggested by Akim Demaille and Jim Meyering.
5856
5857 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         regex: fix typo in definition of MIN
5860         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5861         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5862
5863 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5864             Bruno Haible  <bruno@clisp.org>
5865
5866         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5867         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5868         entries into a stack-allocated buffer directly.
5869         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5870
5871 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5872             Bruno Haible  <bruno@clisp.org>
5873
5874         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5875
5876          - There were several instances of this pattern:
5877
5878              for (;;) {
5879                n = acl (f, GETACLCNT, 0, NULL);
5880                [ allocate an array A of size N ]
5881                if (acl (f, GETACL, n, a) == n)
5882                  break;
5883              }
5884
5885            This loop might never terminate if some other process is constantly
5886            manipulating the file's ACL.  The loop should be rewritten to
5887            terminate.
5888
5889          - The acl (... GETACLNT ...) call is merely an optimization; its value
5890            is merely a hint as to how big to make the array.  A better
5891            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5892            and just guess a reasonably-big size, growing the size and trying
5893            again if it's not large enough.  This guarantees termination, and
5894            saves a system call.
5895
5896         * lib/acl-internal.h: Include <limits.h>.
5897         (MIN, SIZE_MAX): New macros.
5898         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5899         a stack-allocated buffer, and use malloc if it does not fit. Don't
5900         use GETACLCNT.
5901         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5902
5903 2012-02-19  Bruno Haible  <bruno@clisp.org>
5904
5905         acl: Fix endless loop on Solaris with vxfs.
5906         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5907         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5908         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5909         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5910         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5911         Reported by Bill Jones in
5912         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5913
5914 2012-02-19  Bruno Haible  <bruno@clisp.org>
5915
5916         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5917         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5918         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5919         that this function returns 0 in some more cases.
5920
5921 2012-02-19  Bruno Haible  <bruno@clisp.org>
5922
5923         acl: Update doc references.
5924         * doc/acl-resources.txt: Update links to Solaris documentation.
5925
5926 2012-02-19  Bruno Haible  <bruno@clisp.org>
5927
5928         Fix test failure in many locales on Solaris 11.
5929         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5930         'tr' arguments.
5931         * tests/test-pipe-filter-ii1.c (main): Likewise.
5932         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5933         expressions in the C locale.
5934         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5935         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5936
5937 2012-02-19  Bruno Haible  <bruno@clisp.org>
5938
5939         gnulib-tool: Improve usage message.
5940         * gnulib-tool (func_usage): Move doc of --help and --version to the
5941         section "Operation modes".
5942
5943 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5944
5945         README-release: make it easier to execute commands
5946         * top/README-release: break commands out on to separate lines.
5947
5948 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5949
5950         GNUmakefile: simplify detection of unconfigured trees
5951         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5952         whether the tree make is being run from is already configured or
5953         not.  Related simplifications.
5954
5955 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5956
5957         * gnulib-tool (func_usage): Document --help and --version.
5958
5959 2012-02-11  Jim Meyering  <meyering@redhat.com>
5960
5961         bootstrap: don't exit 0 upon gnulib-tool failure
5962         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5963         its exit status, not 0.
5964
5965 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5966
5967         README-release: various improvements
5968         * top/README-release: Give a command to push changes for the
5969         release.  Add "distcheck" to list of other pre-release checks.
5970         Fix instance of "make stable" which should be "make TYPE".
5971
5972 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5973
5974         maint: replace FSF snail-mail addresses with URLs
5975         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5976         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5977         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5978         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5979         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5980         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5981         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5982         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5983         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5984         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5985         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5986         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5987         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5988         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5989         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5990         * lib/glthread/thread.c, lib/glthread/thread.h:
5991         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5992         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5993         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5994         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5995         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5996         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5997         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5998         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5999         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6000         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6001         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6002         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6003         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6004         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6005         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6006         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6007         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6008         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6009         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6010         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6011         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6012         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6013         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6014         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6015         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6016         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6017         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6018         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6019         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6020         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6021         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6022         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6023         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6024         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6025         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6026         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6027         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6028         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6029         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6030         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6031         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6032         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6033         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6034         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6035         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6036         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6037         * tests/test-poll.c, tests/test-quotearg-simple.c:
6038         * tests/test-quotearg.c, tests/test-quotearg.h:
6039         * tests/test-round-ieee.c, tests/test-round1.c:
6040         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6041         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6042         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6043         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6044         * tests/test-strerror.c, tests/test-strerror_r.c:
6045         * tests/test-strsignal.c, tests/test-strverscmp.c:
6046         * tests/test-xmemdup0.c:
6047         Replace FSF snail mail addresses with URLs, as per GNU coding
6048         standards.  See glibc bug
6049         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6050
6051 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6052
6053         README-release: capitalize a word and split a line
6054         * top/README-release: Fix punctuation and spacing.
6055
6056 2012-02-08  Akim Demaille  <demaille@gostai.com>
6057
6058         fatal-signal: use C prototypes (with explicit void).
6059         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6060         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6061
6062 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         regex: spelling fix
6065         * lib/regexec.c: spelling fix
6066
6067         regex: rely on stdint.h for SIZE_MAX
6068         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6069
6070 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6071
6072         regex: merge glibc changes
6073
6074         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6075         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6076         (init_word_char): Work even if bitset words are not exactly 32 or
6077         64 bits wide.  Don't assume there are no padding bits.
6078         * lib/regex.c [_LIBC]: Do not include <config.h>.
6079         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6080         and -Wtype-limits.
6081         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6082         needless disagreement with glibc.  All uses changed.  Define it to
6083         1 only if _GNU_SOURCE, to match glibc.
6084         (_REG_RM_NAME): Remove; no longer needed, since the names in
6085         question are now all protected by __USE_GNU.
6086         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6087         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6088         * lib/regex_internal.h (MIN): New macro.
6089
6090         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6091         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6092
6093         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6094         * lib/regex_internal.c (re_string_fetch_byte_case):
6095         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6096         is miscompiled, and it turns out it is because of an incorrect
6097         attribute on re_string_fetch_byte_case.  Unlike
6098         re_string_peek_byte_case, this one is really not pure, it modifies
6099         memory (increments pstr->cur_idx), and with the pure attribute GCC
6100         assumed it doesn't and it cached the presumed value of
6101         regexp->cur_idx in a variable across the
6102          for (;; ++i)
6103            {
6104              if (i >= BRACKET_NAME_BUF_SIZE)
6105                return REG_EBRACK;
6106              if (token->type == OP_OPEN_CHAR_CLASS)
6107                ch = re_string_fetch_byte_case (regexp);
6108              else
6109                ch = re_string_fetch_byte (regexp);
6110              if (re_string_eoi(regexp))
6111                return REG_EBRACK;
6112              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6113                break;
6114              elem->opr.name[i] = ch;
6115            }
6116
6117         2011-11-29 Andreas Schwab <schwab@redhat.com>
6118         * lib/regcomp.c (build_equiv_class):
6119         Fix access after end of search string in regex matcher.
6120
6121         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6122         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6123
6124         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6125         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6126
6127         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6128         * lib/regcomp.c (parse_branch, parse_sub_exp):
6129         More regex memory leak fixes and tests.
6130         (parse_sub_exp, parse_bracket_exp):
6131         Fix memory leak for some invalid regular expressions.
6132
6133         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6134         * lib/regex_internal.c, lib/regexec.c:
6135         Fix unnecessary overallocation due to incomplete character.  When
6136         incomplete characters are found at the end of a string the code
6137         ran amok and allocated lots of memory.  Stricter limits are now in
6138         place.
6139
6140         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6141         * lib/regex.h: Update documentation.
6142
6143         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6144         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6145
6146         2010-05-05 Andreas Schwab <schwab@redhat.com>
6147         * lib/regexec.c (find_collation_sequence_value):
6148         Fix lookup of collation sequence value during regexp matching.
6149
6150         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6151         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6152
6153         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6154         * lib/regex.h: Cleanup namespace.
6155
6156         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6157         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6158
6159         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6160         * lib/regex_internal.h: Prevent some declarations and definitions
6161         to be seen when used in tests.
6162
6163         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6164         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6165         __libc_lock_* macros if not _LIBC.
6166         (struct re_dfa_t): Add lock.
6167
6168 2012-02-07  Eric Blake  <eblake@redhat.com>
6169
6170         maint.mk: also prohibit lower-case @var@
6171         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6172         lower case, like @top_srcdir@.
6173
6174 2012-02-04  Eric Blake  <eblake@redhat.com>
6175
6176         canonicalize: avoid uninitialized memory use
6177         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6178         random '/' left in dest.
6179         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6180
6181 2012-02-04  Bruno Haible  <bruno@clisp.org>
6182
6183         isatty: Fix test failure of ptsname_r on native Windows.
6184         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6185         and don't set errno.
6186         (isatty): Test first whether fd is valid. Set errno when returning 0.
6187
6188 2012-02-04  Bruno Haible  <bruno@clisp.org>
6189
6190         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6191         * tests/test-spawn-pipe-main.c: Include progname.h.
6192         (main): Invoke set_program_name.
6193         * modules/spawn-pipe-tests (Depends-on): Add progname.
6194
6195         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6196         * tests/test-nonblocking-socket-main.c: Include progname.h.
6197         (main): Invoke set_program_name.
6198         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6199
6200         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6201         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6202         (main): Invoke set_program_name.
6203         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6204
6205 2012-02-04  Eric Blake  <eblake@redhat.com>
6206
6207         canonicalize-lgpl: fix // handling
6208         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6209
6210         canonicalize: fix // handling
6211         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6212         /// to //, since only // is special.
6213
6214 2012-02-04  Bruno Haible  <bruno@clisp.org>
6215
6216         ioctl: Fix test failure on native Windows.
6217         * lib/ioctl.c: Include msvc-nothrow.h.
6218         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6219
6220 2012-02-04  Bruno Haible  <bruno@clisp.org>
6221
6222         fsync: Avoid test failure on native Windows.
6223         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6224         read-only.
6225
6226 2012-02-04  Bruno Haible  <bruno@clisp.org>
6227
6228         sys_select: Avoid syntax error on OpenBSD 5.0.
6229         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6230         currently being included, just include the system's <sys/select.h>.
6231
6232 2012-02-04  Bruno Haible  <bruno@clisp.org>
6233
6234         sys_select: Avoid syntax error on OpenBSD 5.0.
6235         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6236         <sys/select.h>, not before.
6237         Reported by Jiri B <jirib@devio.us>.
6238
6239 2012-02-04  Bruno Haible  <bruno@clisp.org>
6240
6241         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6242         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6243         global variables.
6244         * tests/test-get-rusage-data.c (main): Likewise.
6245         Reported by Jim Meyering.
6246
6247 2012-02-04  Bruno Haible  <bruno@clisp.org>
6248
6249         stdioext: Fix last commit.
6250         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6251
6252 2012-02-03  Bruno Haible  <bruno@clisp.org>
6253
6254         stdioext: Add tentative support for Plan9.
6255         * lib/stdio-impl.h: Include <errno.h>.
6256         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6257         * lib/freadable.c (freadable): Likewise.
6258         * lib/fwritable.c (fwritable): Likewise.
6259         * lib/fbufmode.c (fbufmode): Likewise.
6260         * lib/freading.c (freading): Likewise.
6261         * lib/fwriting.c (fwriting): Likewise.
6262         * lib/freadptr.c (freadptr): Likewise.
6263         * lib/freadseek.c (freadptrinc): Likewise.
6264         * lib/freadahead.c (freadahead): Likewise.
6265         * lib/fpurge.c (fpurge): Likewise.
6266         * lib/fseeko.c (rpl_fseeko): Likewise.
6267         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6268         Reported by Jens Staal <staal1978@gmail.com>.
6269
6270 2012-02-02  Jim Meyering  <meyering@redhat.com>
6271
6272         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6273         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6274         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6275         not even to try to add the attribute.  Instead, add a pragma to suppress
6276         the suggestion/warning.
6277
6278 2012-01-31  Karl Berry  <karl@gnu.org>
6279
6280         setstate doc: typo.
6281         * doc/posix-functions/setstate.texi (setstate): { not (.
6282
6283 2012-01-31  Bruno Haible  <bruno@clisp.org>
6284
6285         popen: Make more robust on Windows.
6286         * lib/popen.c: On native Windows, use the _popen based code even if
6287         HAVE_POPEN is set.
6288         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6289         environment variable on native Windows.
6290
6291 2012-01-30  Bruno Haible  <bruno@clisp.org>
6292
6293         pclose: Fix typo.
6294         * lib/stdio.in.h (pclose): Fix typo in warning message.
6295
6296 2012-01-30  Bruno Haible  <bruno@clisp.org>
6297
6298         doc about getlogin_r, setstate.
6299         * doc/posix-functions/getlogin_r.texi: List the incompatible
6300         declaration problem under "not fixed by gnulib".
6301         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6302         problem on Solaris 11 and other platforms.
6303
6304 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6305             Bruno Haible  <bruno@clisp.org>
6306
6307         poll tests: Make test more robust.
6308         * tests/test-poll.c: Include macros.h.
6309         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6310         return value of various I/O operations.
6311         * modules/poll-tests (Files): Add tests/macros.h.
6312
6313 2012-01-30  Bruno Haible  <bruno@clisp.org>
6314
6315         sys_stat: Fix support for mingw64 and MSVC.
6316         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6317         header files already do it.
6318         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6319         stat itself.
6320         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6321
6322 2012-01-30  Bruno Haible  <bruno@clisp.org>
6323
6324         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6326         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6327
6328 2012-01-29  Bruno Haible  <bruno@clisp.org>
6329
6330         quotearg: Fix test failure on MacOS X 10.5.
6331         * tests/test-quotearg-simple.c: Include localcharset.h.
6332         (main): If the locale encoding is not ASCII, bypass the tests of
6333         locale_quoting_style and clocale_quoting_style.
6334         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6335
6336 2012-01-29  Jim Meyering  <meyering@redhat.com>
6337
6338         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6339         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6340         detect uses of canonicalize_file_name.
6341
6342 2012-01-28  Bruno Haible  <bruno@clisp.org>
6343
6344         test-framework-sh: Fix test failure with AIX 7.1 diff.
6345         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6346         in column 1, like 'diff -c' does.
6347         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6348         whether 'diff -u' is used. Instead, test whether the output contains
6349         some '@' character.
6350
6351 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         strtoimax: eliminate need for stdint.h, inttypes.h checks
6354         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6355         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6356         the prerequisites for a recently-introduced strtoimax test.
6357         I guess this might cause strtoimax to be replaced when not
6358         strictly necessary on older hosts, but this shouldn't introduce
6359         any bugs and it should make Emacs 'configure' faster on typical
6360         modern hosts.  Problem discovered when importing the latest gnulib
6361         to an Emacs test version.
6362         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6363
6364 2012-01-28  Bruno Haible  <bruno@clisp.org>
6365
6366         sys_time: Override 'struct timeval' on some native Windows platforms.
6367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6368         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6369         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6370         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6371         needs to be overridden.
6372         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6373         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6374         * tests/test-sys_select.c: Check that the tv_sec member has the same
6375         size as a 'time_t'.
6376         * tests/test-sys_time.c: Likewise.
6377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6378         is set, set also REPLACE_GETTIMEOFDAY.
6379         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6380         convert the resulting 'struct timeval' before returning.
6381         * lib/select.c: Include <sys/time.h>.
6382         (select, timeval): Undefine at the right place.
6383         * modules/select (Depends-on): Add sys_time.
6384         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6385         some Windows platforms.
6386         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6387
6388 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6389
6390         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6391         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6392         an integer.
6393         * lib/fcntl.c (dupfd): Likewise.
6394         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6395
6396 2012-01-28  Bruno Haible  <bruno@clisp.org>
6397
6398         fcntl: Avoid compilation error on native Windows.
6399         * modules/fcntl (Depends-on): Add 'close'.
6400
6401 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6402
6403         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6404         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6405         pointer to an integer.
6406         * lib/poll.c (IsConsoleHandle): Likewise.
6407         * lib/isatty.c (IsConsoleHandle): Likewise.
6408
6409 2012-01-28  Jim Meyering  <meyering@redhat.com>
6410
6411         doc: clarify README-release
6412         * top/README-release: Clarify: you should make a point to have
6413         the latest stable versions of build tools in your PATH, and the
6414         reference to buildreq is solely for its list of tool names, not
6415         for its minimal-functional version numbers.
6416         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6417
6418         maint.mk: use more readable (yet functionally equivalent) quoting
6419         It is common to quote a single quote in a single quoted string like
6420         this:  '...'\''...'.  Unless you know the idiom, that looks like
6421         gibberish, so prefer to double-quote the string when possible.
6422         Then you can use a more readable, lone single quote: "...'..."
6423         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6424         "don't" is more readable than the equivalent 'don'\''t'.
6425         (sc_cast_of_x_alloc_return_value): Likewise.
6426         (sc_cast_of_alloca_return_value): Likewise.
6427         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6428         rather than '\'':'\''.
6429
6430 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6431
6432         stdalign: relax _Alignof and tighten _Alignas test
6433         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6434         as it was too strict: alignof must divide offsetof, but it need
6435         not equal offsetof.  Inspired by Joseph S. Myers's comment
6436         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6437         Conversely, tighten the _Alignas test a bit, as the resulting
6438         alignment must be exactly 8.
6439
6440 2012-01-27  Bruno Haible  <bruno@clisp.org>
6441
6442         stdalign: Document the last change.
6443         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6444
6445 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6446
6447         stdalign: check that alignof and offsetof are consistent
6448         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6449         Problem reported for gnulib by Richard W.M. Jones in
6450         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6451
6452 2012-01-27  Jim Meyering  <meyering@redhat.com>
6453
6454         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6455         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6456         convert a sequence with gaps to the minimal containing range.
6457         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6458         * tests/test-update-copyright.sh: Test for this.
6459         The FSF confirmed it is ok to do this, assuming there is at
6460         least one significant change per year in the affected range:
6461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6462
6463 2012-01-26  Bruno Haible  <bruno@clisp.org>
6464
6465         pipe2: refine doc about thread-safety
6466         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6467         multithread-safety problem.
6468         * doc/glibc-functions/accept4.texi: Likewise.
6469
6470 2012-01-26  Bruno Haible  <bruno@clisp.org>
6471
6472         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6473         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6474         In the test program, include <fcntl.h>, for O_RDONLY.
6475
6476 2012-01-26  Eric Blake  <eblake@redhat.com>
6477
6478         pipe2: document lack of thread-safety in replacement
6479         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6480         issue in replacement.
6481         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6482         Based on a report by Eric Wong.
6483
6484 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6485             Bruno Haible  <bruno@clisp.org>
6486
6487         malloca: Avoid warnings on x86_64 mingw64.
6488         * lib/malloca.c: Include <stdint.h>.
6489         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6490         * modules/malloca (Depends-on): Add stdint.
6491         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6492
6493 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         obstack: remove __STDC__ conditionals
6496         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6497         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6498         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6499         m4/include_next.m4 as the only gnulib-maintained places that still
6500         refer to __STDC__.
6501
6502 2012-01-24  Bruno Haible  <bruno@clisp.org>
6503
6504         havelib: Modern quoting.
6505         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6506         the recent change to the GNU coding standards.
6507
6508 2012-01-24  Bruno Haible  <bruno@clisp.org>
6509
6510         stdint: Improve support for Android.
6511         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6512         Reported by Simon Josefsson <simon@josefsson.org>.
6513
6514 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         doc: omit trailing empty lines from INSTALL etc.
6517         * doc/Makefile (INSTALL): Omit trailing empty lines.
6518         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6519         omit trailing empty lines.  This simplifies the build procedure.
6520
6521 2012-01-23  Jim Meyering  <meyering@redhat.com>
6522
6523         tests: avoid spurious warnings about gl_sockets_startup
6524         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6525         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6526         reporting a "statement with no effect".
6527         * tests/test-accept.c (main): Mark as "(void)".
6528         * tests/test-accept4.c (main): Likewise.
6529         * tests/test-bind.c (main): Likewise.
6530         * tests/test-connect.c (main): Likewise.
6531         * tests/test-getpeername.c (main): Likewise.
6532         * tests/test-getsockname.c (main): Likewise.
6533         * tests/test-getsockopt.c (main): Likewise.
6534         * tests/test-listen.c (main): Likewise.
6535         * tests/test-recv.c (main): Likewise.
6536         * tests/test-recvfrom.c (main): Likewise.
6537         * tests/test-send.c (main): Likewise.
6538         * tests/test-sendto.c (main): Likewise.
6539         * tests/test-setsockopt.c (main): Likewise.
6540         * tests/test-shutdown.c (main): Likewise.
6541
6542 2012-01-21  Bruno Haible  <bruno@clisp.org>
6543
6544         locale-fr.m4: Fix for Android.
6545         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6546         failure of the test program on Bionic libc.
6547
6548 2012-01-21  Jim Meyering  <meyering@redhat.com>
6549
6550         bootstrap: fail when bootstrap_post_import_hook fails
6551         Otherwise, it's far too easy to miss diagnostics emitted
6552         between gnulib-tool's output and that of running configure.
6553         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6554
6555 2012-01-17  Jim Meyering  <meyering@redhat.com>
6556
6557         maint: enable sc_trailing_blank
6558         * build-aux/pmccabe.css: Remove trailing blanks.
6559         * doc/acl-cygwin.txt: Likewise.
6560         * doc/gnu-oids.texi: Likewise
6561         * cfg.mk: Enable sc_trailing_blank.
6562         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6563
6564 2012-01-17  Jim Meyering  <meyering@redhat.com>
6565
6566         maint: enable sc_prohibit_openat_without_use
6567         * cfg.mk: Enable sc_prohibit_openat_without_use.
6568         Exempt lib/selinux-at.c.
6569
6570 2012-01-17  Jim Meyering  <meyering@redhat.com>
6571
6572         maint: enable sc_prohibit_cloexec_without_use
6573         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6574         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6575
6576 2012-01-17  Jim Meyering  <meyering@redhat.com>
6577
6578         maint: enable sc_prohibit_intprops_without_use
6579         * cfg.mk: Enable sc_prohibit_intprops_without_use
6580         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6581
6582 2012-01-17  Jim Meyering  <meyering@redhat.com>
6583
6584         maint: enable sc_prohibit_hash_pjw_without_use
6585         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6586         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6587         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6588         following " (".
6589
6590 2012-01-17  Jim Meyering  <meyering@redhat.com>
6591
6592         maint: enable double-word-prohibiting rule
6593         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6594         Exempt three files.
6595
6596 2012-01-17  Jim Meyering  <meyering@redhat.com>
6597
6598         maint: remove empty lines at EOF, but excluding modules/*
6599         Apply syntax rules at home as well as abroad.  Most changes
6600         were induced by running this:
6601           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6602             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6603             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6604         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6605         Exempt modules/* and two binary files.
6606         Also exempt doc/INSTALL*, per request from Bruno Haible.
6607         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6608         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6609         * doc/Copyright/request-assign.future: Likewise.
6610         * doc/Copyright/request-disclaim.changes: Likewise.
6611         * doc/INSTALL: Likewise.
6612         * doc/INSTALL.ISO: Likewise.
6613         * doc/INSTALL.UTF-8: Likewise.
6614         * doc/acl-cygwin.txt: Likewise.
6615         * doc/acl-resources.txt: Likewise.
6616         * doc/fdl-1.2.texi: Likewise.
6617         * doc/fdl-1.3.texi: Likewise.
6618         * doc/fdl.texi: Likewise.
6619         * lib/argp-pin.c: Likewise.
6620         * lib/round.c: Likewise.
6621         * lib/unicase/u16-totitle.c: Likewise.
6622         * lib/unictype/block_test.c: Likewise.
6623         * lib/uninorm/canonical-decomposition.c: Likewise.
6624         * m4/README: Likewise.
6625         * m4/relocatable-lib.m4: Likewise.
6626         * tests/test-isnand-nolibm.c: Likewise.
6627         * tests/test-isnand.c: Likewise.
6628         * tests/uninorm/NormalizationTest.txt: Likewise.
6629
6630 2012-01-17  Jim Meyering  <meyering@redhat.com>
6631
6632         maint: add framework to run syntax-check rules against gnulib sources
6633         * cfg.mk: New file, to disable all currently-failing tests.
6634         We'll enable them one by one, as they are made to pass.
6635         * Makefile (sc_maint): New rule.
6636
6637 2012-01-21  Bruno Haible  <bruno@clisp.org>
6638
6639         stdint: Add support for Android.
6640         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6641         include the system's <stdint.h>.
6642         Reported by Simon Josefsson <simon@josefsson.org>.
6643
6644 2012-01-19  Jim Meyering  <meyering@redhat.com>
6645
6646         bootstrap: add bootstrap_post_import_hook
6647         Bison does still need something like the gnulib_mk_hook whose
6648         invocation I had to remove along with slurp in commit 767ccd40.
6649         Technically, we could get along without it, but doing so would
6650         have required living with a warning and a mandatory post-bootstrap
6651         automake rerun.
6652         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6653         (bootstrap_post_import_hook): New function.
6654         Invoke it after gnulib-tool --import and before autoreconf.
6655
6656 2012-01-18  Jim Meyering  <meyering@redhat.com>
6657
6658         gitlog-to-changelog: don't use "no_"-prefixed variable name
6659         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6660         to enable both --cluster and --no-cluster.  Change variable name,
6661         s/\$no_cluster/$cluster/, and reverse usage to match.
6662
6663         gitlog-to-changelog: use "||", not "or" in expressions
6664         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6665         expressions.
6666
6667 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6668
6669         gitlog-to-changelog: new option --no-cluster
6670         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6671         clustering of adjacent commit messages.
6672
6673 2012-01-17  Jim Meyering  <meyering@redhat.com>
6674
6675         maint: spell file systems with two words, not one
6676         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6677         two words, not one.
6678
6679 2012-01-16  Jim Meyering  <meyering@redhat.com>
6680
6681         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6682         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6683
6684 2012-01-16  Eric Blake  <eblake@redhat.com>
6685
6686         bootstrap: cater to autoconf 2.59
6687         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6688         is not available.
6689
6690         bootstrap: properly check for libtool
6691         * build-aux/bootstrap (libtoolize): Also run libtool when older
6692         usage is detected.
6693
6694 2012-01-15  Bruno Haible  <bruno@clisp.org>
6695
6696         Improve support for MSVC 9.
6697         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6698         clashes on MSVC.
6699         * lib/fcntl.in.h: Likewise.
6700         * lib/stdlib.in.h: Likewise.
6701         * lib/sys_stat.in.h: Likewise.
6702
6703 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6704
6705         gnupload: we hold the master copy of this script now
6706         For motivation and more information, see:
6707         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6708         * build-aux/gnupload: Make it clear in the heading comments that the
6709         master copy of this file is maintained by gnulib.  Since we are at
6710         it, bump its copyright year and ...
6711         ($scriptversion): ... the date in its version.
6712         ($usage): Patches and bug reports should be sent to the gnulib list,
6713         not the automake one.
6714         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6715         anymore.
6716
6717 2012-01-15  Bruno Haible  <bruno@clisp.org>
6718
6719         Fix module 'random'.
6720         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6721         initstate, setstate are declared.
6722
6723 2012-01-14  Bruno Haible  <bruno@clisp.org>
6724
6725         Tests for module 'random'.
6726         * modules/random-tests: New file.
6727         * tests/test-random.c: New file, based on tests/test-random_r.c.
6728
6729         New module 'random'.
6730         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6731         declarations.
6732         * lib/random.c: New file, based on glibc/stdlib/random.c.
6733         * m4/random.m4: New file.
6734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6735         HAVE_RANDOM.
6736         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6737         * modules/random: New file.
6738         * config/srclist.txt: Add an entry for random.c.
6739         * doc/posix-functions/random.texi: Mention the 'random' module.
6740         * doc/posix-functions/initstate.texi: Likewise.
6741         * doc/posix-functions/setstate.texi: Likewise.
6742         * doc/posix-functions/srandom.texi: Likewise.
6743
6744 2012-01-12  Bruno Haible  <bruno@clisp.org>
6745
6746         random_r: Use common idioms.
6747         * lib/random_r.c: Include <stdlib.h> first.
6748
6749         random_r: Override incompatible API on AIX, OSF/1.
6750         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6751         Override the system function if REPLACE_RANDOM_R is 1.
6752         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6753         and OSF/1, set REPLACE_RANDOM_R.
6754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6755         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6756         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6757         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6758         * doc/glibc-functions/random_r.texi: Likewise.
6759         * doc/glibc-functions/setstate_r.texi: Likewise.
6760
6761         random_r: Support for MSVC 9.
6762         * lib/random_r.c: Include stdint.h, not inttypes.h.
6763
6764 2012-01-12  Eric Blake  <eblake@redhat.com>
6765
6766         inet_ntop: guard extra work by IF_LINT
6767         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6768         better code generation when not checking for warnings.
6769         Suggested by Paul Eggert and Jim Meyering.
6770
6771         strptime: fix regression on mingw
6772         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6773         Fix regression.  Reported by Bruno Haible.
6774
6775 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6776             Bruno Haible  <bruno@clisp.org>
6777
6778         copy-file: add error-code-returning variant.
6779         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6780         (qcopy_file_preserving): New declaration.
6781         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6782         copy_file_preserving. Change return type to 'int'. Don't emit an error
6783         message here.
6784         (copy_file_preserving): New function.
6785         * tests/test-copy-file.c: Include <stdlib.h>.
6786         (main): Test qcopy_file_preserving if the environment variable
6787         NO_STDERR_OUTPUT is set.
6788         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6789         with NO_STDERR_OUTPUT
6790         * tests/test-copy-file-2.sh: Likewise.
6791
6792 2012-01-10  Bruno Haible  <bruno@clisp.org>
6793
6794         copy-file: Use 'quote' module consistently.
6795         * lib/copy-file.c (copy_file_preserving): Use quote().
6796
6797         copy-file: Refactor.
6798         * lib/copy-file.c: Include quote.h.
6799         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6800         message here.
6801         * modules/copy-file (Depends-on): Add quote.
6802
6803         acl: Export qcopy_acl.
6804         * lib/acl.h (qcopy_acl): New declaration.
6805         * lib/copy-acl.c (qcopy_acl): Make non-static.
6806
6807         acl: Rename a local variable.
6808         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6809
6810         acl: Align return values of copy_acl and qcopy_acl.
6811         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6812         maybe < -1.
6813
6814 2012-01-11  Eric Blake  <eblake@redhat.com>
6815
6816         strptime: silence gcc warnings
6817         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6818         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6819         Reported by Daniel P. Berrange.
6820
6821         inet_ntop: silence gcc warning
6822         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6823         Reported by Daniel P. Berrange.
6824
6825 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6826
6827         getloadavg test: skip the test on GNU/Linux without /proc mounted
6828         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6829         file.  When /proc is not mounted, it always fails with ENOENT.
6830         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6831         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6832
6833 2012-01-10  Bruno Haible  <bruno@clisp.org>
6834
6835         regex: Avoid link error on MSVC 9.
6836         * modules/regex (Depends-on): Add wctype.
6837
6838 2012-01-10  Bruno Haible  <bruno@clisp.org>
6839
6840         doc: Mention --with-tests option.
6841         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6842         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6843         --with-tests.
6844         Reported by Reuben Thomas.
6845
6846 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6847
6848         users.txt: order package names lexicographically.
6849         * users.txt: Order package names lexicographically.
6850
6851 2012-01-10  Jim Meyering  <meyering@redhat.com>
6852
6853         maint.mk: fix description in comment
6854         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6855
6856         ignore-value: remove deprecated ignore_ptr function
6857         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6858         * NEWS: Note this.
6859
6860 2012-01-09  Jim Meyering  <meyering@redhat.com>
6861
6862         test-init.sh: avoid a subshell
6863         * tests/test-init.sh: Remove protective subshell.
6864         Suggested by Bernhard Voelker.  While a subshell is normally
6865         required to protect against older shells (Solaris, FreeBSD) that
6866         warn about a missing program before performing redirection, the
6867         shell-selection tests performed by init.sh probably exclude any
6868         offending shell.
6869
6870 2012-01-08  Bruno Haible  <bruno@clisp.org>
6871
6872         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6873         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6874         variable.
6875
6876 2012-01-08  Bruno Haible  <bruno@clisp.org>
6877
6878         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6879         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6881         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6882         macro.
6883         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6885         * lib/spawn_faction_addopen.c: Add workaround implementation if
6886         HAVE_WORKING_POSIX_SPAWN.
6887         * modules/spawn (Makefile): Substitute
6888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6889         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6890         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6892         (Depends-on): Update conditions.
6893         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6894         the Solaris 11 bug.
6895
6896 2012-01-08  Bruno Haible  <bruno@clisp.org>
6897
6898         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6899         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6901         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6902         macro.
6903         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6904         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6905         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6906         HAVE_WORKING_POSIX_SPAWN.
6907         * modules/spawn (Makefile): Substitute
6908         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6909         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6910         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6911         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6912         (Depends-on): Update conditions.
6913         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6914         the Solaris 11 bug.
6915
6916 2012-01-08  Bruno Haible  <bruno@clisp.org>
6917
6918         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6919         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6920         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6922         HAVE_WORKING_POSIX_SPAWN.
6923         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6924         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6925         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6926         * lib/spawn_faction_addclose.c: Add workaround implementation if
6927         HAVE_WORKING_POSIX_SPAWN.
6928         * modules/spawn (Makefile): Substitute
6929         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6930         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6931         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6932         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6933         (Depends-on): Update conditions.
6934         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6935         the Solaris 11 bug.
6936
6937 2012-01-08  Bruno Haible  <bruno@clisp.org>
6938
6939         doc: Update for Solaris 11 2011-11.
6940         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6941         * m4/printf.m4: Update comments.
6942
6943 2012-01-08  Bruno Haible  <bruno@clisp.org>
6944
6945         mktime: Avoid compilation error on Solaris 11.
6946         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6947
6948 2012-01-08  Bruno Haible  <bruno@clisp.org>
6949
6950         doc: Small fix.
6951         * doc/posix-headers/nl_types.texi: Correct platforms list.
6952
6953 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6954
6955         Add lgpl-3.0 module.
6956         * MODULES.html.sh (Support for building documentation): Add
6957         lgpl-3.0.
6958         * modules/lgpl-3.0: New file.
6959
6960 2012-01-08  Jim Meyering  <meyering@redhat.com>
6961
6962         select.c: indent with spaces, not TABs
6963         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6964
6965 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6966
6967         quotearg: do not use grave accent for left quote
6968         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6969         locale_quoting_style.
6970         (quotearg_buffer_restyled): Fix example.
6971         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6972
6973 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6974
6975         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6976         Most programs do not have translation catalogs for English and much
6977         less separate catalogs for British and American English.  Drop the
6978         suggestion to translators about these two, and provide it
6979         automatically for Unicode locales.  Like most programs, even those
6980         using American English, we use single quotation marks.  This conflicts
6981         with the American typographic convention, but works better when you
6982         cite the entire error message within double quotes.  It also tries not
6983         to clash with established practice and with what non-gnulib programs
6984         will usually do.
6985         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6986         using an UTF-8 or GB-18030 locale.  The list of other locales with
6987         quotes was provided by Bruno Haible.
6988         (quotearg_buffer_restyled): Adjust instructions to translators.
6989         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6990         text, since this would be wrong when using Unicode.
6991         * modules/quotearg: Depend on c-strcaseeq.
6992
6993 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6994
6995         quotearg: fix Wikipedia link
6996         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6997
6998 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6999
7000         Fix for mingw with MSVC9.
7001         * m4/ld-version-script.m4: Check that compiler rejects version
7002         scripts with syntax errors.  Reported by Bruno Haible
7003         <bruno@clisp.org>.
7004
7005 2012-01-06  Bruno Haible  <bruno@clisp.org>
7006
7007         Talk about "native Windows API", not "Woe32".
7008         * lib/accept4.c: Update comments to mention native Windows.
7009         * lib/execute.c: Likewise.
7010         * lib/fatal-signal.c: Likewise.
7011         * lib/localcharset.c: Likewise.
7012         * lib/nanosleep.c: Likewise.
7013         * lib/nl_langinfo.c: Likewise.
7014         * lib/pclose.c: Likewise.
7015         * lib/pipe-filter-gi.c: Likewise.
7016         * lib/pipe-filter-ii.c: Likewise.
7017         * lib/pipe.c: Likewise.
7018         * lib/pipe2.c: Likewise.
7019         * lib/popen.c: Likewise.
7020         * lib/progreloc.c: Likewise.
7021         * lib/relocatable.c: Likewise.
7022         * lib/sigaction.c: Likewise.
7023         * lib/sigprocmask.c: Likewise.
7024         * lib/spawn-pipe.h: Likewise.
7025         * lib/spawn-pipe.c: Likewise.
7026         * lib/spawni.c: Likewise.
7027         * lib/stat-time.h: Likewise.
7028         * lib/w32spawn.h: Likewise.
7029         * tests/test-isatty.c: Likewise.
7030         * lib/config.charset: More comments.
7031         * doc/gnulib-intro.texi: Mention native Windows.
7032         * doc/posix-functions/_Exit_C99.texi: Likewise.
7033         * doc/posix-headers/fcntl.texi: Likewise.
7034
7035 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7036
7037         argp: Avoid crash if translator uses % characters in a translation.
7038         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7039         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7040
7041 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         doc: C11 and C++11 are now official
7044         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7045         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7046         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7047         * modules/stdalign:
7048         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7049
7050 2012-01-06  Bruno Haible  <bruno@clisp.org>
7051
7052         uc-is-grapheme-break tests: Tweak.
7053         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7054         message.
7055
7056 2012-01-06  Bruno Haible  <bruno@clisp.org>
7057
7058         test-init.sh: correct the test for diff -u
7059         * tests/test-init.sh: Also redirect stdout to /dev/null.
7060
7061 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         Use ', not `, for quoting output.
7064         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7065         (print_changelog_deltas, get_tool_versions, main program):
7066         * build-aux/git-version-gen:
7067         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7068         * build-aux/move-if-change (help):
7069         * build-aux/useless-if-before-free (usage, main program):
7070         * check-module (parse_module_file, usage)
7071         (find_included_lib_files, check_module):
7072         * lib/argmatch.c (main) [TEST]:
7073         * lib/argp-help.c (_help):
7074         * lib/getopt1.c (main) [TEST]:
7075         * lib/git-merge-changelog.c (usage):
7076         * lib/xstrtol-error.c (xstrtol_error):
7077         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7078         * m4/argz.m4 (gl_FUNC_ARGZ):
7079         * m4/bison.m4 (gl_BISON):
7080         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7081         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7082         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7083         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7084         * m4/gc-random.m4 (gl_GC_RANDOM):
7085         * m4/intl.m4 (gt_CHECK_DECL):
7086         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7087         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7088         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7090         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7091         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7092         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7093         * tests/test-dirname.c (main):
7094         * tests/test-getpass.c (main):
7095         * tests/test-iconvme.c (main):
7096         * tests/test-parse-datetime.c (LOG):
7097         * tests/test-xstrtoimax.sh:
7098         * tests/test-xstrtol.sh:
7099         * tests/test-xstrtoll.sh:
7100         * tests/test-xstrtoumax.sh:
7101         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7102         * top/GNUmakefile (abort-due-to-no-makefile):
7103         Quote 'like this', not `like this', as per the recent change to
7104         the GNU coding standards.
7105
7106 2012-01-05  Bruno Haible  <bruno@clisp.org>
7107
7108         strtoimax: Don't force a replacement on systems where intmax_t is int.
7109         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7110         'intmax_t' is not larger than 'int'.
7111         Reported by Pádraig Brady <P@draigBrady.com>.
7112
7113 2012-01-05  Bruno Haible  <bruno@clisp.org>
7114
7115         doc: Mention NetBSD bugs.
7116         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7117         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7118
7119 2012-01-05  Bruno Haible  <bruno@clisp.org>
7120
7121         strtoumax tests: Enhance tests.
7122         * tests/test-strtoumax.c (main): Add tests for large values.
7123
7124 2012-01-05  Bruno Haible  <bruno@clisp.org>
7125
7126         strtoimax: Work around AIX 5.1 bug.
7127         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7128         definition.
7129         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7130         Set HAVE_STRTOIMAX.
7131         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7132         REPLACE_STRTOIMAX.
7133         * modules/inttypes-incomplete (Makefile.am): Substitute
7134         REPLACE_STRTOIMAX.
7135         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7136         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7137         (Depends-on): Update conditions.
7138         * tests/test-strtoimax.c (main): Add tests for large values.
7139         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7140
7141 2012-01-05  Bruno Haible  <bruno@clisp.org>
7142
7143         inttypes: Modernize.
7144         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7145         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7146         (Makefile.am): Update inttypes.h rule.
7147
7148 2012-01-05  Jim Meyering  <meyering@redhat.com>
7149
7150         init.sh: don't waste a subshell just to redirect stderr
7151         * tests/init.sh: In testing for diff -u and diff -c, use a
7152         stderr-redirecting exec inside `...` rather than a subshell.
7153
7154         test-init.sh: avoid failure on HP-UX 11.00
7155         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7156         resolves to diff -c or cmp.  Reported by Bruno Haible.
7157
7158 2012-01-05  Bruno Haible  <bruno@clisp.org>
7159
7160         Tests for module 'strtoull'.
7161         * modules/strtoull-tests: New file.
7162         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7163
7164 2012-01-05  Bruno Haible  <bruno@clisp.org>
7165
7166         Tests for module 'strtoll'.
7167         * modules/strtoll-tests: New file.
7168         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7169
7170 2012-01-05  Bruno Haible  <bruno@clisp.org>
7171
7172         Tests for module 'strtoul'.
7173         * modules/strtoul-tests: New file.
7174         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7175
7176 2012-01-05  Bruno Haible  <bruno@clisp.org>
7177
7178         Tests for module 'strtol'.
7179         * modules/strtol-tests: New file.
7180         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7181
7182 2012-01-04  Jim Meyering  <meyering@redhat.com>
7183
7184         test-init.sh: accommodate Solaris 5.10's different diff -u output
7185         * tests/test-init.sh: Also exempt @@ lines from the comparison
7186         of diff output, since Solaris 5.10 and GNU diff formats differ.
7187         Reported by Stefano Lattarini.
7188
7189 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7190
7191         test-posixtm: don't assume signed integer wraparound
7192         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7193         after signed integer overflow.  Inspired by (though it may not
7194         fix) Bruno Haible's bug report in
7195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7196
7197         Spell out "Windows 9x" and "Windows XP".
7198         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7199         "Windows 9x" and "WinXP" with "Windows XP".
7200
7201 2012-01-04  Jim Meyering  <meyering@redhat.com>
7202
7203         test-vc-list-files-cvs.sh: remove obsolete comment
7204         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7205         double exit.  Now that's all encapsulated via skip_ and Exit.
7206
7207 2012-01-04  Bruno Haible  <bruno@clisp.org>
7208
7209         Talk about "native Windows API", not "Win32".
7210         * lib/classpath.c: Update comments to mention native Windows.
7211         * lib/csharpexec.c: Likewise.
7212         * lib/dup2.c: Likewise.
7213         * lib/error.c: Likewise.
7214         * lib/fcntl.c: Likewise.
7215         * lib/filename.h: Likewise.
7216         * lib/findprog.c: Likewise.
7217         * lib/get-rusage-as.c: Likewise.
7218         * lib/get-rusage-data.c: Likewise.
7219         * lib/getpagesize.c: Likewise.
7220         * lib/javaexec.c: Likewise.
7221         * lib/msvc-inval.c: Likewise.
7222         * lib/msvc-nothrow.c: Likewise.
7223         * lib/nanosleep.c: Likewise.
7224         * lib/nonblocking.c: Likewise.
7225         * lib/printf-parse.c: Likewise.
7226         * lib/setlocale.c: Likewise.
7227         * lib/sigaction.c: Likewise.
7228         * lib/strerror_r.c: Likewise.
7229         * lib/tmpdir.c: Likewise.
7230         * lib/vasnprintf.c: Likewise.
7231         * lib/w32spawn.h: Likewise.
7232         * lib/waitpid.c: Likewise.
7233         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7234         * m4/locale-ar.m4: Likewise.
7235         * m4/locale-fr.m4: Likewise.
7236         * m4/locale-ja.m4: Likewise.
7237         * m4/locale-tr.m4: Likewise.
7238         * m4/locale-zh.m4: Likewise.
7239         * m4/printf.m4: Likewise.
7240         * tests/test-cloexec.c: Likewise.
7241         * tests/test-copy-acl.sh: Likewise.
7242         * tests/test-copy-file.sh: Likewise.
7243         * tests/test-file-has-acl.sh: Likewise.
7244         * tests/test-set-mode-acl.sh: Likewise.
7245         * tests/test-dup-safer.c: Likewise.
7246         * tests/test-dup2.c: Likewise.
7247         * tests/test-dup3.c: Likewise.
7248         * tests/test-fcntl.c: Likewise.
7249         * tests/test-nonblocking-pipe.h: Likewise.
7250         * tests/test-nonblocking-socket.h: Likewise.
7251         * tests/test-pipe.c: Likewise.
7252         * tests/test-pipe2.c: Likewise.
7253         * tests/test-spawn-pipe-child.c: Likewise.
7254         * doc/acl-resources.txt: Likewise.
7255         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7256         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7257         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7258         * lib/localcharset.c: Update comments to mention native Windows.
7259         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7260         * lib/localename.c: Likewise.
7261         * lib/progreloc.c: Likewise.
7262         * lib/relocatable.c: Likewise.
7263         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7264         (windows_compute_revents): Renamed from win32_compute_revents.
7265         (windows_compute_revents_socket): Renamed from
7266         win32_compute_revents_socket.
7267         * lib/select.c: Update comments to mention native Windows.
7268         (windows_poll_handle): Renamed from win32_poll_handle.
7269         * m4/threadlib.m4: Update comments to mention native Windows.
7270         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7271         --enable-threads=windows instead of --enable-threads=win32. Set
7272         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7273         * lib/glthread/lock.h: Update comments to mention native Windows.
7274         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7275         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7276         USE_WIN32_THREADS.
7277         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7278         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7279         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7280         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7281         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7282         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7283         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7284         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7285         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7286         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7287         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7288         * tests/test-tls.c: Likewise.
7289         Rationale:
7290         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7291         on both 32-bit and 64-bit Windows systems.
7292         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7293         line of distinction is between "native Windows" on one side and Unix/
7294         POSIX systems on the other side. More details in
7295         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7296         Suggested by Paul Eggert.
7297
7298 2012-01-03  Bruno Haible  <bruno@clisp.org>
7299
7300         isatty: Support for MSVC 9.
7301         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7302         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7303         (_isatty_nothrow): New function.
7304         (isatty): Use it instead of _isatty.
7305         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7306         * lib/poll.c (IsConsoleHandle): Likewise.
7307         * lib/select.c (IsConsoleHandle): Likewise.
7308         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7309         (gl_PREREQ_ISATTY): New macro.
7310         * modules/isatty (Depends-on): Add msvc-inval.
7311         (configure.ac): Invoke gl_PREREQ_ISATTY.
7312
7313 2012-01-03  Jim Meyering  <meyering@redhat.com>
7314
7315         maint.mk: remove temporary transition aid from over 1.5 years ago
7316         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7317         purpose was to aid in the transition (avoiding silent malfunction)
7318         from that old name to the new _sc_search_regexp.  This shim was
7319         added by commit 219c504b.
7320
7321         init.sh: do not try to accommodate compare arguments starting with "-"
7322         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7323         compare arguments that start with "-".  Besides, we do not worry
7324         about this when invoking diff or cmp; why start now with sed?
7325         Using "--" to separate options from argument would trigger sed
7326         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7327         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7328
7329 2012-01-02  Bruno Haible  <bruno@clisp.org>
7330
7331         Enhance tests for module 'isatty'.
7332         * modules/isatty-tests (Depends-on): Add pipe-posix.
7333         * tests/test-isatty.c: Include <fcntl.h>.
7334         (DEV_NULL): New macro.
7335         (main): Test the resut of isatty() also on regular files, pipes, and
7336         /dev/null.
7337
7338         New module 'isatty'.
7339         * lib/unistd.in.h (isatty): New declaration.
7340         * lib/isatty.c: New file, based on an idea of
7341         Bastien Roucariès <roucaries.bastien@gmail.com>.
7342         * m4/isatty.m4: New file.
7343         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7344         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7345         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7346         REPLACE_ISATTY.
7347         * modules/isatty: New file.
7348         * doc/posix-functions/isatty.texi: Mention the new module.
7349         Suggested by Paolo Bonzini.
7350
7351 2012-01-02  Bruno Haible  <bruno@clisp.org>
7352
7353         canonicalize: Tweak 2011-12-29 commit.
7354         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7355         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7356
7357 2012-01-02  Jim Meyering  <meyering@redhat.com>
7358
7359         gitlog-to-changelog: describe input syntax in --help output
7360         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7361
7362         gitlog-to-changelog: fix typo in --help: show backslash before email @
7363         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7364         in sources, but not in actual output.
7365
7366 2011-12-30  Jim Meyering  <meyering@redhat.com>
7367
7368         gitlog-to-changelog: don't malfunction when name contains %-directive
7369         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7370         in a name string cause trouble.  E.g., with a user name of "%s",
7371         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7372
7373 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7374
7375         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7376         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7377         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7378         the "  (tiny change)" notation that is appended to the standard
7379         ChangeLog "date  name  email" header line.
7380
7381 2012-01-01  Jim Meyering  <meyering@redhat.com>
7382
7383         test-framework-sh: init.sh: fix "make dist" failure
7384         When using gnulib-tool's --with-tests option and any module that
7385         depends on test-framework-sh, "make dist" would fail due to the
7386         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7387         in the gltests directory, and not in the gllib/ directory.
7388         One way to work around that is to move the EXTRA_DIST += init.sh
7389         from the primary module to the -tests one:
7390         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7391         * modules/test-framework-sh (Makefile.am): ...not here.
7392         Reported by Tom G. Christensen in
7393         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7394
7395         version-etc: update copyright year reported by --version
7396         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7397
7398 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7399
7400         canonicalize: only stat() if required
7401         * lib/canonicalize.c (canonicalize_filename_mode):
7402         Avoid calling l?stat() when both CAN_MISSING,
7403         and CAN_NOLINKS are set, as we neither need
7404         to resolve symlinks or test component existence.
7405
7406 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         doc: cover st_ino issues once; add OpenVMS etc.
7409         * doc/posix-functions/stat.texi (stat):
7410         * doc/posix-functions/lstat.texi (lstat):
7411         * doc/posix-functions/fstatat.texi (fstatat):
7412         * doc/posix-functions/fstat.texi (fstat):
7413         Move general 'struct stat' stuff to sys_stat.texi,
7414         leaving behind a pointer.
7415         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7416         Merge duplicate info about 'struct stat' problems into here.
7417         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7418         and suggest partial workarounds.
7419
7420         same-inode: port to OpenVMS
7421         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7422         three st_ino values.
7423
7424 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7425
7426         canonicalize: fix references to stat() and lstat()
7427         * lib/canonicalize.c (canonicalize_filename_mode):
7428         Ensure references always resolve to a replacement
7429         function if required (even via a macro).
7430
7431 2011-12-30  Jim Meyering  <meyering@redhat.com>
7432
7433         gitlog-to-changelog: remove a little duplication
7434         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7435         rather than twice.
7436
7437 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7438
7439         canonicalize: add support for not resolving symlinks
7440         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7441         indicate we don't want to follow symlinks.  Also
7442         provide CAN_MODE_MASK to aid setting these existing
7443         mutually exclusive values.
7444         * lib/canonicalize.c (canonicalize_filename_mode):
7445         Extract the flags from can_mode parameter, which
7446         are currently just used to select between stat()
7447         and lstat().  Also ensure that mutually exclusive
7448         values are flagged immediately as invalid.
7449         * tests/test-canonicalize.c: Verify symlinks are
7450         not followed, and that invalid flag combinations
7451         are diagnosed.
7452
7453 2011-12-25  Jim Meyering  <meyering@redhat.com>
7454
7455         gitlog-to-changelog: do not clump multi-paragraph entries
7456         Identical header lines (date,name,email+coauthors) are suppressed,
7457         thus putting all entries with those same characteristics under
7458         a single header.  However, when a log entry consists of two or
7459         more paragraphs, it may not be clear where it starts and ends.
7460         This change makes it so that such an entry is always separated
7461         from others by a header line, even when that header would
7462         otherwise be suppressed.
7463         * build-aux/gitlog-to-changelog: Implement the above.
7464         Inspired by a related request from Stefano Lattarini in
7465         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7466
7467 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7468
7469         announce-gen: fix `cmd' typo in diagnostic
7470         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7471         diagnostic: a missing '$' meant that the command was not output.
7472
7473 2011-12-23  Jim Meyering  <meyering@redhat.com>
7474
7475         test-framework-sh: distribute init.sh
7476         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7477         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7478         fail due to the lack of init.sh.
7479
7480         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7481         * modules/atexit-tests: Rather than listing tests/init.sh,
7482         now that there's a module for it, simply depend on that new module.
7483         * modules/closein-tests: Likewise.
7484         * modules/exclude-tests: Likewise.
7485         * modules/getcwd-tests: Likewise.
7486         * modules/perror-tests: Likewise.
7487         * modules/pread-tests: Likewise.
7488         * modules/pwrite-tests: Likewise.
7489         * modules/vc-list-files-tests: Likewise.
7490         * modules/verify-tests: Likewise.
7491         * modules/xalloc-die-tests: Likewise.
7492         * modules/xstrtoimax-tests: Likewise.
7493         * modules/xstrtol-tests: Likewise.
7494         * modules/xstrtoll-tests: Likewise.
7495         * modules/xstrtoumax-tests: Likewise.
7496         * modules/yesno-tests: Likewise.
7497
7498 2011-12-22  Jim Meyering  <meyering@redhat.com>
7499
7500         test-framework-sh: add minimal tests of init.sh's compare function
7501         * modules/test-framework-sh-tests: New file.
7502         * tests/test-init.sh: New file.
7503
7504         test-framework-sh: new module
7505         * modules/test-framework-sh: New file.
7506         * MODULES.html.sh (Support for maintaining and releasing projects):
7507         List it.
7508
7509         init.sh: do not emit simulated diff output to stderr
7510         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7511
7512 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7513
7514         .gitignore: ignore gnulib.dvi and regex.info
7515         * doc/.gitignore:add gnulib.dvi and regex.info
7516
7517 2011-12-22  Jim Meyering  <meyering@redhat.com>
7518
7519         init.sh: correct previous change
7520         * tests/init.sh (compare): My previous change was wrong.
7521         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7522
7523         init.sh: avoid unwarranted test failure when using "set -e"
7524         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7525         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7526         a use like "compare exp out" would get evoke an unconditional failure.
7527
7528 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7529
7530         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7531         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7532         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7533         autoreconf that did not.
7534         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7535         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7536
7537 2011-12-17  Jim Meyering  <meyering@redhat.com>
7538
7539         bootstrap: remove some now-unneeded code
7540         This script arose back when gnulib-tool was young.
7541         Since then, it has seen improvements that render much of this
7542         script unnecessary.  In particular, it can now make symlinks
7543         to the files it uses.  Also, I no longer see as much value in
7544         marking files as read-only via comments.
7545         If you relied on the symlink-creation feature of the preceding
7546         version of this script, you can get most of that functionality
7547         by adding the --symlink option to the definition of
7548         gnulib_tool_option_extras in your bootstrap.conf file.
7549         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7550         Run autopoint and libtoolize *before* gnulib-tool.
7551         After it, run an abbreviated autoreconf, rather than a loop around
7552         all tools.
7553         (slirp, bt_mark_as_generated): Remove functions.
7554
7555 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7556
7557         ftoastr: fix typo
7558         * lib/ftoastr.h: Fix misspelling in comment.
7559
7560 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7561
7562         * top/README-release: fix punctuation.
7563
7564 2011-12-17  Jim Meyering  <meyering@redhat.com>
7565
7566         bootstrap: correct the recent buildreq change
7567         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7568         had no effect.
7569         * build-aux/bootstrap (buildreq): Bracket each search term with
7570         "*...*", so that the shell "case" statement works as intended.
7571         Add comments.
7572
7573 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7574
7575         build: let bootstrap resort to wget when downloading .po files
7576         * build-aux/bootstrap (download_po_files): Fallback to wget when
7577         downloading the .po files via rsync fails.  This is necessary to
7578         bootstrap from behind a strict firewall.
7579
7580 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7581
7582         stdint: don't assume C++11 when compiling with g++
7583         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7585         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7586         work also in C++ before C++11, as that improperly inhibits
7587         generating a substitute stdint.h for that case.
7588
7589 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7590
7591         alloca: protect comment from gnulib-tool
7592         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7593         that gnulib-tool doesn't think it's a license, and munge it to
7594         say "GCC version 3".
7595
7596 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7597
7598         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7599         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7600         $(abs_top_builddir) instead of $(top_builddir).
7601
7602 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7603
7604         strftime-tests: also test nanoseconds
7605         * tests/test-strftime.c (T): Add a test of %N.
7606
7607 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         inttypes, stdint: add C++11 support
7610         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7611         when including inttypes.h and stdint.h.  Support this change to
7612         the standard.
7613         * doc/posix-headers/inttypes.texi (inttypes.h):
7614         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7615         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7616         Define if not defined already, for the benefit of pre-C++11 hosts.
7617         Define the standard format macros (e.g., PRId8) always.
7618         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7619         Likewise, if __cpluspus.  Define the standard constant and limit
7620         macros (e.g., INT8_C, INT8_MAX) always.
7621         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7622         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7623         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7624         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7625         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7626         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7627         Likewise.
7628
7629 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7630
7631         nonblocking tests: Fix test failure on Linux/PPC.
7632         Suggested by Prerna Saxena in
7633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7634         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7635         Set to 1100000.
7636
7637 2011-12-12  Jim Meyering  <meyering@redhat.com>
7638
7639         argmatch: don't hard-code `' when listing valid option arguments
7640         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7641         use the quote function to add quotes.  Use fputs rather than
7642         fprintf for the format string with no format directive.
7643
7644 2011-12-07  Eric Blake  <eblake@redhat.com>
7645
7646         bootstrap: detect tools required by gnulib-tool
7647         * build-aux/bootstrap (buildreq): Provide minimum implicit
7648         dependencies.
7649         * DEPENDENCIES: Mention patch as a prereq.
7650
7651 2011-12-04  Bruno Haible  <bruno@clisp.org>
7652
7653         sethostname: Port to Windows platforms.
7654         * lib/sethostname.c: Provide an alternate implementation for Windows
7655         platforms.
7656         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7657         (main): Skip the test if sethostname() fails with EPERM. On Windows
7658         platforms, don't check the result of gethostname().
7659
7660 2011-12-04  Bruno Haible  <bruno@clisp.org>
7661             Jim Meyering  <meyering@redhat.com>
7662
7663         tests: Avoid spurious error message on platforms without mktemp program.
7664         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7665
7666 2011-12-04  Bruno Haible  <bruno@clisp.org>
7667
7668         sethostname: Fix documentation.
7669         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7670         "not fixed" section.
7671
7672 2011-12-03  Bruno Haible  <bruno@clisp.org>
7673
7674         gnulib-tool: Verify that the License field is present and non-empty.
7675         * gnulib-tool (func_get_license_raw): New function, extracted from
7676         func_get_license.
7677         (func_get_license): Use it. Warn if the module is not a test module and
7678         has no license.
7679         Suggested by Jim Meyering.
7680
7681 2011-12-03  Bruno Haible  <bruno@clisp.org>
7682
7683         sethostname tests: Fix link error on mingw.
7684         * tests/test-sethostname1.c: New file, extracted from
7685         tests/test-sethostname.c.
7686         * tests/test-sethostname2.c: New file, extracted from
7687         tests/test-sethostname.c.
7688         * tests/test-sethostname.c: Remove file.
7689         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7690         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7691         (Depends-on): Add gethostname.
7692         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7693         Link the latter with $(GETHOSTNAME_LIB).
7694
7695         sethostname tests: Fix compilation error on mingw.
7696         * tests/test-sethostname.c: Don't include <sys/types.h>.
7697         (geteuid): Use a dummy value without uid_t.
7698         * modules/sethostname-tests (Depends-on): Remove sys_types.
7699
7700         sethostname tests: Avoid a gcc warning.
7701         * tests/test-sethostname.c (main): Remove an unused variable.
7702
7703         Tweak last commit.
7704         * modules/sethostname-tests (Files): Sort by decreasing importance.
7705         (configure.ac): Check for geteuid.
7706         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7707         the test when there's nothing to test. Drop an unnecessary cast.
7708         Improve an error message. Verify that the final sethostname() call
7709         succeeds.
7710
7711 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7712
7713         Add a test suite for the sethostname module.
7714         * modules/sethostname-tests: New file.  A test program
7715         for the sethostname module.
7716         * tests/test-sethostname.c: Likewise.
7717
7718 2011-12-03  Bruno Haible  <bruno@clisp.org>
7719
7720         Tweak last commit.
7721         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7722         Fix preprocessor directives indentation. Fix typos.
7723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7724         * modules/unistd (Makefile): Likewise.
7725
7726 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7727
7728         Integrate the sethostname module into unistd.
7729         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7730         into the unistd.h header.
7731         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7732         preprocessor directives.
7733         * modules/unistd: Setup the Makefile substitutions of the
7734         SETHOSTNAME preprocessor directives.
7735
7736 2011-12-03  Bruno Haible  <bruno@clisp.org>
7737
7738         Tweak last commit.
7739         * lib/sethostname.c: Don't include <string.h>.
7740         (sethostname): No need to copy the argument string to the stack. Don't
7741         call clearerr. Preserve errno when fprintf failed.
7742         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7743         Don't invoke AC_REPLACE_FUNCS.
7744         * modules/sethostname (Link): Remove empty section.
7745         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7746         failure problem.
7747
7748 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7749
7750         New module 'sethostname'.
7751         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7752         for systems that lack it.
7753         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7754         sethostname declaration and function.
7755         * modules/sethostname: New file.  Define the sethostname module.
7756
7757 2011-12-03  Bruno Haible  <bruno@clisp.org>
7758
7759         Tweak last commit.
7760         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7761
7762 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7763
7764         Split the HOST_NAME_MAX detection into a separate m4 macro.
7765         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7766         macro so it can be used by the pending sethostname module.
7767
7768 2011-12-03  Bruno Haible  <bruno@clisp.org>
7769
7770         Fix module descriptions syntax.
7771         * modules/argv-iter (License): Fix syntax.
7772         * modules/di-set (License): Likewise.
7773         * modules/ino-map (License): Likewise.
7774         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7775
7776 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7777
7778         stdalign: port to Clang 3.0
7779         Problem reported by Simon Josefsson in
7780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7781         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7782         which has <stdalign.h> but which does not define alignof.
7783         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7784
7785 2011-12-01  Eric Blake  <eblake@redhat.com>
7786
7787         mktempd: silence dd usage
7788         * build-aux/mktempd (rand_bytes): Silence dd.
7789
7790 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7791
7792         manywarnings: Don't mention gcc version in docstring.
7793         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7794         Jim Meyering <meyering@redhat.com>.
7795
7796 2011-11-30  Jim Meyering  <meyering@redhat.com>
7797
7798         hash: mark a few floating point constants with "f" suffix
7799         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7800         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7801         floating point constants with "f", since they're destined to be
7802         saved/used as "float"s.
7803
7804 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7805
7806         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7807         * tests/test-float.c (test_long_double): Correct and re-enable the
7808         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7809
7810 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7811
7812         Avoid subtracting two pointers that don't point into the same block.
7813         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7814         only pointers into the same memory block are subtracted. We cannot
7815         assume that sizeof (ptrdiff_t) == sizeof (void *).
7816
7817 2011-11-29  Eric Blake  <eblake@redhat.com>
7818
7819         maint.mk: add syntax check for use of compare from init.sh
7820         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7821         moved here from coreutils.
7822
7823         manywarnings: drop -Wunsuffixed-float-constants
7824         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7825         '1.0D', which is the only way to silence this warning for 'double'.
7826
7827 2011-11-29  Jim Meyering  <meyering@redhat.com>
7828
7829         hash: mark compute_bucket_size with the pure attribute
7830         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7831
7832         quotearg, propername: correct pragma guard expression
7833         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7834         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7835
7836 2011-11-28  Jim Meyering  <meyering@redhat.com>
7837
7838         propername: do not mark proper_name with the const attribute
7839         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7840         since it examines data pointed to by its parameter.
7841         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7842         the suggestion from -Wsuggest-attribute=const.
7843
7844         propername: mark one more function as const
7845         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7846
7847 2011-11-27  Jim Meyering  <meyering@redhat.com>
7848
7849         mark functions with const and pure attributes
7850
7851         Mark functions per suggestions from gcc-4.6 when using these options:
7852         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7853         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7854         Follow these guidelines: when possible, apply the attribute to
7855         an extern declaration, not to its definition.  Apply it to the
7856         definition only when the definition is static.
7857         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7858         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7859         * lib/base64.h (isbase64): Likewise.
7860         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7861         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7862         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7863         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7864         (c_tolower, c_toupper): Likewise.
7865         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7866         * lib/chdir-long.c (find_non_slash): Likewise.
7867         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7868         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7869         * lib/file-type.h (file_type): Likewise.
7870         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7871         * lib/filevercmp.c (verrevcmp): Likewise.
7872         * lib/freadahead.h (freadahead): Likewise.
7873         * lib/fts.c (fts_maxarglen): Likewise.
7874         * lib/hash-pjw.h (hash_pjw): Likewise.
7875         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7876         * lib/hash.c (is_prime, next_prime): Likewise.
7877         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7878         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7879         (hash_table_ok, hash_get_first, hash_string): Likewise.
7880         (compute_bucket_size): Likewise.
7881         * lib/i-ring.h (i_ring_empty): Likewise.
7882         * lib/isnan.c (isnanl): Likewise.
7883         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7884         * lib/memcasecmp.h (memcasecmp): Likewise.
7885         * lib/memchr2.h (memchr2): Likewise.
7886         * lib/memcmp2.h (memcmp2): Likewise.
7887         * lib/parse-datetime.y (lookup_zone): Likewise.
7888         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7889         [!WINDOWS_SOCKETS]: Likewise.
7890         * lib/strnlen1.h (strnlen1): Likewise.
7891         * lib/uniwidth.in.h (uc_width): Likewise.
7892         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7893         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7894         (quoting_options_from_style): Add a comment.
7895         * lib/propername.h (proper_name): Add a comment.
7896
7897 2011-11-27  Bruno Haible  <bruno@clisp.org>
7898
7899         Remove unused macros from !_LIBC code in glibc-borrowed files.
7900         * lib/fnmatch.c (STRCOLL): Remove macro.
7901         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7902         * lib/glob.c (__stat, __readdir64): Remove macros.
7903         * lib/tempname.c (__open64, __xstat64): Remove macros.
7904         Suggested by Paul Eggert.
7905
7906 2011-11-27  Bruno Haible  <bruno@clisp.org>
7907
7908         getcwd: Fix link error on MSVC 9.
7909         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7910
7911 2011-11-27  Bruno Haible  <bruno@clisp.org>
7912
7913         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7914         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7915         HAVE_OPENDIR is 0.
7916         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7917         HAVE_CLOSEDIR is 0.
7918         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7919         is 0.
7920         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7921
7922 2011-11-27  Bruno Haible  <bruno@clisp.org>
7923
7924         getcwd: Fix bug from 2011-08-17.
7925         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7926         platforms that need it.
7927         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7928         code of 4 to be a failure, not a success. This ensures that
7929         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7930
7931 2011-11-27  Bruno Haible  <bruno@clisp.org>
7932
7933         binary-io tests: Avoid test failure on mingw when libtool is used.
7934         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7935         Don't verify the size of t-bin-out1.tmp here.
7936         * tests/test-binary-io.sh: Verify it here.
7937         Reported by Simon Josefsson.
7938
7939 2011-11-26  Bruno Haible  <bruno@clisp.org>
7940
7941         Fix conflict between two instantiations of module 'unistd'.
7942         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7943         ${include_guard_prefix} also in the autoconf snippet.
7944         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7946         GNULIB_UNISTD_H_GETOPT.
7947         * modules/getopt-posix (configure.ac): Set the
7948         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7949         * modules/getopt-gnu (configure.ac): Likewise.
7950         * modules/unistd (Makefile.am): Change the substitution value of
7951         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7952         Reported by Simon Josefsson.
7953
7954 2011-11-25  Bruno Haible  <bruno@clisp.org>
7955
7956         pagealign_alloc: Doc and comments.
7957         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7958         module.
7959         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7960
7961 2011-11-25  Jim Meyering  <meyering@redhat.com>
7962
7963         test-update-copyright.sh: avoid false-positive failure
7964         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7965         around false positive failure on Cygwin/Windows.  The latter was
7966         matching erroneously-created files with names like
7967         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7968
7969 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7970
7971         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7972         * m4/valgrind-tests.m4: Check that the parameters that will be
7973         used works, not just a subset of them.  Reported by Bruno Haible
7974         <bruno@clisp.org>.
7975
7976 2011-11-24  Jim Meyering  <meyering@redhat.com>
7977
7978         test-stdalign.c: comment out long double tests
7979         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7980         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7981         error: '_Alignas' specifiers cannot reduce alignment of \
7982         'static_longdouble_alignas'.
7983
7984 2011-11-22  Jim Meyering  <meyering@redhat.com>
7985
7986         init.sh: make "compare /dev/null FILE" output more readable
7987         * tests/init.sh (compare_): Document the preferred order of arguments.
7988         (emit_diff_u_header_): New function.
7989         (compare_dev_null_): Emit a simulated diff, rather than just the
7990         contents of the unexpected file.  Suggestion from Bruno Haible.
7991
7992 2011-11-21  Jim Meyering  <meyering@redhat.com>
7993             Eric Blake  <eblake@redhat.com>
7994
7995         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7996         * tests/init.sh: Make our compare function slightly more portable.
7997         Reported by Bruno Haible in
7998         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7999
8000 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8001
8002         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8003         before using it, in code that ends up in config.h.
8004
8005 2011-11-20  Bruno Haible  <bruno@clisp.org>
8006
8007         getcwd: Work around getcwd bug on AIX 5..7.
8008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8009         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8010         Use a different value for gl_cv_func_getcwd_path_max. Move the
8011         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8012         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8013         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8014         Define HAVE_MINIMALLY_WORKING_GETCWD.
8015         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8016         where it is not even minimally working, that is, on AIX.
8017         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8018         m4/getcwd-path-max.m4.
8019         (main): Update exit code computation.
8020         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8021         getcwd does not handle long file names.
8022
8023 2011-11-20  Bruno Haible  <bruno@clisp.org>
8024
8025         getcwd: Fix bug from 2009-09-10.
8026         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8027         like "no".
8028
8029 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8030
8031         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8032
8033 2011-11-20  Bruno Haible  <bruno@clisp.org>
8034
8035         fma tests: Avoid shadowing local variables.
8036         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8037         expected.
8038
8039 2011-11-20  Bruno Haible  <bruno@clisp.org>
8040
8041         copysignf tests: Fix.
8042         * tests/test-copysignf.c: Fix signature check.
8043
8044 2011-11-20  Bruno Haible  <bruno@clisp.org>
8045
8046         fma: Remove unused code.
8047         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8048         unused macros.
8049
8050 2011-11-20  Bruno Haible  <bruno@clisp.org>
8051
8052         sethostname: Fix doc about AIX.
8053         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8054         sethostname; it has it.
8055
8056         sethostname: Mention more portability problems.
8057         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8058         problem.
8059         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8060
8061 2011-11-19  Bruno Haible  <bruno@clisp.org>
8062
8063         Depend on module fcntl-h when AT_FDCWD is used.
8064         * modules/utimens (Depends-on): Add fcntl-h.
8065         * modules/areadlinkat (Depends-on): Likewise.
8066         * modules/areadlinkat-with-size (Depends-on): Likewise.
8067         * modules/faccessat (Depends-on): Likewise.
8068         * modules/fchmodat (Depends-on): Likewise.
8069         * modules/fchownat (Depends-on): Likewise.
8070         * modules/getcwd (Depends-on): Likewise.
8071         * modules/mkdirat (Depends-on): Likewise.
8072         * modules/mkfifoat (Depends-on): Likewise.
8073         * modules/readlinkat (Depends-on): Likewise.
8074         * modules/symlinkat (Depends-on): Likewise.
8075         * modules/dup2-tests (Depends-on): Likewise.
8076         * modules/fdutimensat-tests (Depends-on): Likewise.
8077         * modules/futimens-tests (Depends-on): Likewise.
8078
8079 2011-11-19  Bruno Haible  <bruno@clisp.org>
8080
8081         euidaccess: Update a comment.
8082         * lib/euidaccess.c: Update comment about platforms with faccessat.
8083
8084 2011-11-19  Bruno Haible  <bruno@clisp.org>
8085
8086         openat: Fix file list.
8087         * modules/openat (Files): Remove lib/at-func.c.
8088
8089 2011-11-19  Bruno Haible  <bruno@clisp.org>
8090
8091         fstatat: Simplify.
8092         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8093         gnulib should define rpl_fstatat, there is a
8094         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8095
8096 2011-11-19  Bruno Haible  <bruno@clisp.org>
8097
8098         Ensure 'inline' can be used in tests/test-utimens-common.h.
8099         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8100         * modules/futimens-tests (configure.ac): Likewise.
8101         * modules/utimens-tests (configure.ac): Likewise.
8102         * modules/utimensat-tests (configure.ac): Likewise.
8103
8104 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8105
8106         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8107         not hash_insert0.
8108         (hash_insert_if_absent): Doc fix.
8109
8110 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8111
8112         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8113
8114 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8115
8116         test-getcwd: disambiguate exit status
8117         * tests/test-getcwd.c (test_long_name): Return 0..7.
8118         (main): Exit with an unambiguous exit status.  The old
8119         code yielded a mysterious mixture of two failure codes.
8120
8121         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8122         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8123         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8124         rpl_fstatat or fstatat.  This should fix the other problem
8125         reported by Kai Habel in
8126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8127         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8129         and I reproduced it on a Solaris 8 host we still have in production.
8130
8131 2011-11-18  Jim Meyering  <meyering@redhat.com>
8132
8133         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8134         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8135         Add a sentence to the comment.
8136         (hash_insert0): New function that simply calls hash_insert_if_absent.
8137         * lib/hash.h (hash_insert_if_absent): Declare it.
8138         (hash_insert0): Add deprecation attribute.
8139         (_GL_ATTRIBUTE_DEPRECATED): Define.
8140         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8141         not hash_insert0.
8142         * NEWS: Mention it, even though it's not really an incompatible change.
8143
8144 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8145
8146         openat: avoid compilation failure due to lack of <errno.h> inclusion
8147         * lib/openat.c: Include <errno.h>.
8148
8149 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8150
8151         * modules/getcwd (Depends-on): Add fdopendir.
8152         This fixes one of the two problems reported by Kai Habel in
8153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8154
8155         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8156         stdalign problem reported by Ian Beckwith in
8157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8158         * modules/crypto/gc-arcfour (Depends-on):
8159         Depend conditionally on crypto/arcfour.
8160         * modules/crypto/gc-arctwo (Depends-on):
8161         Depend conditionally on crypto/arctwo.
8162         * modules/crypto/gc-des (Depends-on):
8163         Depend conditionally on crypto/des.
8164         * modules/crypto/gc-hmac-md5 (Depends-on):
8165         Depend conditionally on crypto/hmac-md5.
8166         * modules/crypto/gc-hmac-sha1 (Depends-on):
8167         Depend conditionally on crypto/hmac-sha1.
8168         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8169         * modules/crypto/gc-md4 (Depends-on):
8170         Depend conditionally on crypto/md4.
8171         * modules/crypto/gc-md5 (Depends-on):
8172         Depend conditionally on crypto/md5.
8173         * modules/crypto/gc-rijndael (Depends-on):
8174         Depend conditionally on crypto/rijndael.
8175         * modules/crypto/gc-sha1 (Depends-on):
8176         Depend conditionally on crypto/sha1.
8177         * modules/crypto/gc-arcfour:
8178         * modules/crypto/gc-arctwo:
8179         * modules/crypto/gc-des:
8180         * modules/crypto/gc-hmac-md5:
8181         * modules/crypto/gc-hmac-sha1:
8182         * modules/crypto/gc-md2:
8183         * modules/crypto/gc-md4:
8184         * modules/crypto/gc-md5:
8185         * modules/crypto/gc-rijndael:
8186         * modules/crypto/gc-sha1:
8187         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8188         now that the conditional dependencies do the work for us.
8189
8190 2011-11-17  Jim Meyering  <meyering@redhat.com>
8191
8192         tests: factor st_ctime-comparison out of two headers
8193         * tests/test-utimens-common.h (ctime_compare): Define.
8194         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8195         * tests/test-lutimens.h (test_lutimens): Likewise.
8196         * tests/test-utimens.h (test_utimens): Likewise.
8197
8198         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8199         Invoke the test program via an init.sh-using wrapper.
8200         * tests/test-getcwd.sh: New file.
8201         * modules/getcwd-tests (Files): Add it.
8202         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8203
8204 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8205
8206         gitlog-to-changelog: support multi-author commits.
8207         The FSF cares about keeping track of all authors of patches to its
8208         projects, but Git doesn't provide obvious support for multi-author
8209         changesets. Consensus seems to be forming around the use of extra
8210         Signed-off-by inspired lines in the log message formatted as
8211         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8212         multi-author commits between version control systems.
8213         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8214         log message and output in standard ChangeLog multi-author format.
8215         Reported by Peter Rosin <peda@lysator.liu.se>
8216
8217 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8218             Bruno Haible  <bruno@clisp.org>
8219
8220         Fix some modules' file list.
8221         * modules/fstatat (Files): Add m4/lstat.m4.
8222         * modules/openat (Files): Likewise.
8223         * modules/unlinkat (Files): Likewise.
8224
8225 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8226
8227         maint.mk: fix tight-scope.mk generation in VPATH builds.
8228         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8229         reference with $(srcdir) so that the file is found correctly even
8230         when running `make syntax-check' in a VPATH build.
8231
8232 2011-11-13  Bruno Haible  <bruno@clisp.org>
8233             Jim Meyering  <meyering@redhat.com>
8234
8235         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8236         * tests/init.sh (compare): Remove "No differences encountered" or
8237         synonymous output from the 'diff' program.
8238
8239 2011-11-13  Bruno Haible  <bruno@clisp.org>
8240
8241         Makefile: Tweak indentation.
8242         * Makefile: Use tab as first character in every line that contains rule
8243         commands.
8244
8245 2011-11-13  Bruno Haible  <bruno@clisp.org>
8246
8247         Syntax check for copyright statements.
8248         * check-copyright: New file.
8249         * Makefile (sc_check_copyright): New rule.
8250
8251 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8252
8253         * build-aux/git-version-gen: Add --prefix to configure the tag
8254         match string.
8255
8256 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8257
8258         * build-aux/git-version-gen: Add --help and --version.
8259
8260 2011-11-12  Jim Meyering  <meyering@redhat.com>
8261
8262         revamp the other test-exclude?.sh scripts to use init.sh, too
8263         * tests/test-exclude1.sh: Use init.sh.
8264         * tests/test-exclude2.sh: Likewise.
8265         * tests/test-exclude3.sh: Likewise.
8266         * tests/test-exclude4.sh: Likewise.
8267         * tests/test-exclude5.sh: Likewise.
8268         * tests/test-exclude6.sh: Likewise.
8269         * tests/test-exclude7.sh: Likewise.
8270         * tests/test-exclude8.sh: Likewise.
8271         * modules/exclude-tests (Files): List init.sh.
8272
8273         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8274         These shell scripts ignored failure of the binary test-exclude,
8275         so making the latter return 77 didn't cause them to be skipped.
8276         * tests/test-exclude5.sh: Exit with test-exclude's error status
8277         when that program fails.  Revamp to use init.sh.
8278         * tests/test-exclude2.sh: Likewise.
8279
8280         test-exclude: fix a typo
8281         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8282
8283 2011-11-11  Bruno Haible  <bruno@clisp.org>
8284
8285         obstack: Fix compilation error on MSVC 9.
8286         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8287
8288 2011-11-11  Jim Meyering  <meyering@redhat.com>
8289
8290         test-exclude: skip tests rather than failing on deficient systems
8291         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8292         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8293         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8294         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8295
8296 2011-11-10  Bruno Haible  <bruno@clisp.org>
8297
8298         ptsname_r test: Avoid gcc warning on glibc systems.
8299         * tests/test-ptsname_r.c (null_ptr): New function.
8300         (test_errors): Use it.
8301
8302 2011-11-10  Bruno Haible  <bruno@clisp.org>
8303
8304         ptsname_r: Avoid compilation error on OSF/1 5.1.
8305         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8307         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8308         function is not declared or incompatibly declared.
8309         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8310         * modules/ptsname_r (Depends-on, configure.ac): Update.
8311         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8312
8313 2011-11-10  Bruno Haible  <bruno@clisp.org>
8314
8315         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8316         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8317         When cross-compiling, guess yes on all platforms except AIX.
8318         Reported by Ludovic Courtès <ludo@gnu.org>.
8319
8320 2011-11-09  Bruno Haible  <bruno@clisp.org>
8321
8322         ptsname_r tests: Fix bugs.
8323         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8324         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8325
8326 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8327
8328         fstatat: work with cross-compilation
8329         Problem reported by Ludovic Courtès in
8330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8331         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8332         "cross-compiling" and assume the bug is present.  Replace
8333         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8334         an inverted sense, to be more conservative about our assumptions.
8335         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8336
8337 2011-11-09  Bruno Haible  <bruno@clisp.org>
8338
8339         Improve MODULES.html output.
8340         * modules/mkfifoat (Description): Use the word "function".
8341         * modules/readlinkat (Description): Likewise.
8342         * modules/symlinkat (Description): Likewise.
8343
8344 2011-11-09  Eric Blake  <eblake@redhat.com>
8345
8346         ptsname_r-tests: new test module
8347         * modules/ptsname_r-tests: New module.
8348         * tests/test-ptsname_r.c: New file.
8349
8350         ptsname_r: new module
8351         * modules/ptsname_r: New module.
8352         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8353         * lib/ptsname.c (__ptsname_r): Split...
8354         * lib/ptsname_r.c: ...into new file.
8355         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8356         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8357         * modules/stdlib (Makefile.am): Substitute witnesses.
8358         * lib/stdlib.in.h (ptsname_r): Declare it.
8359         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8360         * MODULES.html.sh (Misc): Likewise.
8361         * modules/ptsname (Depends-on): Alter dependency.
8362         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8363
8364 2011-11-09  Jim Meyering  <meyering@redhat.com>
8365
8366         announce-gen: be more concise when there's only one URL+tarball
8367         * build-aux/announce-gen (get_tool_versions): When you distribute
8368         only one type of tarball, combine the first two "Here are..."
8369         sections and make the key-checking grammar independent of
8370         how many tarballs there are.
8371
8372 2011-11-09  Eric Blake  <eblake@redhat.com>
8373
8374         openpty: provide a stub on mingw
8375         * lib/pty.in.h (includes): Provide forward declarations.
8376         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8377
8378         raise: fix mingw handling of SIGPIPE
8379         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8380
8381 2011-11-08  Bruno Haible  <bruno@clisp.org>
8382
8383         More conditional dependencies.
8384         * modules/faccessat (Depends-on): Add conditions.
8385         * modules/fchmodat (Depends-on): Likewise.
8386         * modules/fchownat (Depends-on): Likewise.
8387         * modules/fstatat (Depends-on): Likewise.
8388         * modules/mkfifoat (Depends-on): Likewise.
8389         * modules/readlinkat (Depends-on): Likewise.
8390         * modules/symlinkat (Depends-on): Likewise.
8391         * modules/unlinkat (Depends-on): Likewise.
8392         * modules/utimensat (Depends-on): Likewise.
8393         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8394         * modules/linkat (Depends-on): Refine the conditions.
8395         * modules/renameat (Depends-on): Likewise.
8396
8397 2011-11-08  Bruno Haible  <bruno@clisp.org>
8398
8399         faccessat: Move AC_LIBOBJ invocation to module description.
8400         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8401         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8402         invocation from here...
8403         * modules/faccessat (configure.ac): ... to here. Invoke
8404         gl_PREREQ_FACCESSAT.
8405
8406 2011-11-08  Bruno Haible  <bruno@clisp.org>
8407
8408         faccessat: Simplify autoconf macro.
8409         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8410         gl_FUNC_EUIDACCESS.
8411
8412 2011-11-08  Bruno Haible  <bruno@clisp.org>
8413
8414         renameat: Fix dependencies.
8415         * modules/renameat (Depends-on): Add stdbool.
8416
8417 2011-11-08  Bruno Haible  <bruno@clisp.org>
8418
8419         mkfifoat: Fix module description.
8420         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8421         not gl_UNISTD_MODULE_INDICATOR.
8422
8423 2011-11-08  Bruno Haible  <bruno@clisp.org>
8424
8425         fstatat: Remove unused dependency.
8426         * modules/fstatat (Depends-on): Remove fstat.
8427
8428 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8429
8430         GNUmakefile: behave when Makefile is missing.
8431         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8432
8433 2011-11-08  Bruno Haible  <bruno@clisp.org>
8434
8435         openat: Conditionalize dependencies.
8436         * lib/openat.c: Reduce the scope of some #includes.
8437         * modules/openat (Depends-on): Add conditions.
8438
8439 2011-11-07  Jim Meyering  <meyering@redhat.com>
8440
8441         maint.mk: extract GPG key ID without using a temporary file
8442         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8443         without using a temporary file.  Based on a suggestion from Werner Koch
8444         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8445
8446 2011-11-07  Eric Blake  <eblake@redhat.com>
8447
8448         grantpt: fix typo
8449         * lib/stdlib.in.h (grantpt): Check correct function.
8450
8451         maint.mk: silence new syntax check
8452         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8453
8454 2011-11-06  Bruno Haible  <bruno@clisp.org>
8455
8456         Doc about floating-point and math API.
8457         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8458         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8459
8460 2011-11-06  Bruno Haible  <bruno@clisp.org>
8461
8462         stdalign tests: Skip the test when compiled by Sun C.
8463         * tests/test-stdalign.c (main): Skip the test on Sun C.
8464
8465 2011-11-06  Bruno Haible  <bruno@clisp.org>
8466
8467         ansi-c++-opt: Complete the 2011-06-05 change.
8468         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8469         does not support namespaces, set the variable to "no", not to ":".
8470
8471 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8472
8473         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8474
8475 2011-11-06  Bruno Haible  <bruno@clisp.org>
8476
8477         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8478         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8479         (minus_zerol) [HP-UX]: New macro.
8480         (unary_minus) [HP-UX]: New function.
8481         (copysignl) [HP-UX]: Use unary_minus function.
8482
8483 2011-11-06  Bruno Haible  <bruno@clisp.org>
8484
8485         ldexp, ldexpf, ldexpl: Enhance tests.
8486         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8487         and tests/test-ldexpl.c.
8488         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8489         LDEXP, MIN_EXP, MAX_EXP): New macros.
8490         Include test-ldexp.h.
8491         (main): Just call test_function.
8492         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8493         infinity.h, nan.h.
8494         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8495         MAX_EXP): New macros.
8496         Include test-ldexp.h.
8497         (x, y): Remove variables.
8498         (main): Just call test_function.
8499         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8500         infinity.h, nan.h.
8501         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8502         MAX_EXP): New macros.
8503         Include test-ldexp.h.
8504         (x, y): Remove variables.
8505         (main): Just call test_function.
8506         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8507         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8508         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8509         (Depends-on): Add isnand-nolibm, signbit, float.
8510         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8511         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8512         (Depends-on): Add isnanf-nolibm, signbit, float.
8513
8514 2011-11-06  Bruno Haible  <bruno@clisp.org>
8515
8516         math tests: Cosmetics.
8517         * tests/test-math-c++.cc: Reorder declarations.
8518
8519 2011-11-05  Bruno Haible  <bruno@clisp.org>
8520
8521         fma*: Simplify test.
8522         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8523         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8524
8525         Tests for module 'fmal'.
8526         * modules/fmal-tests: New file.
8527         * tests/test-fmal1.c: New file.
8528         * tests/test-fmal2.c: New file.
8529
8530         New module 'fmal'.
8531         * lib/math.in.h (fmal): New declaration.
8532         * lib/fmal.c: New file.
8533         * m4/fmal.m4: New file.
8534         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8536         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8537         REPLACE_FMAL.
8538         * modules/fmal: New file.
8539         * doc/posix-functions/fmal.texi: Mention the new module and the various
8540         bugs.
8541
8542         Tests for module 'fmaf'.
8543         * modules/fmaf-tests: New file.
8544         * tests/test-fmaf1.c: New file.
8545         * tests/test-fmaf2.c: New file.
8546
8547         New module 'fmaf'.
8548         * lib/math.in.h (fmaf): New declaration.
8549         * lib/fmaf.c: New file.
8550         * m4/fmaf.m4: New file.
8551         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8553         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8554         REPLACE_FMAF.
8555         * modules/fmaf: New file.
8556         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8557         bugs.
8558
8559         Tests for module 'fma'.
8560         * modules/fma-tests: New file.
8561         * tests/test-fma1.c: New file.
8562         * tests/test-fma1.h: New file.
8563         * tests/test-fma2.c: New file.
8564         * tests/test-fma2.h: New file.
8565
8566         New module 'fma'.
8567         * lib/math.in.h (fma): New declaration.
8568         * lib/fma.c: New file.
8569         * m4/fma.m4: New file.
8570         * m4/fegetround.m4: New file.
8571         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8573         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8574         REPLACE_FMA.
8575         * modules/fma: New file.
8576         * doc/posix-functions/fma.texi: Mention the new module and the various
8577         bugs.
8578
8579         Extend gl_MATHFUNC.
8580         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8581         Support 'void' as argument type.
8582         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8583
8584 2011-11-05  Jim Meyering  <meyering@redhat.com>
8585
8586         maint.mk: also prohibit inclusion of dirent.h without use
8587         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8588
8589 2011-11-05  Bruno Haible  <bruno@clisp.org>
8590
8591         ldexpl tests: Avoid test failure on MSVC 9.
8592         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8593         value. Needed in order to enforce the conversion from a value greater
8594         than LDBL_MAX to Infinity.
8595
8596 2011-11-05  Bruno Haible  <bruno@clisp.org>
8597
8598         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8599         * modules/at-internal: New file, extracted from modules/openat.
8600         * modules/openat-h: New file.
8601         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8602         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8603         * modules/openat (Description): Add reference to POSIX function.
8604         (Files): Remove lib/openat.h, lib/openat-proc.c.
8605         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8606         intprops, unistd.
8607         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8608         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8609         gl_FCNTL_MODULE_INDICATOR.
8610         (Include): Remove unistd.h, openat.h.
8611         * modules/areadlinkat (Files): Add lib/at-func.c.
8612         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8613         openat-die, openat-h, save-cwd.
8614         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8615         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8616         openat-die, openat-h, save-cwd, unistd.
8617         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8618         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8619         openat-h, save-cwd. Remove fcntl-h, openat.
8620         * modules/fchmodat (Files): Remove lib/openat.h.
8621         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8622         openat, stdbool, unistd.
8623         * modules/fchownat (Files): Remove lib/openat.h.
8624         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8625         openat, stdbool, sys_stat.
8626         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8627         lib/openat-proc.c.
8628         (Depends-on): Add at-internal.
8629         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8630         * modules/fstatat (Files): Remove lib/openat.h.
8631         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8632         stdbool, unistd.
8633         * modules/fts (Depends-on): Add openat-h.
8634         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8635         openat.
8636         * modules/mkdirat (Files): Remove lib/openat.h.
8637         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8638         openat, stdbool, sys_stat.
8639         * modules/mkfifoat (Files): Add lib/at-func.c.
8640         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8641         openat-h, save-cwd. Remove fcntl-h, openat.
8642         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8643         * modules/readlinkat (Files): Add lib/at-func.c.
8644         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8645         openat-h, save-cwd. Remove fcntl-h, openat.
8646         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8647         openat.
8648         * modules/selinux-at (Files): Add lib/at-func.c.
8649         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8650         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8651         * modules/symlinkat (Files): Add lib/at-func.c.
8652         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8653         openat-h, save-cwd. Remove fcntl-h, openat.
8654         * modules/unlinkat (Files): Remove lib/openat.h.
8655         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8656         stdbool.
8657         * modules/utimensat (Files): Add lib/at-func.c.
8658         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8659         openat-die, openat-h, save-cwd.
8660         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8661         * modules/fdutimensat-tests (Depends-on): Add openat.
8662         * modules/fstatat-tests (Depends-on): Add openat-h.
8663         * modules/readlinkat-tests (Depends-on): Add openat.
8664         * modules/symlinkat-tests (Depends-on): Add openat.
8665
8666 2011-11-05  Bruno Haible  <bruno@clisp.org>
8667
8668         openat: Include <stdbool.h>.
8669         * lib/openat.c: Include <stdbool.h>.
8670
8671 2011-11-04  Bruno Haible  <bruno@clisp.org>
8672
8673         fchownat, renameat, unlinkat: Fix dependencies.
8674         * modules/fchownat (Depends-on): Add fstatat.
8675         * modules/renameat (Depends-on): Likewise.
8676         * modules/unlinkat (Depends-on): Likewise.
8677
8678 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8679
8680         openat: remove direct dependency on dirent
8681         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8682         and hasn't been needed ever since fdopendir was split into its own
8683         module on 2009-08-31.
8684         * modules/openat (Depends-on): Remove dirent.
8685
8686 2011-11-04  Bruno Haible  <bruno@clisp.org>
8687
8688         renameat: Optimize code size.
8689         * modules/renameat (configure.ac): Don't compile at-func2.c if
8690         REPLACE_RENAMEAT is 1.
8691
8692 2011-11-04  Bruno Haible  <bruno@clisp.org>
8693
8694         openat tests: Fix file list.
8695         * modules/openat-tests (Files): Add tests/test-open.h.
8696
8697 2011-11-04  Bruno Haible  <bruno@clisp.org>
8698
8699         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8700         * modules/fchmodat (Depends-on): Add openat-die.
8701         * modules/fchownat (Depends-on): Likewise.
8702         * modules/linkat (Depends-on): Likewise.
8703         * modules/renameat (Depends-on): Likewise.
8704         * modules/openat (Depends-on): Add dirent.
8705
8706 2011-11-04  Jim Meyering  <meyering@redhat.com>
8707
8708         at-func*.c: fix comments
8709         * lib/at-func2.c: Correct/improve first-line comment.
8710         * lib/at-func.c: Correct grammar in first-line comment.
8711
8712 2011-11-04  Bruno Haible  <bruno@clisp.org>
8713
8714         New module 'mkdirat', split off from module 'openat'.
8715         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8716         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8717         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8718         * modules/mkdirat: New file, extracted from modules/openat.
8719         * modules/openat (Files): Remove lib/mkdirat.c.
8720         (Depends-on): Remove mkdir.
8721         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8722         (Include): Remove <sys/stat.h>.
8723         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8724         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8725         tests/test-mkdir.h.
8726         (Depends-on): Remove ignore-value.
8727         (Makefile.am): Remove rules for test-mkdirat.
8728         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8729         of module 'openat'.
8730         * NEWS: Mention the change.
8731
8732 2011-11-04  Bruno Haible  <bruno@clisp.org>
8733
8734         closedir: Avoid warning on mingw.
8735         * lib/closedir.c: Include <unistd.h>.
8736
8737 2011-11-04  Bruno Haible  <bruno@clisp.org>
8738
8739         New module 'fstatat', split off from module 'openat'.
8740         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8741         defined.
8742         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8743         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8744         gl_FUNC_FSTATAT.
8745         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8746         * modules/fstatat: New file, extracted from modules/openat.
8747         * modules/openat (Files): Remove lib/fstatat.c.
8748         (Depends-on): Remove lstat.
8749         (configure.ac): Remove AC_LIBOBJ of fstatat.
8750         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8751         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8752         tests/test-lstat.h, tests/test-stat.h.
8753         (Depends-on): Remove getcwd-lgpl.
8754         (Makefile.am): Remove rules for test-fstatat.
8755         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8756         of module 'openat'.
8757         * NEWS: Mention the change.
8758         * modules/getcwd (Depends-on): Add fstatat.
8759         * modules/linkat (Depends-on): Likewise.
8760         * modules/mkfifoat-tests (Depends-on): Likewise.
8761         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8762
8763 2011-11-03  Bruno Haible  <bruno@clisp.org>
8764
8765         New module 'unlinkat', split off from module 'openat'.
8766         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8767         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8768         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8769         * modules/unlinkat: New file, extracted from modules/openat. Correct
8770         the dependency conditions.
8771         * modules/openat (Files): Remove lib/unlinkat.c.
8772         (Depends-on): Remove rmdir, unlink.
8773         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8774         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8775         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8776         tests/test-rmdir.h, tests/test-unlink.h.
8777         (Depends-on): Remove unlinkdir.
8778         (Makefile.am): Remove rules for test-unlinkat.
8779         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8780         of module 'openat'.
8781         * NEWS: Mention the change.
8782         * modules/linkat-tests (Depends-on): Add unlinkat.
8783         * modules/mkfifoat-tests (Depends-on): Likewise.
8784         * modules/readlinkat-tests (Depends-on): Likewise.
8785
8786 2011-11-02  Bruno Haible  <bruno@clisp.org>
8787
8788         New module 'fchmodat', split off from module 'openat'.
8789         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8790         defined.
8791         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8792         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8793         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8794         * modules/fchmodat: New file, extracted from modules/openat.
8795         * modules/openat (Files): Remove lib/fchmodat.c.
8796         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8797         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8798         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8799         (Makefile.am): Remove rules for test-fchmodat.
8800         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8801         of module 'openat'.
8802         * NEWS: Mention the change.
8803
8804 2011-11-02  Jim Meyering  <meyering@redhat.com>
8805
8806         putenv: indent #definition of "environ" to placate cppi
8807         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8808
8809         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8810         Git logs are often treated as immutable, because editing them
8811         changes the SHA1 checksums of all descendants.  Thus, errors in
8812         git logs tend to stay there forever.  However, when we generate
8813         a ChangeLog file -- typically for distribution -- from that git log,
8814         we can actually make corrections in the generated file.  The key
8815         lies in recording in machine-readable/applicable form the desired
8816         corrections.  See --help for description and an example.
8817         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8818         (usage): Describe it; alphabetize option descriptions.
8819         (main): Honor the new option, carefully.
8820
8821 2011-11-01  Jim Meyering  <meyering@redhat.com>
8822
8823         gitlog-to-changelog: avoid an infloop
8824         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8825         that ends up being empty.
8826
8827 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8828
8829         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8830         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8831         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8832         contains (possibly-quoted) backslashes.  This should avoid
8833         all-too-common shell bugs if COMPLICATED contains backslashes in
8834         the "wrong" places.  Reported by David Evans in
8835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8836         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8837         because we want ASCII ranges.  Is there some reason we don't use
8838         the C locale everywhere in this script?
8839         (func_module, top level): Avoid unwanted pathname expansion when
8840         $repo_url_prefix or $repo_url_suffix_repl contain shell
8841         metacharacters like '?' and '*'.
8842
8843 2011-11-01  Bruno Haible  <bruno@clisp.org>
8844
8845         fchownat: Improve description.
8846         * modules/fchownat (Description): Add link to function.
8847
8848 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8849
8850         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8851         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8853         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8854
8855 2011-11-01  Bruno Haible  <bruno@clisp.org>
8856
8857         alignof: Avoid collision with stdalign module.
8858         * lib/alignof.h (alignof): Remove macro.
8859         * NEWS: Mention the change.
8860         Reported by Paul Eggert.
8861
8862 2011-11-01  Bruno Haible  <bruno@clisp.org>
8863
8864         New module 'fchownat', split off from module 'openat'.
8865         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8866         defined.
8867         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8868         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8869         invoke gl_FUNC_FCHOWNAT.
8870         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8871         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8872         * modules/fchownat: New file, extracted from modules/openat.
8873         * modules/openat (Files): Remove lib/fchownat.c.
8874         (Depends-on): Remove lchown.
8875         (configure.ac): Remove AC_LIBOBJ of fchownat.
8876         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8877         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8878         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8879         (Depends-on): Remove mgetgroups, usleep, stat-time.
8880         (configure.ac): Remove test for getegid.
8881         (Makefile.am): Remove rules for test-fchownat.
8882         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8883         of module 'openat'.
8884         * NEWS: Mention the change.
8885
8886 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8887
8888         stdalign: port better to MSVC and to Sun C 5.11
8889         This fixes some of the problems reported by Bruno Haible in
8890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8891         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8892         shortcomings of MSVC and of Sun C 5.11.
8893         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8894         around __declspec arg.
8895         * modules/stdalign-tests (Files): Add tests/macros.h.
8896         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8897         Include macros.h, for ASSERT.
8898         (DECLARE_ALIGNED): Remove.
8899         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8900         to catch bug), and to 1 if not (simplifies the rest of the code).
8901         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8902         (CHECK_AUTO): Remove.
8903         (CHECK_ALIGNED): Check only the alignment of the static vars,
8904         since auto var alignment isn't supported by Sun C 5.11.
8905         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8906         ASSERT failures are easier to diagnose.
8907
8908 2011-10-31  Bruno Haible  <bruno@clisp.org>
8909
8910         doc about some IRIX 5.3 problems.
8911         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8912         on IRIX 5.3.
8913         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8914         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8915         5.3.
8916         * doc/posix-functions/grantpt.texi: Likewise.
8917         * doc/posix-functions/unlockpt.texi: Likewise.
8918         * doc/posix-functions/lgamma.texi: Likewise.
8919         * doc/posix-functions/nextafter.texi: Likewise.
8920         * doc/posix-functions/remainder.texi: Likewise.
8921         * doc/posix-functions/select.texi: Mention misplaced declaration on
8922         IRIX 5.3.
8923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8924
8925 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8926
8927         gitlog-to-changelog: fix git-log invocation.
8928         git-log mishandles date strings before 1970-01-01 UTC, and there is
8929         no use to specify --since=1970-01-01 by default anyway.
8930         * build-aux/gitlog-to-changelog: By default, when no --since option
8931         was given, do not specify explicit --since option to git-log.
8932
8933 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8934
8935         gitlog-to-changelog: new option --append-dot.
8936         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8937         first non-blank line of each commit message terminated with a dot.
8938
8939 2011-10-30  Bruno Haible  <bruno@clisp.org>
8940
8941         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8942         * lib/ffsl.h: Include <config.h>.
8943         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8944
8945 2011-10-30  Jim Meyering  <meyering@redhat.com>
8946
8947         GNUmakefile: reenable "make syntax-check" for most projects
8948         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8949         build-aux variable", "syntax-check" would do nothing but succeed with
8950         the "No version control files detected..." diagnostic (unless you
8951         happened to override _build-aux via cfg.mk).
8952         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8953         to precede inclusion of maint.mk.  Otherwise, these variables would
8954         be used undefined in any project that does not override the default.
8955
8956 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8957
8958         gitlog-to-changelog: treat a message with only blank lines as empty.
8959         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8960         trailing blank lines before the code that issues a warning about an
8961         empty commit message.
8962
8963 2011-10-30  Jim Meyering  <meyering@redhat.com>
8964
8965         test-parse-datetime.c: avoid new DST-related false positive test failure
8966         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8967         based on the time/date we'll convert, not the current time.
8968         Otherwise, the moment we cross a DST boundary like today's in
8969         Europe, (CEST to CET), that offset ends up being one hour off.
8970
8971 2011-10-27  Bruno Haible  <bruno@clisp.org>
8972
8973         fstat: Tweak documentation.
8974         * modules/fstat (Description): More precise description.
8975
8976 2011-10-27  Bruno Haible  <bruno@clisp.org>
8977
8978         Update documentation regarding 'largefile' module.
8979         * doc/posix-functions/fstat.texi: Tweak wording.
8980         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8981         problems with huge directories and/or small ino_t types.
8982         * doc/posix-functions/readdir.texi: Likewise.
8983         * doc/posix-functions/rewinddir.texi: Likewise.
8984
8985 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8986
8987         maint.mk: don't maintain a second build-aux variable.
8988         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8989         depends on GNUmakefile, which already maintains a cfg.mk
8990         overridable $(_build-aux) for projects with a non-standard
8991         build-aux directory location, although without the $(srcdir)
8992         prefix.  Use that variable consistently instead of introducing a
8993         second one.  Adjust all call sites.
8994
8995 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8996
8997         Add stdalign module and use it in other modules.
8998         This is based on a previous proposal by Bruno Haible
8999         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9000
9001         stdalign: new module
9002         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9003         * modules/stdalign: New files.
9004         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9005         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9006
9007         stdalign-tests: new module
9008         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9009
9010         argp: use stdalign
9011         * lib/argp-parse.c: Include <stdalign.h>.
9012         (alignof): Remove.
9013         * modules/argp (Depends-on): Add stdalign.
9014
9015         crypto libraries: use stdalign
9016         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9017         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9018         Do not include <stdlib.h> twice, in md4.c.
9019         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9020         because we are accessing a pointer's bit-pattern, not a size.
9021         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9022         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9023         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9024         * modules/crypto/sha512: Likewise.
9025
9026         sys_socket: use stdalign, not alignof
9027         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9028         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9029
9030 2011-10-27  Bruno Haible  <bruno@clisp.org>
9031
9032         raise test: Avoid a test failure on Linux/MIPS.
9033         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9034         because 99 is a valid signal on Linux/MIPS.
9035
9036 2011-10-27  Bruno Haible  <bruno@clisp.org>
9037
9038         nonblocking tests: Fix test failure on Linux/MIPS.
9039         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9040         Set to 270000.
9041
9042 2011-10-27  Bruno Haible  <bruno@clisp.org>
9043
9044         utimensat: Work around problem on Linux/hppa.
9045         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9046         values.
9047         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9048
9049 2011-10-25  Jim Meyering  <meyering@redhat.com>
9050
9051         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9052         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9053         after symbols like NULL, size_t, etc.
9054         Reported by Alfred M. Szmidt.
9055
9056         maint.mk: exempt ENODATA from a syntax-check rule
9057         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9058         from the sc_prohibit_always-defined_macros syntax-check rule.
9059         Add a comment.  See this for more details:
9060         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9061
9062 2011-10-23  Jim Meyering  <meyering@redhat.com>
9063
9064         fts: close parent dir FD before returning from post-traversal fts_read
9065         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9066         unlink A, even though an FD open on A remained.  This is suboptimal
9067         (holding a file descriptor open longer than needed), but otherwise not
9068         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9069         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9070         that represents a real problem: it causes the removal of A to fail
9071         with e.g., "rm: cannot remove `A': Device or resource busy"
9072
9073         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9074         directory file descriptors.  After completing the final, FTS_DP,
9075         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9076         cache, but then proceeded to add a new FD to it via the subsequent
9077         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9078         final file descriptor would be closed only via fts_close's call to
9079         fd_ring_clear.  Now, it is usually closed earlier, via the final
9080         FTS_DP-returning fts_read call.
9081         * lib/fts.c (restore_initial_cwd): New function, converted from
9082         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9083         Update callers.
9084         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9085         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9086
9087 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9088             Bruno Haible  <bruno@clisp.org>
9089             Jim Meyering  <jim@meyering.net>
9090
9091         readme-release: improve safety of release prep instructions.
9092         * README-release: Don't git pull all branches when only master
9093         is needed for the release process.
9094         Run make maintainer-clean before changing trees and merging.
9095         Don't try to run ./configure right after git pull in case files
9096         that influence the bootstrap process have changed, move the
9097         ./configure step to after running ./bootstrap.
9098         Don't bootstrap "one last time"... it's the first time!
9099
9100 2011-10-22  Bruno Haible  <bruno@clisp.org>
9101
9102         errno, strerror-override: Support for MSVC 10.
9103         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9104         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9105         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9106         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9107         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9108         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9109         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9110         Assign values compatible with MSVC 10.
9111         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9112         New macros.
9113         (GNULIB_defined_EWINSOCK): New macro.
9114         * lib/strerror-override.c (strerror_override): Update accordingly.
9115         * lib/strerror-override.h: Likewise.
9116         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9117         longer equal to the corresponding errno value.
9118         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9119
9120 2011-10-22  Bruno Haible  <bruno@clisp.org>
9121
9122         perror: Recognize when test program crashes.
9123         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9124         strerror, set gl_cv_func_perror_works to no.
9125         Reported by Daniel Richard G. <skunk@iskunk.org>.
9126
9127         perror: Fix indentation.
9128         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9129
9130 2011-10-22  Bruno Haible  <bruno@clisp.org>
9131
9132         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9133         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9134         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9135         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9136         functions, not as a macro.
9137         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9138         macros.
9139         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9140         absence of macro.
9141         Suggested by Eric Blake.
9142         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9143
9144 2011-10-21  Bruno Haible  <bruno@clisp.org>
9145
9146         relocatable-prog-wrapper: Don't leave object files behind.
9147         * build-aux/install-reloc: Re-synchronize list of .o files to be
9148         removed with list of compilation units.
9149
9150 2011-10-20  Bruno Haible  <bruno@clisp.org>
9151
9152         openpty, posix_openpt: Remove code duplication.
9153         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9154         * lib/openpty.c: Include <stdlib.h>.
9155         (openpty): Use posix_openpt on all platforms except IRIX.
9156         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9157
9158 2011-10-20  Bruno Haible  <bruno@clisp.org>
9159
9160         unlockpt: Detect invalid argument.
9161         * lib/unlockpt.c: Include <fcntl.h>.
9162         (unlockpt): Check whether fd is valid, using fcntl().
9163         * modules/unlockpt (Depends-on): Add fcntl-h.
9164
9165 2011-10-20  Bruno Haible  <bruno@clisp.org>
9166
9167         openpty: Avoid compilation error on AIX 6.1.
9168         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9169
9170 2011-10-20  Bruno Haible  <bruno@clisp.org>
9171
9172         posix_openpt: Support for OpenBSD.
9173         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9174         (posix_openpt) [OpenBSD]: New code.
9175         * lib/grantpt.c: Include <fcntl.h>.
9176         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9177         * modules/grantpt (Depends-on): Add fcntl-h.
9178
9179 2011-10-20  Bruno Haible  <bruno@clisp.org>
9180
9181         posix_openpt test: Coding style.
9182         * tests/test-posix_openpt.c: Use GNU coding style.
9183
9184 2011-10-20  Bruno Haible  <bruno@clisp.org>
9185
9186         grantpt: Support --avoid=pt_chown.
9187         * modules/grantpt (Files): Add lib/pty-private.h.
9188
9189 2011-10-20  Bruno Haible  <bruno@clisp.org>
9190
9191         posix_openpt: Fix autoconf macro.
9192         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9193         unneeded check for _getpty.
9194
9195 2011-10-20  Bruno Haible  <bruno@clisp.org>
9196
9197         openpty: Update comments.
9198         * lib/openpty.c: Add comments about Minix.
9199
9200 2011-10-19  Eric Blake  <eblake@redhat.com>
9201
9202         openpty: relax license
9203         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9204
9205         pt_chown: use configmake to simplify build
9206         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9207
9208         ptsname and others: relax license
9209         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9210         * modules/unlockpt (License): Likewise.
9211         * modules/pt_chown (License): Likewise.
9212         * modules/ptsname (License): Likewise.
9213         * modules/ttyname_r (License): Likewise.
9214
9215 2011-10-19  Jim Meyering  <meyering@redhat.com>
9216
9217         posix_openpt: remove spurious #endif
9218         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9219
9220 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9221
9222         maint.mk: Respect $(build_aux) in web-manual rule.
9223         * top/maint.mk (web-manual): Find gen-announce script in user's
9224         $(build_aux) directory instead of hard-coding 'build-aux'.
9225
9226 2011-10-19  Bruno Haible  <bruno@clisp.org>
9227
9228         posix_openpt: Fix compilation error.
9229         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9230         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9231         Mention the openpty module as an alternative.
9232
9233 2011-10-19  Bruno Haible  <bruno@clisp.org>
9234
9235         Support for old NeXTstep 3.3 frexp().
9236         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9237         execution time of the test to 5 seconds.
9238         Reported by Daniel Richard G. <skunk@iskunk.org>.
9239
9240 2011-10-19  Bruno Haible  <bruno@clisp.org>
9241
9242         Support for old NeXTstep 3.3 sed.
9243         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9244         part, use /.../, not \|...|. Escape periods in the header file name.
9245         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9246         Reported by Daniel Richard G. <skunk@iskunk.org>.
9247
9248 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9249
9250         Support for old NeXTstep 3.3 gcc.
9251         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9252         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9253         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9254         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9255         * lib/regex.h (_Restrict_arr_): Likewise.
9256         * lib/regex_internal.h (re_token_t): Likewise.
9257         * lib/regexec.c (check_node_accept_bytes): Likewise.
9258         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9259
9260 2011-10-18  Eric Blake  <eblake@redhat.com>
9261
9262         posix_openpt: new module
9263         * modules/posix_openpt: New module.
9264         * m4/posix_openpt.m4: New file.
9265         * lib/posix_openpt.c: Likewise.
9266         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9267         (gl_STDLIB_H_DEFAULTS): Set defaults.
9268         * modules/stdlib (Makefile.am): Substitute macros.
9269         * lib/stdlib.in.h (posix_openpt): Declare.
9270         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9271         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9272         * modules/posix_openpt-tests: New test module.
9273         * tests/test-posix_openpt.c: New test.
9274
9275 2011-10-15  Bruno Haible  <bruno@clisp.org>
9276
9277         xstrtoll: Fix compilation failure.
9278         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9279         from lib/strtol.c.
9280         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9281         some platforms.
9282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9283
9284 2011-10-15  Bruno Haible  <bruno@clisp.org>
9285
9286         vasnprintf: Optimize bit search operation.
9287         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9289         gl_DOUBLE_EXPONENT_LOCATION.
9290         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9291         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9292         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9293         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9294         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9295         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9296         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9297         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9298         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9299
9300 2011-10-15  Bruno Haible  <bruno@clisp.org>
9301
9302         vasnprintf: Fix comments.
9303         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9304
9305 2011-10-14  Bruno Haible  <bruno@clisp.org>
9306
9307         Tests for module 'integer_length_ll'.
9308         * modules/integer_length_ll-tests: New file.
9309         * tests/test-integer_length_ll.c: New file.
9310
9311         New module 'integer_length_ll'.
9312         * lib/integer_length_ll.c: New file.
9313         * modules/integer_length_ll: New file.
9314
9315 2011-10-14  Bruno Haible  <bruno@clisp.org>
9316
9317         Tests for module 'integer_length_l'.
9318         * modules/integer_length_l-tests: New file.
9319         * tests/test-integer_length_l.c: New file.
9320
9321         New module 'integer_length_l'.
9322         * lib/integer_length_l.c: New file.
9323         * modules/integer_length_l: New file.
9324
9325 2011-10-14  Bruno Haible  <bruno@clisp.org>
9326
9327         Tests for module 'integer_length'.
9328         * modules/integer_length-tests: New file.
9329         * tests/test-integer_length.c: New file.
9330
9331         New module 'integer_length'.
9332         * lib/integer_length.h: New file.
9333         * lib/integer_length.c: New file.
9334         * modules/integer_length: New file.
9335
9336 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9337
9338         popen: Fix dependency conditions.
9339         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9340
9341 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9342
9343         perror: Fix autoconf test.
9344         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9345         <stdlib.h> and <string.h>.
9346
9347 2011-10-14  Bruno Haible  <bruno@clisp.org>
9348
9349         ffsl: Optimize on 64-bit platforms.
9350         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9351         unrolling.
9352
9353 2011-10-13  Bruno Haible  <bruno@clisp.org>
9354
9355         ffsl: Optimize on 32-bit platforms.
9356         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9357         use ffs() without a loop.
9358
9359         ffsl, ffsll: Optimize for GCC.
9360         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9361         * lib/ffsl.c (GCC_BUILTIN): New macro.
9362         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9363
9364 2011-10-13  Bruno Haible  <bruno@clisp.org>
9365
9366         ffs, bcopy, memset: Support symbol renaming via config.h.
9367         * lib/ffs.c: Include <config.h>.
9368         * lib/bcopy.c: Likewise.
9369         * lib/memset.c: Likewise.
9370
9371 2011-10-10  Bruno Haible  <bruno@clisp.org>
9372
9373         atanl: Simplify for platforms where 'long double' == 'double'.
9374         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9375         alternative implementation.
9376         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9377         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9378         * modules/atanl (Depends-on): Add atan. Update conditions.
9379
9380 2011-10-10  Bruno Haible  <bruno@clisp.org>
9381
9382         acosl: Simplify for platforms where 'long double' == 'double'.
9383         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9384         alternative implementation.
9385         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9386         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9387         * modules/acosl (Depends-on): Add acos. Update conditions.
9388
9389 2011-10-10  Bruno Haible  <bruno@clisp.org>
9390
9391         asinl: Simplify for platforms where 'long double' == 'double'.
9392         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9393         alternative implementation.
9394         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9395         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9396         * modules/asinl (Depends-on): Add asin. Update conditions.
9397
9398 2011-10-10  Bruno Haible  <bruno@clisp.org>
9399
9400         tanl: Simplify for platforms where 'long double' == 'double'.
9401         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9402         implementation.
9403         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9404         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9405         * modules/tanl (Depends-on): Add tan. Update conditions.
9406         (configure.ac): Don't compile trigl.c if
9407         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9408
9409 2011-10-10  Bruno Haible  <bruno@clisp.org>
9410
9411         cosl: Simplify for platforms where 'long double' == 'double'.
9412         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9413         implementation.
9414         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9415         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9416         * modules/cosl (Depends-on): Add cos. Update conditions.
9417         (configure.ac): Don't compile sincosl.c and trigl.c if
9418         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9419
9420 2011-10-10  Bruno Haible  <bruno@clisp.org>
9421
9422         sinl: Simplify for platforms where 'long double' == 'double'.
9423         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9424         implementation.
9425         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9426         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9427         * modules/sinl (Depends-on): Add sin. Update conditions.
9428         (configure.ac): Don't compile sincosl.c and trigl.c if
9429         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9430
9431 2011-10-10  Bruno Haible  <bruno@clisp.org>
9432
9433         logl: Simplify for platforms where 'long double' == 'double'.
9434         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9435         implementation.
9436         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9437         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9438         * modules/logl (Depends-on): Add log. Update conditions.
9439
9440 2011-10-10  Bruno Haible  <bruno@clisp.org>
9441
9442         expl: Simplify for platforms where 'long double' == 'double'.
9443         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9444         implementation.
9445         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9446         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9447         * modules/expl (Depends-on): Add exp. Update conditions.
9448
9449 2011-10-10  Bruno Haible  <bruno@clisp.org>
9450
9451         sqrtl: Simplify for platforms where 'long double' == 'double'.
9452         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9453         alternative implementation.
9454         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9455         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9456         * modules/sqrtl (Depends-on): Update conditions.
9457
9458 2011-10-10  Bruno Haible  <bruno@clisp.org>
9459
9460         ldexpl: Simplify for platforms where 'long double' == 'double'.
9461         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9462         alternative implementation.
9463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9464         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9465         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9466
9467 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9468
9469         ffsll: set correct witness
9470         * modules/ffsll (configure.ac): Fix typo.
9471
9472 2011-10-10  Bruno Haible  <bruno@clisp.org>
9473
9474         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9475         * lib/printf-frexpl.c: Include <config.h>.
9476         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9477         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9478         second time.
9479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9480         gl_LONG_DOUBLE_VS_DOUBLE.
9481         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9482         conditions.
9483
9484 2011-10-10  Bruno Haible  <bruno@clisp.org>
9485
9486         frexpl: Simplify for platforms where 'long double' == 'double'.
9487         * lib/frexpl.c: Include <config.h>.
9488         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9489         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9490         time.
9491         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9492         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9493         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9494         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9495         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9496         conditions.
9497
9498 2011-10-10  Jim Meyering  <meyering@redhat.com>
9499
9500         test-renameat: don't leave behind a temporary file
9501         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9502           ERROR: files left in build directory after distclean:
9503           ./gltests/test-renameat.too
9504           make[1]: *** [distcleancheck] Error 1
9505         Reported by Tom G. Christensen.
9506
9507 2011-10-09  Bruno Haible  <bruno@clisp.org>
9508
9509         rint: Determine RINT_LIBM correctly on AIX 7.
9510         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9511         directly, not only through a function pointer. Also accept an optional
9512         4th argument with extra code.
9513         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9514         rintf() call by gcc when optimizing.
9515
9516         mathfunc.m4: Refactor.
9517         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9518         m4 variable.
9519
9520 2011-10-09  Bruno Haible  <bruno@clisp.org>
9521
9522         rintl: Simplify for platforms where 'long double' == 'double'.
9523         * lib/rintl.c: Include <config.h>.
9524         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9525         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9526         time.
9527         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9528         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9529         * modules/rintl (Depends-on): Add rint. Update conditions.
9530
9531 2011-10-09  Bruno Haible  <bruno@clisp.org>
9532
9533         roundl: Simplify for platforms where 'long double' == 'double'.
9534         * lib/roundl.c: Include <config.h>.
9535         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9536         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9537         time.
9538         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9539         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9540         * modules/roundl (Depends-on): Add round. Update conditions.
9541
9542 2011-10-09  Bruno Haible  <bruno@clisp.org>
9543
9544         truncl: Simplify for platforms where 'long double' == 'double'.
9545         * lib/truncl.c: Include <config.h>.
9546         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9547         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9548         time.
9549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9550         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9551         * modules/truncl (Depends-on): Add trunc. Update conditions.
9552
9553 2011-10-09  Bruno Haible  <bruno@clisp.org>
9554
9555         ceill: Simplify for platforms where 'long double' == 'double'.
9556         * lib/ceill.c: Include <config.h>.
9557         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9558         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9559         time.
9560         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9561         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9562         * modules/ceill (Depends-on): Add ceil. Update conditions.
9563
9564 2011-10-09  Bruno Haible  <bruno@clisp.org>
9565
9566         floorl: Simplify for platforms where 'long double' == 'double'.
9567         * lib/floorl.c: Include <config.h>.
9568         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9569         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9570         time.
9571         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9572         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9573         * modules/floorl (Depends-on): Add floor. Update conditions.
9574
9575 2011-10-09  Bruno Haible  <bruno@clisp.org>
9576
9577         rint: Fix ordering constraints.
9578         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9579         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9580         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9581
9582 2011-10-09  Bruno Haible  <bruno@clisp.org>
9583
9584         copysignl: Simplify for platforms where 'long double' == 'double'.
9585         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9586         alternative.
9587         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9588         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9589         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9590
9591 2011-10-09  Bruno Haible  <bruno@clisp.org>
9592
9593         Tests for module 'rintl'.
9594         * modules/rintl-tests: New file.
9595         * tests/test-rintl.c: New file.
9596
9597         New module 'rintl'.
9598         * lib/math.in.h (rintl): New declaration.
9599         * lib/rintl.c: New file.
9600         * m4/rintl.m4: New file.
9601         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9603         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9604         * modules/rintl: New file.
9605         * tests/test-math-c++.cc: Check the declaration of rintl.
9606         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9607         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9608         * doc/posix-functions/rintl.texi: Mention the new module.
9609
9610 2011-10-09  Bruno Haible  <bruno@clisp.org>
9611
9612         Tests for module 'rintf'.
9613         * modules/rintf-tests: New file.
9614         * tests/test-rintf.c: New file.
9615
9616         New module 'rintf'.
9617         * lib/math.in.h (rintf): New declaration.
9618         * lib/rintf.c: New file.
9619         * m4/rintf.m4: New file.
9620         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9622         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9623         * modules/rintf: New file.
9624         * tests/test-math-c++.cc: Check the declaration of rintf.
9625         * doc/posix-functions/rintf.texi: Mention the new module.
9626
9627 2011-10-09  Bruno Haible  <bruno@clisp.org>
9628
9629         rint: Support for MSVC.
9630         * lib/math.in.h (rint): New declaration.
9631         * lib/rint.c: New file.
9632         * m4/rint.m4: New file.
9633         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9635         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9636         * modules/rint (Description): Fix.
9637         (Files): Add lib/rint.c, m4/rint.m4.
9638         (Depends-on): Add math.
9639         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9640         gl_MATH_MODULE_INDICATOR.
9641         * tests/test-math-c++.cc: Check the declaration of rint.
9642         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9643         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9644         * doc/posix-functions/rint.texi: Mention the replacement provided by
9645         the module.
9646
9647         rint tests: More tests.
9648         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9649         minus-zero.h, infinity.h, nan.h.
9650         (main): Skip the test if the current rounding mode is not standard. Add
9651         tests for negative numbers, minus zero, infinity, NaN.
9652         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9653         tests/nan.h.
9654         (Depends-on): Add isnand-nolibm.
9655
9656 2011-10-09  Bruno Haible  <bruno@clisp.org>
9657
9658         Tests for module 'copysignl'.
9659         * modules/copysignl-tests: New file.
9660         * tests/test-copysignl.c: New file.
9661
9662         New module 'copysignl'.
9663         * lib/math.in.h (copysignl): New declaration.
9664         * lib/copysignl.c: New file.
9665         * m4/copysignl.m4: New file.
9666         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9668         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9669         HAVE_COPYSIGNL.
9670         * modules/copysignl: New file.
9671         * tests/test-math-c++.cc: Check the declaration of copysignl.
9672         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9673         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9674         * doc/posix-functions/copysignl.texi: Mention the new module.
9675
9676 2011-10-09  Bruno Haible  <bruno@clisp.org>
9677
9678         Tests for module 'copysignf'.
9679         * modules/copysignf-tests: New file.
9680         * tests/test-copysignf.c: New file.
9681
9682         New module 'copysignf'.
9683         * lib/math.in.h (copysignf): New declaration.
9684         * lib/copysignf.c: New file.
9685         * m4/copysignf.m4: New file.
9686         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9688         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9689         HAVE_COPYSIGNF.
9690         * modules/copysignf: New file.
9691         * tests/test-math-c++.cc: Check the declaration of copysignf.
9692         * doc/posix-functions/copysignf.texi: Mention the new module.
9693
9694 2011-10-09  Bruno Haible  <bruno@clisp.org>
9695
9696         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9697         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9698         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9699         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9700         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9701         gl_SIGNAL_H_DEFAULTS.
9702
9703 2011-10-09  Bruno Haible  <bruno@clisp.org>
9704
9705         poll: Make macro safer.
9706         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9707         ac_cv_header_poll_h is not set.
9708
9709 2011-10-09  Bruno Haible  <bruno@clisp.org>
9710
9711         copysign: Provide replacement.
9712         * lib/math.in.h (copysign): New declaration.
9713         * lib/copysign.c: New file.
9714         * m4/copysign.m4: New file.
9715         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9717         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9718         HAVE_COPYSIGN.
9719         * modules/copysign (Description): Clarify.
9720         (Files): Add lib/copysign.c, m4/copysign.m4.
9721         (Depends-on): Add math, signbit.
9722         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9723         gl_MATH_MODULE_INDICATOR.
9724         * tests/test-math-c++.cc: Check the declaration of copysign.
9725         * doc/posix-functions/copysign.texi: Mention the effects of the module
9726         on Minix and MSVC.
9727
9728 2011-10-09  Bruno Haible  <bruno@clisp.org>
9729
9730         isinf: Ensure macro on AIX 5.1.
9731         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9732         macro.
9733         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9734
9735 2011-10-09  Bruno Haible  <bruno@clisp.org>
9736
9737         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9738         * modules/snprintf-posix-tests (configure.ac): Require
9739         gl_LONG_DOUBLE_VS_DOUBLE.
9740         * modules/sprintf-posix-tests (configure.ac): Likewise.
9741         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9742         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9743         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9744         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9745         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9746         tests on platforms where 'long double' is the same as 'double'.
9747         * tests/test-sprintf-posix.h (test_function): Likewise.
9748         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9749         * tests/test-vasprintf-posix.c (test_function): Likewise.
9750
9751         *printf: Fix for platforms where 'long double' == 'double'.
9752         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9753         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9754         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9755         * modules/fprintf-posix (Files): Likewise.
9756         * modules/obstack-printf-posix (Files): Likewise.
9757         * modules/snprintf-posix (Files): Likewise.
9758         * modules/sprintf-posix (Files): Likewise.
9759         * modules/vasnprintf (Files): Likewise.
9760         * modules/vasnprintf-posix (Files): Likewise.
9761         * modules/vasprintf-posix (Files): Likewise.
9762         * modules/vdprintf-posix (Files): Likewise.
9763         * modules/vfprintf-posix (Files): Likewise.
9764         * modules/vsnprintf-posix (Files): Likewise.
9765         * modules/vsprintf-posix (Files): Likewise.
9766         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9767         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9768         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9769         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9770         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9771         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9772         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9773
9774         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9775         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9776         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9777         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9778         'long double'.
9779         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9780
9781         isinf: Fix for platforms where 'long double' == 'double'.
9782         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9783         Don't blindly assume 80-bit 'long double'.
9784
9785         isfinite: Fix for platforms where 'long double' == 'double'.
9786         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9787         Don't blindly assume 80-bit 'long double'.
9788
9789         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9790         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9791         * modules/isfinite-tests (configure.ac): Require
9792         gl_LONG_DOUBLE_VS_DOUBLE.
9793         * modules/isinf-tests (configure.ac): Likewise.
9794         * modules/isnan-tests (configure.ac): Likewise.
9795         * modules/isnanl-tests (configure.ac): Likewise.
9796         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9797         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9798         tests on platforms where 'long double' is the same as 'double'.
9799         * tests/test-isinf.c (test_isinfl): Likewise.
9800         * tests/test-isnan.c (test_long_double): Likewise.
9801         * tests/test-isnanl.h (main): Likewise.
9802
9803 2011-10-08  Bruno Haible  <bruno@clisp.org>
9804
9805         Tests for module 'tanhf'.
9806         * modules/tanhf-tests: New file.
9807         * tests/test-tanhf.c: New file.
9808
9809         New module 'tanhf'.
9810         * lib/math.in.h (tanhf): New declaration.
9811         * lib/tanhf.c: New file.
9812         * m4/tanhf.m4: New file.
9813         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9815         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9816         * modules/tanhf: New file.
9817         * tests/test-math-c++.cc: Check the declaration of tanhf.
9818         * doc/posix-functions/tanhf.texi: Mention the new module.
9819
9820         tanh: Use a .m4 file.
9821         * m4/tanh.m4: New file.
9822         * modules/tanh (Files): Add it.
9823         (configure.ac): Just invoke gl_FUNC_TANH.
9824
9825 2011-10-08  Bruno Haible  <bruno@clisp.org>
9826
9827         Tests for module 'coshf'.
9828         * modules/coshf-tests: New file.
9829         * tests/test-coshf.c: New file.
9830
9831         New module 'coshf'.
9832         * lib/math.in.h (coshf): New declaration.
9833         * lib/coshf.c: New file.
9834         * m4/coshf.m4: New file.
9835         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9837         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9838         * modules/coshf: New file.
9839         * tests/test-math-c++.cc: Check the declaration of coshf.
9840         * doc/posix-functions/coshf.texi: Mention the new module.
9841
9842         cosh: Use a .m4 file.
9843         * m4/cosh.m4: New file.
9844         * modules/cosh (Files): Add it.
9845         (configure.ac): Just invoke gl_FUNC_COSH.
9846
9847 2011-10-08  Bruno Haible  <bruno@clisp.org>
9848
9849         Tests for module 'sinhf'.
9850         * modules/sinhf-tests: New file.
9851         * tests/test-sinhf.c: New file.
9852
9853         New module 'sinhf'.
9854         * lib/math.in.h (sinhf): New declaration.
9855         * lib/sinhf.c: New file.
9856         * m4/sinhf.m4: New file.
9857         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9859         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9860         * modules/sinhf: New file.
9861         * tests/test-math-c++.cc: Check the declaration of sinhf.
9862         * doc/posix-functions/sinhf.texi: Mention the new module.
9863
9864         sinh: Use a .m4 file.
9865         * m4/sinh.m4: New file.
9866         * modules/sinh (Files): Add it.
9867         (configure.ac): Just invoke gl_FUNC_SINH.
9868
9869 2011-10-08  Bruno Haible  <bruno@clisp.org>
9870
9871         Tests for module 'atan2f'.
9872         * modules/atan2f-tests: New file.
9873         * tests/test-atan2f.c: New file.
9874
9875         New module 'atan2f'.
9876         * lib/math.in.h (atan2f): New declaration.
9877         * lib/atan2f.c: New file.
9878         * m4/atan2f.m4: New file.
9879         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9881         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9882         * modules/atan2f: New file.
9883         * tests/test-math-c++.cc: Check the declaration of atan2f.
9884         * doc/posix-functions/atan2f.texi: Mention the new module.
9885
9886         atan2: Use a .m4 file.
9887         * m4/atan2.m4: New file.
9888         * modules/atan2 (Files): Add it.
9889         (configure.ac): Just invoke gl_FUNC_ATAN2.
9890
9891 2011-10-08  Bruno Haible  <bruno@clisp.org>
9892
9893         Tests for module 'atanf'.
9894         * modules/atanf-tests: New file.
9895         * tests/test-atanf.c: New file.
9896
9897         New module 'atanf'.
9898         * lib/math.in.h (atanf): New declaration.
9899         * lib/atanf.c: New file.
9900         * m4/atanf.m4: New file.
9901         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9903         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9904         * modules/atanf: New file.
9905         * tests/test-math-c++.cc: Check the declaration of atanf.
9906         * doc/posix-functions/atanf.texi: Mention the new module.
9907
9908         atan: Use a .m4 file.
9909         * m4/atan.m4: New file.
9910         * modules/atan (Files): Add it.
9911         (configure.ac): Just invoke gl_FUNC_ATAN.
9912
9913 2011-10-08  Bruno Haible  <bruno@clisp.org>
9914
9915         Tests for module 'acosf'.
9916         * modules/acosf-tests: New file.
9917         * tests/test-acosf.c: New file.
9918
9919         New module 'acosf'.
9920         * lib/math.in.h (acosf): New declaration.
9921         * lib/acosf.c: New file.
9922         * m4/acosf.m4: New file.
9923         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9925         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9926         * modules/acosf: New file.
9927         * tests/test-math-c++.cc: Check the declaration of acosf.
9928         * doc/posix-functions/acosf.texi: Mention the new module.
9929
9930         acos: Use a .m4 file.
9931         * m4/acos.m4: New file.
9932         * modules/acos (Files): Add it.
9933         (configure.ac): Just invoke gl_FUNC_ACOS.
9934
9935 2011-10-08  Bruno Haible  <bruno@clisp.org>
9936
9937         Tests for module 'asinf'.
9938         * modules/asinf-tests: New file.
9939         * tests/test-asinf.c: New file.
9940
9941         New module 'asinf'.
9942         * lib/math.in.h (asinf): New declaration.
9943         * lib/asinf.c: New file.
9944         * m4/asinf.m4: New file.
9945         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9947         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9948         * modules/asinf: New file.
9949         * tests/test-math-c++.cc: Check the declaration of asinf.
9950         * doc/posix-functions/asinf.texi: Mention the new module.
9951
9952         asin: Use a .m4 file.
9953         * m4/asin.m4: New file.
9954         * modules/asin (Files): Add it.
9955         (configure.ac): Just invoke gl_FUNC_ASIN.
9956
9957 2011-10-08  Bruno Haible  <bruno@clisp.org>
9958
9959         Tests for module 'tanf'.
9960         * modules/tanf-tests: New file.
9961         * tests/test-tanf.c: New file.
9962
9963         New module 'tanf'.
9964         * lib/math.in.h (tanf): New declaration.
9965         * lib/tanf.c: New file.
9966         * m4/tanf.m4: New file.
9967         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9969         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9970         * modules/tanf: New file.
9971         * tests/test-math-c++.cc: Check the declaration of tanf.
9972         * doc/posix-functions/tanf.texi: Mention the new module.
9973
9974         tan: Use a .m4 file.
9975         * m4/tan.m4: New file.
9976         * modules/tan (Files): Add it.
9977         (configure.ac): Just invoke gl_FUNC_TAN.
9978
9979 2011-10-08  Bruno Haible  <bruno@clisp.org>
9980
9981         Tests for module 'cosf'.
9982         * modules/cosf-tests: New file.
9983         * tests/test-cosf.c: New file.
9984
9985         New module 'cosf'.
9986         * lib/math.in.h (cosf): New declaration.
9987         * lib/cosf.c: New file.
9988         * m4/cosf.m4: New file.
9989         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9991         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9992         * modules/cosf: New file.
9993         * tests/test-math-c++.cc: Check the declaration of cosf.
9994         * doc/posix-functions/cosf.texi: Mention the new module.
9995
9996         cos: Use a .m4 file.
9997         * m4/cos.m4: New file.
9998         * modules/cos (Files): Add it.
9999         (configure.ac): Just invoke gl_FUNC_COS.
10000
10001 2011-10-08  Bruno Haible  <bruno@clisp.org>
10002
10003         Tests for module 'sinf'.
10004         * modules/sinf-tests: New file.
10005         * tests/test-sinf.c: New file.
10006
10007         New module 'sinf'.
10008         * lib/math.in.h (sinf): New declaration.
10009         * lib/sinf.c: New file.
10010         * m4/sinf.m4: New file.
10011         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10013         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10014         * modules/sinf: New file.
10015         * tests/test-math-c++.cc: Check the declaration of sinf.
10016         * doc/posix-functions/sinf.texi: Mention the new module.
10017
10018         sin: Use a .m4 file.
10019         * m4/sin.m4: New file.
10020         * modules/sin (Files): Add it.
10021         (configure.ac): Just invoke gl_FUNC_SIN.
10022
10023 2011-10-08  Bruno Haible  <bruno@clisp.org>
10024
10025         Tests for module 'powf'.
10026         * modules/powf-tests: New file.
10027         * tests/test-powf.c: New file.
10028
10029         New module 'powf'.
10030         * lib/math.in.h (powf): New declaration.
10031         * lib/powf.c: New file.
10032         * m4/powf.m4: New file.
10033         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10035         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10036         * modules/powf: New file.
10037         * tests/test-math-c++.cc: Check the declaration of powf.
10038         * doc/posix-functions/powf.texi: Mention the new module.
10039
10040         pow: Use a .m4 file.
10041         * m4/pow.m4: New file.
10042         * modules/pow (Files): Add it.
10043         (configure.ac): Just invoke gl_FUNC_POW.
10044
10045 2011-10-08  Bruno Haible  <bruno@clisp.org>
10046
10047         Tests for module 'log10f'.
10048         * modules/log10f-tests: New file.
10049         * tests/test-log10f.c: New file.
10050
10051         New module 'log10f'.
10052         * lib/math.in.h (log10f): New declaration.
10053         * lib/log10f.c: New file.
10054         * m4/log10f.m4: New file.
10055         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10057         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10058         * modules/log10f: New file.
10059         * tests/test-math-c++.cc: Check the declaration of log10f.
10060         * doc/posix-functions/log10f.texi: Mention the new module.
10061
10062         log10: Use a .m4 file.
10063         * m4/log10.m4: New file.
10064         * modules/log10 (Files): Add it.
10065         (configure.ac): Just invoke gl_FUNC_LOG10.
10066
10067 2011-10-08  Bruno Haible  <bruno@clisp.org>
10068
10069         Tests for module 'logf'.
10070         * modules/logf-tests: New file.
10071         * tests/test-logf.c: New file.
10072
10073         New module 'logf'.
10074         * lib/math.in.h (logf): New declaration.
10075         * lib/logf.c: New file.
10076         * m4/logf.m4: New file.
10077         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10079         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10080         * modules/logf: New file.
10081         * tests/test-math-c++.cc: Check the declaration of logf.
10082         * doc/posix-functions/logf.texi: Mention the new module.
10083
10084         log: Use a .m4 file.
10085         * m4/log.m4: New file.
10086         * modules/log (Files): Add it.
10087         (configure.ac): Just invoke gl_FUNC_LOG.
10088
10089 2011-10-08  Bruno Haible  <bruno@clisp.org>
10090
10091         Tests for module 'expf'.
10092         * modules/expf-tests: New file.
10093         * tests/test-expf.c: New file.
10094
10095         New module 'expf'.
10096         * lib/math.in.h (expf): New declaration.
10097         * lib/expf.c: New file.
10098         * m4/expf.m4: New file.
10099         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10101         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10102         * modules/expf: New file.
10103         * tests/test-math-c++.cc: Check the declaration of expf.
10104         * doc/posix-functions/expf.texi: Mention the new module.
10105
10106         exp: Use a .m4 file.
10107         * m4/exp.m4: New file.
10108         * modules/exp (Files): Add it.
10109         (configure.ac): Just invoke gl_FUNC_EXP.
10110
10111 2011-10-08  Bruno Haible  <bruno@clisp.org>
10112
10113         Tests for module 'sqrtf'.
10114         * modules/sqrtf-tests: New file.
10115         * tests/test-sqrtf.c: New file.
10116
10117         New module 'sqrtf'.
10118         * lib/math.in.h (sqrtf): New declaration.
10119         * lib/sqrtf.c: New file.
10120         * m4/sqrtf.m4: New file.
10121         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10123         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10124         * modules/sqrtf: New file.
10125         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10126         * doc/posix-functions/sqrtf.texi: Mention the new module.
10127
10128 2011-10-08  Bruno Haible  <bruno@clisp.org>
10129
10130         Tests: Avoid link failures w.r.t. libintl.
10131         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10132         $(LIBINTL).
10133         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10134         $(LIBINTL).
10135         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10136         against $(LIBINTL).
10137         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10138         $(LIBINTL).
10139         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10140         $(LIBINTL).
10141         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10142
10143 2011-10-08  Bruno Haible  <bruno@clisp.org>
10144
10145         pow tests: Defeat compiler optimizations.
10146         * tests/test-pow.c (main): Assign arguments to x and y before use.
10147
10148 2011-10-08  Bruno Haible  <bruno@clisp.org>
10149
10150         gnulib-tool: Improve last commit.
10151         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10152         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10153         ignore dependencies that are not among the modules list.
10154
10155 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10156
10157         gnulib-tool: don't follow dependencies to avoided modules
10158         This fixes a bug that is related to the previous one.
10159         * gnulib-tool (func_modules_transitive_closure)
10160         (func_emit_autoconf_snippets):
10161         Check whether a dependency is acceptable before using it.
10162         (--extract-dependencies): Report an error if --avoid is also used,
10163         since this combination of options is not yet supported.
10164
10165         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10166         Problem reported by Peter Dyballa in
10167         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10168         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10169         when echoing "$condition".
10170
10171 2011-10-07  Bruno Haible  <bruno@clisp.org>
10172
10173         Fix documentation about math functions on MacOS X.
10174         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10175         MacOS X 10.5.
10176         * doc/posix-functions/fdim.texi: Likewise.
10177         * doc/posix-functions/feclearexcept.texi: Likewise.
10178         * doc/posix-functions/fegetenv.texi: Likewise.
10179         * doc/posix-functions/fegetround.texi: Likewise.
10180         * doc/posix-functions/feholdexcept.texi: Likewise.
10181         * doc/posix-functions/feraiseexcept.texi: Likewise.
10182         * doc/posix-functions/fesetenv.texi: Likewise.
10183         * doc/posix-functions/fesetround.texi: Likewise.
10184         * doc/posix-functions/fetestexcept.texi: Likewise.
10185         * doc/posix-functions/feupdateenv.texi: Likewise.
10186         * doc/posix-functions/fmax.texi: Likewise.
10187         * doc/posix-functions/fmin.texi: Likewise.
10188         * doc/posix-functions/log2.texi: Likewise.
10189         * doc/posix-functions/modff.texi: Likewise.
10190         * doc/posix-functions/nan.texi: Likewise.
10191         * doc/posix-functions/nanf.texi: Likewise.
10192         * doc/posix-functions/nextafterf.texi: Likewise.
10193         * doc/posix-functions/remquo.texi: Likewise.
10194
10195 2011-10-07  Bruno Haible  <bruno@clisp.org>
10196
10197         modff: Drop assumption about library that defines modff.
10198         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10199         AC_CHECK_FUNCS.
10200         * modules/modff (Files): Add m4/mathfunc.m4.
10201
10202 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10203
10204         raise tests: Avoid a GCC warning.
10205         * tests/test-raise.c (handler): Use _Noreturn.
10206
10207 2011-10-07  Bruno Haible  <bruno@clisp.org>
10208
10209         Tests for module 'ldexpf'.
10210         * modules/ldexpf-tests: New file.
10211         * tests/test-ldexpf.c: New file.
10212
10213         New module 'ldexpf'.
10214         * lib/math.in.h (ldexpf): New declaration.
10215         * lib/ldexpf.c: New file.
10216         * m4/ldexpf.m4: New file.
10217         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10219         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10220         * modules/ldexpf: New file.
10221         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10222         * doc/posix-functions/ldexpf.texi: Mention the new module.
10223
10224 2011-10-06  Bruno Haible  <bruno@clisp.org>
10225
10226         frexpf: Work around problems on IRIX and mingw.
10227         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10229         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10230         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10231         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10232         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10233         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10234
10235 2011-10-06  Bruno Haible  <bruno@clisp.org>
10236
10237         fabsf: Drop assumption about library that defines fabsf.
10238         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10239         AC_CHECK_FUNCS.
10240         * modules/fabsf (Files): Add m4/mathfunc.m4.
10241
10242 2011-10-06  Bruno Haible  <bruno@clisp.org>
10243
10244         frexpf: Drop assumption about library that defines frexpf.
10245         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10246         'int *', 'float *', 'long double *', 'float', 'long double'.
10247         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10248         AC_CHECK_FUNCS.
10249         * modules/frexpf (Files): Add m4/mathfunc.m4.
10250
10251         Tests for module 'frexpf'.
10252         * modules/frexpf-tests: New file.
10253         * tests/test-frexpf.c: New file.
10254
10255         New module 'frexpf'.
10256         * lib/math.in.h (frexpf): New declaration.
10257         * lib/frexpf.c: New file.
10258         * m4/frexpf.m4: New file.
10259         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10261         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10262         * modules/frexpf: New file.
10263         * tests/test-math-c++.cc: Check the declaration of frexpf.
10264         * doc/posix-functions/frexpf.texi: Mention the new module.
10265
10266 2011-10-06  Bruno Haible  <bruno@clisp.org>
10267
10268         math: Sort function declarations of math.in.h.
10269         * lib/math.in.h (frexp, logb): Move declarations.
10270
10271 2011-10-05  Bruno Haible  <bruno@clisp.org>
10272
10273         Tests for module 'modff'.
10274         * modules/modff-tests: New file.
10275         * tests/test-modff.c: New file.
10276
10277         New module 'modff'.
10278         * lib/math.in.h (modff): New declaration.
10279         * lib/modff.c: New file.
10280         * m4/modff.m4: New file.
10281         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10283         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10284         * modules/modff: New file.
10285         * tests/test-math-c++.cc: Check the declaration of modff.
10286         * doc/posix-functions/modff.texi: Mention the new module.
10287
10288         modf tests: Make test sharper.
10289         * tests/test-modf.c (main): Strengthen upper bound.
10290
10291         modf: Use a .m4 file.
10292         * m4/modf.m4: New file.
10293         * modules/modf (Files): Add it.
10294         (configure.ac): Just invoke gl_FUNC_MODF.
10295
10296 2011-10-05  Bruno Haible  <bruno@clisp.org>
10297
10298         Tests for module 'fmodf'.
10299         * modules/fmodf-tests: New file.
10300         * tests/test-fmodf.c: New file.
10301
10302         New module 'fmodf'.
10303         * lib/math.in.h (fmodf): New declaration.
10304         * lib/fmodf.c: New file.
10305         * m4/fmodf.m4: New file.
10306         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10308         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10309         * modules/fmodf: New file.
10310         * tests/test-math-c++.cc: Check the declaration of fmodf.
10311         * doc/posix-functions/fmodf.texi: Mention the new module.
10312
10313         fmod: Use a .m4 file.
10314         * m4/fmod.m4: New file.
10315         * modules/fmod (Files): Add it.
10316         (configure.ac): Just invoke gl_FUNC_FMOD.
10317
10318 2011-10-05  Bruno Haible  <bruno@clisp.org>
10319
10320         Tests for module 'fabsf'.
10321         * modules/fabsf-tests: New file.
10322         * tests/test-fabsf.c: New file.
10323
10324         New module 'fabsf'.
10325         * lib/math.in.h (fabsf): New declaration.
10326         * lib/fabsf.c: New file.
10327         * m4/fabsf.m4: New file.
10328         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10330         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10331         * modules/fabsf: New file.
10332         * tests/test-math-c++.cc: Check the declaration of fabsf.
10333         * doc/posix-functions/fabsf.texi: Mention the new module.
10334
10335         fabs: Use a .m4 file.
10336         * m4/fabs.m4: New file.
10337         * modules/fabs (Files): Add it.
10338         (configure.ac): Just invoke gl_FUNC_FABS.
10339
10340 2011-10-05  Jim Meyering  <meyering@redhat.com>
10341
10342         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10343         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10344         ls -lL regression introduced in coreutils-8.12, it does so at the
10345         cost of an additional stat call in the common case.  Besides, now
10346         that the kernel change that prompted commit 95f7c57f has been reverted
10347         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10348         we have no use for commit 95f7c57f, "file-has-acl: use
10349         acl_extended_file_nofollow if available".
10350
10351 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10352
10353         file-has-acl: revert unintended change in behavior of ls -L
10354         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10355         derived from...
10356         (file_has_acl): ...code here.  Call it.
10357         This problem was introduced with 2011-07-22 commit 95f7c57f,
10358         "file-has-acl: use acl_extended_file_nofollow if available".
10359         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10360
10361 2011-10-03  Bruno Haible  <bruno@clisp.org>
10362
10363         poll: Avoid link errors on MSVC.
10364         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10365         * modules/poll (Depends-on): Add sockets.
10366         (Link): New section.
10367         * NEWS: Mention the change.
10368         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10369         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10370         $(LIB_POLL) instead of $(LIBSOCKET).
10371
10372 2011-10-03  Bruno Haible  <bruno@clisp.org>
10373
10374         sys_select tests: Fix link error on MSVC 9.
10375         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10376         with $(LIB_SELECT) instead of $(LIBSOCKET).
10377
10378 2011-10-03  Bruno Haible  <bruno@clisp.org>
10379
10380         sys_select: Fix compilation error on mingw.
10381         * lib/sys_select.in.h: On native Windows, include <io.h>.
10382
10383 2011-10-03  Bruno Haible  <bruno@clisp.org>
10384
10385         wmemset: Support for MSVC.
10386         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10387         whether wmemset() exists.
10388
10389 2011-10-03  Bruno Haible  <bruno@clisp.org>
10390
10391         wmemmove: Support for MSVC.
10392         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10393         whether wmemmove() exists.
10394
10395 2011-10-03  Bruno Haible  <bruno@clisp.org>
10396
10397         wmemcpy: Support for MSVC.
10398         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10399         whether wmemcpy() exists.
10400
10401 2011-10-03  Bruno Haible  <bruno@clisp.org>
10402
10403         wmemcmp: Support for MSVC.
10404         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10405         whether wmemcmp() exists.
10406
10407 2011-10-03  Bruno Haible  <bruno@clisp.org>
10408
10409         wmemchr: Support for MSVC.
10410         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10411         whether wmemchr() exists.
10412
10413 2011-10-03  Bruno Haible  <bruno@clisp.org>
10414
10415         glthread/*, strsignal: Support for MSVC.
10416         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10417         including <winsock.h> on MSVC 9.
10418         * lib/glthread/lock.h: Likewise.
10419         * lib/glthread/thread.h: Likewise.
10420         * lib/glthread/tls.h: Likewise.
10421         * lib/glthread/yield.h: Likewise.
10422         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10423         if HAVE_UNISTD_H is false.
10424         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10425
10426 2011-10-03  Bruno Haible  <bruno@clisp.org>
10427
10428         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10429         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10430         Set to 100000.
10431
10432 2011-10-03  Bruno Haible  <bruno@clisp.org>
10433
10434         acl: Fix specification.
10435         * lib/file-has-acl.c (file_has_acl): Fix specification.
10436
10437 2011-10-03  Bruno Haible  <bruno@clisp.org>
10438
10439         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10440         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10441         (compute_curr_prefix, shared_library_fullname,
10442         find_shared_library_fullname, get_shared_library_fullname, relocate):
10443         Use it together with PIC && INSTALLDIR.
10444         Reported by <jojelino@gmail.com>
10445         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10446
10447 2011-10-01  Jim Meyering  <meyering@redhat.com>
10448
10449         maint.mk: adjust a release-related rule not to require use of gzip
10450         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10451         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10452         projects that build only .tar.xz files.  Also fix an erroneous test.
10453
10454         test-linkat: don't leave behind a temporary file
10455         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10456         Otherwise, coreutils' "make distcheck" would fail with this:
10457           Only in /c/cu/tests/torture/coreutils/test/\
10458             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10459           make[2]: *** [my-distcheck] Error 1
10460
10461         float, math: add omitted file
10462         * lib/itold.c: Add file, required for yesterday's float change.
10463
10464 2011-10-01  Bruno Haible  <bruno@clisp.org>
10465
10466         isinf: Fix for OpenBSD/x86.
10467         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10468         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10469         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10470
10471 2011-10-01  Bruno Haible  <bruno@clisp.org>
10472
10473         isfinite: Fix syntax error in configure test.
10474         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10475
10476         isfinite: Fix typo.
10477         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10478         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10479
10480 2011-10-01  Bruno Haible  <bruno@clisp.org>
10481
10482         nonblocking tests: Fix test failure on Linux/IA-64.
10483         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10484         Set to 270000.
10485
10486 2011-10-01  Bruno Haible  <bruno@clisp.org>
10487
10488         mkfifoat tests: Fix a test failure on mingw.
10489         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10490         with error ENOSYS.
10491
10492 2011-09-30  Bruno Haible  <bruno@clisp.org>
10493
10494         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10495         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10496         'long double'. Set REPLACE_ITOLD.
10497         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10498         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10499         * lib/itold.c: New file.
10500         * modules/float (Files): Add lib/itold.c.
10501         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10502         (Makefile.am): Substitute REPLACE_ITOLD.
10503         * modules/math (Depends-on): Add float.
10504         (Makefile.am): Substitute REPLACE_ITOLD.
10505         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10506         * doc/posix-headers/math.texi: Likewise.
10507         * doc/posix-functions/logl.texi: Likewise.
10508
10509 2011-09-30  Bruno Haible  <bruno@clisp.org>
10510
10511         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10512         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10513         Set to 140000.
10514
10515 2011-09-30  Bruno Haible  <bruno@clisp.org>
10516
10517         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10518         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10519         invocation, say "right after AC_PROG_CC_STDC", not "right after
10520         AC_PROG_CC".
10521         Reported by Gary V. Vaughan <gary@gnu.org>.
10522
10523 2011-09-30  Bruno Haible  <bruno@clisp.org>
10524
10525         Centralize C99 requirement.
10526         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10527         * modules/stdarg (configure.ac-early): Invoke it instead of
10528         AC_PROG_CC_STDC.
10529         Reported by Gary V. Vaughan and Paul Eggert.
10530
10531 2011-09-29  Bruno Haible  <bruno@clisp.org>
10532
10533         float: Fix LDBL_MAX value on Linux/PowerPC.
10534         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10535         on Linux/PowerPC.
10536         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10537         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10538         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10539         platform.
10540         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10541
10542 2011-09-29  Bruno Haible  <bruno@clisp.org>
10543
10544         doc: Improve doc about gl_EARLY.
10545         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10546         AC_PROG_CC_STDC invocation.
10547         Reported by Gary V. Vaughan <gary@gnu.org>.
10548
10549 2011-09-28  Bruno Haible  <bruno@clisp.org>
10550
10551         fgetc, fputc, fread, fwrite tests: Fix link error.
10552         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10553         on non-MSVC platforms.
10554         * tests/test-fputc.c (main): Likewise.
10555         * tests/test-fread.c (main): Likewise.
10556         * tests/test-fwrite.c (main): Likewise.
10557         Reported by Jim Meyering.
10558
10559 2011-09-27  Bruno Haible  <bruno@clisp.org>
10560
10561         fputc, fwrite tests: Avoid test failure on MSVC.
10562         * tests/test-fgetc.c: Include msvc-inval.h.
10563         (main): Invoke gl_msvc_inval_ensure_handler.
10564         * tests/test-fputc.c: Include msvc-inval.h.
10565         (main): Invoke gl_msvc_inval_ensure_handler.
10566         * tests/test-fread.c: Include msvc-inval.h.
10567         (main): Invoke gl_msvc_inval_ensure_handler.
10568         * tests/test-fwrite.c: Include msvc-inval.h.
10569         (main): Invoke gl_msvc_inval_ensure_handler.
10570         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10571         * modules/fputc-tests (Depends-on): Likewise.
10572         * modules/fread-tests (Depends-on): Likewise.
10573         * modules/fwrite-tests (Depends-on): Likewise.
10574
10575 2011-09-27  Bruno Haible  <bruno@clisp.org>
10576
10577         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10578         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10579         (raise): Remove older, duplicated declaration.
10580         (_gl_raise_SIGPIPE): New declaration.
10581         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10582         (rpl_raise): Remove function.
10583         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10584         a gnulib-defined SIGPIPE here.
10585         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10586         'sigprocmask' has detected missing signal-blocking and the module
10587         'sigpipe' is enabled.
10588         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10589
10590 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10591
10592         base64-tests: avoid memory leak
10593         * tests/test-base64.c (main): Plug memory leak.
10594
10595         base32: new module
10596         * modules/base32: New module.
10597         * lib/base32.c: New file.
10598         * lib/base32.h: Likewise.
10599         * m4/base32.m4: Likewise.
10600         * modules/base32-tests: New test.
10601         * tests/test-base32.c: Likewise.
10602         * MODULES.html.sh (Misc): Mention it.
10603
10604 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10605
10606         gnulib: use more-standard license notice wording
10607         * gnulib-tool (func_emit_copyright_notice): When emitting a
10608         license notice into a file, use the standard wording as suggested
10609         by the current information for GNU maintainers, except say "file"
10610         rather than "program".  The new wording gives a license version
10611         number, which addresses an issue raised by Glenn Morris in
10612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10613         * m4/onceonly.m4: Use that same wording here, too.
10614
10615         dup2: minor simplification
10616         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10617         as lib/dup2.c no longer uses 'inline'.
10618
10619 2011-09-25  Bruno Haible  <bruno@clisp.org>
10620
10621         strings: Fix compilation error on MSVC.
10622         * lib/strings.in.h: Include <stddef.h> for size_t.
10623
10624 2011-09-25  Bruno Haible  <bruno@clisp.org>
10625
10626         fflush et al.: Document limitation on MSVC.
10627         * doc/posix-functions/fflush.texi: Document possible crash in handling
10628         mode other than DEFAULT_HANDLING.
10629         * doc/posix-functions/fgetc.texi: Likewise.
10630         * doc/posix-functions/fputc.texi: Likewise.
10631         * doc/posix-functions/fread.texi: Likewise.
10632         * doc/posix-functions/fwrite.texi: Likewise.
10633
10634 2011-09-25  Bruno Haible  <bruno@clisp.org>
10635
10636         msvc-inval: Allow three invalid parameter handling modes.
10637         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10638         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10639         macros.
10640         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10641         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10642         SANE_LIBRARY_HANDLING as a no-op.
10643         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10644         <stdlib.h>.
10645         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10646
10647 2011-09-25  Bruno Haible  <bruno@clisp.org>
10648
10649         msvc-inval: Make handler multithread-safe.
10650         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10651         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10652         declarations.
10653         (gl_msvc_inval_current): New declaration.
10654         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10655         Operate on the structure returned by gl_msvc_inval_current().
10656         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10657         Remove varaiables.
10658         (tls_index, tls_initialized): New variables.
10659         (not_per_thread): New variable.
10660         (gl_msvc_inval_current): New function.
10661         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10662         returned by gl_msvc_inval_current().
10663
10664 2011-09-25  Bruno Haible  <bruno@clisp.org>
10665
10666         msvc-inval: Install handler globally.
10667         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10668         !_MSC_VER.
10669         (gl_msvc_invalid_parameter_handler): Remove declaration.
10670         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10671         declarations.
10672         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10673         Install the handler globally, don't uninstall it.
10674         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10675         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10676         currently valid, call RaiseException instead.
10677         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10678         for !_MSC_VER.
10679
10680 2011-09-25  Bruno Haible  <bruno@clisp.org>
10681
10682         strerror_r-posix: Fix for MSVC 9.
10683         * lib/strerror_r.c (local_snprintf): New function.
10684         (snprintf): Define to local_snprintf, not to _snprintf.
10685
10686 2011-09-25  Bruno Haible  <bruno@clisp.org>
10687
10688         ftruncate: Support for MSVC 9.
10689         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10690         (chsize_nothrow): New function.
10691         (chsize): Redefine as a macro.
10692         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10693         * modules/ftruncate (Depends-on): Add msvc-inval.
10694
10695 2011-09-25  Bruno Haible  <bruno@clisp.org>
10696
10697         New module 'fstat'.
10698         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10699         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10700         * lib/fchdir.c (rpl_fstat): Remove function.
10701         * m4/fstat.m4: New file.
10702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10703         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10704         declared.
10705         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10706         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10707         * modules/fstat: New file.
10708         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10709         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10710         is set.
10711         * doc/posix-functions/fstat.texi: Mention the new module and the
10712         problem on MSVC.
10713         * NEWS: Mention the change.
10714         * modules/acl (Depends-on): Add fstat.
10715         * modules/chdir-safer (Depends-on): Likewise.
10716         * modules/chown (Depends-on): Likewise.
10717         * modules/copy-file (Depends-on): Likewise.
10718         * modules/fchdir (Depends-on): Likewise.
10719         * modules/fdopendir (Depends-on): Likewise.
10720         * modules/fopen (Depends-on): Likewise.
10721         * modules/fts (Depends-on): Likewise.
10722         * modules/getcwd (Depends-on): Likewise.
10723         * modules/isapipe (Depends-on): Likewise.
10724         * modules/linkat (Depends-on): Likewise.
10725         * modules/lseek (Depends-on): Likewise.
10726         * modules/mkdir-p (Depends-on): Likewise.
10727         * modules/open (Depends-on): Likewise.
10728         * modules/openat (Depends-on): Likewise.
10729         * modules/read-file (Depends-on): Likewise.
10730         * modules/renameat (Depends-on): Likewise.
10731         * modules/utimens (Depends-on): Likewise.
10732
10733 2011-09-25  Bruno Haible  <bruno@clisp.org>
10734
10735         linkat: Fix compilation on MSVC 9.
10736         * lib/linkat.c: Don't include <stdint.h>.
10737
10738 2011-09-25  Bruno Haible  <bruno@clisp.org>
10739
10740         fclose: Support for MSVC 9.
10741         * lib/fclose.c: Include msvc-inval.h.
10742         (fclose_nothrow): New function.
10743         (rpl_fclose): Use it.
10744         * modules/fclose (Depends-on): Add msvc-inval.
10745         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10746
10747 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         dup2: minor simplifications
10750         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10751         that it's a performance win.
10752         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10753         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10754
10755 2011-09-24  Jim Meyering  <meyering@redhat.com>
10756
10757         test-futimens: avoid a warning from gcc -Wshadow
10758         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10759         to avoid a shadowing warning.
10760
10761 2011-09-24  Bruno Haible  <bruno@clisp.org>
10762
10763         fdopen: Support for MSVC 9.
10764         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10765         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10766         * lib/fdopen.c: Include msvc-inval.h.
10767         (fdopen_nothrow): New function.
10768         (rpl_fdopen): Use it.
10769         * modules/fdopen (Depends-on): Add msvc-inval.
10770         * modules/fclose-tests (Depends-on): Add fdopen.
10771         * modules/fflush-tests (Depends-on): Likewise.
10772         * modules/fgetc-tests (Depends-on): Likewise.
10773         * modules/fputc-tests (Depends-on): Likewise.
10774         * modules/fread-tests (Depends-on): Likewise.
10775         * modules/freopen-tests (Depends-on): Likewise.
10776         * modules/fseeko-tests (Depends-on): Likewise.
10777         * modules/ftello-tests (Depends-on): Likewise.
10778         * modules/fwrite-tests  (Depends-on): Likewise.
10779         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10780
10781 2011-09-24  Bruno Haible  <bruno@clisp.org>
10782
10783         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10784         * modules/fgetc-tests (Depends-on): Add unistd.
10785         * modules/fputc-tests (Depends-on): Likewise.
10786         * modules/fread-tests (Depends-on): Likewise.
10787         * modules/fwrite-tests (Depends-on): Likewise.
10788
10789 2011-09-24  Bruno Haible  <bruno@clisp.org>
10790
10791         dup: Simplify autoconf test.
10792         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10793         on gl_MSVC_INVAL's result.
10794
10795 2011-09-24  Bruno Haible  <bruno@clisp.org>
10796
10797         Tests for function fwrite().
10798         * modules/fwrite-tests: New file.
10799         * tests/test-fwrite.c: New file.
10800         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10801
10802         Tests for function fread().
10803         * modules/fread-tests: New file.
10804         * tests/test-fread.c: New file.
10805         * modules/stdio-tests (Depends-on): Add fread-tests.
10806
10807         Activate fputc tests.
10808         * modules/stdio-tests (Depends-on): Add fputc-tests.
10809
10810         Enhance fgetc, fputc tests.
10811         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10812         * tests/test-fputc.c (main): Likewise.
10813
10814 2011-09-24  Bruno Haible  <bruno@clisp.org>
10815
10816         write: Support for MSVC 9.
10817         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10818         is not 1.
10819         * lib/write.c (write_nothrow): New function.
10820         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10821         not 1. Use write_nothrow.
10822         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10823         invalid parameter handler.
10824         (gl_PREREQ_WRITE): New macro.
10825         * modules/write (Depends-on): Add msvc-inval.
10826         (configure.ac): Invoke gl_PREREQ_WRITE.
10827         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10828
10829 2011-09-24  Bruno Haible  <bruno@clisp.org>
10830
10831         read: Fix last commit.
10832         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10833
10834 2011-09-24  Bruno Haible  <bruno@clisp.org>
10835
10836         dup2: Fix last commit.
10837         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10838         (rpl_dup2): Disable fcntl workaround on native Windows.
10839
10840         sigprocmask: Make code safer.
10841         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10842         section that changes macro definitions for this compilation unit.
10843
10844 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10845
10846         dup2: clarify by coalescing Windows-specific material
10847         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10848         "msvc-nothrow.h"' to the Windows-specific section, so that the
10849         Emacs source need not contain these include files.
10850         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10851         Windows-specific fixes into this function rather than just the
10852         nothrow fix, as this shortens and clarifies the code.  Always
10853         define as a function, as that's a bit cleaner than having it be
10854         sometimes a function and sometimes a macro.
10855         (rpl_dup2): Move the Windows-specific stuff out of here and into
10856         ms_windows_dup2.  Don't protect the Haiku-related fix with
10857         "#if !defined __linux__", as the same code also works around
10858         a Linux kernel bug, and it doesn't add any system calls on any
10859         platform.  Add comment about FreeBSD 6.1.
10860
10861         sigprocmask: move #include directive
10862         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10863         Windows-specific section, so that the Emacs source need not
10864         contain msvc-inval.h.
10865
10866 2011-09-23  Bruno Haible  <bruno@clisp.org>
10867
10868         read: Support for MSVC 9.
10869         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10870         is not 1.
10871         * lib/read.c (read_nothrow): New function.
10872         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10873         read_nothrow.
10874         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10875         invalid parameter handler.
10876         (gl_PREREQ_READ): New macro.
10877         * modules/read (Depends-on): Add msvc-inval.
10878         (configure.ac): Invoke gl_PREREQ_READ.
10879         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10880
10881 2011-09-23  Bruno Haible  <bruno@clisp.org>
10882
10883         close: Support for MSVC 9.
10884         * lib/close.c: Include <errno.h>, msvc-inval.h.
10885         (close_nothrow): New function.
10886         (rpl_close): Use it.
10887         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10888         invalid parameter handler.
10889         * modules/close (Depends-on): Add msvc-inval.
10890         * modules/dup2-tests (Depends-on): Add close.
10891         * modules/dup3-tests (Depends-on): Likewise.
10892         * modules/fcntl-tests (Depends-on): Likewise.
10893         * modules/spawn-pipe-tests (Depends-on): Likewise.
10894         * modules/unistd-safer-tests (Depends-on): Likewise.
10895         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10896
10897 2011-09-23  Bruno Haible  <bruno@clisp.org>
10898
10899         New module 'dup'.
10900         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10901         Allow replacement.
10902         * lib/dup.c: New file.
10903         * lib/fchdir.c (rpl_dup): Remove function.
10904         * m4/dup.m4: New file.
10905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10906         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10907         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10908         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10909         * modules/dup: New file.
10910         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10911         'dup' module is in use.
10912         * modules/fdopendir (Depends-on): Add dup.
10913         * modules/fdutimensat-tests (Depends-on): Likewise.
10914         * modules/fts (Depends-on): Likewise.
10915         * modules/futimens-tests (Depends-on): Likewise.
10916         * modules/posix_spawnp-tests (Depends-on): Likewise.
10917         * modules/unistd-safer-tests (Depends-on): Likewise.
10918         * modules/utimens-tests (Depends-on): Likewise.
10919         * doc/posix-functions/dup.texi: Mention the new module and the problem
10920         on MSVC.
10921
10922 2011-09-23  Bruno Haible  <bruno@clisp.org>
10923
10924         getdtablesize: Support for MSVC 9.
10925         * lib/getdtablesize.c: Include msvc-inval.h.
10926         (_setmaxstdio_nothrow): New function.
10927         (_setmaxstdio): Redefine it.
10928         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10929         * modules/getdtablesize (Depends-on): Add msvc-inval.
10930         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10931
10932 2011-09-23  Bruno Haible  <bruno@clisp.org>
10933
10934         signal-h: Rename from signal.
10935         * modules/signal-h: Renamed from modules/signal.
10936         * modules/pthread_sigmask (Depends-on): Update.
10937         * modules/raise (Depends-on): Likewise.
10938         * modules/sigaction (Depends-on): Likewise.
10939         * modules/sigpipe (Depends-on): Likewise.
10940         * modules/sigprocmask (Depends-on): Likewise.
10941         * modules/sys_select (Depends-on): Likewise.
10942         * modules/signal-h-tests: Renamed from modules/signal-tests.
10943         (Files, Depends-on, Makefile.am): Update.
10944         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10945         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10946         (Files, Makefile.am): Update.
10947         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10948         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10949         * modules/signal: New placeholder file.
10950         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10951         * doc/posix-headers/signal.texi: Update.
10952         * NEWS: Mention the change.
10953
10954 2011-09-23  Bruno Haible  <bruno@clisp.org>
10955
10956         sigprocmask: Avoid crashes through signal() on MSVC 9.
10957         * lib/sigprocmask.c: Include msvc-inval.h.
10958         (signal_nothrow): New function.
10959         (signal): Redefine it.
10960         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10961         * modules/sigprocmask (Depends-on): Add msvc-inval.
10962         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10963
10964 2011-09-23  Bruno Haible  <bruno@clisp.org>
10965
10966         Tests for module 'raise'.
10967         * modules/raise-tests: New file.
10968         * tests/test-raise.c: New file.
10969
10970         raise: Support for MSVC.
10971         * lib/signal.in.h (raise): New declaration.
10972         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10973         for native Windows platforms.
10974         * m4/raise.m4: New file.
10975         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10976         HAVE_RAISE, REPLACE_RAISE.
10977         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10978         REPLACE_RAISE.
10979         * modules/raise (Status, Notice): Remove fields.
10980         (Files): Add m4/raise.m4.
10981         (Depends-on): Add signal, msvc-inval.
10982         (configure.ac): Use the common idioms.
10983         (Maintainer): Add me.
10984         * tests/test-signal-c++.cc: Check the signature of raise.
10985         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10986
10987 2011-09-23  Bruno Haible  <bruno@clisp.org>
10988
10989         pipe2: Fix compilation on pre-C99 compilers.
10990         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10991
10992 2011-09-23  Bruno Haible  <bruno@clisp.org>
10993
10994         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10995         * lib/msvc-nothrow.h: New file.
10996         * lib/msvc-nothrow.c: New file.
10997         * m4/msvc-nothrow.m4: New file.
10998         * modules/msvc-nothrow: New file.
10999         * lib/dup2.c: Include msvc-nothrow.h.
11000         (rpl_dup2): No need to protect _get_osfhandle call here.
11001         * lib/accept4.c: Include msvc-nothrow.h.
11002         * lib/error.c: Likewise.
11003         * lib/fcntl.c: Likewise.
11004         * lib/lseek.c: Likewise.
11005         * lib/nonblocking.c: Likewise.
11006         * lib/poll.c: Likewise.
11007         * lib/read.c: Likewise.
11008         * lib/select.c: Likewise.
11009         * lib/sockets.h: Likewise.
11010         * lib/sockets.c: Likewise.
11011         * lib/stdio-read.c: Likewise.
11012         * lib/stdio-write.c: Likewise.
11013         * lib/write.c: Likewise.
11014         * lib/w32sock.h: Likewise.
11015         * lib/w32spawn.h: Likewise.
11016         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11017         * lib/fsync.c: Likewise.
11018         * lib/isapipe.c: Likewise.
11019         * modules/dup2 (Depends-on): Add msvc-nothrow.
11020         * modules/accept4 (Depends-on): Likewise.
11021         * modules/error (Depends-on): Likewise.
11022         * modules/fcntl (Depends-on): Likewise.
11023         * modules/lseek (Depends-on): Likewise.
11024         * modules/nonblocking (Depends-on): Likewise.
11025         * modules/poll (Depends-on): Likewise.
11026         * modules/read (Depends-on): Likewise.
11027         * modules/select (Depends-on): Likewise.
11028         * modules/sockets (Depends-on): Likewise.
11029         * modules/sigpipe (Depends-on): Likewise.
11030         * modules/write (Depends-on): Likewise.
11031         * modules/accept (Depends-on): Likewise.
11032         * modules/bind (Depends-on): Likewise.
11033         * modules/connect (Depends-on): Likewise.
11034         * modules/gethostname (Depends-on): Likewise.
11035         * modules/getpeername (Depends-on): Likewise.
11036         * modules/getsockname (Depends-on): Likewise.
11037         * modules/getsockopt (Depends-on): Likewise.
11038         * modules/ioctl (Depends-on): Likewise.
11039         * modules/listen (Depends-on): Likewise.
11040         * modules/recv (Depends-on): Likewise.
11041         * modules/recvfrom (Depends-on): Likewise.
11042         * modules/send (Depends-on): Likewise.
11043         * modules/sendto (Depends-on): Likewise.
11044         * modules/setsockopt (Depends-on): Likewise.
11045         * modules/shutdown (Depends-on): Likewise.
11046         * modules/socket (Depends-on): Likewise.
11047         * modules/execute (Depends-on): Likewise.
11048         * modules/spawn-pipe (Depends-on): Likewise.
11049         * modules/flock (Depends-on): Likewise.
11050         * modules/fsync (Depends-on): Likewise.
11051         * modules/isapipe (Depends-on): Likewise.
11052         * tests/test-cloexec.c: Include msvc-nothrow.h.
11053         * tests/test-dup-safer.c: Likewise.
11054         * tests/test-dup2.c: Likewise.
11055         * tests/test-dup3.c: Likewise.
11056         * tests/test-fcntl.c: Likewise.
11057         * tests/test-pipe.c: Likewise.
11058         * tests/test-pipe2.c: Likewise.
11059         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11060         * modules/unistd-safer-tests (Depends-on): Likewise.
11061         * modules/dup2-tests (Depends-on): Likewise.
11062         * modules/dup3-tests (Depends-on): Likewise.
11063         * modules/fcntl-tests (Depends-on): Likewise.
11064         * modules/pipe-posix-tests (Depends-on): Likewise.
11065         * modules/pipe2-tests (Depends-on): Likewise.
11066
11067 2011-09-23  Bruno Haible  <bruno@clisp.org>
11068
11069         dup2: Make code more maintainable.
11070         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11071         (rpl_dup2): Use it.
11072         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11073         * modules/dup2 (configure.ac): Invoke it.
11074         Reported by Paul Eggert.
11075
11076 2011-09-23  Bruno Haible  <bruno@clisp.org>
11077
11078         msvc-inval: Fix compilation error.
11079         * lib/msvc-inval.h: Include <excpt.h>.
11080
11081 2011-09-23  Bruno Haible  <bruno@clisp.org>
11082
11083         mkdir: Tweak for MSVC 9.
11084         * lib/sys_stat.in.h: Update comments.
11085         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11086
11087         Tests for module 'chdir'.
11088         * modules/chdir-tests: New file.
11089         * tests/test-chdir.c: New file.
11090
11091         New module 'chdir'.
11092         * modules/chdir: New file.
11093         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11094         (chdir): New declaration.
11095         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11096         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11097         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11098         * tests/test-unistd-c++.cc: Check signature of chdir.
11099         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11100         * modules/chdir-long (Depends-on): Add chdir.
11101         * modules/fchdir (Depends-on): Likewise.
11102         * modules/rename (Depends-on): Likewise.
11103         * modules/savewd (Depends-on): Likewise.
11104
11105         rmdir: Support for mingw, MSVC 9.
11106         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11107         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11108
11109         getcwd: Tweak for MSVC 9.
11110         * lib/unistd.in.h: Update comments.
11111         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11112
11113 2011-09-22  Bruno Haible  <bruno@clisp.org>
11114
11115         strerror_r-posix: Avoid a link error on MSVC.
11116         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11117         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11118
11119 2011-09-22  Bruno Haible  <bruno@clisp.org>
11120
11121         select: Avoid link errors on MSVC.
11122         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11123         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11124         * modules/pselect (Link): Likewise.
11125         * NEWS: Mention the change.
11126         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11127         test-select-stdin against $(LIB_SELECT).
11128         * modules/pselect-tests (Makefile.am): Link test-pselect against
11129         $(LIB_SELECT).
11130
11131 2011-09-22  Bruno Haible  <bruno@clisp.org>
11132
11133         select: Avoid compilation error on MSVC.
11134         * lib/select.c: Don't include <stdbool.h>.
11135
11136 2011-09-21  Bruno Haible  <bruno@clisp.org>
11137
11138         Consolidate all uses of PATH_MAX in *.m4 files.
11139         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11140         macros.
11141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11142         and gl_PATHMAX_SNIPPET.
11143         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11145         * modules/chdir-long (Files): Add m4/pathmax.m4.
11146         * modules/getcwd (Files): Likewise.
11147
11148 2011-09-21  Bruno Haible  <bruno@clisp.org>
11149
11150         ftruncate: Un-deprecate, concentrate on Win32 support.
11151         * modules/ftruncate (Status, Notice): Remove sections.
11152         (Depends-on): Add largefile.
11153         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11154         non-mingw platforms.
11155         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11156         include <io.h>.
11157         * modules/perror-tests (Depends-on): Add ftruncate.
11158         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11159         'ftruncate' module.
11160
11161 2011-09-21  Bruno Haible  <bruno@clisp.org>
11162
11163         Add dependencies to new dirent related modules.
11164         * modules/opendir (Depends-on): Add closedir.
11165         * modules/getcwd (Depends-on): Add opendir, closedir.
11166         * modules/dirent-safer-tests (Depends-on): Likewise.
11167         * modules/fdopendir-tests (Depends-on): Likewise.
11168         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11169         * modules/renameat-tests (Depends-on): Likewise.
11170
11171 2011-09-21  Bruno Haible  <bruno@clisp.org>
11172
11173         opendir: Avoid compilation error on mingw.
11174         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11175         * modules/opendir (Depends-on): Add unistd.
11176
11177 2011-09-21  Bruno Haible  <bruno@clisp.org>
11178
11179         ftruncate tests: Avoid a test failure on mingw.
11180         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11181
11182 2011-09-21  Bruno Haible  <bruno@clisp.org>
11183
11184         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11185         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11186         native Windows.
11187
11188 2011-09-21  Bruno Haible  <bruno@clisp.org>
11189
11190         New module 'fdopen'.
11191         * lib/stdio.in.h (fdopen): New declaration.
11192         * lib/fdopen.c: New file.
11193         * m4/fdopen.m4: New file.
11194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11195         REPLACE_FDOPEN.
11196         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11197         REPLACE_FDOPEN.
11198         * modules/fdopen: New file.
11199         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11200         * tests/test-stdio-c++.cc: Check signature of fdopen.
11201         * doc/posix-functions/fdopen.texi: Mention the new module.
11202
11203 2011-09-21  Bruno Haible  <bruno@clisp.org>
11204
11205         unlockpt tests: Avoid test failure on NetBSD 5.1.
11206         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11207         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11208
11209 2011-09-21  Bruno Haible  <bruno@clisp.org>
11210
11211         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11212         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11213         * tests/test-getlogin_r.c (main): Likewise.
11214
11215 2011-09-20  Bruno Haible  <bruno@clisp.org>
11216
11217         time tests: Don't require pid_t.
11218         * doc/posix-headers/time.texi: Revert last change.
11219         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11220         * tests/test-time.c: Comment out the check for pid_t.
11221
11222 2011-09-20  Bruno Haible  <bruno@clisp.org>
11223
11224         fsync tests: Avoid a test failure on mingw.
11225         * tests/test-fsync.c (main): Allow a failure with EIO.
11226
11227 2011-09-20  Bruno Haible  <bruno@clisp.org>
11228
11229         euidaccess: Update comments.
11230         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11231
11232 2011-09-20  Bruno Haible  <bruno@clisp.org>
11233
11234         Ensure EBADF returns for socket functions on mingw.
11235         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11236         descriptor is invalid.
11237         * lib/bind.c (rpl_bind): Likewise.
11238         * lib/connect.c (rpl_connect): Likewise.
11239         * lib/getpeername.c (rpl_getpeername): Likewise.
11240         * lib/getsockname.c (rpl_getsockname): Likewise.
11241         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11242         * lib/listen.c (rpl_listen): Likewise.
11243         * lib/recv.c (rpl_recv): Likewise.
11244         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11245         * lib/send.c (rpl_send): Likewise.
11246         * lib/sendto.c (rpl_sendto): Likewise.
11247         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11248         * lib/shutdown.c (rpl_shutdown): Likewise.
11249
11250 2011-09-20  Bruno Haible  <bruno@clisp.org>
11251
11252         select tests: EBADF tests.
11253         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11254         test_bad_fd): New functions.
11255         (test_function): Invoke also test_bad_fd.
11256
11257 2011-09-20  Bruno Haible  <bruno@clisp.org>
11258
11259         Tests for module 'posix_spawn_file_actions_addopen.
11260         * modules/posix_spawn_file_actions_addopen-tests: New file.
11261         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11262
11263         Tests for module 'posix_spawn_file_actions_adddup2'.
11264         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11265         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11266
11267         Tests for module 'posix_spawn_file_actions_addclose'.
11268         * modules/posix_spawn_file_actions_addclose-tests: New file.
11269         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11270
11271 2011-09-20  Bruno Haible  <bruno@clisp.org>
11272
11273         Tests for module 'unlockpt'.
11274         * modules/unlockpt-tests: New file.
11275         * tests/test-unlockpt.c: New file.
11276         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11277
11278         Tests for module 'grantpt'.
11279         * modules/grantpt-tests: New file.
11280         * tests/test-grantpt.c: New file.
11281         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11282
11283 2011-09-20  Bruno Haible  <bruno@clisp.org>
11284
11285         freopen tests: EBADF tests.
11286         * tests/test-freopen.c: Include errno.h, unistd.h.
11287         (main): Add tests for EBADF, commented out for the moment.
11288
11289         fclose tests: EBADF tests.
11290         * tests/test-fclose.c (main): Add tests for EBADF.
11291
11292         fflush tests: EBADF tests.
11293         * tests/test-fflush.c: Include errno.h, macros.h.
11294         (main): Add tests for EBADF.
11295
11296         ftello tests: EBADF tests.
11297         * tests/test-ftello4.sh: New file.
11298         * tests/test-ftello4.c: New file.
11299         * modules/ftello-tests (Files): Add them.
11300         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11301
11302         fseeko tests: EBADF tests.
11303         * tests/test-fseeko4.sh: New file.
11304         * tests/test-fseeko4.c: New file.
11305         * modules/fseeko-tests (Files): Add them.
11306         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11307
11308         Tests for function fputc().
11309         * modules/fputc-tests: New file.
11310         * tests/test-fputc.c: New file.
11311         * modules/stdio-tests (Depends-on): Add fputc-tests.
11312
11313         Tests for function fgetc().
11314         * modules/fgetc-tests: New file.
11315         * tests/test-fgetc.c: New file.
11316         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11317
11318         Tests for function fdopen().
11319         * modules/fdopen-tests: New file.
11320         * tests/test-fdopen.c: New file.
11321         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11322
11323         Tests for module 'vdprintf'.
11324         * modules/vdprintf-tests: New file.
11325         * tests/test-vdprintf.c: New file.
11326
11327         Tests for module 'dprintf'.
11328         * modules/dprintf-tests: New file.
11329         * tests/test-dprintf.c: New file.
11330
11331 2011-09-20  Bruno Haible  <bruno@clisp.org>
11332
11333         Tests for module 'ioctl'.
11334         * modules/ioctl-tests: New file.
11335         * tests/test-ioctl.c: New file.
11336
11337 2011-09-20  Bruno Haible  <bruno@clisp.org>
11338
11339         fcntl tests: EBADF tests.
11340         * tests/test-fcntl.c (main): Add more tests for EBADF.
11341
11342 2011-09-20  Bruno Haible  <bruno@clisp.org>
11343
11344         utimensat tests: EBADF tests.
11345         * tests/test-utimensat.c (main): Add tests for EBADF.
11346
11347         renameat tests: EBADF tests.
11348         * tests/test-renameat.c (main): Add tests for EBADF.
11349
11350         mkfifoat tests: EBADF tests.
11351         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11352
11353         readlinkat tests: EBADF tests.
11354         * tests/test-readlinkat.c (main): Add tests for EBADF.
11355
11356         symlinkat tests: EBADF tests.
11357         * tests/test-symlinkat.c (main): Add tests for EBADF.
11358
11359         linkat tests: EBADF tests.
11360         * tests/test-linkat.c (main): Add tests for EBADF.
11361
11362         Tests for module 'faccessat'.
11363         * modules/faccessat-tests: New file.
11364         * tests/test-faccessat.c: New file.
11365
11366         fdopendir tests: EBADF tests.
11367         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11368
11369         openat tests: EBADF tests.
11370         * tests/test-fchownat.c (main): Add tests for EBADF.
11371         * tests/test-fstatat.c (main): Likewise.
11372         * tests/test-mkdirat.c (main): Likewise.
11373         * tests/test-openat.c (main): Likewise.
11374         * tests/test-unlinkat.c (main): Likewise.
11375         * tests/test-fchmodat.c: New file.
11376         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11377         (Makefile.am): Also run 'test-fchmodat'.
11378
11379 2011-09-20  Bruno Haible  <bruno@clisp.org>
11380
11381         utimens, futimens, fdutimensat tests: EBADF tests.
11382         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11383
11384         Tests for function fstat().
11385         * modules/fstat-tests: New file.
11386         * tests/test-fstat.c: New file.
11387         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11388
11389 2011-09-20  Bruno Haible  <bruno@clisp.org>
11390
11391         test-ttyname_r tests: EBADF tests.
11392         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11393
11394         Tests for module 'isatty'.
11395         * modules/isatty-tests: New file.
11396         * tests/test-isatty.c: New file.
11397
11398         Tests for module 'write'.
11399         * modules/write-tests: New file.
11400         * tests/test-write.c: New file.
11401
11402         Tests for module 'read'.
11403         * modules/read-tests: New file.
11404         * tests/test-read.c: New file.
11405
11406         pwrite tests: EBADF tests.
11407         * tests/test-pwrite.c (main): Add tests for EBADF.
11408
11409         pread tests: EBADF tests.
11410         * tests/test-pread.c (main): Add tests for EBADF.
11411
11412         lseek tests: EBADF tests.
11413         * tests/test-lseek.c (main): Add more tests for EBADF.
11414
11415         Tests for module 'ftruncate'.
11416         * modules/ftruncate-tests: New file.
11417         * tests/test-ftruncate.sh: New file.
11418         * tests/test-ftruncate.c: New file.
11419
11420         fsync tests: EBADF tests.
11421         * tests/test-fsync.c (main): Add more tests for EBADF.
11422
11423         fdatasync tests: EBADF tests.
11424         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11425
11426         Tests for module 'fchown'.
11427         * modules/fchown-tests: New file.
11428         * tests/test-fchown.c: New file.
11429
11430         Tests for module 'fchmod'.
11431         * modules/fchmod-tests: New file.
11432         * tests/test-fchmod.c: New file.
11433
11434         fchdir tests: EBADF tests.
11435         * tests/test-fchdir.c (main): Add more tests for EBADF.
11436
11437         dup2 tests: EBADF tests.
11438         * tests/test-dup2.c (main): Add more tests for EBADF.
11439
11440         Tests for module 'dup'.
11441         * modules/dup-tests: New file.
11442         * tests/test-dup.c: New file.
11443
11444         Tests for module 'close'.
11445         * modules/close-tests: New file.
11446         * tests/test-close.c: New file.
11447
11448 2011-09-20  Bruno Haible  <bruno@clisp.org>
11449
11450         Tests for module 'shutdown'.
11451         * modules/shutdown-tests: New file.
11452         * tests/test-shutdown.c: New file.
11453
11454         Tests for module 'setsockopt'.
11455         * modules/setsockopt-tests: New file.
11456         * tests/test-setsockopt.c: New file.
11457
11458         Tests for module 'sendto'.
11459         * modules/sendto-tests: New file.
11460         * tests/test-sendto.c: New file.
11461
11462         Tests for module 'send'.
11463         * modules/send-tests: New file.
11464         * tests/test-send.c: New file.
11465
11466         Tests for module 'recvfrom'.
11467         * modules/recvfrom-tests: New file.
11468         * tests/test-recvfrom.c: New file.
11469
11470         Tests for module 'recv'.
11471         * modules/recv-tests: New file.
11472         * tests/test-recv.c: New file.
11473
11474         Tests for module 'listen'.
11475         * modules/listen-tests: New file.
11476         * tests/test-listen.c: New file.
11477
11478         Tests for module 'getsockopt'.
11479         * modules/getsockopt-tests: New file.
11480         * tests/test-getsockopt.c: New file.
11481
11482         Tests for module 'getsockname'.
11483         * modules/getsockname-tests: New file.
11484         * tests/test-getsockname.c: New file.
11485
11486         Tests for module 'getpeername'.
11487         * modules/getpeername-tests: New file.
11488         * tests/test-getpeername.c: New file.
11489
11490         Tests for module 'connect'.
11491         * modules/connect-tests: New file.
11492         * tests/test-connect.c: New file.
11493
11494         Tests for module 'bind'.
11495         * modules/bind-tests: New file.
11496         * tests/test-bind.c: New file.
11497
11498         accept4 tests: Fix for native Windows.
11499         * tests/test-accept4.c: Include sockets.h.
11500         (main): Invoke gl_sockets_startup.
11501         * modules/accept4-tests (Depends-on): Add sockets.
11502
11503         accept tests: Fix for native Windows.
11504         * tests/test-accept.c: Include sockets.h.
11505         (main): Invoke gl_sockets_startup.
11506         * modules/accept-tests (Depends-on): Add sockets.
11507
11508 2011-09-19  Bruno Haible  <bruno@clisp.org>
11509
11510         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11511         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11512         do...while(0).
11513         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11514         Suggested by Paul Eggert.
11515
11516 2011-09-19  Bruno Haible  <bruno@clisp.org>
11517
11518         sched: Ensure pid_t is defined.
11519         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11520         not define pid_t.
11521         * lib/sched.in.h: Include <sys/types.h>.
11522         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11524
11525 2011-09-19  Bruno Haible  <bruno@clisp.org>
11526
11527         msvc-inval: Ensure the entire expansion is a single statement.
11528         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11529         of braces.
11530
11531 2011-09-19  Jim Meyering  <meyering@redhat.com>
11532
11533         tests: use printf, not echo in init.sh's warn_ function
11534         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11535         misbehave when given strings containing a backslash or starting
11536         with e.g., -n.  James Youngman suggested setting IFS.
11537
11538 2011-09-19  Eric Blake  <eblake@redhat.com>
11539
11540         futimens: enhance test
11541         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11542         closed non-negative fd.
11543
11544         date: accept 'hence' as opposite of 'ago'
11545         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11546         * tests/test-parse-datetime.c (main): Enhance test.
11547         Suggested by Jesse Wilson.
11548
11549 2011-09-19  Jim Meyering  <meyering@redhat.com>
11550
11551         getcwd: don't fail in a deep directory on a system without openat
11552         Before this change, getcwd would fail when called from a directory
11553         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11554         the non-openat implementation used "..", "../..", "../../..", etc.
11555         to access ancestor directories.  With too many, that string would
11556         be longer than PATH_MAX.
11557         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11558         using gnulib's openat replacement.
11559         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11560         we're using the replacement function.
11561
11562 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11563
11564         maint.mk: avoid warnings from perl about missing files
11565         * top/maint.mk (def_sym_regex): Ignore files listed in
11566         $(gl_other_headers_) that do not exist, say because a project
11567         does not use a corresponding module.
11568
11569 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         stat: use pathmax.h only if needed
11572         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11573         This is better for Emacs, which does not have a mingw port and
11574         therefore can avoid the pathmax module.
11575
11576         utimens: remove dependency on dup2
11577         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11578         to work around the Linux kernel bug.
11579         * modules/utimens (Depends-on): Remove dup2.
11580
11581 2011-09-18  Bruno Haible  <bruno@clisp.org>
11582
11583         inet_ntop, inet_pton: Look for it also in libresolv.
11584         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11585         libnsl, search for it in libresolv.
11586         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11587         Needed on Solaris 7.
11588
11589 2011-09-18  Bruno Haible  <bruno@clisp.org>
11590
11591         accept, accept4 tests: Avoid link error on Solaris.
11592         * modules/accept-tests (Makefile.am): Link test-accept against
11593         $(LIBSOCKET).
11594         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11595         $(LIBSOCKET).
11596
11597         accept4: Avoid link error on Solaris.
11598         * modules/accept4 (Link): New section.
11599
11600         socket functions: Avoid link errors on Solaris.
11601         * modules/accept (Depends-on): Add socketlib.
11602         (Link): New section.
11603         * modules/bind (Depends-on): Add socketlib.
11604         (Link): New section.
11605         * modules/connect (Depends-on): Add socketlib.
11606         (Link): New section.
11607         * modules/getpeername (Depends-on): Add socketlib.
11608         (Link): New section.
11609         * modules/getsockname (Depends-on): Add socketlib.
11610         (Link): New section.
11611         * modules/getsockopt (Depends-on): Add socketlib.
11612         (Link): New section.
11613         * modules/listen (Depends-on): Add socketlib.
11614         (Link): New section.
11615         * modules/recv (Depends-on): Add socketlib.
11616         (Link): New section.
11617         * modules/recvfrom (Depends-on): Add socketlib.
11618         (Link): New section.
11619         * modules/send (Depends-on): Add socketlib.
11620         (Link): New section.
11621         * modules/sendto (Depends-on): Add socketlib.
11622         (Link): New section.
11623         * modules/setsockopt (Depends-on): Add socketlib.
11624         (Link): New section.
11625         * modules/shutdown (Depends-on): Add socketlib.
11626         (Link): New section.
11627         * modules/socket (Depends-on): Add socketlib.
11628         (Link): New section.
11629
11630 2011-09-18  Bruno Haible  <bruno@clisp.org>
11631
11632         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11633         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11634         than 5 seconds.
11635         * modules/ptsname-tests (configure.ac): Test for alarm.
11636
11637 2011-09-18  Bruno Haible  <bruno@clisp.org>
11638
11639         posix_spawn_file_actions_add*: Fix module dependencies.
11640         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11641         posix_spawn_file_actions_init.
11642         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11643         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11644
11645 2011-09-18  Bruno Haible  <bruno@clisp.org>
11646
11647         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11648         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11649         * tests/test-renameat.c (main): Likewise.
11650
11651 2011-09-18  Bruno Haible  <bruno@clisp.org>
11652
11653         Tests for module 'accept4'.
11654         * modules/accept4-tests: New file.
11655         * tests/test-accept4.c: New file.
11656
11657 2011-09-18  Bruno Haible  <bruno@clisp.org>
11658
11659         Tests for module 'accept'.
11660         * modules/accept-tests: New file.
11661         * tests/test-accept.c: New file.
11662
11663 2011-09-18  Bruno Haible  <bruno@clisp.org>
11664
11665         dup2: Support for MSVC.
11666         * lib/dup2.c: Include msvc-inval.h.
11667         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11668         _get_osfhandle calls.
11669         * modules/dup2 (Depends-on): Add msvc-inval.
11670         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11671
11672         New module 'msvc-inval'.
11673         * lib/msvc-inval.h: New file.
11674         * lib/msvc-inval.c: New file.
11675         * m4/msvc-inval.m4: New file.
11676         * modules/msvc-inval: New file.
11677
11678 2011-09-17  Bruno Haible  <bruno@clisp.org>
11679
11680         Tests for module 'pclose'.
11681         * modules/pclose-tests: New file.
11682
11683         New module 'pclose'.
11684         * lib/stdio.in.h (pclose): New declaration.
11685         * lib/pclose.c: New file.
11686         * m4/pclose.m4: New file.
11687         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11688         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11689         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11690         * modules/pclose: New file.
11691         * modules/popen-tests (Depends-on): Add pclose.
11692         * modules/popen-safer-tests (Depends-on): Likewise.
11693         * doc/posix-functions/pclose.texi: Mention the new module.
11694
11695 2011-09-17  Bruno Haible  <bruno@clisp.org>
11696
11697         popen: Support for MSVC.
11698         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11699         * lib/popen.c (popen): Provide alternate definition for native Windows.
11700         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11702         * modules/popen (Depends-on, configure.ac): Update condition.
11703         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11704         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11705         fixed.
11706
11707 2011-09-17  Bruno Haible  <bruno@clisp.org>
11708
11709         isnanl, isnand, isnanf: Work around MSVC bug.
11710         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11711
11712 2011-09-17  Bruno Haible  <bruno@clisp.org>
11713
11714         sys_socket tests: Fix recent mistake.
11715         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11716
11717 2011-09-17  Bruno Haible  <bruno@clisp.org>
11718
11719         putenv: Support for MSVC.
11720         * modules/putenv (Depends-on): Add environ.
11721         * lib/putenv.c (environ): Disable declaration.
11722         * lib/unistd.in.h: Update comment.
11723
11724 2011-09-17  Bruno Haible  <bruno@clisp.org>
11725
11726         math: Avoid macro redefinition warnings on MSVC.
11727         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11728         Undefine before redefining.
11729
11730 2011-09-17  Bruno Haible  <bruno@clisp.org>
11731
11732         doc: Mention functions which are declared as macros.
11733         * doc/posix-functions/*[fl].texi: Mention that some functions are
11734         defined as macros with arguments only.
11735
11736 2011-09-17  Bruno Haible  <bruno@clisp.org>
11737
11738         Add dependencies to new dirent related modules.
11739         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11740         * modules/fts (Depends-on): Likewise.
11741         * modules/glob (Depends-on): Likewise.
11742         * modules/savedir (Depends-on): Likewise.
11743         * modules/scandir (Depends-on): Likewise.
11744         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11745         * modules/fdopendir (Depends-on): Add opendir.
11746
11747 2011-09-17  Bruno Haible  <bruno@clisp.org>
11748
11749         inet_pton: Support for MSVC on Windows Vista or newer.
11750         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11751         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11752         HAVE_DECL_INET_PTON is defined.
11753         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11754         On platforms with <winsock2.h>, test whether inet_pton is declared in
11755         <ws2tcpip.h>. If so, arrange to replace it.
11756         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11757         REPLACE_INET_PTON.
11758         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11759         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11760         (Depends-on, configure.ac): Update condition.
11761         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11762
11763 2011-09-17  Bruno Haible  <bruno@clisp.org>
11764
11765         inet_ntop: Support for MSVC on Windows Vista or newer.
11766         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11767         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11768         HAVE_DECL_INET_NTOP is defined.
11769         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11770         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11771         <ws2tcpip.h>. If so, arrange to replace it.
11772         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11773         REPLACE_INET_NTOP.
11774         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11775         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11776         (Depends-on, configure.ac): Update condition.
11777         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11778
11779 2011-09-16  Eric Blake  <eblake@redhat.com>
11780
11781         test-fsync: yet another enhancement
11782         * tests/test-fsync.c (main): Also test behavior on read-only text
11783         file.
11784
11785 2011-09-16  Bruno Haible  <bruno@clisp.org>
11786
11787         Enhance fsync, fdatasync tests.
11788         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11789         * tests/test-fdatasync.c (main): Likewise.
11790
11791 2011-09-16  Bruno Haible  <bruno@clisp.org>
11792
11793         Support for MSVC compiler: Ensure mode_t gets defined.
11794         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11795         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11797         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11798         * tests/test-fcntl-h.c: Check that mode_t is defined.
11799         * tests/test-sys_stat.c: Likewise.
11800         * tests/test-sys_types.c: Likewise.
11801         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11802         * doc/posix-headers/sys_stat.texi: Likewise.
11803         * doc/posix-headers/sys_types.texi: Likewise.
11804
11805 2011-09-16  Bruno Haible  <bruno@clisp.org>
11806
11807         sys_stat: Support for MSVC.
11808         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11809         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11810         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11811         MSVC.
11812
11813 2011-09-16  Bruno Haible  <bruno@clisp.org>
11814
11815         Support for MSVC compiler: Ensure off_t gets defined.
11816         * lib/unistd.in.h: Include <sys/types.h>.
11817         * tests/test-fcntl-h.c: Check that off_t is defined.
11818         * tests/test-sys_stat.c: Likewise.
11819         * tests/test-sys_types.c: Likewise.
11820
11821 2011-09-16  Eric Blake  <eblake@redhat.com>
11822
11823         fdatasync: port to Solaris
11824         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11825         * modules/fdatasync (Link): Document it.
11826         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11827
11828         fdatasync: port to MacOS X 10.7
11829         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11830         declared.
11831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11832         * modules/unistd (Makefile.am): Substitute it.
11833         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11834         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11835
11836         fdatasync: minor improvements
11837         * modules/fdatasync (Depends-on): Add condition for fsync.
11838         * lib/fdatasync.c (fdatasync): Add comment.
11839         * tests/test-unistd-c++.cc: Test fdatasync.
11840
11841         unistd: update refs to newer POSIX
11842         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11843         Suggested by Bruno Haible.
11844
11845         fdatasync: new module
11846         * modules/fsync (Description): Document difference to fdatasync.
11847         * modules/fdatasync: New module.
11848         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11849         * lib/fdatasync.c (fdatasync): Likewise.
11850         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11851         defaults.
11852         * modules/unistd (Makefile.am): Set witnesses.
11853         * lib/unistd.in.h (fdatasync): Declare.
11854         * MODULES.html.sh: Document it.
11855         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11856         * modules/fdatasync-tests: New test.
11857         * tests/test-fdatasync.c: Likewise.
11858
11859 2011-09-16  Eric Blake  <eblake@redhat.com>
11860
11861         test-fsync: enhance tests
11862         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11863         * tests/test-fsync.c (main): Enhance test.
11864
11865 2011-09-15  Bruno Haible  <bruno@clisp.org>
11866
11867         Support for MSVC compiler: Ensure ssize_t gets defined.
11868         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11869         * doc/posix-headers/stdio.texi: Likewise.
11870         * modules/stdio (Depends-on): Add ssize_t.
11871         * modules/sys_socket (Depends-on): Likewise.
11872         * modules/sys_types (Depends-on): Likewise.
11873         * modules/sys_uio (Depends-on): Likewise.
11874         * modules/unistd (Depends-on): Likewise.
11875         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11876         * tests/test-sys_types.c: Check that ssize_t is defined.
11877
11878 2011-09-14  Bruno Haible  <bruno@clisp.org>
11879
11880         Avoid using #, the m4 comment starter character, near brackets.
11881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11882         delimiter character in sed expressions.
11883         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11884         Suggested by Eric Blake.
11885
11886         Properly quote AC_CHECK_DECLS' 4th argument.
11887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11888         argument.
11889         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11890         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11892         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11893         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11894         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11895         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11896         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11897         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11898         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11899         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11900         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11901         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11902         * m4/isinf.m4 (gl_ISINF): Likewise.
11903         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11904         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11905         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11906         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11907         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11909         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11910         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11911         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11912         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11913         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11914         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11916         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11918         Reported by Eric Blake.
11919
11920         Properly quote AC_CHECK_DECL's 4th argument.
11921         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11922         argument.
11923         * m4/argp.m4 (gl_ARGP): Likewise.
11924         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11925         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11926         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11927         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11928         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11929         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11931         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11932         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11933         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11934         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11935         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11936         Reported by Eric Blake.
11937
11938 2011-09-14  Eric Blake  <eblake@redhat.com>
11939
11940         opendir: avoid compile warning
11941         * lib/opendir.c (includes): Always include errno.h.
11942         Reported by Tatsuro MATSUOKA.
11943
11944 2011-09-14  Jim Meyering  <meyering@redhat.com>
11945
11946         maint.mk: sc_tight_scope: propagate failure from sub-make
11947         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11948         Reported by Martin von Gagern.
11949
11950 2011-09-13  Bruno Haible  <bruno@clisp.org>
11951
11952         tempname: Support for MSVC.
11953         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11954         MSVC.
11955         * modules/tempname (Depends-on): Add fcntl-h.
11956
11957 2011-09-13  Bruno Haible  <bruno@clisp.org>
11958
11959         sys_time: Support for MSVC.
11960         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11961         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11962         include <winsock2.h>.
11963         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11964         function declarations that collide with POSIX.
11965         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11966         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11967
11968 2011-09-13  Bruno Haible  <bruno@clisp.org>
11969
11970         stat: Support for MSVC.
11971         * lib/stat.c: Include pathmax.h.
11972         * modules/stat (Depends-on): Add pathmax.
11973
11974         pathmax: Support for native Windows.
11975         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11976
11977 2011-09-12  Bruno Haible  <bruno@clisp.org>
11978
11979         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11980         * lib/dirent.in.h (struct dirent): New type.
11981         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11982         DT_WHT): New macros.
11983         (DIR): New type.
11984         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11985         (readdir, rewinddir): New declarations.
11986         * lib/dirent-private.h: New file.
11987         * lib/opendir.c: New file.
11988         * lib/readdir.c: New file.
11989         * lib/rewinddir.c: New file.
11990         * lib/closedir.c: New file.
11991         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11992         * m4/opendir.m4: New file.
11993         * m4/readdir.m4: New file.
11994         * m4/rewinddir.m4: New file.
11995         * m4/closedir.m4: New file.
11996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11997         REPLACE_CLOSEDIR here.
11998         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11999         readdir, rewinddir are declared.
12000         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12001         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12002         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12003         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12004         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12005         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12006         * modules/opendir: New file.
12007         * modules/readdir: New file.
12008         * modules/rewinddir: New file.
12009         * modules/closedir: New file.
12010         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12011         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12012         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12013         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12014         * NEWS: Mention the 'fchdir' change.
12015
12016 2011-09-11  Bruno Haible  <bruno@clisp.org>
12017
12018         asm-underscore.m4: Support for MSVC.
12019         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12020         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12021
12022 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12023
12024         Doc about crypt functions.
12025         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12026         needing for _GNU_SOURCE to get crypt.
12027         * doc/posix-functions/encrypt.texi: Likewise.
12028         * doc/posix-functions/setkey.texi: Likewise.
12029
12030 2011-09-11  Bruno Haible  <bruno@clisp.org>
12031
12032         doc: Update regarding MSVC 9.
12033         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12034         tested".
12035         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12036         * doc/posix-headers/*.texi: Likewise.
12037         * doc/pastposix-functions/*.texi: Likewise.
12038         * doc/glibc-functions/*.texi: Likewise.
12039         * doc/glibc-headers/*.texi: Likewise.
12040
12041 2011-09-11  Bruno Haible  <bruno@clisp.org>
12042
12043         unistd et al.: Don't assume <unistd.h> exists.
12044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12045         does not exist.
12046         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12047         exist. But include <stdlib.h>.
12048         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12049         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12050         symlink() does not exist.
12051         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12052         include <io.h> instead.
12053         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12055         include <direct.h> instead.
12056         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12057         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12058         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12059         <io.h> instead.
12060         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12061         correctly if the system does not have hard links.
12062         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12063         <direct.h> instead.
12064         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12065         it when looking for function declarations.
12066         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12067         <direct.h> and <io.h> instead.
12068         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12069
12070 2011-09-11  Bruno Haible  <bruno@clisp.org>
12071
12072         strcase: Support for MSVC.
12073         * modules/strcase (Status, Notice): Remove obsoletion mark.
12074         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12075         * doc/posix-functions/strncasecmp.texi: Likewise.
12076
12077         strings: Don't assume <strings.h> exists.
12078         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12079         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12080         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12081         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12082
12083 2011-09-11  Bruno Haible  <bruno@clisp.org>
12084
12085         dirent: Don't assume <dirent.h> exists.
12086         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12087         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12088         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12089         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12090
12091 2011-09-11  Bruno Haible  <bruno@clisp.org>
12092
12093         Fix wint_t on MSVC.
12094         * lib/wchar.in.h (wint_t): On MSVC, override it.
12095         * lib/wctype.in.h (wint_t): Likewise.
12096         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12097         MSVC.
12098         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12099         * doc/posix-headers/wctype.texi: Likewise.
12100
12101 2011-09-11  Bruno Haible  <bruno@clisp.org>
12102
12103         sys_types: Fix typo.
12104         * lib/sys_types.in.h: Fix typo in comment.
12105         Reported by Paul Eggert.
12106
12107         Support for MSVC compiler: Ensure size_t gets defined.
12108         * modules/strings (Depends-on): Add 'sys_types'.
12109         * modules/sys_uio (Depends-on): Likewise.
12110         * lib/sys_uio.in.h: Update comment.
12111
12112         C++ tests for module 'sys_types'.
12113         * modules/sys_types-c++-tests: New file.
12114         * tests/test-sys_types-c++.cc: New file.
12115
12116         Tests for module 'sys_types'.
12117         * modules/sys_types-tests: New file.
12118         * tests/test-sys_types.c: New file.
12119
12120         New module 'sys_types'.
12121         * lib/sys_types.in.h: New file.
12122         * m4/sys_types_h.m4: New file.
12123         * modules/sys_types: New file.
12124         * doc/posix-headers/sys_types.texi: Mention the new module and the
12125         size_t problem on MSVC 9.
12126
12127 2011-09-11  Bruno Haible  <bruno@clisp.org>
12128
12129         Support for MSVC compiler: Avoid division by a literal 0.
12130         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12131         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12132         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12133         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12134         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12135         * tests/infinity.h: New file.
12136         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12137         on MSVC.
12138         * tests/test-ceilf1.c: Include infinity.h.
12139         (main): Use Infinityf.
12140         * tests/test-ceil1.c: Include infinity.h.
12141         (main): Use Infinityd.
12142         * tests/test-ceill.c: Include infinity.h.
12143         (main): Use Infinityl.
12144         * tests/test-dprintf-posix.c: Include infinity.h.
12145         (test_function): Use Infinityd.
12146         * tests/test-floorf1.c: Include infinity.h.
12147         (main): Use Infinityf.
12148         * tests/test-floor1.c: Include infinity.h.
12149         (main): Use Infinityd.
12150         * tests/test-floorl.c: Include infinity.h.
12151         (main): Use Infinityl.
12152         * tests/test-fprintf-posix.c: Include infinity.h.
12153         (test_function): Use Infinityd.
12154         * tests/test-frexp.c: Include infinity.h.
12155         (main): Use Infinityd.
12156         * tests/test-frexpl.c: Include infinity.h.
12157         (main): Use Infinityl.
12158         * tests/test-isfinite.c: Include infinity.h.
12159         (test_isfinitef): Use Infinityf.
12160         (test_isfinited): Use Infinityd.
12161         (test_isfinitel): Use Infinityl.
12162         * tests/test-isinf.c: Include infinity.h.
12163         (test_isinff): Use Infinityf.
12164         (test_isinfd): Use Infinityd.
12165         (test_isinfl): Use Infinityl.
12166         * tests/test-isnan.c: Include infinity.h.
12167         (test_float): Use Infinityf.
12168         (test_double): Use Infinityd.
12169         (test_long_double): Use Infinityl.
12170         * tests/test-isnanf.h: Include infinity.h.
12171         (main): Use Infinityf.
12172         * tests/test-isnand.h: Include infinity.h.
12173         (main): Use Infinityd.
12174         * tests/test-isnanl.h: Include infinity.h.
12175         (main): Use Infinityl.
12176         * tests/test-ldexpl.c: Include infinity.h.
12177         (main): Use Infinityl.
12178         * tests/test-printf-posix.h: Include infinity.h.
12179         (test_function): Use Infinityd.
12180         * tests/test-roundf1.c: Include infinity.h.
12181         (main): Use Infinityf.
12182         * tests/test-round1.c: Include infinity.h.
12183         (main): Use Infinityd.
12184         * tests/test-roundl.c: Include infinity.h.
12185         (main): Use Infinityl.
12186         * tests/test-signbit.c: Include infinity.h.
12187         (test_signbitf): Use Infinityf.
12188         (test_signbitd): Use Infinityd.
12189         (test_signbitl): Use Infinityl.
12190         * tests/test-snprintf-posix.h: Include infinity.h.
12191         (test_function): Use Infinityd, Infinityl.
12192         * tests/test-sprintf-posix.h: Include infinity.h.
12193         (test_function): Use Infinityd, Infinityl.
12194         * tests/test-truncf1.c: Include infinity.h.
12195         (main): Use Infinityf.
12196         * tests/test-trunc1.c: Include infinity.h.
12197         (main): Use Infinityd.
12198         * tests/test-truncl.c: Include infinity.h.
12199         (main): Use Infinityl.
12200         * tests/test-vasnprintf-posix.c: Include infinity.h.
12201         (test_function): Use Infinityd, Infinityl.
12202         * tests/test-vasprintf-posix.c: Include infinity.h.
12203         (test_function): Use Infinityd, Infinityl.
12204         * modules/ceilf-tests (Files): Add tests/infinity.h.
12205         * modules/ceil-tests (Files): Likewise.
12206         * modules/ceill-tests (Files): Likewise.
12207         * modules/dprintf-posix-tests (Files): Likewise.
12208         * modules/floorf-tests (Files): Likewise.
12209         * modules/floor-tests (Files): Likewise.
12210         * modules/floorl-tests (Files): Likewise.
12211         * modules/fprintf-posix-tests (Files): Likewise.
12212         * modules/frexp-tests (Files): Likewise.
12213         * modules/frexp-nolibm-tests (Files): Likewise.
12214         * modules/frexpl-tests (Files): Likewise.
12215         * modules/frexpl-nolibm-tests (Files): Likewise.
12216         * modules/isfinite-tests (Files): Likewise.
12217         * modules/isinf-tests (Files): Likewise.
12218         * modules/isnan-tests (Files): Likewise.
12219         * modules/isnanf-tests (Files): Likewise.
12220         * modules/isnanf-nolibm-tests (Files): Likewise.
12221         * modules/isnand-tests (Files): Likewise.
12222         * modules/isnand-nolibm-tests (Files): Likewise.
12223         * modules/isnanl-tests (Files): Likewise.
12224         * modules/isnanl-nolibm-tests (Files): Likewise.
12225         * modules/ldexpl-tests (Files): Likewise.
12226         * modules/printf-posix-tests (Files): Likewise.
12227         * modules/roundf-tests (Files): Likewise.
12228         * modules/round-tests (Files): Likewise.
12229         * modules/roundl-tests (Files): Likewise.
12230         * modules/signbit-tests (Files): Likewise.
12231         * modules/snprintf-posix-tests (Files): Likewise.
12232         * modules/sprintf-posix-tests (Files): Likewise.
12233         * modules/truncf-tests (Files): Likewise.
12234         * modules/trunc-tests (Files): Likewise.
12235         * modules/truncl-tests (Files): Likewise.
12236         * modules/vasnprintf-posix-tests (Files): Likewise.
12237         * modules/vasprintf-posix-tests (Files): Likewise.
12238         * modules/vdprintf-posix-tests (Files): Likewise.
12239         * modules/vfprintf-posix-tests (Files): Likewise.
12240         * modules/vprintf-posix-tests (Files): Likewise.
12241         * modules/vsnprintf-posix-tests (Files): Likewise.
12242         * modules/vsprintf-posix-tests (Files): Likewise.
12243         * modules/xprintf-posix-tests (Files): Likewise.
12244
12245 2011-09-11  Bruno Haible  <bruno@clisp.org>
12246
12247         Ensure pid_t gets defined.
12248         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12249         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12250         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12252         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12253         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12254         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12255         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12256         * tests/test-fcntl-h.c: Check that pid_t is defined.
12257         * tests/test-sched.c: Likewise.
12258         * tests/test-termios.c: Likewise.
12259         * tests/test-time.c: Likewise.
12260         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12261         * doc/posix-headers/signal.texi: Likewise.
12262         * doc/posix-headers/sys_types.texi: Likewise.
12263         * doc/posix-headers/time.texi: Likewise.
12264
12265 2011-09-11  Bruno Haible  <bruno@clisp.org>
12266
12267         acl: Fix compilation on Solaris 10 (older version).
12268         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12269         of ACE_EVERYONE.
12270         * lib/set-mode-acl.c (qset_acl): Likewise.
12271         Reported by Christian Jullien <eligis@orange.fr>.
12272
12273 2011-09-10  Bruno Haible  <bruno@clisp.org>
12274
12275         iconv, unsetenv: Add support for MSVC compiler.
12276         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12278
12279 2011-09-10  Bruno Haible  <bruno@clisp.org>
12280
12281         *printf: Add support for MSVC compiler.
12282         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12283         handles the exception caused by the %n directive. When cross-compiling,
12284         guess no on native Windows.
12285         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12286         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12287         emulate it through vsnprintf.
12288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12289         * doc/posix-functions/dprintf.texi: Update documentation regarding
12290         MSVC 9.
12291         * doc/posix-functions/fprintf.texi: Likewise.
12292         * doc/posix-functions/printf.texi: Likewise.
12293         * doc/posix-functions/snprintf.texi: Likewise.
12294         * doc/posix-functions/sprintf.texi: Likewise.
12295         * doc/posix-functions/swprintf.texi: Likewise.
12296         * doc/posix-functions/vdprintf.texi: Likewise.
12297         * doc/posix-functions/vfprintf.texi: Likewise.
12298         * doc/posix-functions/vprintf.texi: Likewise.
12299         * doc/posix-functions/vsnprintf.texi: Likewise.
12300         * doc/posix-functions/vsprintf.texi: Likewise.
12301         * doc/glibc-functions/asprintf.texi: Likewise.
12302         * doc/glibc-functions/obstack_printf.texi: Likewise.
12303         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12304         * doc/glibc-functions/vasprintf.texi: Likewise.
12305
12306 2011-09-10  Bruno Haible  <bruno@clisp.org>
12307
12308         nocrash: Add support for native Windows.
12309         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12310
12311 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12312             Bruno Haible  <bruno@clisp.org>
12313
12314         absolute-header, include-next: Add support for MSVC compiler.
12315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12316         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12317         directory separator in #line directives.
12318         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12319         recognize also backslash as directory separator in #line directives.
12320
12321 2011-09-08  Jim Meyering  <meyering@redhat.com>
12322
12323         maint.mk: mark the post-release commit log with "maint: " prefix
12324         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12325         one-line commit-log summary.
12326
12327 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12328             Bruno Haible  <bruno@clisp.org>
12329
12330         Doc about crypt functions.
12331         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12332         systems.
12333         * doc/posix-functions/encrypt.texi: Likewise.
12334         * doc/posix-functions/setkey.texi: Likewise.
12335
12336 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12337
12338         * lib/gc.h: Fix copyright header.
12339
12340 2011-09-07  Bruno Haible  <bruno@clisp.org>
12341
12342         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12343         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12344         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12345
12346 2011-09-07  Bruno Haible  <bruno@clisp.org>
12347
12348         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12349         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12350         * lib/freopen.c: Likewise.
12351         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12352         * lib/lstat.c: Likewise.
12353         * lib/stat.c: Likewise.
12354         * lib/open.c: Use different syntax for include of <fcntl.h>.
12355         * lib/openat.c: Include fcntl.h again, explicitly.
12356
12357 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12358
12359         parse-datetime: document the newly accepted format
12360         * doc/parse-datetime.texi (Combined date and time of day items):
12361         New section.
12362
12363 2011-09-06  Bruno Haible  <bruno@clisp.org>
12364
12365         acl: Fix a test failure on newer Solaris 10 with ZFS.
12366         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12367         ENOSYS as no ACL.
12368         Reported by Jim Meyering.
12369
12370 2011-09-06  Bruno Haible  <bruno@clisp.org>
12371
12372         acl: Update for AIX >= 5.3 with NFS.
12373         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12374         ENOSYS as no ACL.
12375
12376         acl: Fix a test failure on AIX >= 5.3 with NFS.
12377         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12378         as no ACL.
12379
12380 2011-09-06  Bruno Haible  <bruno@clisp.org>
12381
12382         acl: Fix a test failure on IRIX 6.5 with NFS.
12383         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12384         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12385         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12386         * lib/copy-acl.c (qcopy_acl): Likewise.
12387
12388 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12389
12390         openat: port to AIX 7.1 with large files
12391         AIX 7.1 does a "#define openat open64at" if large files are in use,
12392         so we can't simply #undef openat.  Use the orig_openat trick (similar
12393         to orig_open in lib/open.c) to work around the problem.  Problem
12394         reported by Kevin Brott for GNU tar, in the thread containing
12395         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12396         * lib/openat.c (__need_system_fcntl_h): Define first.
12397         Include <fcntl.h> and <sys/types.h> before undefining.
12398         (orig_openat) [HAVE_OPENAT]: New inline function.
12399         (openat) [HAVE_OPENAT]: Do not undef.
12400         (rpl_openat): Use orig_openat, not openat.
12401
12402 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12403             Bruno Haible  <bruno@clisp.org>
12404
12405         acl: Avoid errors on NonStop Kernel.
12406         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12407         ENOTSUP errors.
12408
12409 2011-09-05  Bruno Haible  <bruno@clisp.org>
12410
12411         acl: Clean up Solaris code.
12412         * lib/acl-internal.h: Remove no-op #if.
12413         * lib/file-has-acl.c: Likewise.
12414         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12415         * lib/copy-acl.c (qcopy_acl): Likewise.
12416
12417 2011-09-05  Bruno Haible  <bruno@clisp.org>
12418
12419         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12420         binaries built on the original Solaris 10.
12421         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12422         trivial.
12423
12424 2011-09-05  Bruno Haible  <bruno@clisp.org>
12425
12426         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12427         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12428         10.
12429         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12430         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12431         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12432         instead of acl_get, facl_get, acl_set, facl_set.
12433
12434 2011-09-05  Bruno Haible  <bruno@clisp.org>
12435
12436         copy-file: Try unit tests on more file systems.
12437         * tests/test-copy-file-1.sh: New file.
12438         * tests/test-copy-file-2.sh: New file.
12439         * modules/copy-file-tests (Files): Add them.
12440         (Makefile.am): Add them to TESTS.
12441
12442         acl: Try unit tests on more file systems.
12443         * tests/test-file-has-acl-1.sh: New file.
12444         * tests/test-file-has-acl-2.sh: New file.
12445         * tests/test-set-mode-acl-1.sh: New file.
12446         * tests/test-set-mode-acl-2.sh: New file.
12447         * tests/test-copy-acl-1.sh: New file.
12448         * tests/test-copy-acl-2.sh: New file.
12449         * modules/acl-tests (Files): Add them.
12450         (Makefile.am): Add them to TESTS.
12451
12452 2011-09-04  Bruno Haible  <bruno@clisp.org>
12453
12454         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12455         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12456         10.
12457         (OLD_ALLOW, OLD_DENY): New macros.
12458         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12459         ACE_ACCESS_ALLOWED_ACE_TYPE.
12460         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12461         ACE_ACCESS_DENIED_ACE_TYPE.
12462         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12463         (NEW_ACE_EXECUTE): Fix value.
12464         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12465         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12466         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12467         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12468         NEW_ACE_SYNCHRONIZE): New macros.
12469         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12470         instead of acl_fromtext, acl_set, facl_set.
12471         Fixes a coreutils/tests/cp/perm failure.
12472
12473 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12474
12475         openat: test for fstatat (..., 0) bug
12476         Further testing with tar suggests that fstatat (..., 0)
12477         does not work in general, on AIX 7.1; see
12478         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12479         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12480         replacement fstatat (which is what older AIX releases were using
12481         anyway).
12482         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12483         use is now changed to orig_fstatat.  This was probably the right
12484         thing to do anyway.
12485         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12486         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12487         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12488         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12489         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12490         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12491         if the bug is found.
12492
12493         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12494         This tests for another fstatat bug on AIX 7.1:
12495         fstatat (AT_FDCWD, ..., 0) does not work.  See
12496         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12497         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12498         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12499         (rpl_fstatat): Adjust so that it works around either (or both)
12500         bugs if present.
12501         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12502
12503 2011-09-03  Karl Berry  <karl@gnu.org>
12504
12505         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12506         in index entries.
12507
12508 2011-09-02  Bruno Haible  <bruno@clisp.org>
12509
12510         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12511         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12512         values of AR, ARFLAGS, RANLIB.
12513         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12514
12515 2011-09-02  Bruno Haible  <bruno@clisp.org>
12516
12517         Find 'ar' program that fits with --host argument.
12518         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12519
12520 2011-09-02  Bruno Haible  <bruno@clisp.org>
12521
12522         tests: init.sh: Support any non-GNU diff.
12523         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12524         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12525         Solaris 8.
12526
12527 2011-09-02  Bruno Haible  <bruno@clisp.org>
12528
12529         tests: init.sh: work also with any non-GNU diff that supports -u
12530         * tests/init.sh: Relax check for diff -u support.
12531         Rather than checking for GNU diff via --version, simply check
12532         for support for -u itself.  Useful at least on OpenBSD 4.9,
12533         AIX 7.1, IRIX 6.5, and Solaris 10.
12534
12535 2011-09-01  Bruno Haible  <bruno@clisp.org>
12536
12537         strtoimax, strtoumax: Document problem on HP-UX 11.
12538         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12539         * doc/posix-functions/strtoumax.texi: Likewise.
12540
12541 2011-09-01  Bruno Haible  <bruno@clisp.org>
12542
12543         strtoumax: Avoid link error on OSF/1 with DTK cc.
12544         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12545         defined as a function.
12546         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12547         strtoumax is defined, not whether it is declared.
12548
12549 2011-09-01  Bruno Haible  <bruno@clisp.org>
12550
12551         strtoimax: Avoid link error on OSF/1 with DTK cc.
12552         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12553         defined as a function.
12554         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12555         strtoimax is defined, not whether it is declared.
12556
12557 2011-09-01  Bruno Haible  <bruno@clisp.org>
12558
12559         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12560         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12561         as a function.
12562         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12563         whether it is declared.
12564
12565 2011-09-01  Bruno Haible  <bruno@clisp.org>
12566
12567         imaxabs: Avoid link error on OSF/1 with DTK cc.
12568         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12569         as a function.
12570         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12571         whether it is declared.
12572
12573 2011-09-01  Bruno Haible  <bruno@clisp.org>
12574
12575         Tests for module 'strtoumax'.
12576         * modules/strtoumax-tests: New file.
12577         * tests/test-strtoumax.c: New file.
12578
12579         Tests for module 'strtoimax'.
12580         * modules/strtoimax-tests: New file.
12581         * tests/test-strtoimax.c: New file.
12582
12583         Tests for module 'imaxdiv'.
12584         * modules/imaxdiv-tests: New file.
12585         * tests/test-imaxdiv.c: New file.
12586
12587         Tests for module 'imaxabs'.
12588         * modules/imaxabs-tests: New file.
12589         * tests/test-imaxabs.c: New file.
12590
12591 2011-09-01  Bruno Haible  <bruno@clisp.org>
12592
12593         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12594         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12595         pthread_create.
12596
12597 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12598
12599         openat: work around AIX 7.1 fstatat issue
12600         This should fix the problem that was not properly fixed
12601         in the previous change, dated 2011-08-30.
12602         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12603         __need_system_stat_h defined.
12604         (orig_fstatat) [HAVE_FSTATAT]: New function.
12605         (rpl_fstatat): Go back to the old way of doing things,
12606         except call orig_fstatat instead of fstatat.
12607         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12608         Remove unnecessary check whether fstatat fills in st_size etc.
12609
12610 2011-09-01  Bruno Haible  <bruno@clisp.org>
12611
12612         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12613         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12614         just include the system's header.
12615
12616 2011-08-31  Jim Meyering  <meyering@redhat.com>
12617
12618         tests: avoid spurious assertion failure in test-float.c on ppc64
12619         * tests/test-float.c (test_long_double): Comment out an assertion,
12620         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12621         with gcc-4.4.4.
12622
12623         maint: indent with spaces, not TABs
12624         I need to get in the habit of running gnulib's "make check".
12625         Both of these would have been caught.
12626         * m4/largefile.m4: Indent with spaces, not TABs.
12627         * lib/parse-datetime.y (iso_8601_time): Likewise.
12628         Spotted by Pádraig Brady.
12629
12630         test-parse-datetime.c: accommodate a relatively strict gcc warning
12631         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12632         to avoid a warning from gcc's -Werror=missing-declarations.
12633         Insert a few spaces-before-funcall-parenthesis.
12634
12635 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12636
12637         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12638         The parser now accepts ISO 8601 date-time strings with "T" as the
12639         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12640         with a space between the date and time strings.  Now it also parses
12641         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12642         variants like "2004-02-29T16:21:42.333-07:00"
12643         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12644         of day representation using the 'T' separator character.
12645         * doc/parse-datetime.texi (General date syntax): replace use of
12646         deprecated --iso-8601 option with --rfc-3339 in example of date
12647         command output formats that can be parsed.
12648         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12649         lib/parse-datetime.y.
12650         (gmt_offset): New function.
12651         (main): Add additional test cases to validate ISO8601 extended
12652         date and time of day parsing.
12653
12654 2011-08-31  Bruno Haible  <bruno@clisp.org>
12655
12656         freopen: Documentation.
12657         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12658         name.
12659         Reported by Claudio Bley <claudio.bley@gmail.com>.
12660
12661 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12662
12663         freopen: Don't crash if the filename argument is NULL.
12664         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12665         NULL.
12666
12667 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12668
12669         openat: work around AIX 7.1 fstatat bug
12670         Problem reported by Kevin Brott for GNU tar, in the thread containing
12671         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12672         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12673         FSTATAT_ST_SIZE_ETC_BROKEN.
12674         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12675         rpl_fstatat.
12676         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12677         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12678         AC_CHECK_FUNCS_ONCE for fstatat.
12679         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12680         fchmodat, mkdirat, openat and unlinkat.
12681
12682 2011-08-30  Bruno Haible  <bruno@clisp.org>
12683
12684         Avoid endless recursions if config.h includes some header files.
12685         * lib/fopen.c (__need_FILE): Define already before including config.h.
12686         * lib/freopen.c (__need_FILE): Likewise.
12687         * lib/open.c (__need_system_fcntl_h): Likewise.
12688         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12689         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12690         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12691
12692 2011-08-25  Karl Berry  <karl@gnu.org>
12693
12694         * config/srclist.txt (ylwrap): new try.
12695         * build-aux/ylwrap: new file.
12696
12697 2011-08-23  Bruno Haible  <bruno@clisp.org>
12698
12699         tmpdir: Use a good default directory on native Windows.
12700         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12701         (P_tmpdir): Default to _P_tmpdir on native Windows.
12702         (path_search): On native Windows, try the value returned by GetTempPath
12703         before trying P_tmpdir.
12704         * modules/tmpdir (Depends-on): Add pathmax.
12705         Suggested by John Darrington <john@darrington.wattle.id.au>.
12706
12707 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12708
12709         doc: fix typo in README-release
12710         * top/README-release: Capitalize first word of a sentence.
12711
12712 2011-08-19  Jim Meyering  <meyering@redhat.com>
12713
12714         fts: do not exhaust memory when processing million-entry directories
12715         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12716         directory would require about 256*N bytes of memory.  Thus, it was
12717         easy to construct a directory too large to be processed by any of
12718         those tools.  With this change, fts' maximum memory utilization is
12719         now limited to around 30MB.
12720         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12721         (fts_read): When we've processed the final entry (i.e., when
12722         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12723         using the parent entry to read any remaining entries.  Dispatch
12724         depending on what fts_build returns:
12725         - NULL+stop, aka failure: stop
12726         - NULL otherwise: move up in the dir hierarchy
12727         - non-NULL: handle this new entry
12728         (fts_build): Declare and use new local, continue_readdir.
12729         Prepare to be called from fts_read, when the entries
12730         from a partially-read directory have just been exhausted.
12731         In that case, we'll skip the opendir and instead use the parent's
12732         fts_dirp and derive dir_fd from that.
12733         Finally, in the readdir loop, if we read max_entries entries,
12734         exit the loop ensuring *not* to call closedir.  This is required
12735         so that fts_dirp can be reused on a subsequent call.
12736         Prompted by Ben England's report of memory exhaustion in find
12737         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12738
12739         maint: fts: move decl of `dp' down into while loop; split a long line
12740         * lib/fts.c (fts_build): No semantic change.
12741
12742         fts: add/use new struct member, fts_dirp
12743         We are about to use this to manage any directory with
12744         too many entries to read all of them into memory at once.
12745         To do that, we'll need to save the DIR* pointer in each
12746         affected FTSENT struct.
12747         * lib/fts_.h: Include <dirent.h>.
12748         (struct FTSENT) [fts_dirp]: New member.
12749         * lib/fts.c (closedir_and_clear): Define.
12750         Use it in place of closedir so that we are sure to
12751         clear the new fts_dirp member when done with it.
12752         (fts_alloc): Initialize the new member.
12753         (fts_lfree): Free, if needed.
12754
12755         maint: fts: give __opendir2 a new parameter and rename
12756         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12757         than surreptitiously using sole caller's "dir_fd".
12758         (fts_opendir): Rename from __opendir2.
12759
12760         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12761         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12762
12763         maint: fts.c: correct off-by-one indentation
12764         * lib/fts.c (fts_build): Correct indentation, change style
12765         of a couple of block comments, and bracing style.
12766
12767         maint: fts.c: move __opendir2 #define "up" out of function body
12768         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12769
12770         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12771         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12772         out for a long time and besides was useful only on BSD systems.
12773
12774 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12775
12776         regex: port to Stratus OpenVOS
12777         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12778         define to empty, rather than attempting nonportable optimizations.
12779         Problem reported by Paul Green in:
12780         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12781         and fix suggested by Eric Blake in:
12782         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12783
12784 2011-08-17  Eric Blake  <eblake@redhat.com>
12785
12786         getcwd: fix test failures on mingw
12787         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12788         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12789         test if long directory cannot be created, and allow mingw errno.
12790
12791         getcwd-lgpl: fix m4 to match relaxed test for BSD
12792         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12793         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12794         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12795         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12796         signature problem.
12797
12798         getcwd: fix compilation on mingw64
12799         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12800         getcwd.
12801         Reported by Marc-André Lureau.
12802
12803         pipe2: silence compiler warning
12804         * lib/pipe2.c (pipe2): Hide label if it is not used.
12805
12806 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12807
12808         relocatable-prog: fix link error
12809         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12810         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12811         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12812         into modules/relocatable-lib without noticing that
12813         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12814         also needs to build relocatable.c.
12815
12816 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12817
12818         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12819         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12820         shell code: it contained a 'break' that was not in a loop.
12821         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12822         via a shell-language loop; this may have been true in old Autoconf
12823         versions, but it's not true in Autoconf 2.68.  I found this bug
12824         when testing coreutils git on Solaris 8, whose shell complains
12825         about the syntax error.
12826
12827 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12828
12829         * lib/base64.c: Fix comment to reference RFC 4648.
12830         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12831         <gvtulder@gmail.com>.
12832
12833 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12834
12835         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12836
12837         po/Makefile.in.in: fix make -q problem
12838         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12839         rule, since there's no file named 'check-macro-version' and its
12840         use as a file breaks make -q.
12841         (all): Don't depend on check-macro-version.
12842         (CHECK_MACRO_VERSION): New macro.
12843         (stamp-po): Use it.
12844
12845         configmake: fix make -q problem
12846         * modules/configmake (configmake.h): Update configmake.h's time stamp
12847         even if the file does not change.  Otherwise, 'make -q' fails.
12848         Problem reported by Simon Josefsson in
12849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12850
12851 2011-08-11  Jim Meyering  <meyering@redhat.com>
12852
12853         git-version-gen: correct the advice in a comment
12854         * build-aux/git-version-gen: Correct comment.
12855         Don't recommend to list .tarball-version in .gitignore.
12856
12857 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12858
12859         base64: fix off-by-one buffer size bug
12860         Problem and (trivial) fix reported by Gijs van Tulder in
12861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12862         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12863         * tests/test-base64.c (main): Catch the bug.
12864
12865 2011-08-10  Eric Blake  <eblake@redhat.com>
12866
12867         closein: correct comments
12868         * lib/closein.c (close_stdin): Improve comments.
12869
12870 2011-08-09  Bruno Haible  <bruno@clisp.org>
12871
12872         More tests for 'fseeko'.
12873         * tests/test-fseeko3.c: New file, from Eric Blake.
12874         * tests/test-fseeko3.sh: New file.
12875         * modules/fseeko-tests (Files): Add them.
12876         (TESTS): Add test-fseeko3.sh.
12877         (check_PROGRAMS): Add test-fseeko3.
12878
12879 2011-08-09  Eric Blake  <eblake@redhat.com>
12880
12881         fseeko: remove unneeded hack
12882         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12883
12884         fseeko: fix bug on glibc
12885         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12886         Reported by John W. Eaton.
12887
12888 2011-08-08  Bruno Haible  <bruno@clisp.org>
12889
12890         unictype/base: Fix interoperability with preinstalled libunistring.
12891         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12892         Reported by Simon Josefsson.
12893
12894 2011-08-08  Bruno Haible  <bruno@clisp.org>
12895
12896         iswblank: Detect declaration correctly.
12897         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12898         AC_CHECK_DECLS invocation.
12899
12900 2011-08-08  Bruno Haible  <bruno@clisp.org>
12901
12902         tcgetsid: Detect declaration correctly.
12903         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12904         AC_CHECK_DECLS invocation.
12905         Reported by Simon Josefsson.
12906
12907 2011-08-08  Eric Blake  <eblake@redhat.com>
12908
12909         largefile: fix typo that regressed large file support
12910         * modules/largefile (configure.ac-early): Fix section name.
12911
12912 2011-08-06  Karl Berry  <karl@gnu.org>
12913
12914         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12915         a separate module.
12916
12917 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12918
12919         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12920         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12921         get prototype for free.
12922
12923 2011-08-04  Bruno Haible  <bruno@clisp.org>
12924
12925         Tests for module 'pathmax'.
12926         * modules/pathmax-tests: New file.
12927         * tests/test-pathmax.c: New file.
12928
12929         canonicalize-lgpl: Support larger filenames on the Hurd.
12930         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12931         Reported by Paul Eggert.
12932
12933         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12934         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12935         * lib/chdir-long.h: Include pathmax.h.
12936         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12937         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12938         (PATH_MAX): Remove code that is done by pathmax.h.
12939         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12940         * lib/tmpfile.c: Add a comment.
12941         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12942         * modules/chdir-long (Depends-on): Add pathmax.
12943         * modules/getcwd (Depends-on): Add pathmax.
12944         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12945         is not defined.
12946         * doc/posix-headers/limits.texi: Mention the pathmax module.
12947         * NEWS: Mention the change.
12948
12949 2011-08-02  Bruno Haible  <bruno@clisp.org>
12950
12951         pthread_sigmask: Actually use results of gl_THREADLIB.
12952         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12953         gl_THREADLIB, not gl_[]THREADLIB.
12954         Reported by Eric Blake.
12955
12956 2011-08-02  Jim Meyering  <meyering@redhat.com>
12957
12958         maint.mk: relax the default _gl_TS_function_match regexp
12959         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12960         space between function name and "(" in an "extern" declaration.
12961         That would fail to match a decl with no space there: extern void foo();
12962
12963 2011-07-31  Iain Nicol  <iain@thenicols.net>
12964
12965         git-version-gen: document that EXTRA_DIST must include .version
12966         * build-aux/git-version-gen: In the how-to-use comment, document
12967         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12968         will fail when run from an unpacked distribution tarball.
12969
12970 2011-08-01  Bruno Haible  <bruno@clisp.org>
12971
12972         wctype-h: Fix last change.
12973         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12974         REPLACE_TOWLOWER to 0.
12975         Reported by Sam Steingold <sds@gnu.org>.
12976
12977 2011-07-31  Bruno Haible  <bruno@clisp.org>
12978
12979         frexpl: Update autoconf test.
12980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12981         according to changes of 2011-06-20.
12982
12983 2011-07-31  Bruno Haible  <bruno@clisp.org>
12984
12985         sys_utsname: Add support for Minix.
12986         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12987         <sys/utsname.h>.
12988         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12989         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12990
12991 2011-07-31  Bruno Haible  <bruno@clisp.org>
12992
12993         strings: Add support for Minix.
12994         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12995         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12996         * doc/posix-headers/strings.texi: Document the Minix problem.
12997
12998 2011-07-31  Bruno Haible  <bruno@clisp.org>
12999
13000         wctype-h: Add support for Minix.
13001         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13002         REPLACE_TOWLOWER.
13003         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13004         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13005         REPLACE_ISWCNTRL.
13006
13007 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13010         This is a performance improvement for 64-bit hosts: it causes the
13011         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13012
13013 2011-07-31  Bruno Haible  <bruno@clisp.org>
13014
13015         stdioext: Add support for Minix.
13016         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13017         * lib/fpurge.c (fpurge): Likewise.
13018         * lib/freadahead.c (freadahead): Likewise.
13019         * lib/freadable.c (freadable): Likewise.
13020         * lib/freading.c (freading): Likewise.
13021         * lib/freadptr.c (freadptr): Likewise.
13022         * lib/freadseek.c (freadptrinc): Likewise.
13023         * lib/fseeko.c (rpl_fseeko): Likewise.
13024         * lib/fseterr.c (fseterr): Likewise.
13025         * lib/fwritable.c (fwritable): Likewise.
13026         * lib/fwriting.c (fwriting): Likewise.
13027         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13028         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13029
13030 2011-07-31  Bruno Haible  <bruno@clisp.org>
13031
13032         errno: Port to Minix.
13033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13034         ECONNABORTED are defined.
13035         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13036         GNULIB_defined_ECONNABORTED): New macros.
13037         * lib/strerror-override.h (strerror_override): Test also
13038         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13039         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13040         ECONNABORTED.
13041         * doc/posix-headers/errno.texi: Mention the Minix problem.
13042
13043 2011-07-31  Bruno Haible  <bruno@clisp.org>
13044
13045         Work around declaration collisions on Minix.
13046         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13047         defined, set REPLACE_MBSINIT.
13048         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13049         defined, set REPLACE_MBRTOWC.
13050         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13051         set REPLACE_MBRLEN.
13052         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13053         defined, set REPLACE_MBSRTOWCS.
13054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13055         defined, set REPLACE_WCRTOMB.
13056         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13057         defined, set REPLACE_WCSRTOMBS.
13058
13059 2011-07-31  Bruno Haible  <bruno@clisp.org>
13060
13061         Add support for Minix with ACK compiler.
13062         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13063         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13064         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13065
13066 2011-07-31  Bruno Haible  <bruno@clisp.org>
13067
13068         Documentation about Minix.
13069         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13070         * doc/glibc-headers/*.texi: Likewise.
13071         * doc/posix-functions/*.texi: Likewise.
13072         * doc/glibc-functions/*.texi: Likewise.
13073
13074 2011-07-31  Bruno Haible  <bruno@clisp.org>
13075
13076         snippet/warn-on-use: Fix indentation.
13077         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13078
13079 2011-07-25  Jim Meyering  <meyering@redhat.com>
13080
13081         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13082         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13083         commands.
13084
13085 2011-07-27  Jim Meyering  <meyering@redhat.com>
13086
13087         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13088         * top/maint.mk (gl_extract_significant_defines_): Now that
13089         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13090         gnulib/lib/signal.in.h, and now that we recommend to
13091         define-if-undefined those two symbols in application code,
13092         we must filter them out of the "significant" list.
13093         This avoids a "make syntax-check" failure in coreutils.
13094
13095 2011-07-26  Eric Blake  <eblake@redhat.com>
13096
13097         warnings: add comments about previous patch
13098         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13099         * m4/include_next.m4: Likewise.
13100         * m4/warn-on-use.m4: Likewise.
13101         * m4/warnings.m4: Likewise, and simplify use.
13102         Suggested by Stefano Lattarini.
13103
13104         include-next, warnings: support older autoconf
13105         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13106         AS_VAR_PUSHDEF in a way that works with older autoconf.
13107         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13108         Reported by Daniel P. Berrange.
13109
13110 2011-07-25  Bruno Haible  <bruno@clisp.org>
13111
13112         fseek, ftell: Fix doc.
13113         * doc/posix-functions/fseek.texi: Reword statement about
13114         AC_SYS_LARGEFILE.
13115         * doc/posix-functions/ftell.texi: Likewise.
13116
13117 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13118             Bruno Haible  <bruno@clisp.org>
13119
13120         Add dependencies to the 'largefile' module.
13121         * modules/fopen (Depends-on): Add 'largefile'.
13122         * modules/freopen (Depends-on): Likewise.
13123         * modules/fseeko (Depends-on): Likewise.
13124         * modules/ftello (Depends-on): Likewise.
13125         * modules/glob (Depends-on): Likewise.
13126         * modules/lseek (Depends-on): Likewise.
13127         * modules/lstat (Depends-on): Likewise.
13128         * modules/mkostemp (Depends-on): Likewise.
13129         * modules/mkostemps (Depends-on): Likewise.
13130         * modules/mkstemp (Depends-on): Likewise.
13131         * modules/mkstemps (Depends-on): Likewise.
13132         * modules/open (Depends-on): Likewise.
13133         * modules/openat (Depends-on): Likewise.
13134         * modules/pread (Depends-on): Likewise.
13135         * modules/pwrite (Depends-on): Likewise.
13136         * modules/scandir (Depends-on): Likewise.
13137         * modules/stat (Depends-on): Likewise.
13138         * modules/tmpfile (Depends-on): Likewise.
13139         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13140         since the containing module now depends on the largefile module.
13141         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13142         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13143         off_t is fixed by gnulib.
13144         * doc/posix-functions/freopen.texi: Likewise.
13145         * doc/posix-functions/fseeko.texi: Likewise.
13146         * doc/posix-functions/fstatat.texi: Likewise.
13147         * doc/posix-functions/ftello.texi: Likewise.
13148         * doc/posix-functions/glob.texi: Likewise.
13149         * doc/posix-functions/lseek.texi: Likewise.
13150         * doc/posix-functions/lstat.texi: Likewise.
13151         * doc/posix-functions/mkstemp.texi: Likewise.
13152         * doc/posix-functions/open.texi: Likewise.
13153         * doc/posix-functions/openat.texi: Likewise.
13154         * doc/posix-functions/pread.texi: Likewise.
13155         * doc/posix-functions/pwrite.texi: Likewise.
13156         * doc/posix-functions/scandir.texi: Likewise.
13157         * doc/posix-functions/stat.texi: Likewise.
13158         * doc/posix-functions/tmpfile.texi: Likewise.
13159         * doc/glibc-functions/mkostemp.texi: Likewise.
13160         * doc/glibc-functions/mkostemps.texi: Likewise.
13161         * doc/glibc-functions/mkstemps.texi: Likewise.
13162
13163 2011-07-25  Bruno Haible  <bruno@clisp.org>
13164
13165         fcntl: Move AC_LIBOBJ invocation to module description.
13166         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13167         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13168
13169         fcntl: Remove call-in from fchdir.m4.
13170         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13172
13173         dup3: Remove potential call-in from fchdir.m4.
13174         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13176
13177         dup2: Move AC_LIBOBJ invocation to module description.
13178         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13179         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13180         Don't invoke AC_LIBOBJ.
13181         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13182
13183         dup2: Remove call-in from fchdir.m4.
13184         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13186
13187         fclose: Move AC_LIBOBJ invocation to module description.
13188         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13189         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13190         to 1.
13191         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13192
13193         fclose: Remove call-in from close.m4.
13194         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13195         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13196
13197         close: Move AC_LIBOBJ invocation to module description.
13198         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13199         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13200         1.
13201         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13202
13203         close: Remove call-in from fchdir.m4.
13204         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13206
13207         open: Move AC_LIBOBJ invocation to module description.
13208         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13209         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13210         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13211
13212         open: Remove call-in from fchdir.m4.
13213         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13215
13216         fchdir: Start to remove gl_REPLACE_* idiom.
13217         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13218         (gl_FUNC_FCHDIR): Invoke it.
13219
13220 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         * lib/ftell.c (ftell): Comment out cast.
13223
13224         close: use gl_REPLACE_FCLOSE only if defined
13225         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13226         is defined.  The close module doesn't depend on the fclose module
13227         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13229         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13230
13231 2011-07-24  Jim Meyering  <meyering@redhat.com>
13232
13233         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13234         * tests/test-select.h (test_function): Declare as "static".
13235
13236 2011-07-24  Bruno Haible  <bruno@clisp.org>
13237
13238         doc: Mention the effects of AC_SYS_LARGEFILE.
13239         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13240         on this function.
13241         * doc/posix-functions/aio_error.texi: Likewise.
13242         * doc/posix-functions/aio_fsync.texi: Likewise.
13243         * doc/posix-functions/aio_read.texi: Likewise.
13244         * doc/posix-functions/aio_return.texi: Likewise.
13245         * doc/posix-functions/aio_suspend.texi: Likewise.
13246         * doc/posix-functions/aio_write.texi: Likewise.
13247         * doc/posix-functions/fgetpos.texi: Likewise.
13248         * doc/posix-functions/fopen.texi: Likewise.
13249         * doc/posix-functions/freopen.texi: Likewise.
13250         * doc/posix-functions/fsetpos.texi: Likewise.
13251         * doc/posix-functions/fstatvfs.texi: Likewise.
13252         * doc/posix-functions/ftruncate.texi: Likewise.
13253         * doc/posix-functions/ftw.texi: Likewise.
13254         * doc/posix-functions/getrlimit.texi: Likewise.
13255         * doc/posix-functions/glob.texi: Likewise.
13256         * doc/posix-functions/lio_listio.texi: Likewise.
13257         * doc/posix-functions/lockf.texi: Likewise.
13258         * doc/posix-functions/mkstemp.texi: Likewise.
13259         * doc/posix-functions/mmap.texi: Likewise.
13260         * doc/posix-functions/nftw.texi: Likewise.
13261         * doc/posix-functions/openat.texi: Likewise.
13262         * doc/posix-functions/opendir.texi: Likewise.
13263         * doc/posix-functions/posix_fadvise.texi: Likewise.
13264         * doc/posix-functions/posix_fallocate.texi: Likewise.
13265         * doc/posix-functions/pread.texi: Likewise.
13266         * doc/posix-functions/pwrite.texi: Likewise.
13267         * doc/posix-functions/readdir.texi: Likewise.
13268         * doc/posix-functions/readdir_r.texi: Likewise.
13269         * doc/posix-functions/rewinddir.texi: Likewise.
13270         * doc/posix-functions/scandir.texi: Likewise.
13271         * doc/posix-functions/seekdir.texi: Likewise.
13272         * doc/posix-functions/setrlimit.texi: Likewise.
13273         * doc/posix-functions/statvfs.texi: Likewise.
13274         * doc/posix-functions/telldir.texi: Likewise.
13275         * doc/posix-functions/tmpfile.texi: Likewise.
13276         * doc/posix-functions/truncate.texi: Likewise.
13277         * doc/glibc-functions/fallocate.texi: Likewise.
13278         * doc/glibc-functions/fstatfs.texi: Likewise.
13279         * doc/glibc-functions/fts_children.texi: Likewise.
13280         * doc/glibc-functions/fts_read.texi: Likewise.
13281         * doc/glibc-functions/getdirentries.texi: Likewise.
13282         * doc/glibc-functions/mkostemp.texi: Likewise.
13283         * doc/glibc-functions/mkostemps.texi: Likewise.
13284         * doc/glibc-functions/mkstemps.texi: Likewise.
13285         * doc/glibc-functions/preadv.texi: Likewise.
13286         * doc/glibc-functions/pwritev.texi: Likewise.
13287         * doc/glibc-functions/sendfile.texi: Likewise.
13288         * doc/glibc-functions/statfs.texi: Likewise.
13289
13290 2011-07-24  Bruno Haible  <bruno@clisp.org>
13291
13292         doc: Fix typo.
13293         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13294
13295 2011-07-24  Bruno Haible  <bruno@clisp.org>
13296
13297         doc: Mention fsusage.
13298         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13299
13300 2011-07-24  Bruno Haible  <bruno@clisp.org>
13301
13302         doc: Mention new glibc headers and functions.
13303         * doc/glibc-headers/gshadow.texi: New file.
13304         * doc/glibc-functions/endsgent.texi: New file.
13305         * doc/glibc-functions/fgetsgent.texi: New file.
13306         * doc/glibc-functions/fgetsgent_r.texi: New file.
13307         * doc/glibc-functions/getsgent.texi: New file.
13308         * doc/glibc-functions/getsgent_r.texi: New file.
13309         * doc/glibc-functions/getsgnam.texi: New file.
13310         * doc/glibc-functions/getsgnam_r.texi: New file.
13311         * doc/glibc-functions/putsgent.texi: New file.
13312         * doc/glibc-functions/setsgent.texi: New file.
13313         * doc/glibc-functions/sgetsgent.texi: New file.
13314         * doc/glibc-functions/sgetsgent_r.texi: New file.
13315         * doc/glibc-functions/malloc_info.texi: New file.
13316         * doc/glibc-functions/preadv.texi: New file.
13317         * doc/glibc-functions/pwritev.texi: New file.
13318         * doc/glibc-functions/register_printf_modifier.texi: New file.
13319         * doc/glibc-functions/register_printf_specifier.texi: New file.
13320         * doc/glibc-functions/register_printf_type.texi: New file.
13321         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13322         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13323         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13324         * doc/glibc-functions/pthread_getname_np.texi: New file.
13325         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13326         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13327         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13328         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13329         * doc/glibc-functions/pthread_setname_np.texi: New file.
13330         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13331         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13332         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13333         * doc/glibc-functions/qsort_r.texi: New file.
13334         * doc/glibc-functions/quick_exit.texi: New file.
13335         * doc/glibc-functions/syncfs.texi: New file.
13336         * doc/gnulib.texi: Include them.
13337         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13338         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13339         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13340         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13341         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13342         * doc/glibc-functions/execvpe.texi: Likewise.
13343
13344 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13345
13346         ftell: don't include <unistd.h>
13347         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13348         guaranteed to define off_t, and the ftell module depends on the
13349         stdio module.
13350
13351         ftell: do not assume wraparound signed arithmetic
13352         * lib/ftell.c: Include <limits.h>.
13353         (ftell): Don't assume wraparound signed arithmetic.
13354
13355 2011-07-24  Bruno Haible  <bruno@clisp.org>
13356
13357         close: No longer depend on module 'fclose'.
13358         * modules/close (Depends-on): Remove fclose.
13359         * NEWS: Mention the change.
13360         Suggested by Sam Steingold <sds@gnu.org>.
13361
13362 2011-07-24  Bruno Haible  <bruno@clisp.org>
13363
13364         fsusage: Enable large volume support on AIX >= 5.2.
13365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13366         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13367         instead of STAT_STATVFS.
13368         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13369
13370         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13372         f_blocks field only on MacOS X.
13373
13374         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13375         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13376         * modules/fsusage (Depends-on): Add largefile.
13377
13378 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13379
13380         * README: Modernize discussion of signed integers.
13381         Assuming overflow wraparound is no longer safe.
13382         Mention ones' complement and signed magnitude.
13383
13384 2011-07-22  Bruno Haible  <bruno@clisp.org>
13385
13386         select tests, pselect tests: Refactor.
13387         * tests/test-select.h: New file, extracted from tests/test-select.c.
13388         (select_fn): New type.
13389         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13390         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13391         test_pipe): Add my_select argument.
13392         (test_function): Renamed from main. Add my_select argument.
13393         * tests/test-select.c: Move most code to tests/test-select.h. Include
13394         test-select.h.
13395         * modules/select-tests (Files): Add tests/test-select.h.
13396         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13397         (my_select, main): New functions.
13398         * modules/pselect-tests (Files): Add tests/test-select.h,
13399         tests/macros.h, tests/signature.h.
13400         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13401         (configure.ac): Check for <sys/wait.h>.
13402
13403 2011-07-22  Bruno Haible  <bruno@clisp.org>
13404
13405         sys_select tests: Check the signature of FD_*.
13406         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13407         signature tests from here...
13408         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13409         here.
13410         * modules/sys_select-tests (Files): Add tests/signature.h.
13411
13412 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13413
13414         largefile: new module, replacing large-inode
13415         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13416         * MODULES.html.sh: Add largefile, remove large-inode.
13417         * modules/largefile, m4/largefile.m4: New files.
13418         * modules/large-inode, m4/large-inode.m4: Remove.
13419
13420         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13422         implementations that use only 32 bits to count blocks.
13423         On typical hosts with 1024-byte blocks, this fails with file
13424         systems as small as 4 TiB.  Problem reported by Herb Wartens
13425         <http://debbugs.gnu.org/9140> and this should also fix a similar
13426         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13427
13428         large-inode: New module
13429         * MODULES.html.sh: Add it.
13430         * modules/large-inode, m4/large-inode.m4: New files.
13431
13432         extensions: Enable extensions on MacOS X 10.5 and later.
13433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13434
13435 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13436
13437         file-has-acl: use acl_extended_file_nofollow if available
13438         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13439         (acl_extended_file): New macro.
13440         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13441         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13442
13443 2011-07-21  Bruno Haible  <bruno@clisp.org>
13444
13445         Declare system functions in a way that works with C++.
13446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13447         declare fdopendir as extern "C".
13448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13449         declare frexpl as extern "C".
13450         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13451         declare gai_strerror as extern "C".
13452         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13453         programs, declare gai_strerror as extern "C".
13454         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13455         declare getlogin_r as extern "C".
13456         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13457         as extern "C".
13458         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13459         declare ldexpl as extern "C".
13460         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13461         as extern "C".
13462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13463         program, declare getmntinfo as extern "C".
13464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13465         stpncpy as extern "C".
13466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13467         program, declare __xpg_strerror_r as extern "C".
13468         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13469         strndup as extern "C".
13470         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13471         declare memset and bzero as extern "C".
13472         Reported by Sam Steingold <sds@gnu.org>.
13473
13474 2011-07-12  Jim Meyering  <meyering@redhat.com>
13475
13476         maint.mk: prohibit inclusion of "verify.h" without use
13477         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13478
13479 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13480
13481         timer-time: A new module to check for timer_settime()
13482         * m4/timer_time.m4: Check for the posix function.
13483         * modules/timer-time: Add the new module.
13484         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13485         Mention it.
13486
13487 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13488             Bruno Haible  <bruno@clisp.org>
13489
13490         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13491         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13492         not defined, assume POSIX threads and look for pthread_sigmask in
13493         $LIBS, without changing $CPPFLAGS.
13494
13495 2011-07-19  Bruno Haible  <bruno@clisp.org>
13496
13497         strstr: Update cross-compilation guess.
13498         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13499         CPUs, guess no, in view of glibc
13500         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13501         Suggested by Eric Blake. Reported by Reuben Thomas.
13502
13503 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13504
13505         getopt-gnu: suppress core dumps from detection code
13506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13507         to suppress core dumps that may well occur on glibc systems.
13508         * modules/getopt-gnu: Depend on nocrash.
13509
13510 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13511
13512         pthread_sigmask: ensure usleep is declared
13513         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13514         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13515
13516 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13517
13518         doc: Document NonStop portability issues.
13519         * doc/posix-functions/sigaction.texi (sigaction):
13520         * doc/posix-headers/signal.texi (signal.h):
13521         Document NonStop.  See Joachim Schmitz in
13522         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13523
13524 2011-07-15  Bruno Haible  <bruno@clisp.org>
13525
13526         ffsl, ffsll: Avoid unportable behaviour.
13527         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13528
13529 2011-07-15  Bruno Haible  <bruno@clisp.org>
13530
13531         ffs: More tests.
13532         * tests/test-ffs.c (NBITS): New macro.
13533         (main): Add more tests.
13534         * tests/test-ffsl.c (NBITS): New macro.
13535         (main): Add more tests.
13536         * tests/test-ffsll.c (NBITS): New macro.
13537         (main): Add more tests.
13538
13539 2011-07-15  Eric Blake  <eblake@redhat.com>
13540
13541         ffsl, ffsll: new modules
13542         * modules/ffsl: New file.
13543         * modules/ffsll: Likewise.
13544         * m4/ffsl.m4: Likewise.
13545         * m4/ffsll.m4: Likewise.
13546         * lib/ffsl.c: Likewise.
13547         * lib/ffsl.h: Likewise.
13548         * lib/ffsll.c: Likewise.
13549         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13550         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13551         * modules/string (Makefile.am): Substitute witnesses.
13552         * lib/strings.in.h (ffsl, ffsll): Declare.
13553         * modules/ffsl-tests: New test file.
13554         * modules/ffsll-tests: Likewise.
13555         * tests/test-ffsl.c: Likewise.
13556         * tests/test-ffsll.c: Likewise.
13557         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13558         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13559         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13560
13561         ffs: fix m4 prerequisite
13562         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13563
13564         ffs: avoid undefined behavior
13565         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13566         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13567         Reported by Bruno Haible.
13568
13569 2011-07-12  Bruno Haible  <bruno@clisp.org>
13570
13571         pthread_sigmask: Rely on module 'threadlib'.
13572         * modules/pthread_sigmask (Depends-on): Add threadlib.
13573         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13574         is defined.
13575
13576 2011-07-12  Bruno Haible  <bruno@clisp.org>
13577
13578         regex: Depend on module 'strcase'.
13579         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13580
13581 2011-07-12  Jim Meyering  <meyering@redhat.com>
13582
13583         warn-on-use: fix typo in file name
13584         * modules/snippet/warn-on-use (Files): Correct file name:
13585         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13586
13587 2011-07-12  Bruno Haible  <bruno@clisp.org>
13588
13589         strings: Document module.
13590         * doc/posix-headers/strings.texi: Mention module 'strings'.
13591
13592 2011-07-12  Bruno Haible  <bruno@clisp.org>
13593
13594         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13595         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13596         (Files, Makefile.am): Update.
13597         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13598         * modules/stdlib (Depends-on): Update.
13599
13600 2011-07-12  Bruno Haible  <bruno@clisp.org>
13601
13602         * NEWS: Mention the changes.
13603
13604         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13605         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13606         (Files, Makefile.am): Update.
13607         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13608         * modules/arpa_inet (Depends-on): Update.
13609         * modules/ctype (Depends-on): Update.
13610         * modules/dirent (Depends-on): Update.
13611         * modules/fcntl-h (Depends-on): Update.
13612         * modules/glob (Depends-on): Update.
13613         * modules/iconv-h (Depends-on): Update.
13614         * modules/inttypes-incomplete (Depends-on): Update.
13615         * modules/langinfo (Depends-on): Update.
13616         * modules/locale (Depends-on): Update.
13617         * modules/math (Depends-on): Update.
13618         * modules/netdb (Depends-on): Update.
13619         * modules/poll-h (Depends-on): Update.
13620         * modules/pty (Depends-on): Update.
13621         * modules/search (Depends-on): Update.
13622         * modules/signal (Depends-on): Update.
13623         * modules/spawn (Depends-on): Update.
13624         * modules/stdio (Depends-on): Update.
13625         * modules/stdlib (Depends-on): Update.
13626         * modules/string (Depends-on): Update.
13627         * modules/strings (Depends-on): Update.
13628         * modules/sys_file (Depends-on): Update.
13629         * modules/sys_ioctl (Depends-on): Update.
13630         * modules/sys_select (Depends-on): Update.
13631         * modules/sys_socket (Depends-on): Update.
13632         * modules/sys_stat (Depends-on): Update.
13633         * modules/sys_time (Depends-on): Update.
13634         * modules/sys_times (Depends-on): Update.
13635         * modules/sys_utsname (Depends-on): Update.
13636         * modules/sys_wait (Depends-on): Update.
13637         * modules/termios (Depends-on): Update.
13638         * modules/time (Depends-on): Update.
13639         * modules/unistd (Depends-on): Update.
13640         * modules/wchar (Depends-on): Update.
13641         * modules/wctype-h (Depends-on): Update.
13642         * MODULES.html.sh (Support for building libraries and executables):
13643         Update.
13644
13645         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13646         * modules/snippet/unused-parameter: Renamed from
13647         modules/unused-parameter.
13648         (Files, Makefile.am): Update.
13649         * build-aux/snippet/unused-parameter.h: Renamed from
13650         build-aux/unused-parameter.h.
13651         * modules/selinux-h (Depends-on): Update.
13652         * modules/unistr/base (Depends-on): Update.
13653         * MODULES.html.sh (Core language properties): Update.
13654
13655         Rename module 'link-warning' to 'snippet/link-warning'.
13656         * modules/snippet/link-warning: Renamed from modules/link-warning.
13657         (Files, Makefile.am): Update.
13658         * build-aux/snippet/link-warning.h: Renamed from
13659         build-aux/link-warning.h.
13660         * MODULES.html.sh (Support for building libraries and executables):
13661         Update.
13662
13663         Rename module 'c++defs' to 'snippet/c++defs'.
13664         * modules/snippet/c++defs: Renamed from modules/c++defs.
13665         (Files, Makefile.am): Update.
13666         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13667         * modules/arpa_inet (Depends-on): Update.
13668         * modules/ctype (Depends-on): Update.
13669         * modules/dirent (Depends-on): Update.
13670         * modules/fcntl-h (Depends-on): Update.
13671         * modules/glob (Depends-on): Update.
13672         * modules/iconv-h (Depends-on): Update.
13673         * modules/langinfo (Depends-on): Update.
13674         * modules/locale (Depends-on): Update.
13675         * modules/math (Depends-on): Update.
13676         * modules/netdb (Depends-on): Update.
13677         * modules/poll-h (Depends-on): Update.
13678         * modules/pty (Depends-on): Update.
13679         * modules/search (Depends-on): Update.
13680         * modules/signal (Depends-on): Update.
13681         * modules/spawn (Depends-on): Update.
13682         * modules/stdio (Depends-on): Update.
13683         * modules/stdlib (Depends-on): Update.
13684         * modules/string (Depends-on): Update.
13685         * modules/strings (Depends-on): Update.
13686         * modules/sys_ioctl (Depends-on): Update.
13687         * modules/sys_select (Depends-on): Update.
13688         * modules/sys_socket (Depends-on): Update.
13689         * modules/sys_stat (Depends-on): Update.
13690         * modules/sys_time (Depends-on): Update.
13691         * modules/sys_wait (Depends-on): Update.
13692         * modules/termios (Depends-on): Update.
13693         * modules/time (Depends-on): Update.
13694         * modules/unistd (Depends-on): Update.
13695         * modules/wchar (Depends-on): Update.
13696         * modules/wctype-h (Depends-on): Update.
13697
13698         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13699         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13700         (Files, Makefile.am): Update.
13701         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13702         * modules/argv-iter (Depends-on): Update.
13703         * modules/arpa_inet (Depends-on): Update.
13704         * modules/dirent (Depends-on): Update.
13705         * modules/fcntl-h (Depends-on): Update.
13706         * modules/fnmatch (Depends-on): Update.
13707         * modules/getopt-posix (Depends-on): Update.
13708         * modules/glob (Depends-on): Update.
13709         * modules/iconv-h (Depends-on): Update.
13710         * modules/inttypes-incomplete (Depends-on): Update.
13711         * modules/locale (Depends-on): Update.
13712         * modules/math (Depends-on): Update.
13713         * modules/netdb (Depends-on): Update.
13714         * modules/search (Depends-on): Update.
13715         * modules/signal (Depends-on): Update.
13716         * modules/spawn (Depends-on): Update.
13717         * modules/stdio (Depends-on): Update.
13718         * modules/stdlib (Depends-on): Update.
13719         * modules/string (Depends-on): Update.
13720         * modules/strings (Depends-on): Update.
13721         * modules/sys_socket (Depends-on): Update.
13722         * modules/sys_stat (Depends-on): Update.
13723         * modules/sys_time (Depends-on): Update.
13724         * modules/sys_times (Depends-on): Update.
13725         * modules/sys_utsname (Depends-on): Update.
13726         * modules/time (Depends-on): Update.
13727         * modules/unistd (Depends-on): Update.
13728         * modules/wchar (Depends-on): Update.
13729         * MODULES.html.sh (Support for building libraries and executables):
13730         Update.
13731
13732 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13733
13734         Improvements on _Noreturn and related modules.
13735
13736         modules/_Exit-tests: test _Noreturn too
13737         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13738         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13739         (main): Use them.
13740
13741         stdnoreturn, stdnoreturn-tests: remove modules
13742         They're not needed here and a bit premature for use elsewhere.  See
13743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13744         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13745         * tests/test-stdnoreturn.c: Remove files.
13746         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13747         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13748         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13749         and using noreturn.
13750         * modules/openat, modules/sigpipe-die, modules/xalloc:
13751         * modules/xmemdup0, modules/xstrtol:
13752         Remove dependency on stdnoreturn.
13753
13754         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13755         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13756         Reparenthesize to avoid GCC warning.
13757         Support Microsoft's syntax.
13758         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13759
13760         _Noreturn-tests: remove module
13761         * modules/_Noreturn-tests: Remove.
13762         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13763         * tests/test-_Noreturn.c: Remove.
13764         * tests/test-stdnoreturn.c: Merge from the old
13765         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13766
13767 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13768
13769         _Noreturn, stdnoreturn, and related modules.
13770
13771         * top/maint.mk: Adjust to new noreturn support.
13772         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13773         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13774
13775         xalloc: use stdnoreturn.h
13776         * lib/xalloc.h: Include <stdnoreturn.h>.
13777         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13778         * modules/xalloc (Depends-on): Add stdnoreturn.
13779
13780         xstrtol: use stdnoreturn.h
13781         * lib/xstrtol.h: Include <stdnoreturn.h>.
13782         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13783         * modules/xstrtol (Depends-on): Add stdnoreturn.
13784
13785         xmemdup0: use stdnoreturn.h
13786         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13787         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13788         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13789
13790         sigpipe-die: use stdnoreturn.h
13791         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13792         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13793         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13794
13795         openat: use stdnoreturn.h
13796         * lib/openat.h: Include <stdnoreturn.h>.
13797         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13798         * modules/openat (Depends-on): Add stdnoreturn.
13799
13800         * lib/openat-die.c (openat_save_fail): Modernize comment.
13801
13802         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13803
13804         * lib/glthread/thread.h: Modernize comment.
13805
13806         obstack: use _Noreturn
13807         * lib/obstack.c (__attribute__): Remove macro.
13808         (print_and_abort): Use _Noreturn.
13809
13810         c-stack: use _Noreturn
13811         * lib/c-stack.c (die, overflow_handler, segv_handler):
13812         Use _Noreturn rather than __attribute__((noreturn)).
13813
13814         argmatch-tests, exclude_tests: use _Noreturn
13815         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13816         Remove.
13817         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13818
13819         stdlib: use _Noreturn
13820         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13821         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13822         * modules/stdlib (Depends-on): Add _Noreturn.
13823         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13824
13825         stdnoreturn-tests: new module
13826         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13827
13828         stdnoreturn: new module
13829         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13830         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13831
13832         _Noreturn-tests: new module
13833         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13834
13835         _Noreturn: new module
13836         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13837         New section, mentioning it.
13838         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13839
13840         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13841
13842 2011-07-11  Eric Blake  <eblake@redhat.com>
13843
13844         ffs: new module
13845         * modules/ffs: New file.
13846         * m4/ffs.m4: Likewise.
13847         * lib/ffs.c: Likewise.
13848         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13849         * modules/strings (Makefile.am): Substitute witness.
13850         (Depends-on): Add c++defs.
13851         * lib/strings.in.h (ffs): Declare.
13852         * modules/ffs-tests: New test file.
13853         * tests/test-ffs.c: Test new module.
13854         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13855         * doc/posix-functions/ffs.texi (ffs): Likewise.
13856
13857         regex: avoid compiler warning
13858         * lib/regex.c (includes): Include <strings.h>, for use of
13859         strcasecmp in regcomp.c.
13860         Reported by Joachim Schmitz.
13861
13862 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13863
13864         stdint: respect system's intmax_t if INTMAX_MAX
13865         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13866         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13867         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13868         long but int64_t is long long, and where we will clash with the
13869         system intmax_t if we override it.  See
13870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13871         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13872         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13873         similarly for UINTMAX_C.
13874
13875 2011-07-08  Bruno Haible  <bruno@clisp.org>
13876
13877         pthread_sigmask tests: Avoid a compiler warning.
13878         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13879         non-zero.
13880
13881         sigprocmask tests: A better way to avoid a compiler warning.
13882         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13883         (main): Complain if system() returns non-zero.
13884         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13885
13886 2011-07-08  Bruno Haible  <bruno@clisp.org>
13887
13888         pthread_sigmask: Work around IRIX bug.
13889         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13890         bug.
13891         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13892         there may be unblocked pending signals.
13893         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13894
13895 2011-07-08  Bruno Haible  <bruno@clisp.org>
13896
13897         pthread_sigmask: Work around Cygwin bug.
13898         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13899         bug.
13900         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13901         the system's pthread_sigmask function.
13902         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13903
13904 2011-07-08  Bruno Haible  <bruno@clisp.org>
13905
13906         pthread_sigmask: Work around bug in single-threaded implementation.
13907         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13908         FreeBSD, HP-UX, Solaris bug.
13909         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13910         * lib/pthread_sigmask.c: Include <stddef.h>.
13911         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13912         the system's pthread_sigmask function.
13913         * modules/pthread_sigmask (configure.ac): Invoke
13914         gl_PREREQ_PTHREAD_SIGMASK.
13915         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13916         HP-UX, Solaris.
13917
13918 2011-07-08  Eric Blake  <eblake@redhat.com>
13919
13920         test-sigprocmask: avoid compiler warning
13921         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13922         * tests/test-sigprocmask.c (main): Use it to silence warning.
13923         Reported by Jim Meyering.
13924
13925         test-snprintf: avoid compiler warning
13926         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13927         * tests/test-vsnprintf.c (main): Likewise.
13928         Reported by Jim Meyering.
13929
13930 2011-07-08  Bruno Haible  <bruno@clisp.org>
13931
13932         Tests for module 'pthread_sigmask'.
13933         * modules/pthread_sigmask-tests: New file.
13934         * tests/test-pthread_sigmask1.c: New file, based on
13935         tests/test-sigprocmask.c.
13936         * tests/test-pthread_sigmask2.c: New file.
13937
13938 2011-07-08  Jim Meyering  <meyering@redhat.com>
13939
13940         test-getopt.h: avoid warning about an unused variable
13941         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13942
13943 2011-07-07  Jim Meyering  <meyering@redhat.com>
13944
13945         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13946         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13947         now that it no longer contains leading TABs.
13948         Remove unused "url=FIXME" statement.
13949
13950 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13953         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13954         When gl_THREADLIB is not in use, assume that the POSIX sematics
13955         are desired.  This is better for Emacs, which uses POSIX semantics
13956         on GNUish and/or POSIXish platforms, and does not use threads at
13957         all otherwise.
13958
13959         pthread_sigmask: fix typo when testing for libraries
13960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13961         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13962
13963 2011-07-08  Eric Blake  <eblake@redhat.com>
13964
13965         fts: introduce FTS_NOATIME
13966         * lib/fts_.h (FTS_NOATIME): New bit flag.
13967         (FTS_OPTIONMASK): Adjust.
13968         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13969         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13970
13971 2011-07-08  Bruno Haible  <bruno@clisp.org>
13972
13973         Tests for module 'thread'.
13974         * modules/thread-tests: New file.
13975         * tests/test-thread_self.c: New file.
13976         * tests/test-thread_create.cc: New file.
13977
13978 2011-07-08  Bruno Haible  <bruno@clisp.org>
13979
13980         thread: Avoid gcc warnings when using gl_thread_self().
13981         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13982         'void *'.
13983         (gl_thread_self_pointer): Update.
13984
13985 2011-07-07  Bruno Haible  <bruno@clisp.org>
13986
13987         signal-c++-tests: Check declaration of pthread_sigmask.
13988         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13989         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13990         $(LIB_PTHREAD_SIGMASK).
13991
13992 2011-07-07  Bruno Haible  <bruno@clisp.org>
13993
13994         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13995         * lib/signal.in.h (pthread_sigmask): Override if
13996         REPLACE_PTHREAD_SIGMASK is 1.
13997         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13998         REPLACE_PTHREAD_SIGMASK.
13999         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14000         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14001         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14002         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14003         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14004
14005 2011-07-07  Bruno Haible  <bruno@clisp.org>
14006
14007         pthread_sigmask: Ensure declaration in <signal.h>.
14008         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14009         include <pthread.h>.
14010         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14011         problem.
14012
14013 2011-07-07  Bruno Haible  <bruno@clisp.org>
14014
14015         pthread_sigmask: Document the module.
14016         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14017
14018 2011-07-07  Bruno Haible  <bruno@clisp.org>
14019
14020         pthread_sigmask: Follow gnulib conventions.
14021         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14022         gl_PTHREAD_SIGMASK.
14023         * modules/pthread_sigmask (configure.ac): Update.
14024
14025 2011-07-07  Bruno Haible  <bruno@clisp.org>
14026
14027         pthread_sigmask: Make declaration C++ safe.
14028         * lib/signal.in.h: In two special conditions, just do an #include_next.
14029         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14030         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14032         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14033         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14034         not REPLACE_PTHREAD_MASK.
14035         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14036         not REPLACE_PTHREAD_MASK.
14037         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14038
14039 2011-07-07  Bruno Haible  <bruno@clisp.org>
14040
14041         pthread_sigmask: Fix return value.
14042         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14043         * lib/pthread_sigmask.c: New file.
14044         * modules/pthread_sigmask (Files): Add it.
14045         (configure.ac): Invoke AC_LIBOBJ.
14046
14047 2011-07-07  Eric Blake  <eblake@redhat.com>
14048
14049         getopt: more portable argv creation
14050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14051         const, use char arrays rather than strings.
14052         Suggested by Paul Eggert.
14053
14054 2011-07-07  Bruno Haible  <bruno@clisp.org>
14055
14056         Tests for module 'sigprocmask'.
14057         * modules/sigprocmask-tests: New file.
14058         * tests/test-sigprocmask.c: New file.
14059
14060 2011-07-07  Bruno Haible  <bruno@clisp.org>
14061
14062         float tests: Tweak.
14063         * tests/test-float.c (main): Tweak skip message.
14064
14065 2011-07-07  Eric Blake  <eblake@redhat.com>
14066
14067         getopt: avoid compiler warning during configure
14068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14069         assigning string literals to non-const pointer.
14070
14071         getopt-gnu: avoid crash in glibc getopt
14072         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14073         * tests/test-getopt.h (test_getopt): Enhance test.
14074         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14075         * doc/posix-functions/getopt.texi (getopt): Document it.
14076         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14077         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14078         Likewise.
14079
14080 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14081
14082         getopt: handle W; without long options in getopt [BZ #12922]
14083         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14084         but no long options are defined, just return 'W'.
14085
14086 2011-07-07  Bruno Haible  <bruno@clisp.org>
14087
14088         Avoid literal tabs.
14089         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14090         variable containing a tab instead of a literal tab.
14091         Reported by Jim Meyering.
14092
14093 2011-07-07  Bruno Haible  <bruno@clisp.org>
14094
14095         Comments.
14096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14097
14098 2011-07-06  Bruno Haible  <bruno@clisp.org>
14099
14100         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14101         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14102         <winsock2.h>.
14103         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14104         lib/sys_socket.in.h.
14105         (close, gethostname): Hide declarations from <winsock2.h>.
14106         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14107         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14108         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14109         (select): Don't override if gnulib's <sys/select.h> was already
14110         included.
14111         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14112         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14113         setsockopt, shutdown, select): Tweak indentation.
14114
14115 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14116
14117         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14118         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14119         in an application that does not use the sys_select module.
14120
14121 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14122
14123         poll: do not return 0 on timeout=-1
14124         * lib/poll.c: Loop with yield if no events occured
14125
14126 2011-07-06  Eric Blake  <eblake@redhat.com>
14127
14128         pthread_sigmask: always replace when not using pthread
14129         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14130         replacement when using some threading other than pthread.  Fix
14131         logic bug.
14132
14133 2011-07-06  Bruno Haible  <bruno@clisp.org>
14134
14135         Comments.
14136         * m4/printf.m4: Update comments about mingw.
14137
14138 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14139
14140         sys_select: define sigset_t more portably
14141         * lib/sys_select.in.h: Always include <sys/types.h>, since
14142         we now need sigset_t and mingw defines it there.
14143         Include <signal.h> before split inclusion guard, to avoid
14144         mishaps on Solaris, whose <signal.h> eventually includes us.
14145         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14146         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14147         which come from ...
14148         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14149         gl_CHECK_TYPE_SIGSET_T.
14150         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14151         does the real work.
14152         * modules/sys_select (Depends-on): Add 'signal'.
14153
14154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14155         Suggested by Bruno Haible.
14156
14157         pselect: Use pthread_sigmask, not sigprocmask.
14158         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14159         multithreaded apps better than sigprocmask does.
14160         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14161         sigprocmask directly.
14162
14163 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14164
14165         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14166         Don't #undef,  since we don't need any underlying pselect.
14167         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14168         (Depends-on): Add select.
14169         (Link): Add $(LIBSOCKET).
14170         These changes suggested by Bruno Haible.
14171
14172         pselect: document better
14173         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14174         * doc/posix-functions/pselect.texi (pselect): Document new module.
14175
14176         pthread_sigmask: new module
14177         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14178         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14179         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14180         This is done only as a macro; I don't know how well that'll
14181         work for C++.  Move <sys/types.h> include before the include_next,
14182         to avoid mishap on Solaris.
14183         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14184         * modules/signal (Makefile.am): Substitute the check's results.
14185         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14186
14187         test-pselect: new module
14188         * modules/pselect-tests, tests/test-pselect.c: New files.
14189         * tests/test-select.c, tests/test-sys_select-c++.cc:
14190         If TEST_PSELECT is defined, test pselect instead of testing select.
14191
14192         * tests/test-sys_select.c (sigset_t): Test for it, too.
14193         Suggested by Bruno Haible.
14194
14195 2011-07-05  Eric Blake  <eblake@redhat.com>
14196
14197         snprintf: guarantee %1$d, for libintl
14198         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14199         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14200         * doc/posix-functions/snprintf.texi (snprintf): Update.
14201         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14202         * tests/test-snprintf.c (main): Enhance test.
14203         * tests/test-vsnprintf.c (main): Likewise.
14204
14205 2011-07-05  Jim Meyering  <meyering@redhat.com>
14206
14207         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14208         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14209         per Bruno's request, to accommodate this idiom (no space after "#")
14210         even when the function is inside an #if block:
14211         char *
14212         gets (char *s)
14213         #undef gets
14214         {
14215           ...
14216         }
14217
14218 2011-07-04  Jim Meyering  <meyering@redhat.com>
14219
14220         maint: indent with spaces, not TABs, and add a rule to check this
14221         * tests/test-userspec.c: Indent with spaces, not TABs.
14222         * tests/test-argp.c: Likewise.
14223         * tests/test-c-stack2.sh: Likewise.
14224         * tests/test-parse-duration.sh: Likewise
14225         * m4/strtod.m4: Likewise.
14226         * m4/alloca.m4: Likewise.
14227         * m4/pselect.m4: Likewise.
14228         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14229
14230 2011-07-03  Jim Meyering  <meyering@redhat.com>
14231
14232         maint.mk: correct omissions in prohibit_argmatch_without_use check
14233         This rule would mistakenly report that argmatch.h is included without
14234         use even when both the argmatch and invalid_arg macro were used.
14235         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14236         of argmatch and invalid_arg.
14237
14238 2011-07-03  Bruno Haible  <bruno@clisp.org>
14239
14240         Comments about EINTR.
14241         * lib/safe-read.h: Explain the purpose of this module.
14242         * lib/safe-write.h: Likewise.
14243         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14244         module.
14245         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14246         module.
14247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14248
14249 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14250
14251         xnanosleep: Rewrite to use new dtotimespec module.
14252         It has the conversion code that used to be in xnanosleep.
14253         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14254         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14255         (TIME_T_MAX): Remove.
14256         (xnanosleep): Rewrite in terms of dtotimespec.
14257         * modules/xnanosleep (Depends-on): Add dtotimespec.
14258         Remove intprops, stdbool.
14259
14260         timespec-add, timespec-sub: new modules
14261         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14262         * lib/timespec-add.c, lib/timespec-sub.c:
14263         * modules/timespec-add, modules/timespec-sub: New files.
14264
14265         dtotimespec: new module
14266         * lib/timespec.h (dtotimespec): New decl.
14267         * lib/dtotimespec.c, modules/dtotimespec: New files.
14268
14269         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14270
14271         pselect: new module
14272         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14273         (pselect): New decls.
14274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14275         since the standard pselect decl uses 'restrict'.
14276         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14277         HAVE_PSELECT, REPLACE_PSELECT.
14278         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14279         HAVE_PSELECT, REPLACE_PSELECT.
14280         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14281
14282         sys_select: don't depend on sys_socket
14283         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14285         This fix works on GNU and GNU-like platforms, but has not been tested
14286         on native Windows.
14287         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14289         gl_HEADER_SYS_SOCKET.
14290         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14291         gl_PREREQ_SYS_H_WINSOCK2.
14292
14293 2011-06-29  Eric Blake  <eblake@redhat.com>
14294
14295         pipe2: fix C89 compile problem
14296         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14297         Reported by Bruno Haible.
14298
14299         pipe, pipe2: don't corrupt fd on error
14300         * lib/pipe.c (pipe): Leave fd unchanged on error.
14301         * lib/pipe2.c (pipe2): Likewise.
14302         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14303         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14304
14305 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14306
14307         mmap-anon: do not use regular expressions inadvertently
14308         * m4/mmap-anon.m4: Remove trailing period from strings sought
14309         in the output.
14310
14311 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         nanosleep: fix integer overflow problem
14314         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14315         arithmetic wraps around on overflow.
14316
14317         nanosleep: simplify carrying
14318         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14319         first call to the underyling nanosleep, not for the last one.
14320         This doesn't fix any bugs, but it simplifies the computation of
14321         the remaining delay.  Found while auditing integer overflow issues.
14322
14323         dup2: remove test for existence of fcntl
14324         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14325         "#if HAVE_FCNTL", in the configure-time test program.
14326         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14327         and therefore speeds up "configure" a bit.  Found while
14328         adding the dup2 module to Emacs.
14329
14330 2011-06-24  Eric Blake  <eblake@redhat.com>
14331
14332         maint.mk: enhance useless header checks
14333         * top/maint.mk (_sc_header_without_use): Check both include
14334         styles.
14335         (sc_prohibit_assert_without_use)
14336         (sc_prohibit_close_stream_without_use)
14337         (sc_prohibit_getopt_without_use)
14338         (sc_prohibit_quotearg_without_use)
14339         (sc_prohibit_quote_without_use)
14340         (sc_prohibit_long_options_without_use)
14341         (sc_prohibit_inttostr_without_use)
14342         (sc_prohibit_ignore_value_without_use)
14343         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14344         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14345         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14346         (sc_prohibit_hash_pjw_without_use)
14347         (sc_prohibit_safe_read_without_use)
14348         (sc_prohibit_argmatch_without_use)
14349         (sc_prohibit_canonicalize_without_use)
14350         (sc_prohibit_root_dev_ino_without_use)
14351         (sc_prohibit_openat_without_use)
14352         (sc_prohibit_c_ctype_without_use)
14353         (sc_prohibit_signal_without_use)
14354         (sc_prohibit_stdio--_without_use)
14355         (sc_prohibit_stdio-safer_without_use)
14356         (sc_prohibit_strings_without_use)
14357         (sc_prohibit_intprops_without_use)
14358         (sc_prohibit_stddef_without_use)
14359         (sc_prohibit_xfreopen_without_use): Update clients.
14360
14361 2011-06-24  Jim Meyering  <meyering@redhat.com>
14362
14363         syntax-check: keep one maint.mk rule in sync with its header
14364         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14365         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14366         I prefer to avoid temporary files here, so use <(...), but that
14367         is not supported by /bin/sh, so...
14368         (SHELL): Define to /bin/bash.
14369
14370 2011-06-24  Eric Blake  <eblake@redhat.com>
14371
14372         maint.mk: update sc_prohibit_intprops_without_use
14373         * top/maint.mk (_intprops_names): Match recent changes.
14374
14375 2011-06-24  Bruno Haible  <bruno@clisp.org>
14376
14377         strerror-override: No-op tweak.
14378         * lib/strerror-override.h (strerror_override): Reorder conditions,
14379         for consistency with lib/strerror-override.c.
14380
14381 2011-06-23  Eric Blake  <eblake@redhat.com>
14382
14383         maint.mk: test further PATH_MAX issues
14384         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14385         (sc_prohibit_path_max_allocation): ...and also test alloca.
14386         Suggested by Jim Meyering.
14387
14388 2011-06-22  Eric Blake  <eblake@redhat.com>
14389
14390         maint.mk: add syntax-check to avoid char[PATH_MAX]
14391         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14392
14393         stat: be robust to PATH_MAX definition
14394         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14395         * modules/stat (Depends-on): Add verify.
14396
14397         link: work around IRIX bug
14398         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14399         * lib/link.c (rpl_link): Work around it.
14400         * tests/test-link.h (test_link): Enhance test.
14401         * doc/posix-functions/link.texi (link): Document the bug.
14402
14403         getopt: silence clang warning
14404         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14405         dereference.
14406         Reported by Gustavo Martin Domato.
14407
14408 2011-06-22  Jim Meyering  <meyering@redhat.com>
14409
14410         bootstrap: do not insert a blank line into each .gitignore file
14411         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14412
14413 2011-06-21  Eric Blake  <eblake@redhat.com>
14414
14415         perror: test for output mismatch
14416         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14417         perror on IRIX.
14418
14419         strerror_r: fix OpenBSD behavior on out-of-range
14420         * lib/strerror_r.c (strerror_r): Always use maximal string.
14421         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14422
14423         strerror_r: fix OpenBSD behavior on 0
14424         * lib/strerror-override.c (strerror_override): Also override 0
14425         when needed.
14426         * lib/strerror-override.h (strerror_override): Likewise.
14427         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14428         earlier.
14429         * lib/strerror_r.c (strerror_r): Likewise.
14430         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14431         behavior...
14432         (gl_FUNC_STRERROR_0): ...into new macro.
14433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14434         is overridden.
14435         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14436         * modules/strerror-override (Files): Add strerror.m4.
14437         (configure.ac): Also provide override for 0 when needed.
14438         * doc/posix-functions/strerror.texi (strerror): Document this.
14439         * doc/posix-functions/perror.texi (perror): Likewise.
14440
14441         perror: adjust array size
14442         * modules/perror (Depends-on): Add strerror-override.
14443         * lib/perror.c (perror): Use it to avoid magic number.
14444
14445         strerror-override: reduce size
14446         * lib/strerror-override.c (strerror_override): Use fewer lines.
14447
14448 2011-06-20  Bruno Haible  <bruno@clisp.org>
14449
14450         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14451         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14452
14453 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14454
14455         alloca: port to compilers that can optimize like GCC 4.6.0
14456         * lib/alloca.c (find_stack_direction): New signature, taken from
14457         Autoconf git.  This works with GCC 4.6.0.  This code should never
14458         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14459         be used with other compilers that optimize as well as GCC 4.6.0 does.
14460         (alloca): Adjust to new signature.
14461         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14462         New macro, which patches Autoconf in a similar way.
14463
14464         c-stack: stop worrying about stack direction
14465         * lib/c-stack.c (find_stack_direction): Remove.
14466         (segv_handler): Don't worry about stack direction growth, as it's
14467         too much of a pain to configure this correctly, given how compilers
14468         are optimizing-away our stack-growth detection code.  Instead, assume
14469         that any access to just before or just after the stack is OK.
14470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14471         Don't require AC_FUNC_ALLOCA; no longer needed.
14472
14473 2011-06-20  Eric Blake  <eblake@redhat.com>
14474
14475         test-stat: don't allocate PATH_MAX bytes
14476         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14477         PATH_MAX-sized buffer.
14478         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14479         * modules/stat-tests (Depends-on): Likewise.
14480         * tests/test-fstatat.c (includes): Drop pathmax.h.
14481         * tests/test-stat.c (includes): Likewise.
14482         Reported by Bruno Haible.
14483
14484 2011-06-20  Bruno Haible  <bruno@clisp.org>
14485
14486         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14487         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14488         * lib/float.c: New file.
14489         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14490         REPLACE_FLOAT_LDBL.
14491         * modules/float (Files): Add lib/float.c.
14492         (configure.ac): Invoke AC_LIBOBJ.
14493         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14494
14495 2011-06-20  Bruno Haible  <bruno@clisp.org>
14496
14497         Tests for module 'float'.
14498         * modules/float-tests: New file.
14499         * tests/test-float.c: New file.
14500
14501 2011-06-19  Bruno Haible  <bruno@clisp.org>
14502
14503         isinf: Coding style.
14504         * lib/isinf.c: Use GNU coding style.
14505
14506 2011-06-19  Bruno Haible  <bruno@clisp.org>
14507
14508         linkat test: Avoid test failure on AIX 7.1.
14509         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14510         * tests/test-link.h (test_link): Likewise.
14511
14512 2011-06-19  Bruno Haible  <bruno@clisp.org>
14513
14514         pread test: Avoid test failure on OpenBSD 4.9.
14515         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14516
14517 2011-06-19  Bruno Haible  <bruno@clisp.org>
14518
14519         sprintf-posix: Fix test failure on AIX 7.1.
14520         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14521         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14522         on AIX.
14523         * doc/posix-functions/fprintf.texi: Likewise.
14524         * doc/posix-functions/printf.texi: Likewise.
14525         * doc/posix-functions/snprintf.texi: Likewise.
14526         * doc/posix-functions/sprintf.texi: Likewise.
14527         * doc/posix-functions/vdprintf.texi: Likewise.
14528         * doc/posix-functions/vfprintf.texi: Likewise.
14529         * doc/posix-functions/vprintf.texi: Likewise.
14530         * doc/posix-functions/vsnprintf.texi: Likewise.
14531         * doc/posix-functions/vsprintf.texi: Likewise.
14532
14533 2011-06-19  Bruno Haible  <bruno@clisp.org>
14534
14535         roundl-ieee: Fix test failure on AIX 7.1.
14536         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14537         * doc/posix-functions/roundl.texi: Mention problem with negative
14538         arguments.
14539
14540 2011-06-19  Bruno Haible  <bruno@clisp.org>
14541
14542         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14543         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14544         * doc/posix-functions/round.texi: Mention problem with negative
14545         arguments.
14546         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14547
14548 2011-06-19  Bruno Haible  <bruno@clisp.org>
14549
14550         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14551         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14552         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14553         * doc/posix-functions/roundf.texi: Mention problem with negative
14554         arguments.
14555         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14556
14557 2011-06-19  Bruno Haible  <bruno@clisp.org>
14558
14559         ceilf-ieee: Work around bug on MacOS X 10.5.
14560         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14561
14562         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14563         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14564         IEEE compliant, avoid compiler optimizations.
14565         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14566         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14567         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14568         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14569         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14570         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14572         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14573         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14574         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14575
14576 2011-06-19  Bruno Haible  <bruno@clisp.org>
14577
14578         ceilf-ieee: Work around bug on AIX 7.1.
14579         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14580         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14581
14582 2011-06-19  Bruno Haible  <bruno@clisp.org>
14583
14584         ceil-ieee: Work around bug on AIX 7.1.
14585         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14586         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14587
14588 2011-06-18  Bruno Haible  <bruno@clisp.org>
14589
14590         fsync test: Avoid test failure on MacOS X and AIX.
14591         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14592         EINVAL.
14593
14594 2011-06-18  Bruno Haible  <bruno@clisp.org>
14595
14596         openat, fdopendir tests: Fix link errors.
14597         * modules/openat-tests (Depends-on): Add progname.
14598         * modules/fdopendir-tests (Depends-on): Likewise.
14599         * tests/test-fchownat.c: Include progname.h.
14600         (main): Call set_program_name.
14601         * tests/test-fstatat.c: Include progname.h.
14602         (main): Call set_program_name.
14603         * tests/test-mkdirat.c: Include progname.h.
14604         (main): Call set_program_name.
14605         * tests/test-openat.c: Include progname.h.
14606         (main): Call set_program_name.
14607         * tests/test-unlinkat.c: Include progname.h.
14608         (main): Call set_program_name.
14609         * tests/test-fdopendir.c: Include progname.h.
14610         (main): Call set_program_name.
14611
14612 2011-06-18  Bruno Haible  <bruno@clisp.org>
14613
14614         Doc update.
14615         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14616         HP-UX.
14617         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14618
14619 2011-06-18  Bruno Haible  <bruno@clisp.org>
14620
14621         getcwd tests: Avoid compilation error on HP-UX 11.31.
14622         * modules/getcwd-tests (Depends-on): Add pathmax.
14623         * tests/test-getcwd.c: Include pathmax.h.
14624
14625 2011-06-18  Bruno Haible  <bruno@clisp.org>
14626
14627         isfinite, isinf: Fix link error on AIX 6 and 7.
14628         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14629         needed, also test the macro with a 'float' argument.
14630         * m4/isinf.m4 (gl_ISINF): Likewise.
14631
14632 2011-06-18  Bruno Haible  <bruno@clisp.org>
14633
14634         getloadavg: Don't clobber LIBS. Regression from previous commit.
14635         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14636         AC_CHECK_LIB from here...
14637         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14638         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14639         gl_func_getloadavg_done.
14640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14641
14642 2011-06-18  Bruno Haible  <bruno@clisp.org>
14643
14644         clean-temp: Improve documentation.
14645         * lib/clean-temp.h: Explain better how to use this module.
14646         Reported by John Darrington <john@darrington.wattle.id.au>.
14647
14648 2011-06-17  Bruno Haible  <bruno@clisp.org>
14649
14650         pread, pwrite: Avoid cc warning on AIX.
14651         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14652         (pwrite): Likewise.
14653
14654 2011-06-17  Bruno Haible  <bruno@clisp.org>
14655
14656         spawn-pipe tests: Fix link error.
14657         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14659
14660 2011-06-17  Bruno Haible  <bruno@clisp.org>
14661
14662         Tests: Remove unnecessary dependency.
14663         * modules/canonicalize-tests (Depends-on): Remove progname.
14664         * modules/chown-tests (Depends-on): Likewise.
14665         * modules/dirname-tests (Depends-on): Likewise.
14666         * modules/fdopendir-tests (Depends-on): Likewise.
14667         * modules/fdutimensat-tests (Depends-on): Likewise.
14668         * modules/hash-tests (Depends-on): Likewise.
14669         * modules/lchown-tests (Depends-on): Likewise.
14670         * modules/linkat-tests (Depends-on): Likewise.
14671         * modules/renameat-tests (Depends-on): Likewise.
14672         * modules/spawn-pipe-tests (Depends-on): Likewise.
14673         * modules/utimensat-tests (Depends-on): Likewise.
14674
14675 2011-06-17  Bruno Haible  <bruno@clisp.org>
14676
14677         spawn-pipe tests: Fix link error.
14678         * tests/test-spawn-pipe-child.c: Undefine fflush.
14679
14680 2011-06-17  Bruno Haible  <bruno@clisp.org>
14681
14682         Fix tests link errors.
14683         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14684         * modules/chown-tests (Makefile.am): Don't link test-chown with
14685         LIBINTL.
14686         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14687         LIBINTL.
14688         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14689         LIBINTL.
14690         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14691         LIBINTL.
14692
14693 2011-06-16  Bruno Haible  <bruno@clisp.org>
14694
14695         crypto/gc-sha1: Fix recent regression.
14696         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14697         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14698
14699         crypto/gc-md5: Fix recent regression.
14700         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14701
14702         crypto/gc-md4: Fix recent regression.
14703         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14704         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14705
14706         crypto/gc-arctwo: Fix recent regression.
14707         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14708         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14709
14710         crypto/gc-rijndael: Fix recent regression.
14711         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14712         (configure.ac): Invoke AC_LIBOBJ here.
14713         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14715
14716         crypto/gc-hmac-sha1: Fix recent regression.
14717         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14718         (configure.ac): Invoke AC_LIBOBJ here.
14719         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14721
14722         crypto/gc-hmac-md5: Fix recent regression.
14723         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14724         (configure.ac): Invoke AC_LIBOBJ here.
14725         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14727
14728         crypto/gc-des: Fix recent regression.
14729         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14730         (configure.ac): Invoke AC_LIBOBJ here.
14731         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14733
14734         crypto/gc-arcfour: Fix recent regression.
14735         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14736         (configure.ac): Invoke AC_LIBOBJ here.
14737         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14739
14740 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14741
14742         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14743         After the 2011-05-21 change, this macro requires
14744         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14746
14747 2011-06-16  Bruno Haible  <bruno@clisp.org>
14748
14749         fprintftime: Move AC_LIBOBJ invocations to module description.
14750         * m4/fprintftime.m4: Remove file.
14751         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14752         (configure.ac): Remove gl_FPRINTFTIME call.
14753         (Makefile.am): Augment lib_SOURCES.
14754         Reported by Jim Meyering.
14755
14756 2011-06-16  Bruno Haible  <bruno@clisp.org>
14757
14758         tmpfile-safer: Finish 2011-05-23 commit.
14759         * m4/stdio-safer.m4: Really remove file.
14760         Reported by Jim Meyering.
14761
14762 2011-06-16  Bruno Haible  <bruno@clisp.org>
14763
14764         syntax-check: Fix typo.
14765         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14766         printf-posix.m4.
14767         Reported by Jim Meyering.
14768
14769 2011-06-13  Jim Meyering  <meyering@redhat.com>
14770
14771         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14772         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14773
14774 2011-05-23  Bruno Haible  <bruno@clisp.org>
14775
14776         yesno: Move AC_LIBOBJ invocations to module description.
14777         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14778         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14779
14780 2011-05-23  Bruno Haible  <bruno@clisp.org>
14781
14782         xstrtol: Move AC_LIBOBJ invocations to module description.
14783         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14784         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14785
14786 2011-05-23  Bruno Haible  <bruno@clisp.org>
14787
14788         xstrtold: Move AC_LIBOBJ invocations to module description.
14789         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14790         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14791
14792 2011-05-23  Bruno Haible  <bruno@clisp.org>
14793
14794         xstrtod: Move AC_LIBOBJ invocations to module description.
14795         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14796         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14797
14798 2011-05-23  Bruno Haible  <bruno@clisp.org>
14799
14800         xnanosleep: Move AC_LIBOBJ invocations to module description.
14801         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14802         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14803
14804 2011-05-23  Bruno Haible  <bruno@clisp.org>
14805
14806         xgetcwd: Move AC_LIBOBJ invocations to module description.
14807         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14808         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14809
14810 2011-05-23  Bruno Haible  <bruno@clisp.org>
14811
14812         xalloc: Move AC_LIBOBJ invocations to module description.
14813         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14814         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14815
14816 2011-05-23  Bruno Haible  <bruno@clisp.org>
14817
14818         write-any-file: Move AC_LIBOBJ invocations to module description.
14819         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14820         invocation.
14821         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14822
14823 2011-05-23  Bruno Haible  <bruno@clisp.org>
14824
14825         utimens: Move AC_LIBOBJ invocations to module description.
14826         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14827         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14828
14829 2011-05-23  Bruno Haible  <bruno@clisp.org>
14830
14831         utimecmp: Move AC_LIBOBJ invocations to module description.
14832         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14833         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14834
14835 2011-05-23  Bruno Haible  <bruno@clisp.org>
14836
14837         userspec: Move AC_LIBOBJ invocations to module description.
14838         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14839         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14840
14841 2011-05-23  Bruno Haible  <bruno@clisp.org>
14842
14843         unlinkdir: Move AC_LIBOBJ invocations to module description.
14844         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14845         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14846
14847 2011-05-23  Bruno Haible  <bruno@clisp.org>
14848
14849         unistd-safer: Move AC_LIBOBJ invocations to module description.
14850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14851         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14852
14853 2011-05-23  Bruno Haible  <bruno@clisp.org>
14854
14855         tempname: Move AC_LIBOBJ invocations to module description.
14856         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14857         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14858
14859 2011-05-23  Bruno Haible  <bruno@clisp.org>
14860
14861         strftime: Move AC_LIBOBJ invocations to module description.
14862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14863         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14864
14865 2011-05-23  Bruno Haible  <bruno@clisp.org>
14866
14867         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14868         * m4/stdlib-safer.m4: Remove file.
14869         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14870         (configure.ac): Remove gl_STDLIB_SAFER call.
14871         (Makefile.am): Augment lib_SOURCES.
14872
14873 2011-05-23  Bruno Haible  <bruno@clisp.org>
14874
14875         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14876         * m4/stdio-safer.m4: Remove file.
14877         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14878         (configure.ac): Remove gl_TMPFILE_SAFER call.
14879         (Makefile.am): Augment lib_SOURCES.
14880
14881 2011-05-23  Bruno Haible  <bruno@clisp.org>
14882
14883         popen-safer: Move AC_LIBOBJ invocations to module description.
14884         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14885         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14886         (configure.ac): Remove gl_POPEN_SAFER call.
14887         (Makefile.am): Augment lib_SOURCES.
14888
14889 2011-05-23  Bruno Haible  <bruno@clisp.org>
14890
14891         freopen-safer: Move AC_LIBOBJ invocations to module description.
14892         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14893         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14894         (configure.ac): Remove gl_FREOPEN_SAFER call.
14895         (Makefile.am): Augment lib_SOURCES.
14896
14897 2011-05-23  Bruno Haible  <bruno@clisp.org>
14898
14899         fopen-safer: Move AC_LIBOBJ invocations to module description.
14900         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14901         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14902         (configure.ac): Remove gl_FOPEN_SAFER call.
14903         (Makefile.am): Augment lib_SOURCES.
14904
14905 2011-05-23  Bruno Haible  <bruno@clisp.org>
14906
14907         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14908         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14909         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14910
14911 2011-05-23  Bruno Haible  <bruno@clisp.org>
14912
14913         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14914         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14915         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14916
14917 2011-05-23  Bruno Haible  <bruno@clisp.org>
14918
14919         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14920         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14921         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14922
14923 2011-05-23  Bruno Haible  <bruno@clisp.org>
14924
14925         settime: Move AC_LIBOBJ invocations to module description.
14926         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14927         * modules/settime (Makefile.am): Augment lib_SOURCES.
14928
14929 2011-05-23  Bruno Haible  <bruno@clisp.org>
14930
14931         savedir: Move AC_LIBOBJ invocations to module description.
14932         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14933         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14934
14935 2011-05-23  Bruno Haible  <bruno@clisp.org>
14936
14937         save-cwd: Move AC_LIBOBJ invocations to module description.
14938         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14939         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14940
14941 2011-05-23  Bruno Haible  <bruno@clisp.org>
14942
14943         same: Move AC_LIBOBJ invocations to module description.
14944         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14945         * modules/same (Makefile.am): Augment lib_SOURCES.
14946
14947 2011-05-23  Bruno Haible  <bruno@clisp.org>
14948
14949         safe-write: Move AC_LIBOBJ invocations to module description.
14950         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14951         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14952         instead of gl_SAFE_WRITE.
14953         (Makefile.am): Augment lib_SOURCES.
14954
14955 2011-05-23  Bruno Haible  <bruno@clisp.org>
14956
14957         safe-read: Move AC_LIBOBJ invocations to module description.
14958         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14959         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14960         of gl_SAFE_READ.
14961         (Makefile.am): Augment lib_SOURCES.
14962
14963 2011-05-23  Bruno Haible  <bruno@clisp.org>
14964
14965         safe-alloc: Move AC_LIBOBJ invocations to module description.
14966         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14967         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14968
14969 2011-05-23  Bruno Haible  <bruno@clisp.org>
14970
14971         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14972         * m4/rijndael.m4: Remove file.
14973         * modules/crypto/rijndael (Files): Remove it.
14974         (configure.ac): Remove gl_RIJNDAEL call.
14975         (Makefile.am): Augment lib_SOURCES.
14976
14977 2011-05-23  Bruno Haible  <bruno@clisp.org>
14978
14979         readtokens: Move AC_LIBOBJ invocations to module description.
14980         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14981         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14982
14983 2011-05-23  Bruno Haible  <bruno@clisp.org>
14984
14985         read-file: Move AC_LIBOBJ invocations to module description.
14986         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14987         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14988         of gl_FUNC_READ_FILE.
14989         (Makefile.am): Augment lib_SOURCES.
14990
14991 2011-05-23  Bruno Haible  <bruno@clisp.org>
14992
14993         quotearg: Move AC_LIBOBJ invocations to module description.
14994         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14995         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14996
14997 2011-05-23  Bruno Haible  <bruno@clisp.org>
14998
14999         quote: Move AC_LIBOBJ invocations to module description.
15000         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15001         * modules/quote (Makefile.am): Augment lib_SOURCES.
15002
15003 2011-05-23  Bruno Haible  <bruno@clisp.org>
15004
15005         posixver: Move AC_LIBOBJ invocations to module description.
15006         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15007         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15008
15009 2011-05-23  Bruno Haible  <bruno@clisp.org>
15010
15011         posixtm: Move AC_LIBOBJ invocations to module description.
15012         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15013         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15014
15015 2011-05-23  Bruno Haible  <bruno@clisp.org>
15016
15017         physmem: Move AC_LIBOBJ invocations to module description.
15018         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15019         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15020
15021 2011-05-23  Bruno Haible  <bruno@clisp.org>
15022
15023         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15024         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15025         invocation.
15026         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15027
15028 2011-05-23  Bruno Haible  <bruno@clisp.org>
15029
15030         mpsort: Move AC_LIBOBJ invocations to module description.
15031         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15032         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15033
15034 2011-05-23  Bruno Haible  <bruno@clisp.org>
15035
15036         modechange: Move AC_LIBOBJ invocations to module description.
15037         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15038         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15039
15040 2011-05-23  Bruno Haible  <bruno@clisp.org>
15041
15042         mkdir-p: Move AC_LIBOBJ invocations to module description.
15043         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15044         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15045
15046 2011-05-23  Bruno Haible  <bruno@clisp.org>
15047
15048         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15049         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15050         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15051
15052 2011-05-23  Bruno Haible  <bruno@clisp.org>
15053
15054         mgetgroups: Move AC_LIBOBJ invocations to module description.
15055         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15056         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15057
15058 2011-05-23  Bruno Haible  <bruno@clisp.org>
15059
15060         memxor: Move AC_LIBOBJ invocations to module description.
15061         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15062         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15063
15064 2011-05-23  Bruno Haible  <bruno@clisp.org>
15065
15066         memcoll: Move AC_LIBOBJ invocations to module description.
15067         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15068         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15069
15070 2011-05-23  Bruno Haible  <bruno@clisp.org>
15071
15072         memcasecmp: Move AC_LIBOBJ invocations to module description.
15073         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15074         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15075
15076 2011-05-23  Bruno Haible  <bruno@clisp.org>
15077
15078         crypto/md5: Move AC_LIBOBJ invocations to module description.
15079         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15080         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15081
15082 2011-05-23  Bruno Haible  <bruno@clisp.org>
15083
15084         crypto/md4: Move AC_LIBOBJ invocations to module description.
15085         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15086         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15087
15088 2011-05-23  Bruno Haible  <bruno@clisp.org>
15089
15090         crypto/md2: Move AC_LIBOBJ invocations to module description.
15091         * m4/md2.m4: Remove file.
15092         * modules/crypto/md2 (Files): Remove it.
15093         (configure.ac): Remove gl_MD2 call.
15094         (Makefile.am): Augment lib_SOURCES.
15095
15096 2011-05-23  Bruno Haible  <bruno@clisp.org>
15097
15098         long-options: Move AC_LIBOBJ invocations to module description.
15099         * m4/long-options.m4: Remove file.
15100         * modules/long-options (Files): Remove it.
15101         (configure.ac): Remove gl_LONG_OPTIONS call.
15102         (Makefile.am): Augment lib_SOURCES.
15103
15104 2011-05-23  Bruno Haible  <bruno@clisp.org>
15105
15106         i-ring: Move AC_LIBOBJ invocations to module description.
15107         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15108         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15109
15110 2011-05-23  Bruno Haible  <bruno@clisp.org>
15111
15112         idcache: Move AC_LIBOBJ invocations to module description.
15113         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15114         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15115
15116 2011-05-23  Bruno Haible  <bruno@clisp.org>
15117
15118         human: Move AC_LIBOBJ invocations to module description.
15119         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15120         * modules/human (Makefile.am): Augment lib_SOURCES.
15121
15122 2011-05-23  Bruno Haible  <bruno@clisp.org>
15123
15124         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15125         * m4/hmac-sha1.m4: Remove file.
15126         * modules/crypto/hmac-sha1 (Files): Remove it.
15127         (configure.ac): Remove gl_HMAC_SHA1 call.
15128         (Makefile.am): Augment lib_SOURCES.
15129
15130 2011-05-23  Bruno Haible  <bruno@clisp.org>
15131
15132         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15133         * m4/hmac-md5.m4: Remove file.
15134         * modules/crypto/hmac-md5 (Files): Remove it.
15135         (configure.ac): Remove gl_HMAC_MD5 call.
15136         (Makefile.am): Augment lib_SOURCES.
15137
15138 2011-05-23  Bruno Haible  <bruno@clisp.org>
15139
15140         hash: Move AC_LIBOBJ invocations to module description.
15141         * m4/hash.m4: Remove file.
15142         * modules/hash (Files): Remove it.
15143         (configure.ac): Remove gl_HASH call.
15144         (Makefile.am): Augment lib_SOURCES.
15145
15146 2011-05-23  Bruno Haible  <bruno@clisp.org>
15147
15148         hard-locale: Move AC_LIBOBJ invocations to module description.
15149         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15150         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15151
15152 2011-05-23  Bruno Haible  <bruno@clisp.org>
15153
15154         getugroups: Move AC_LIBOBJ invocations to module description.
15155         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15156         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15157
15158 2011-05-23  Bruno Haible  <bruno@clisp.org>
15159
15160         gettime: Move AC_LIBOBJ invocations to module description.
15161         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15162         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15163
15164 2011-05-23  Bruno Haible  <bruno@clisp.org>
15165
15166         getndelim2: Move AC_LIBOBJ invocations to module description.
15167         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15168         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15169
15170 2011-05-23  Bruno Haible  <bruno@clisp.org>
15171
15172         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15173         * m4/gc-pbkdf2-sha1.m4: Remove file.
15174         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15175         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15176         (Makefile.am): Augment lib_SOURCES.
15177
15178 2011-05-23  Bruno Haible  <bruno@clisp.org>
15179
15180         fts: Move AC_LIBOBJ invocations to module description.
15181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15182         * modules/fts (configure.ac): ... to here.
15183
15184 2011-05-23  Bruno Haible  <bruno@clisp.org>
15185
15186         file-type: Move AC_LIBOBJ invocations to module description.
15187         * m4/file-type.m4: Remove file.
15188         * modules/file-type (Files): Remove it.
15189         (configure.ac): Remove gl_FILE_TYPE call.
15190         (Makefile.am): Augment lib_SOURCES.
15191
15192 2011-05-23  Bruno Haible  <bruno@clisp.org>
15193
15194         filenamecat*: Respect rules for use of AC_LIBOBJ.
15195         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15196         Remove AC_LIBOBJ invocation.
15197         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15198         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15199
15200 2011-05-23  Bruno Haible  <bruno@clisp.org>
15201
15202         filemode: Move AC_LIBOBJ invocations to module description.
15203         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15204         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15205
15206 2011-05-23  Bruno Haible  <bruno@clisp.org>
15207
15208         openat-safer: Move AC_LIBOBJ invocations to module description.
15209         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15210         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15211
15212 2011-05-23  Bruno Haible  <bruno@clisp.org>
15213
15214         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15215         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15216         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15217
15218 2011-05-23  Bruno Haible  <bruno@clisp.org>
15219
15220         exclude: Move AC_LIBOBJ invocations to module description.
15221         * m4/exclude.m4: Remove file.
15222         * modules/exclude (Files): Remove it.
15223         (configure.ac): Remove gl_EXCLUDE call.
15224         (Makefile.am): Augment lib_SOURCES.
15225
15226 2011-05-23  Bruno Haible  <bruno@clisp.org>
15227
15228         dirname*: Respect rules for use of AC_LIBOBJ.
15229         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15230         invocations.
15231         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15232         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15233
15234 2011-05-23  Bruno Haible  <bruno@clisp.org>
15235
15236         dirent-safer: Move AC_LIBOBJ invocations to module description.
15237         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15238         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15239
15240 2011-05-23  Bruno Haible  <bruno@clisp.org>
15241
15242         crypto/des: Move AC_LIBOBJ invocations to module description.
15243         * m4/des.m4: Remove file.
15244         * modules/crypto/des (Files): Remove it.
15245         (configure.ac): Remove gl_DES call.
15246         (Makefile.am): Augment lib_SOURCES.
15247
15248 2011-05-23  Bruno Haible  <bruno@clisp.org>
15249
15250         cycle-check: Move AC_LIBOBJ invocations to module description.
15251         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15252         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15253
15254 2011-05-23  Bruno Haible  <bruno@clisp.org>
15255
15256         c-strtold: Move AC_LIBOBJ invocations to module description.
15257         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15258         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15259
15260 2011-05-23  Bruno Haible  <bruno@clisp.org>
15261
15262         c-strtod: Move AC_LIBOBJ invocations to module description.
15263         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15264         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15265
15266 2011-05-23  Bruno Haible  <bruno@clisp.org>
15267
15268         crc: Move AC_LIBOBJ invocations to module description.
15269         * m4/crc.m4: Remove file.
15270         * modules/crc (Files): Remove it.
15271         (configure.ac): Remove gl_CRC call.
15272         (Makefile.am): Augment lib_SOURCES.
15273
15274 2011-05-23  Bruno Haible  <bruno@clisp.org>
15275
15276         close-stream: Move AC_LIBOBJ invocations to module description.
15277         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15278         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15279
15280 2011-05-23  Bruno Haible  <bruno@clisp.org>
15281
15282         closeout: Move AC_LIBOBJ invocations to module description.
15283         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15284         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15285
15286 2011-05-23  Bruno Haible  <bruno@clisp.org>
15287
15288         closein: Move AC_LIBOBJ invocations to module description.
15289         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15290         * modules/closein (Makefile.am): Augment lib_SOURCES.
15291
15292 2011-05-23  Bruno Haible  <bruno@clisp.org>
15293
15294         cloexec: Move AC_LIBOBJ invocations to module description.
15295         * m4/cloexec.m4: Remove file.
15296         * modules/cloexec (Files): Remove it.
15297         (configure.ac): Remove gl_CLOEXEC call.
15298         (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         check-version: Move AC_LIBOBJ invocations to module description.
15303         * m4/check-version.m4: Remove file.
15304         * modules/check-version (Files): Remove it.
15305         (configure.ac): Remove gl_CHECK_VERSION call.
15306         (Makefile.am): Augment lib_SOURCES.
15307
15308 2011-05-23  Bruno Haible  <bruno@clisp.org>
15309
15310         chdir-safer: Move AC_LIBOBJ invocations to module description.
15311         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15312         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15313
15314 2011-05-23  Bruno Haible  <bruno@clisp.org>
15315
15316         canonicalize: Move AC_LIBOBJ invocations to module description.
15317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15318         AC_LIBOBJ invocation.
15319         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15320
15321 2011-05-23  Bruno Haible  <bruno@clisp.org>
15322
15323         canon-host: Move AC_LIBOBJ invocations to module description.
15324         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15325         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15326         instead of gl_CANON_HOST.
15327         (Makefile.am): Augment lib_SOURCES.
15328
15329 2011-05-23  Bruno Haible  <bruno@clisp.org>
15330
15331         backupfile: Move AC_LIBOBJ invocations to module description.
15332         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15333         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15334
15335 2011-05-23  Bruno Haible  <bruno@clisp.org>
15336
15337         argmatch: Move AC_LIBOBJ invocations to module description.
15338         * m4/argmatch.m4: Remove file.
15339         * modules/argmatch (Files): Remove it.
15340         (configure.ac): Remove gl_ARGMATCH call.
15341         (Makefile.am): Augment lib_SOURCES.
15342
15343 2011-05-23  Bruno Haible  <bruno@clisp.org>
15344
15345         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15346         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15347         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15348
15349 2011-05-23  Bruno Haible  <bruno@clisp.org>
15350
15351         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15352         * m4/arcfour.m4: Remove file.
15353         * modules/crypto/arcfour (Files): Remove it.
15354         (configure.ac): Remove gl_ARCFOUR call.
15355         (Makefile.am): Augment lib_SOURCES.
15356
15357 2011-05-22  Bruno Haible  <bruno@clisp.org>
15358
15359         write: Move AC_LIBOBJ invocations to module description.
15360         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15361         * modules/write (configure.ac): ... to here.
15362
15363 2011-05-22  Bruno Haible  <bruno@clisp.org>
15364
15365         wmemset: Move AC_LIBOBJ invocations to module description.
15366         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15367         here...
15368         * modules/wmemset (configure.ac): ... to here.
15369
15370 2011-05-22  Bruno Haible  <bruno@clisp.org>
15371
15372         wmemmove: Move AC_LIBOBJ invocations to module description.
15373         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15374         here...
15375         * modules/wmemmove (configure.ac): ... to here.
15376
15377 2011-05-22  Bruno Haible  <bruno@clisp.org>
15378
15379         wmemcpy: Move AC_LIBOBJ invocations to module description.
15380         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15381         here...
15382         * modules/wmemcpy (configure.ac): ... to here.
15383
15384 2011-05-22  Bruno Haible  <bruno@clisp.org>
15385
15386         wmemcmp: Move AC_LIBOBJ invocations to module description.
15387         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15388         here...
15389         * modules/wmemcmp (configure.ac): ... to here.
15390
15391 2011-05-22  Bruno Haible  <bruno@clisp.org>
15392
15393         wmemchr: Move AC_LIBOBJ invocations to module description.
15394         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15395         here...
15396         * modules/wmemchr (configure.ac): ... to here.
15397
15398 2011-05-22  Bruno Haible  <bruno@clisp.org>
15399
15400         wcswidth: Move AC_LIBOBJ invocations to module description.
15401         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15402         here...
15403         * modules/wcswidth (configure.ac): ... to here.
15404
15405 2011-05-22  Bruno Haible  <bruno@clisp.org>
15406
15407         wcwidth: Respect rules for use of AC_LIBOBJ.
15408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15409         invocation from here...
15410         * modules/wcwidth (configure.ac): ... to here.
15411         (Depends-on): Update conditions.
15412
15413 2011-05-22  Bruno Haible  <bruno@clisp.org>
15414
15415         wctype: Move AC_LIBOBJ invocations to module description.
15416         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15417         invocation from here...
15418         * modules/wctype (configure.ac): ... to here.
15419         (Depends-on): Update conditions.
15420
15421 2011-05-22  Bruno Haible  <bruno@clisp.org>
15422
15423         wctrans: Move AC_LIBOBJ invocations to module description.
15424         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15425         invocation from here...
15426         * modules/wctrans (configure.ac): ... to here.
15427
15428 2011-05-22  Bruno Haible  <bruno@clisp.org>
15429
15430         wctomb: Move AC_LIBOBJ invocations to module description.
15431         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15432         invocations from here...
15433         * modules/wctomb (configure.ac): ... to here.
15434
15435 2011-05-22  Bruno Haible  <bruno@clisp.org>
15436
15437         wctob: Move AC_LIBOBJ invocations to module description.
15438         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15439         gl_PREREQ_WCTOB invocations from here...
15440         * modules/wctob (configure.ac): ... to here.
15441         (Depends-on): Update conditions.
15442
15443 2011-05-22  Bruno Haible  <bruno@clisp.org>
15444
15445         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15446         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15447         here...
15448         * modules/wcsxfrm (configure.ac): ... to here.
15449
15450 2011-05-22  Bruno Haible  <bruno@clisp.org>
15451
15452         wcstok: Move AC_LIBOBJ invocations to module description.
15453         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15454         * modules/wcstok (configure.ac): ... to here.
15455
15456 2011-05-22  Bruno Haible  <bruno@clisp.org>
15457
15458         wcsstr: Move AC_LIBOBJ invocations to module description.
15459         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15460         * modules/wcsstr (configure.ac): ... to here.
15461
15462 2011-05-22  Bruno Haible  <bruno@clisp.org>
15463
15464         wcsspn: Move AC_LIBOBJ invocations to module description.
15465         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15466         * modules/wcsspn (configure.ac): ... to here.
15467
15468 2011-05-22  Bruno Haible  <bruno@clisp.org>
15469
15470         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15471         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15472         gl_PREREQ_WCSRTOMBS invocations from here...
15473         * modules/wcsrtombs (configure.ac): ... to here.
15474
15475 2011-05-22  Bruno Haible  <bruno@clisp.org>
15476
15477         wcsrchr: Move AC_LIBOBJ invocations to module description.
15478         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15479         here...
15480         * modules/wcsrchr (configure.ac): ... to here.
15481
15482 2011-05-22  Bruno Haible  <bruno@clisp.org>
15483
15484         wcspbrk: Move AC_LIBOBJ invocations to module description.
15485         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15486         here...
15487         * modules/wcspbrk (configure.ac): ... to here.
15488
15489 2011-05-22  Bruno Haible  <bruno@clisp.org>
15490
15491         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15492         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15493         gl_PREREQ_WCSNRTOMBS invocations from here...
15494         * modules/wcsnrtombs (configure.ac): ... to here.
15495
15496 2011-05-22  Bruno Haible  <bruno@clisp.org>
15497
15498         wcsnlen: Move AC_LIBOBJ invocations to module description.
15499         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15500         here...
15501         * modules/wcsnlen (configure.ac): ... to here.
15502
15503 2011-05-22  Bruno Haible  <bruno@clisp.org>
15504
15505         wcsncpy: Move AC_LIBOBJ invocations to module description.
15506         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15507         here...
15508         * modules/wcsncpy (configure.ac): ... to here.
15509
15510 2011-05-22  Bruno Haible  <bruno@clisp.org>
15511
15512         wcsncmp: Move AC_LIBOBJ invocations to module description.
15513         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15514         here...
15515         * modules/wcsncmp (configure.ac): ... to here.
15516
15517 2011-05-22  Bruno Haible  <bruno@clisp.org>
15518
15519         wcsncat: Move AC_LIBOBJ invocations to module description.
15520         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15521         here...
15522         * modules/wcsncat (configure.ac): ... to here.
15523
15524 2011-05-22  Bruno Haible  <bruno@clisp.org>
15525
15526         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15527         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15528         from here...
15529         * modules/wcsncasecmp (configure.ac): ... to here.
15530
15531 2011-05-22  Bruno Haible  <bruno@clisp.org>
15532
15533         wcslen: Move AC_LIBOBJ invocations to module description.
15534         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15535         * modules/wcslen (configure.ac): ... to here.
15536
15537 2011-05-22  Bruno Haible  <bruno@clisp.org>
15538
15539         wcsdup: Move AC_LIBOBJ invocations to module description.
15540         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15541         * modules/wcsdup (configure.ac): ... to here.
15542
15543 2011-05-22  Bruno Haible  <bruno@clisp.org>
15544
15545         wcscspn: Move AC_LIBOBJ invocations to module description.
15546         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15547         here...
15548         * modules/wcscspn (configure.ac): ... to here.
15549
15550 2011-05-22  Bruno Haible  <bruno@clisp.org>
15551
15552         wcscpy: Move AC_LIBOBJ invocations to module description.
15553         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15554         * modules/wcscpy (configure.ac): ... to here.
15555
15556 2011-05-22  Bruno Haible  <bruno@clisp.org>
15557
15558         wcscoll: Move AC_LIBOBJ invocations to module description.
15559         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15560         here...
15561         * modules/wcscoll (configure.ac): ... to here.
15562
15563 2011-05-22  Bruno Haible  <bruno@clisp.org>
15564
15565         wcscmp: Move AC_LIBOBJ invocations to module description.
15566         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15567         * modules/wcscmp (configure.ac): ... to here.
15568
15569 2011-05-22  Bruno Haible  <bruno@clisp.org>
15570
15571         wcschr: Move AC_LIBOBJ invocations to module description.
15572         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15573         * modules/wcschr (configure.ac): ... to here.
15574
15575 2011-05-22  Bruno Haible  <bruno@clisp.org>
15576
15577         wcscat: Move AC_LIBOBJ invocations to module description.
15578         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15579         * modules/wcscat (configure.ac): ... to here.
15580
15581 2011-05-22  Bruno Haible  <bruno@clisp.org>
15582
15583         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15584         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15585         here...
15586         * modules/wcscasecmp (configure.ac): ... to here.
15587
15588 2011-05-22  Bruno Haible  <bruno@clisp.org>
15589
15590         wcrtomb: Move AC_LIBOBJ invocations to module description.
15591         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15592         invocations from here...
15593         * modules/wcrtomb (configure.ac): ... to here.
15594
15595 2011-05-22  Bruno Haible  <bruno@clisp.org>
15596
15597         wcpncpy: Move AC_LIBOBJ invocations to module description.
15598         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15599         here...
15600         * modules/wcpncpy (configure.ac): ... to here.
15601
15602 2011-05-22  Bruno Haible  <bruno@clisp.org>
15603
15604         wcpcpy: Move AC_LIBOBJ invocations to module description.
15605         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15606         * modules/wcpcpy (configure.ac): ... to here.
15607
15608 2011-05-22  Bruno Haible  <bruno@clisp.org>
15609
15610         waitpid: Move AC_LIBOBJ invocations to module description.
15611         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15612         invocation from here...
15613         * modules/waitpid (configure.ac): ... to here.
15614
15615 2011-05-22  Bruno Haible  <bruno@clisp.org>
15616
15617         utimensat: Move AC_LIBOBJ invocations to module description.
15618         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15619         here...
15620         * modules/utimensat (configure.ac): ... to here.
15621
15622 2011-05-22  Bruno Haible  <bruno@clisp.org>
15623
15624         usleep: Move AC_LIBOBJ invocations to module description.
15625         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15626         here...
15627         * modules/usleep (configure.ac): ... to here.
15628
15629 2011-05-22  Bruno Haible  <bruno@clisp.org>
15630
15631         unlockpt: Move AC_LIBOBJ invocations to module description.
15632         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15633         gl_PREREQ_UNLOCKPT invocations from here...
15634         * modules/unlockpt (configure.ac): ... to here.
15635
15636 2011-05-22  Bruno Haible  <bruno@clisp.org>
15637
15638         unlink: Respect rules for use of AC_LIBOBJ.
15639         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15640         * modules/unlink (configure.ac): ... to here.
15641
15642 2011-05-22  Bruno Haible  <bruno@clisp.org>
15643
15644         uname: Move AC_LIBOBJ invocations to module description.
15645         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15647         here...
15648         * modules/uname (configure.ac): ... to here.
15649
15650 2011-05-22  Bruno Haible  <bruno@clisp.org>
15651
15652         ttyname_r: Move AC_LIBOBJ invocations to module description.
15653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15654         gl_PREREQ_TTYNAME_R invocations from here...
15655         * modules/ttyname_r (configure.ac): ... to here.
15656
15657 2011-05-22  Bruno Haible  <bruno@clisp.org>
15658
15659         tsearch: Move AC_LIBOBJ invocations to module description.
15660         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15661         invocations from here...
15662         * modules/tsearch (configure.ac): ... to here.
15663
15664 2011-05-22  Bruno Haible  <bruno@clisp.org>
15665
15666         towctrans: Move AC_LIBOBJ invocations to module description.
15667         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15668         AC_LIBOBJ invocation from here...
15669         * modules/towctrans (configure.ac): ... to here.
15670
15671 2011-05-22  Bruno Haible  <bruno@clisp.org>
15672
15673         tmpfile: Move AC_LIBOBJ invocations to module description.
15674         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15675         invocations from here...
15676         * modules/tmpfile (configure.ac): ... to here.
15677
15678 2011-05-22  Bruno Haible  <bruno@clisp.org>
15679
15680         times: Move AC_LIBOBJ invocations to module description.
15681         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15682         * modules/times (configure.ac): ... to here.
15683
15684 2011-05-22  Bruno Haible  <bruno@clisp.org>
15685
15686         time_r: Move AC_LIBOBJ invocations to module description.
15687         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15688         invocations from here...
15689         * modules/time_r (configure.ac): ... to here.
15690
15691 2011-05-22  Bruno Haible  <bruno@clisp.org>
15692
15693         timegm: Move AC_LIBOBJ invocations to module description.
15694         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15695         invocations from here...
15696         * modules/timegm (configure.ac): ... to here.
15697
15698 2011-05-22  Bruno Haible  <bruno@clisp.org>
15699
15700         tcgetsid: Move AC_LIBOBJ invocations to module description.
15701         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15702         and gl_PREREQ_TCGETSID invocations from here...
15703         * modules/tcgetsid (configure.ac): ... to here.
15704         (Depends-on): Update conditions.
15705
15706 2011-05-22  Bruno Haible  <bruno@clisp.org>
15707
15708         symlinkat: Move AC_LIBOBJ invocations to module description.
15709         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15710         here...
15711         * modules/symlinkat (configure.ac): ... to here.
15712
15713 2011-05-22  Bruno Haible  <bruno@clisp.org>
15714
15715         symlink: Move AC_LIBOBJ invocations to module description.
15716         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15717         here...
15718         * modules/symlink (configure.ac): ... to here.
15719
15720 2011-05-22  Bruno Haible  <bruno@clisp.org>
15721
15722         strverscmp: Move AC_LIBOBJ invocations to module description.
15723         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15725         from here...
15726         * modules/strverscmp (configure.ac): ... to here.
15727
15728 2011-05-22  Bruno Haible  <bruno@clisp.org>
15729
15730         strtok_r: Move AC_LIBOBJ invocations to module description.
15731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15732         and gl_PREREQ_STRTOK_R invocations from here...
15733         * modules/strtok_r (configure.ac): ... to here.
15734         (Depends-on): Update conditions.
15735
15736 2011-05-22  Bruno Haible  <bruno@clisp.org>
15737
15738         strtoumax: Move AC_LIBOBJ invocations to module description.
15739         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15741         from here...
15742         * modules/strtoumax (configure.ac): ... to here.
15743
15744 2011-05-22  Bruno Haible  <bruno@clisp.org>
15745
15746         strtoimax: Move AC_LIBOBJ invocations to module description.
15747         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15748         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15749         from here...
15750         * modules/strtoimax (configure.ac): ... to here.
15751
15752 2011-05-22  Bruno Haible  <bruno@clisp.org>
15753
15754         strtoull: Move AC_LIBOBJ invocations to module description.
15755         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15757         from here...
15758         * modules/strtoull (configure.ac): ... to here.
15759
15760 2011-05-22  Bruno Haible  <bruno@clisp.org>
15761
15762         strtoll: Move AC_LIBOBJ invocations to module description.
15763         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15765         here...
15766         * modules/strtoll (configure.ac): ... to here.
15767
15768 2011-05-22  Bruno Haible  <bruno@clisp.org>
15769
15770         strtoul: Move AC_LIBOBJ invocations to module description.
15771         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15772         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15773         * modules/strtoul (configure.ac): ... to here.
15774
15775 2011-05-22  Bruno Haible  <bruno@clisp.org>
15776
15777         strtol: Move AC_LIBOBJ invocations to module description.
15778         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15779         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15780         * modules/strtol (configure.ac): ... to here.
15781
15782 2011-05-22  Bruno Haible  <bruno@clisp.org>
15783
15784         strtod: Move AC_LIBOBJ invocations to module description.
15785         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15786         invocations from here...
15787         * modules/strtod (configure.ac): ... to here.
15788
15789 2011-05-22  Bruno Haible  <bruno@clisp.org>
15790
15791         strstr*: Move AC_LIBOBJ invocations to module description.
15792         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15793         invocations from here...
15794         * modules/strstr-simple (configure.ac): ... to here.
15795         * modules/strstr (configure.ac): ... and here.
15796
15797 2011-05-22  Bruno Haible  <bruno@clisp.org>
15798
15799         strsignal: Move AC_LIBOBJ invocations to module description.
15800         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15801         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15802         * modules/strsignal (configure.ac): ... to here.
15803         (Depends-on): Update conditions.
15804
15805 2011-05-22  Bruno Haible  <bruno@clisp.org>
15806
15807         strsep: Move AC_LIBOBJ invocations to module description.
15808         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15809         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15810         here...
15811         * modules/strsep (configure.ac): ... to here.
15812
15813 2011-05-22  Bruno Haible  <bruno@clisp.org>
15814
15815         strptime: Move AC_LIBOBJ invocations to module description.
15816         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15817         gl_PREREQ_STRPTIME invocations from here...
15818         * modules/strptime (configure.ac): ... to here.
15819
15820 2011-05-22  Bruno Haible  <bruno@clisp.org>
15821
15822         strpbrk: Move AC_LIBOBJ invocations to module description.
15823         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15825         here...
15826         * modules/strpbrk (configure.ac): ... to here.
15827
15828 2011-05-22  Bruno Haible  <bruno@clisp.org>
15829
15830         strnlen: Move AC_LIBOBJ invocations to module description.
15831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15832         invocations from here...
15833         * modules/strnlen (configure.ac): ... to here.
15834
15835 2011-05-22  Bruno Haible  <bruno@clisp.org>
15836
15837         strndup: Move AC_LIBOBJ invocations to module description.
15838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15839         invocations from here...
15840         * modules/strndup (configure.ac): ... to here.
15841         (Depends-on): Update conditions.
15842
15843 2011-05-22  Bruno Haible  <bruno@clisp.org>
15844
15845         strncat: Move AC_LIBOBJ invocations to module description.
15846         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15847         invocations from here...
15848         * modules/strncat (configure.ac): ... to here.
15849
15850 2011-05-22  Bruno Haible  <bruno@clisp.org>
15851
15852         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15853         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15854         invocations from here...
15855         * modules/strdup (configure.ac): ... to here.
15856         * modules/strdup-posix (configure.ac): ... and here.
15857
15858 2011-05-22  Bruno Haible  <bruno@clisp.org>
15859
15860         strcspn: Move AC_LIBOBJ invocations to module description.
15861         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15862         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15863         here...
15864         * modules/strcspn (configure.ac): ... to here.
15865
15866 2011-05-22  Bruno Haible  <bruno@clisp.org>
15867
15868         strchrnul: Move AC_LIBOBJ invocations to module description.
15869         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15870         gl_PREREQ_STRCHRNUL invocations from here...
15871         * modules/strchrnul (configure.ac): ... to here.
15872
15873 2011-05-22  Bruno Haible  <bruno@clisp.org>
15874
15875         strcasestr*: Move AC_LIBOBJ invocations to module description.
15876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15877         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15878         * modules/strcasestr-simple (configure.ac): ... to here.
15879         * modules/strcasestr (configure.ac): ... and here.
15880
15881 2011-05-22  Bruno Haible  <bruno@clisp.org>
15882
15883         strcase: Move AC_LIBOBJ invocations to module description.
15884         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15885         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15886         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15887         gl_PREREQ_STRNCASECMP invocations from here...
15888         * modules/strcase (configure.ac): ... to here.
15889
15890 2011-05-22  Bruno Haible  <bruno@clisp.org>
15891
15892         stpncpy: Move AC_LIBOBJ invocations to module description.
15893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15894         here...
15895         * modules/stpncpy (configure.ac): ... to here.
15896
15897 2011-05-22  Bruno Haible  <bruno@clisp.org>
15898
15899         stpcpy: Move AC_LIBOBJ invocations to module description.
15900         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15902         here...
15903         * modules/stpcpy (configure.ac): ... to here.
15904
15905 2011-05-21  Bruno Haible  <bruno@clisp.org>
15906
15907         stat: Move AC_LIBOBJ invocations to module description.
15908         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15909         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15910         here...
15911         * modules/stat (configure.ac): ... to here.
15912
15913 2011-05-21  Bruno Haible  <bruno@clisp.org>
15914
15915         sleep: Move AC_LIBOBJ invocations to module description.
15916         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15917         * modules/sleep (configure.ac): ... to here.
15918
15919 2011-05-21  Bruno Haible  <bruno@clisp.org>
15920
15921         signbit: Move AC_LIBOBJ invocations to module description.
15922         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15923         * modules/signbit (configure.ac): ... to here.
15924
15925 2011-05-21  Bruno Haible  <bruno@clisp.org>
15926
15927         sigprocmask: Move AC_LIBOBJ invocations to module description.
15928         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15929         gl_PREREQ_SIGPROMASK invocations from here...
15930         * modules/sigprocmask (configure.ac): ... to here.
15931
15932 2011-05-21  Bruno Haible  <bruno@clisp.org>
15933
15934         sigaction: Move AC_LIBOBJ invocations to module description.
15935         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15936         gl_PREREQ_SIGACTION invocations from here...
15937         * modules/sigaction (configure.ac): ... to here.
15938
15939 2011-05-21  Bruno Haible  <bruno@clisp.org>
15940
15941         sig2str: Move AC_LIBOBJ invocations to module description.
15942         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15944         here...
15945         * modules/sig2str (configure.ac): ... to here.
15946
15947 2011-05-21  Bruno Haible  <bruno@clisp.org>
15948
15949         setlocale: Move AC_LIBOBJ invocations to module description.
15950         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15951         gl_PREREQ_SETLOCALE invocations from here...
15952         * modules/setlocale (configure.ac): ... to here.
15953
15954 2011-05-21  Bruno Haible  <bruno@clisp.org>
15955
15956         unsetenv: Move AC_LIBOBJ invocations to module description.
15957         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15958         and gl_PREREQ_UNSETENV invocations from here...
15959         * modules/unsetenv (configure.ac): ... to here.
15960         (Depends-on): Update.
15961
15962 2011-05-21  Bruno Haible  <bruno@clisp.org>
15963
15964         setenv: Move AC_LIBOBJ invocations to module description.
15965         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15966         here...
15967         * modules/setenv (configure.ac): ... to here.
15968
15969 2011-05-21  Bruno Haible  <bruno@clisp.org>
15970
15971         selinux-h: Move AC_LIBOBJ invocations to module description.
15972         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15973         AC_LIBOBJ invocation from here...
15974         * modules/selinux-h (configure.ac): ... to here.
15975
15976 2011-05-21  Bruno Haible  <bruno@clisp.org>
15977
15978         select: Respect rules for use of AC_LIBOBJ.
15979         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15980         here...
15981         * modules/select (configure.ac): ... to here.
15982
15983 2011-05-21  Bruno Haible  <bruno@clisp.org>
15984
15985         scandir: Move AC_LIBOBJ invocations to module description.
15986         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15987         invocations from here...
15988         * modules/scandir (configure.ac): ... to here.
15989
15990 2011-05-21  Bruno Haible  <bruno@clisp.org>
15991
15992         rpmatch: Move AC_LIBOBJ invocations to module description.
15993         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15995         here...
15996         * modules/rpmatch (configure.ac): ... to here.
15997
15998 2011-05-21  Bruno Haible  <bruno@clisp.org>
15999
16000         rmdir: Respect rules for use of AC_LIBOBJ.
16001         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16002         * modules/rmdir (configure.ac): ... to here.
16003
16004 2011-05-21  Bruno Haible  <bruno@clisp.org>
16005
16006         renameat: Move AC_LIBOBJ invocations to module description.
16007         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16008         here...
16009         * modules/renameat (configure.ac): ... to here.
16010
16011 2011-05-21  Bruno Haible  <bruno@clisp.org>
16012
16013         rename: Respect rules for use of AC_LIBOBJ.
16014         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16015         here...
16016         * modules/rename (configure.ac): ... to here.
16017
16018 2011-05-21  Bruno Haible  <bruno@clisp.org>
16019
16020         remove: Move AC_LIBOBJ invocations to module description.
16021         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16022         here...
16023         * modules/remove (configure.ac): ... to here.
16024
16025 2011-05-21  Bruno Haible  <bruno@clisp.org>
16026
16027         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16028         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16029         macro.
16030         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16031         * modules/relocatable-lib (configure.ac): ... to here.
16032         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16033         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16034
16035 2011-05-21  Bruno Haible  <bruno@clisp.org>
16036
16037         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16038         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16039         here...
16040         * modules/relocatable-prog (configure.ac): ... to here.
16041
16042 2011-05-21  Bruno Haible  <bruno@clisp.org>
16043
16044         regex: Move AC_LIBOBJ invocations to module description.
16045         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16046         invocations from here...
16047         * modules/regex (configure.ac): ... to here.
16048
16049 2011-05-21  Bruno Haible  <bruno@clisp.org>
16050
16051         realloc-*: Move AC_LIBOBJ invocations to module description.
16052         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16053         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16054         AC_LIBOBJ invocations from here...
16055         * modules/realloc-gnu (configure.ac): ... to here.
16056         * modules/realloc-posix (configure.ac): ... and here.
16057
16058 2011-05-21  Bruno Haible  <bruno@clisp.org>
16059
16060         readutmp: Move AC_LIBOBJ invocations to module description.
16061         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16062         * modules/readutmp (configure.ac): ... to here.
16063
16064 2011-05-21  Bruno Haible  <bruno@clisp.org>
16065
16066         readlinkat: Move AC_LIBOBJ invocations to module description.
16067         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16068         here...
16069         * modules/readlinkat (configure.ac): ... to here.
16070
16071 2011-05-21  Bruno Haible  <bruno@clisp.org>
16072
16073         readlink: Move AC_LIBOBJ invocations to module description.
16074         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16075         gl_PREREQ_READLINK invocations from here...
16076         * modules/readlink (configure.ac): ... to here.
16077
16078 2011-05-21  Bruno Haible  <bruno@clisp.org>
16079
16080         readline: Move AC_LIBOBJ invocations to module description.
16081         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16082         gl_PREREQ_READLINE invocations from here...
16083         * modules/readline (configure.ac): ... to here.
16084
16085 2011-05-21  Bruno Haible  <bruno@clisp.org>
16086
16087         read: Move AC_LIBOBJ invocations to module description.
16088         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16089         * modules/read (configure.ac): ... to here.
16090
16091 2011-05-21  Bruno Haible  <bruno@clisp.org>
16092
16093         rawmemchr: Move AC_LIBOBJ invocations to module description.
16094         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16096         from here...
16097         * modules/rawmemchr (configure.ac): ... to here.
16098
16099 2011-05-21  Bruno Haible  <bruno@clisp.org>
16100
16101         random_r: Move AC_LIBOBJ invocations to module description.
16102         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16103         gl_PREREQ_RANDOM_R invocations from here...
16104         * modules/random_r (configure.ac): ... to here.
16105
16106 2011-05-21  Bruno Haible  <bruno@clisp.org>
16107
16108         pwrite: Move AC_LIBOBJ invocations to module description.
16109         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16110         * modules/pwrite (configure.ac): ... to here.
16111
16112 2011-05-21  Bruno Haible  <bruno@clisp.org>
16113
16114         putenv: Move AC_LIBOBJ invocations to module description.
16115         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16116         * modules/putenv (configure.ac): ... to here.
16117
16118 2011-05-21  Bruno Haible  <bruno@clisp.org>
16119
16120         login_tty: Move AC_LIBOBJ invocations to module description.
16121         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16122         * modules/login_tty (configure.ac): ... to here.
16123
16124 2011-05-21  Bruno Haible  <bruno@clisp.org>
16125
16126         openpty: Move AC_LIBOBJ invocations to module description.
16127         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16128         * modules/openpty (configure.ac): ... to here.
16129
16130 2011-05-21  Bruno Haible  <bruno@clisp.org>
16131
16132         forkpty: Move AC_LIBOBJ invocations to module description.
16133         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16134         * modules/forkpty (configure.ac): ... to here.
16135
16136 2011-05-21  Bruno Haible  <bruno@clisp.org>
16137
16138         ptsname: Move AC_LIBOBJ invocations to module description.
16139         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16140         invocations from here...
16141         * modules/ptsname (configure.ac): ... to here.
16142
16143 2011-05-21  Bruno Haible  <bruno@clisp.org>
16144
16145         pread: Move AC_LIBOBJ invocations to module description.
16146         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16147         * modules/pread (configure.ac): ... to here.
16148
16149 2011-05-21  Bruno Haible  <bruno@clisp.org>
16150
16151         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16152         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16153         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16154         * modules/posix_spawn (configure.ac): ... to here.
16155         * modules/posix_spawnp (configure.ac): ... and here.
16156
16157 2011-05-21  Bruno Haible  <bruno@clisp.org>
16158
16159         popen: Move AC_LIBOBJ invocations to module description.
16160         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16161         invocations from here...
16162         * modules/popen (configure.ac): ... to here.
16163
16164 2011-05-21  Bruno Haible  <bruno@clisp.org>
16165
16166         poll: Move AC_LIBOBJ invocations to module description.
16167         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16168         invocations from here...
16169         * modules/poll (configure.ac): ... to here.
16170
16171 2011-05-21  Bruno Haible  <bruno@clisp.org>
16172
16173         pipe-posix: Move AC_LIBOBJ invocations to module description.
16174         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16175         * modules/pipe-posix (configure.ac): ... to here.
16176
16177 2011-05-21  Bruno Haible  <bruno@clisp.org>
16178
16179         openat: Respect rules for use of AC_LIBOBJ.
16180         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16181         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16182         * modules/openat (configure.ac): ... to here.
16183
16184 2011-05-21  Bruno Haible  <bruno@clisp.org>
16185
16186         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16187         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16188         invocation from here...
16189         * modules/obstack-printf (configure.ac): ... to here.
16190         * modules/obstack-printf-posix (configure.ac): ... and here.
16191
16192 2011-05-21  Bruno Haible  <bruno@clisp.org>
16193
16194         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16195         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16196         from here...
16197         * modules/nl_langinfo (configure.ac): ... to here.
16198
16199 2011-05-21  Bruno Haible  <bruno@clisp.org>
16200
16201         nanosleep: Move AC_LIBOBJ invocations to module description.
16202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16203         gl_PREREQ_NANOSLEEP invocations from here...
16204         * modules/nanosleep (configure.ac): ... to here.
16205
16206 2011-05-21  Bruno Haible  <bruno@clisp.org>
16207
16208         mountlist: Move AC_LIBOBJ invocations to module description.
16209         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16210         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16211         * modules/mountlist (configure.ac): ... to here.
16212
16213 2011-05-21  Bruno Haible  <bruno@clisp.org>
16214
16215         mktime: Respect rules for use of AC_LIBOBJ.
16216         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16217         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16218         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16219         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16220         * modules/mktime (configure.ac): ... to here.
16221         * modules/mktime-internal (configure.ac): ... and here.
16222         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16223
16224 2011-05-21  Bruno Haible  <bruno@clisp.org>
16225
16226         mkstemps: Move AC_LIBOBJ invocations to module description.
16227         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16228         here...
16229         * modules/mkstemps (configure.ac): ... to here.
16230
16231 2011-05-21  Bruno Haible  <bruno@clisp.org>
16232
16233         mkstemp: Move AC_LIBOBJ invocations to module description.
16234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16235         gl_PREREQ_MKSTEMP invocations from here...
16236         * modules/mkstemp (configure.ac): ... to here.
16237
16238 2011-05-21  Bruno Haible  <bruno@clisp.org>
16239
16240         mkostemps: Move AC_LIBOBJ invocations to module description.
16241         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16242         here...
16243         * modules/mkostemps (configure.ac): ... to here.
16244
16245 2011-05-21  Bruno Haible  <bruno@clisp.org>
16246
16247         mkostemp: Move AC_LIBOBJ invocations to module description.
16248         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16249         gl_PREREQ_MKOSTEMP invocations from here...
16250         * modules/mkostemp (configure.ac): ... to here.
16251
16252 2011-05-21  Bruno Haible  <bruno@clisp.org>
16253
16254         mknod: Move AC_LIBOBJ invocations to module description.
16255         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16256         * modules/mknod (configure.ac): ... to here.
16257
16258 2011-05-21  Bruno Haible  <bruno@clisp.org>
16259
16260         mkfifoat: Move AC_LIBOBJ invocations to module description.
16261         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16262         here...
16263         * modules/mkfifoat (configure.ac): ... to here.
16264
16265 2011-05-21  Bruno Haible  <bruno@clisp.org>
16266
16267         mkfifo: Respect rules for use of AC_LIBOBJ.
16268         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16269         here...
16270         * modules/mkfifo (configure.ac): ... to here.
16271
16272 2011-05-21  Bruno Haible  <bruno@clisp.org>
16273
16274         mkdtemp: Move AC_LIBOBJ invocations to module description.
16275         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16276         invocations from here...
16277         * modules/mkdtemp (configure.ac): ... to here.
16278
16279 2011-05-21  Bruno Haible  <bruno@clisp.org>
16280
16281         mkdir: Move AC_LIBOBJ invocations to module description.
16282         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16283         * modules/mkdir (configure.ac): ... to here.
16284
16285 2011-05-21  Bruno Haible  <bruno@clisp.org>
16286
16287         memset: Move AC_LIBOBJ invocations to module description.
16288         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16289         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16290         here...
16291         * modules/memset (configure.ac): ... to here.
16292
16293 2011-05-21  Bruno Haible  <bruno@clisp.org>
16294
16295         memrchr: Move AC_LIBOBJ invocations to module description.
16296         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16298         here...
16299         * modules/memrchr (configure.ac): ... to here.
16300
16301 2011-05-21  Bruno Haible  <bruno@clisp.org>
16302
16303         mempcpy: Move AC_LIBOBJ invocations to module description.
16304         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16306         here...
16307         * modules/mempcpy (configure.ac): ... to here.
16308
16309 2011-05-21  Bruno Haible  <bruno@clisp.org>
16310
16311         memmove: Move AC_LIBOBJ invocations to module description.
16312         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16314         here...
16315         * modules/memmove (configure.ac): ... to here.
16316
16317 2011-05-21  Bruno Haible  <bruno@clisp.org>
16318
16319         memmem*: Move AC_LIBOBJ invocations to module description.
16320         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16321         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16322         here...
16323         (gl_FUNC_MEMMEM): ... and here...
16324         * modules/memmem-simple (configure.ac): ... to here.
16325         * modules/memmem (configure.ac): ... and here.
16326
16327 2011-05-21  Bruno Haible  <bruno@clisp.org>
16328
16329         memcpy: Move AC_LIBOBJ invocations to module description.
16330         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16332         here...
16333         * modules/memcpy (configure.ac): ... to here.
16334
16335 2011-05-21  Bruno Haible  <bruno@clisp.org>
16336
16337         memcmp: Simplify autoconf macro.
16338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16339         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16340         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16341
16342 2011-05-21  Bruno Haible  <bruno@clisp.org>
16343
16344         memcmp: Move AC_LIBOBJ invocations to module description.
16345         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16346         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16347         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16348         * modules/memcmp (configure.ac): ... to here.
16349         (Depends-on): Update conditions.
16350
16351 2011-05-21  Bruno Haible  <bruno@clisp.org>
16352
16353         memchr: Respect rules for use of AC_LIBOBJ.
16354         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16355         invocations from here...
16356         * modules/memchr (configure.ac): ... to here.
16357
16358 2011-05-21  Bruno Haible  <bruno@clisp.org>
16359
16360         mbtowc: Move AC_LIBOBJ invocations to module description.
16361         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16362         invocations from here...
16363         * modules/mbtowc (configure.ac): ... to here.
16364
16365 2011-05-21  Bruno Haible  <bruno@clisp.org>
16366
16367         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16368         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16369         gl_PREREQ_MBSRTOWCS invocations from here...
16370         * modules/mbsrtowcs (configure.ac): ... to here.
16371
16372 2011-05-21  Bruno Haible  <bruno@clisp.org>
16373
16374         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16375         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16376         gl_PREREQ_MBSNRTOWCS invocations from here...
16377         * modules/mbsnrtowcs (configure.ac): ... to here.
16378
16379 2011-05-21  Bruno Haible  <bruno@clisp.org>
16380
16381         mbsinit: Move AC_LIBOBJ invocations to module description.
16382         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16383         invocations from here...
16384         * modules/mbsinit (configure.ac): ... to here.
16385
16386 2011-05-21  Bruno Haible  <bruno@clisp.org>
16387
16388         mbrlen: Move AC_LIBOBJ invocations to module description.
16389         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16390         invocations from here...
16391         * modules/mbrlen (configure.ac): ... to here.
16392
16393 2011-05-21  Bruno Haible  <bruno@clisp.org>
16394
16395         mbrtowc: Respect rules for use of AC_LIBOBJ.
16396         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16397         invocations from here...
16398         * modules/mbrtowc (configure.ac): ... to here.
16399
16400 2011-05-21  Bruno Haible  <bruno@clisp.org>
16401
16402         malloc-*: Move AC_LIBOBJ invocations to module description.
16403         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16404         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16405         AC_LIBOBJ invocations from here...
16406         * modules/malloc-gnu (configure.ac): ... to here.
16407         * modules/malloc-posix (configure.ac): ... and here.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         lstat, openat: Respect rules for use of AC_LIBOBJ.
16412         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16413         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16414         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16415         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16416         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16417         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16418         here.
16419         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16420
16421 2011-05-21  Bruno Haible  <bruno@clisp.org>
16422
16423         lseek: Move AC_LIBOBJ invocations to module description.
16424         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16425         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16426         * modules/lseek (configure.ac): ... to here.
16427
16428 2011-05-21  Bruno Haible  <bruno@clisp.org>
16429
16430         linkat: Move AC_LIBOBJ invocations to module description.
16431         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16432         here...
16433         * modules/linkat (configure.ac): ... to here.
16434
16435 2011-05-21  Bruno Haible  <bruno@clisp.org>
16436
16437         link: Respect rules for use of AC_LIBOBJ.
16438         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16439         * modules/link (configure.ac): ... to here.
16440
16441 2011-05-21  Bruno Haible  <bruno@clisp.org>
16442
16443         lchown: Move AC_LIBOBJ invocations to module description.
16444         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16445         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16446         * modules/lchown (configure.ac): ... to here.
16447
16448 2011-05-21  Bruno Haible  <bruno@clisp.org>
16449
16450         iswctype: Move AC_LIBOBJ invocations to module description.
16451         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16452         here...
16453         * modules/iswctype (configure.ac): ... to here.
16454
16455 2011-05-21  Bruno Haible  <bruno@clisp.org>
16456
16457         iswblank: Move AC_LIBOBJ invocations to module description.
16458         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16459         here...
16460         * modules/iswblank (configure.ac): ... to here.
16461
16462 2011-05-21  Bruno Haible  <bruno@clisp.org>
16463
16464         atanl: Move AC_LIBOBJ invocations to module description.
16465         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16466         * modules/atanl (configure.ac): ... to here.
16467
16468 2011-05-21  Bruno Haible  <bruno@clisp.org>
16469
16470         acosl: Move AC_LIBOBJ invocations to module description.
16471         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16472         * modules/acosl (configure.ac): ... to here.
16473
16474 2011-05-21  Bruno Haible  <bruno@clisp.org>
16475
16476         asinl: Respect rules for use of AC_LIBOBJ.
16477         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16478         * modules/asinl (configure.ac): ... to here.
16479
16480 2011-05-21  Bruno Haible  <bruno@clisp.org>
16481
16482         tanl: Move AC_LIBOBJ invocations to module description.
16483         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16484         * modules/tanl (configure.ac): ... to here.
16485
16486 2011-05-21  Bruno Haible  <bruno@clisp.org>
16487
16488         cosl: Move AC_LIBOBJ invocations to module description.
16489         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16490         * modules/cosl (configure.ac): ... to here.
16491
16492 2011-05-21  Bruno Haible  <bruno@clisp.org>
16493
16494         sinl: Move AC_LIBOBJ invocations to module description.
16495         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16496         * modules/sinl (configure.ac): ... to here.
16497
16498 2011-05-21  Bruno Haible  <bruno@clisp.org>
16499
16500         logl: Move AC_LIBOBJ invocations to module description.
16501         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16502         * modules/logl (configure.ac): ... to here.
16503
16504 2011-05-21  Bruno Haible  <bruno@clisp.org>
16505
16506         expl: Move AC_LIBOBJ invocations to module description.
16507         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16508         * modules/expl (configure.ac): ... to here.
16509
16510 2011-05-21  Bruno Haible  <bruno@clisp.org>
16511
16512         roundl: Move AC_LIBOBJ invocations to module description.
16513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16514         * modules/roundl (configure.ac): ... to here.
16515
16516 2011-05-21  Bruno Haible  <bruno@clisp.org>
16517
16518         round: Move AC_LIBOBJ invocations to module description.
16519         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16520         * modules/round (configure.ac): ... to here.
16521
16522 2011-05-21  Bruno Haible  <bruno@clisp.org>
16523
16524         roundf: Move AC_LIBOBJ invocations to module description.
16525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16526         * modules/roundf (configure.ac): ... to here.
16527
16528 2011-05-21  Bruno Haible  <bruno@clisp.org>
16529
16530         truncl: Move AC_LIBOBJ invocations to module description.
16531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16532         * modules/truncl (configure.ac): ... to here.
16533
16534 2011-05-21  Bruno Haible  <bruno@clisp.org>
16535
16536         trunc: Move AC_LIBOBJ invocations to module description.
16537         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16538         * modules/trunc (configure.ac): ... to here.
16539
16540 2011-05-21  Bruno Haible  <bruno@clisp.org>
16541
16542         truncf: Move AC_LIBOBJ invocations to module description.
16543         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16544         * modules/truncf (configure.ac): ... to here.
16545
16546 2011-05-21  Bruno Haible  <bruno@clisp.org>
16547
16548         ceill: Move AC_LIBOBJ invocations to module description.
16549         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16550         * modules/ceill (configure.ac): ... to here.
16551
16552 2011-05-21  Bruno Haible  <bruno@clisp.org>
16553
16554         ceil: Move AC_LIBOBJ invocations to module description.
16555         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16556         * modules/ceil (configure.ac): ... to here.
16557
16558 2011-05-21  Bruno Haible  <bruno@clisp.org>
16559
16560         ceilf: Move AC_LIBOBJ invocations to module description.
16561         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16562         * modules/ceilf (configure.ac): ... to here.
16563
16564 2011-05-21  Bruno Haible  <bruno@clisp.org>
16565
16566         floorl: Respect rules for use of AC_LIBOBJ.
16567         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16568         * modules/floorl (configure.ac): ... to here.
16569
16570 2011-05-21  Bruno Haible  <bruno@clisp.org>
16571
16572         floor: Respect rules for use of AC_LIBOBJ.
16573         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16574         * modules/floor (configure.ac): ... to here.
16575
16576 2011-05-21  Bruno Haible  <bruno@clisp.org>
16577
16578         floorf: Move AC_LIBOBJ invocations to module description.
16579         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16580         * modules/floorf (configure.ac): ... to here.
16581
16582 2011-05-20  Bruno Haible  <bruno@clisp.org>
16583
16584         sqrtl: Respect rules for use of AC_LIBOBJ.
16585         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16586         * modules/sqrtl (configure.ac): ... to here.
16587
16588 2011-05-20  Bruno Haible  <bruno@clisp.org>
16589
16590         ldexpl: Respect rules for use of AC_LIBOBJ.
16591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16592         * modules/ldexpl (configure.ac): ... to here.
16593
16594 2011-05-20  Bruno Haible  <bruno@clisp.org>
16595
16596         frexpl*: Respect rules for use of AC_LIBOBJ.
16597         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16598         invocation from here...
16599         * modules/frexpl (configure.ac): ... to here.
16600         * modules/frexpl-nolibm (configure.ac): ... and here.
16601
16602 2011-05-20  Bruno Haible  <bruno@clisp.org>
16603
16604         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16605         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16606         invocation from here...
16607         * modules/frexp (configure.ac): ... to here.
16608         * modules/frexp-nolibm (configure.ac): ... and here.
16609
16610 2011-05-20  Bruno Haible  <bruno@clisp.org>
16611
16612         isnan: Respect rules for use of AC_LIBOBJ.
16613         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16614         invocations here.
16615         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16616         REPLACE_ISNAN.
16617         * modules/isnand (configure.ac): Likewise.
16618         * modules/isnanl (configure.ac): Likewise.
16619
16620 2011-05-20  Bruno Haible  <bruno@clisp.org>
16621
16622         isnanl*: Respect rules for use of AC_LIBOBJ.
16623         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16624         invocation from here...
16625         * modules/isnanl (configure.ac): ... to here.
16626         * modules/isnanl-nolibm (configure.ac): ... and here.
16627
16628 2011-05-20  Bruno Haible  <bruno@clisp.org>
16629
16630         isnand*: Move AC_LIBOBJ invocations to module description.
16631         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16632         invocation from here...
16633         * modules/isnand (configure.ac): ... to here.
16634         * modules/isnand-nolibm (configure.ac): ... and here.
16635
16636 2011-05-20  Bruno Haible  <bruno@clisp.org>
16637
16638         isnanf*: Move AC_LIBOBJ invocations to module description.
16639         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16640         invocation from here...
16641         * modules/isnanf (configure.ac): ... to here.
16642         * modules/isnanf-nolibm (configure.ac): ... and here.
16643
16644 2011-05-20  Bruno Haible  <bruno@clisp.org>
16645
16646         isnan*: Separate the AC_LIBOBJ invocations.
16647         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16648         AC_LIBOBJ invocation.
16649         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16650         here.
16651         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16652         AC_LIBOBJ invocation.
16653         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16654         here.
16655         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16656         AC_LIBOBJ invocation.
16657         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16658         here.
16659         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16660
16661 2011-05-08  Bruno Haible  <bruno@clisp.org>
16662
16663         isinf: Move AC_LIBOBJ invocations to module description.
16664         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16665         * modules/isinf (configure.ac): ... to here.
16666
16667 2011-05-08  Bruno Haible  <bruno@clisp.org>
16668
16669         isfinite: Move AC_LIBOBJ invocations to module description.
16670         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16671         * modules/isfinite (configure.ac): ... to here.
16672
16673 2011-05-08  Bruno Haible  <bruno@clisp.org>
16674
16675         isblank: Move AC_LIBOBJ invocations to module description.
16676         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16677         here...
16678         * modules/isblank (configure.ac): ... to here.
16679
16680 2011-05-08  Bruno Haible  <bruno@clisp.org>
16681
16682         isapipe: Move AC_LIBOBJ invocations to module description.
16683         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16684         gl_PREREQ_ISAPIPE invocations from here...
16685         * modules/isapipe (configure.ac): ... to here.
16686         (Depends-on): Update condition.
16687
16688 2011-05-08  Bruno Haible  <bruno@clisp.org>
16689
16690         ioctl: Move AC_LIBOBJ invocations to module description.
16691         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16692         invocations from here...
16693         * modules/ioctl (configure.ac): ... to here.
16694         (Depends-on): Update condition.
16695
16696 2011-05-08  Bruno Haible  <bruno@clisp.org>
16697
16698         imaxdiv: Move AC_LIBOBJ invocations to module description.
16699         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16700         invocations from here...
16701         * modules/imaxdiv (configure.ac): ... to here.
16702
16703 2011-05-08  Bruno Haible  <bruno@clisp.org>
16704
16705         imaxabs: Move AC_LIBOBJ invocations to module description.
16706         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16707         invocations from here...
16708         * modules/imaxabs (configure.ac): ... to here.
16709
16710 2011-05-08  Bruno Haible  <bruno@clisp.org>
16711
16712         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16714         AC_LIBOBJ invocations from here...
16715         * modules/getaddrinfo (configure.ac): ... to here.
16716         (Depends-on): Add conditions.
16717
16718 2011-05-08  Bruno Haible  <bruno@clisp.org>
16719
16720         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16721         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16722         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16723         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16724         (gl_PREREQ_INET_PTON): ... from here.
16725         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16726         gl_PREREQ_INET_PTON here.
16727         (Depends-on): Update condition.
16728
16729 2011-05-08  Bruno Haible  <bruno@clisp.org>
16730
16731         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16733         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16734         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16735         (gl_PREREQ_INET_NTOP): ... from here.
16736         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16737         gl_PREREQ_INET_NTOP here.
16738         (Depends-on): Update condition.
16739
16740 2011-05-08  Bruno Haible  <bruno@clisp.org>
16741
16742         iconv_open: Move AC_LIBOBJ invocations to module description.
16743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16744         AC_LIBOBJ invocations from here...
16745         * modules/iconv_open (configure.ac): ... to here.
16746
16747 2011-05-08  Bruno Haible  <bruno@clisp.org>
16748
16749         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16750         If module 'iconv_open' is among the main modules and module
16751         'iconv_open-utf' is among the tests dependencies, then
16752         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16753         return the special iconv_t values. Therefore iconv() and iconv_close()
16754         must support these special iconv_t values, already in lib, not only in
16755         tests.
16756         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16757         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16758         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16759         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16760         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16761         (Depends-on): Add the dependencies of iconv_open-utf.
16762         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16763         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16764         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16765
16766 2011-05-08  Bruno Haible  <bruno@clisp.org>
16767
16768         group-member: Move AC_LIBOBJ invocations to module description.
16769         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16770         gl_PREREQ_GROUP_MEMBER invocations from here...
16771         * modules/group-member (configure.ac): ... to here.
16772
16773 2011-05-08  Bruno Haible  <bruno@clisp.org>
16774
16775         grantpt: Move AC_LIBOBJ invocations to module description.
16776         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16777         invocations from here...
16778         * modules/grantpt (configure.ac): ... to here.
16779
16780 2011-05-08  Bruno Haible  <bruno@clisp.org>
16781
16782         glob: Move AC_LIBOBJ invocations to module description.
16783         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16784         from here...
16785         * modules/glob (configure.ac): ... to here.
16786
16787 2011-05-08  Bruno Haible  <bruno@clisp.org>
16788
16789         getusershell: Move AC_LIBOBJ invocations to module description.
16790         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16791         Move AC_LIBOBJ invocation from here...
16792         * modules/getusershell (configure.ac): ... to here.
16793         (Depends-on): Update condition.
16794
16795 2011-05-08  Bruno Haible  <bruno@clisp.org>
16796
16797         gettimeofday: Move AC_LIBOBJ invocations to module description.
16798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16799         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16800         gl_PREREQ_GETTIMEOFDAY invocations from here...
16801         * modules/gettimeofday (configure.ac): ... to here.
16802
16803 2011-05-08  Bruno Haible  <bruno@clisp.org>
16804
16805         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16806         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16807         just gl_FUNC_TZSET.
16808         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16809         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16811         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16812
16813 2011-05-08  Bruno Haible  <bruno@clisp.org>
16814
16815         getsubopt: Move AC_LIBOBJ invocations to module description.
16816         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16817         gl_PREREQ_GETSUBOPT invocations from here...
16818         * modules/getsubopt (configure.ac): ... to here.
16819
16820 2011-05-08  Bruno Haible  <bruno@clisp.org>
16821
16822         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16823         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16824         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16825         * modules/getpass-gnu (configure.ac): ... to here.
16826
16827 2011-05-08  Bruno Haible  <bruno@clisp.org>
16828
16829         getpass: Move AC_LIBOBJ invocations to module description.
16830         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16831         gl_PREREQ_GETPASS invocations from here...
16832         * modules/getpass (configure.ac): ... to here.
16833
16834 2011-05-08  Bruno Haible  <bruno@clisp.org>
16835
16836         getpagesize: Move AC_LIBOBJ invocations to module description.
16837         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16838         from here...
16839         * modules/getpagesize (configure.ac): ... to here.
16840
16841 2011-05-08  Bruno Haible  <bruno@clisp.org>
16842
16843         getopt: Move AC_LIBOBJ invocations to module description.
16844         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16845         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16846         invocations from here...
16847         * modules/getopt-gnu (configure.ac): ... to here.
16848         * modules/getopt-posix (configure.ac): ... and here.
16849         (Depends-on): Update condition.
16850
16851 2011-05-08  Bruno Haible  <bruno@clisp.org>
16852
16853         getopt, argp: Respect rules for use of AC_LIBOBJ.
16854         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16855         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16856         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16857         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16858
16859 2011-05-08  Bruno Haible  <bruno@clisp.org>
16860
16861         getlogin_r: Move AC_LIBOBJ invocations to module description.
16862         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16863         gl_PREREQ_GETLOGIN_R invocations from here...
16864         * modules/getlogin_r (configure.ac): ... to here.
16865
16866 2011-05-08  Bruno Haible  <bruno@clisp.org>
16867
16868         getlogin: Move AC_LIBOBJ invocations to module description.
16869         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16870         here...
16871         * modules/getlogin (configure.ac): ... to here.
16872
16873 2011-05-08  Bruno Haible  <bruno@clisp.org>
16874
16875         getloadavg: Move AC_LIBOBJ invocations to module description.
16876         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16877         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16878         * modules/getloadavg (configure.ac): ... to here.
16879
16880 2011-05-08  Bruno Haible  <bruno@clisp.org>
16881
16882         gethrxtime: Move AC_LIBOBJ invocations to module description.
16883         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16884         LIB_GETHRXTIME from here...
16885         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16886         invocations from here...
16887         * modules/gethrxtime (configure.ac): ... to here.
16888
16889 2011-05-08  Bruno Haible  <bruno@clisp.org>
16890
16891         gethostname: Move AC_LIBOBJ invocations to module description.
16892         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16893         gl_PREREQ_GETHOSTNAME invocations from here...
16894         * modules/gethostname (configure.ac): ... to here.
16895
16896 2011-05-08  Bruno Haible  <bruno@clisp.org>
16897
16898         getgroups: Move AC_LIBOBJ invocations to module description.
16899         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16900         here...
16901         * modules/getgroups (configure.ac): ... to here.
16902
16903 2011-05-08  Bruno Haible  <bruno@clisp.org>
16904
16905         getdtablesize: Move AC_LIBOBJ invocations to module description.
16906         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16907         invocation from here...
16908         * modules/getdtablesize (configure.ac): ... to here.
16909
16910 2011-05-08  Bruno Haible  <bruno@clisp.org>
16911
16912         getdomainname: Move AC_LIBOBJ invocations to module description.
16913         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16914         gl_PREREQ_GETDOMAINNAME invocations from here...
16915         * modules/getdomainname (configure.ac): ... to here.
16916
16917 2011-05-08  Bruno Haible  <bruno@clisp.org>
16918
16919         getline: Move AC_LIBOBJ invocations to module description.
16920         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16921         invocations from here...
16922         * modules/getline (configure.ac): ... to here.
16923
16924 2011-05-08  Bruno Haible  <bruno@clisp.org>
16925
16926         getline: Simplify.
16927         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16928         It's already handled through the module dependency.
16929
16930 2011-05-08  Bruno Haible  <bruno@clisp.org>
16931
16932         getdelim: Move AC_LIBOBJ invocations to module description.
16933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16934         and gl_PREREQ_GETDELIM invocations from here...
16935         * modules/getdelim (configure.ac): ... to here.
16936         (Depends-on): Fix condition.
16937
16938 2011-05-08  Bruno Haible  <bruno@clisp.org>
16939
16940         getcwd: Move AC_LIBOBJ invocations to module description.
16941         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16942         invocations from here...
16943         * modules/getcwd (configure.ac): ... to here.
16944
16945 2011-05-08  Bruno Haible  <bruno@clisp.org>
16946
16947         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16948         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16949         here...
16950         * modules/getcwd-lgpl (configure.ac): ... to here.
16951
16952 2011-05-07  Bruno Haible  <bruno@clisp.org>
16953
16954         crypto/gc: Move AC_LIBOBJ invocations to module description.
16955         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16956         * modules/crypto/gc (configure.ac): ... to here.
16957
16958 2011-05-07  Bruno Haible  <bruno@clisp.org>
16959
16960         fwriting: Move AC_LIBOBJ invocations to module description.
16961         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16962         here...
16963         * modules/fwriting (configure.ac): ... to here.
16964
16965 2011-05-07  Bruno Haible  <bruno@clisp.org>
16966
16967         fwritable: Move AC_LIBOBJ invocations to module description.
16968         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16969         here...
16970         * modules/fwritable (configure.ac): ... to here.
16971
16972 2011-05-07  Bruno Haible  <bruno@clisp.org>
16973
16974         futimens: Move AC_LIBOBJ invocations to module description.
16975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16976         here...
16977         * modules/futimens (configure.ac): ... to here.
16978
16979 2011-05-07  Bruno Haible  <bruno@clisp.org>
16980
16981         ftruncate: Move AC_LIBOBJ invocations to module description.
16982         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16983         gl_PREREQ_FTRUNCATE invocations from here...
16984         * modules/ftruncate (configure.ac): ... to here.
16985
16986 2011-05-07  Bruno Haible  <bruno@clisp.org>
16987
16988         fsync: Move AC_LIBOBJ invocations to module description.
16989         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16990         invocations from here...
16991         * modules/fsync (configure.ac): ... to here.
16992
16993 2011-05-07  Bruno Haible  <bruno@clisp.org>
16994
16995         fsusage: Move AC_LIBOBJ invocations to module description.
16996         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16997         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16998         * modules/fsusage (configure.ac): ... to here.
16999
17000 2011-05-07  Bruno Haible  <bruno@clisp.org>
17001
17002         freopen: Move AC_LIBOBJ invocations to module description.
17003         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17004         invocations from here...
17005         * modules/freopen (configure.ac): ... to here.
17006
17007 2011-05-07  Bruno Haible  <bruno@clisp.org>
17008
17009         free: Move AC_LIBOBJ invocations to module description.
17010         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17011         invocations from here...
17012         * modules/free (configure.ac): ... to here.
17013
17014 2011-05-07  Bruno Haible  <bruno@clisp.org>
17015
17016         freadable: Move AC_LIBOBJ invocations to module description.
17017         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17018         here...
17019         * modules/freadable (configure.ac): ... to here.
17020
17021 2011-05-07  Bruno Haible  <bruno@clisp.org>
17022
17023         fpurge: Move AC_LIBOBJ invocations to module description.
17024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17025         invocations from here...
17026         * modules/fpurge (configure.ac): ... to here.
17027
17028 2011-05-07  Bruno Haible  <bruno@clisp.org>
17029
17030         fpending: Move AC_LIBOBJ invocations to module description.
17031         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17032         gl_FUNC_FPENDING.
17033         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17034         invocations from here...
17035         * modules/fpending (configure.ac): ... to here.
17036
17037 2011-05-07  Bruno Haible  <bruno@clisp.org>
17038
17039         fopen: Move AC_LIBOBJ invocations to module description.
17040         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17041         invocations from here...
17042         * modules/fopen (configure.ac): ... to here.
17043
17044 2011-05-07  Bruno Haible  <bruno@clisp.org>
17045
17046         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17047         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17048         gl_FUNC_FNMATCH_POSIX.
17049         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17050         invocations from here...
17051         * modules/fnmatch (configure.ac): ... to here.
17052         * modules/fnmatch-gnu (configure.ac): ... and here.
17053
17054 2011-05-07  Bruno Haible  <bruno@clisp.org>
17055
17056         flock: Move AC_LIBOBJ invocations to module description.
17057         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17058         invocations from here...
17059         * modules/flock (configure.ac): ... to here.
17060
17061 2011-05-07  Bruno Haible  <bruno@clisp.org>
17062
17063         fileblocks: Move AC_LIBOBJ invocations to module description.
17064         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17065         gl_PREREQ_FILEBLOCKS invocations from here...
17066         * modules/fileblocks (configure.ac): ... to here.
17067
17068 2011-05-06  Bruno Haible  <bruno@clisp.org>
17069
17070         fflush: Move AC_LIBOBJ invocations to module description.
17071         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17072         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17073         invocations from here...
17074         * modules/fflush (configure.ac): ... to here.
17075
17076 2011-05-06  Bruno Haible  <bruno@clisp.org>
17077
17078         fdopendir: Move AC_LIBOBJ invocations to module description.
17079         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17080         here...
17081         * modules/fdopendir (configure.ac): ... to here.
17082         (Depends-on): Improve conditions.
17083
17084 2011-05-06  Bruno Haible  <bruno@clisp.org>
17085
17086         _Exit: Move AC_LIBOBJ invocations to module description.
17087         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17088         invocations from here...
17089         * modules/_Exit (configure.ac): ... to here.
17090
17091 2011-05-21  Bruno Haible  <bruno@clisp.org>
17092
17093         euidaccess: Respect rules for use of AC_LIBOBJ.
17094         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17096         from here...
17097         * modules/euidaccess (configure.ac): ... to here.
17098
17099 2011-05-06  Bruno Haible  <bruno@clisp.org>
17100
17101         error: Move AC_LIBOBJ invocations to module description.
17102         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17103         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17104         invocations from here...
17105         * modules/error (configure.ac): ... to here.
17106
17107 2011-05-06  Bruno Haible  <bruno@clisp.org>
17108
17109         duplocale: Move AC_LIBOBJ invocations to module description.
17110         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17111         gl_PREREQ_DUPLOCALE invocations from here...
17112         * modules/duplocale (configure.ac): ... to here.
17113
17114 2011-05-05  Bruno Haible  <bruno@clisp.org>
17115
17116         dirfd: Move AC_LIBOBJ invocations to module description.
17117         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17118         gl_FUNC_DIRFD.
17119         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17120         here...
17121         * modules/dirfd (configure.ac): ... to here.
17122         (Depends-on): Fix condition.
17123
17124 2011-05-05  Bruno Haible  <bruno@clisp.org>
17125
17126         chown: Respect rules for use of AC_LIBOBJ.
17127         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17128         * modules/chown (configure.ac): ... to here.
17129
17130 2011-05-05  Bruno Haible  <bruno@clisp.org>
17131
17132         chdir-long: Move AC_LIBOBJ invocations to module description.
17133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17134         gl_PREREQ_CHDIR_LONG invocations from here...
17135         * modules/chdir-long (configure.ac): ... to here.
17136
17137 2011-05-05  Bruno Haible  <bruno@clisp.org>
17138
17139         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17140         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17141         from here...
17142         * modules/canonicalize-lgpl (configure.ac): ... to here.
17143
17144 2011-05-05  Bruno Haible  <bruno@clisp.org>
17145
17146         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17147         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17148         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17149         REPLACE_CALLOC.
17150         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17151         * modules/calloc-gnu (configure.ac): Likewise.
17152
17153 2011-05-05  Bruno Haible  <bruno@clisp.org>
17154
17155         btowc: Move AC_LIBOBJ invocations to module description.
17156         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17157         invocations from here...
17158         * modules/btowc (configure.ac): ... to here.
17159
17160 2011-05-21  Bruno Haible  <bruno@clisp.org>
17161
17162         atexit: Move AC_LIBOBJ invocations to module description.
17163         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17164         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17165         here...
17166         * modules/atexit (configure.ac): ... to here.
17167
17168 2011-05-05  Bruno Haible  <bruno@clisp.org>
17169
17170         atoll: Move AC_LIBOBJ invocations to module description.
17171         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17172         invocations from here...
17173         * modules/atoll (configure.ac): ... to here.
17174
17175 2011-05-05  Bruno Haible  <bruno@clisp.org>
17176
17177         argz: Move AC_LIBOBJ invocations to module description.
17178         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17179         * modules/argz (configure.ac): ... to here.
17180
17181 2011-05-05  Bruno Haible  <bruno@clisp.org>
17182
17183         alphasort: Move AC_LIBOBJ invocations to module description.
17184         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17185         gl_PREREQ_ALPHASORT invocations from here...
17186         * modules/alphasort (configure.ac): ... to here.
17187
17188 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17189
17190         verify: new macro verify_expr; verify_true deprecated
17191         * NEWS: Mention this.
17192         * doc/verify.texi (Compile-time Assertions): Document this.
17193         * lib/verify.h (verify_true): Deprecate.
17194         (verify_expr): New macro.
17195         * tests/test-verify.c (function): Test verify_expr.
17196
17197 2011-06-14  Jim Meyering  <meyering@redhat.com>
17198
17199         init.sh: give more portable redirection-related advice in a comment
17200         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17201         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17202         for lots of discussion.  Stefano Lattarini suggested the solution
17203         of putting "9>&2" after the command.  Reported by Bruno Haible.
17204
17205 2011-06-13  Bruno Haible  <bruno@clisp.org>
17206
17207         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17208         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17209         'none'.
17210
17211 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17212
17213         ftoastr: use strtof only if HAVE_STRTOF
17214         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17216         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17217         * modules/ftoastr (configure.ac): Check for strtof.
17218
17219 2011-06-13  Bruno Haible  <bruno@clisp.org>
17220
17221         gnulib-tool: Addendum to 2011-06-08 commit.
17222         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17223         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17224
17225 2011-06-13  Bruno Haible  <bruno@clisp.org>
17226
17227         fseeko: Provide a non-inline replacement of fseek().
17228         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17229         * modules/fseeko (Depends-on): Add fseek.
17230         * modules/fseek (License): Change to LGPLv2+.
17231
17232 2011-06-13  Bruno Haible  <bruno@clisp.org>
17233
17234         ftello: Provide a non-inline replacement of ftell().
17235         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17236         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17237         not have ftello() (such as on mingw).
17238         * modules/ftello (Depends-on): Add ftell.
17239         * modules/ftell (License): Change to LGPLv2+.
17240
17241 2011-05-07  Bruno Haible  <bruno@clisp.org>
17242
17243         ftell: Move AC_LIBOBJ invocations to module description.
17244         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17245         * modules/ftell (configure.ac): ... to here.
17246
17247 2011-05-07  Bruno Haible  <bruno@clisp.org>
17248
17249         ftello: Respect rules for use of AC_LIBOBJ.
17250         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17251         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17252         here...
17253         * modules/ftello (configure.ac): ... to here.
17254
17255 2011-05-07  Bruno Haible  <bruno@clisp.org>
17256
17257         fseeko: Simplify.
17258         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17259         (gl_FUNC_FSEEKO): Inline it here.
17260
17261 2011-05-07  Bruno Haible  <bruno@clisp.org>
17262
17263         fseek: Move AC_LIBOBJ invocations to module description.
17264         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17265         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17266         * modules/fseek (configure.ac): ... to here.
17267
17268 2011-05-07  Bruno Haible  <bruno@clisp.org>
17269
17270         fseek: Respect rules for use of AC_LIBOBJ.
17271         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17272         here...
17273         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17274
17275 2011-05-07  Bruno Haible  <bruno@clisp.org>
17276
17277         fseeko: Respect rules for use of AC_LIBOBJ.
17278         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17279         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17280         here...
17281         * modules/fseeko (configure.ac): ... to here.
17282
17283 2011-06-13  Bruno Haible  <bruno@clisp.org>
17284
17285         gnulib-tool: Allow comments in the 'Depends-on' section.
17286         * doc/gnulib.texi (Module description): Mention comment syntax in the
17287         Depends-on section.
17288         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17289
17290 2011-06-13  Bruno Haible  <bruno@clisp.org>
17291
17292         file-set.h: guard __attibute__ use, now that it's not always defined
17293         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17294         versions that support it.  This fixes a coreutils build failure with
17295         the vendor cc on HP-UX 11.31.
17296
17297 2011-06-12  Bruno Haible  <bruno@clisp.org>
17298
17299         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17300         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17301         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17302         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17303         (acl, aclsort): New declarations.
17304         (aclv_nontrivial): New declaration.
17305         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17306         (file_has_acl): Read also the second kind of HP-UX ACLs.
17307         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17308         kind of HP-UX ACLs if the first kind fails.
17309         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17310         second kind of HP-UX ACLs.
17311         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17312         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17313         agree.
17314         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17315         hpuxjfs.
17316         Handle hpuxjfs.
17317         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17318         hpuxjfs.
17319         Handle hpuxjfs.
17320         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17321         (func_test_same_acls): Use both lsacl and getacl.
17322         Handle hpuxjfs.
17323         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17324         (func_test_same_acls): Use both lsacl and getacl.
17325         Handle hpuxjfs.
17326
17327 2011-06-12  Bruno Haible  <bruno@clisp.org>
17328
17329         acl: Complete the 2010-08-10 fix.
17330         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17331         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17332         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17333         explicitly.
17334         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17335         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17336
17337 2011-06-12  Bruno Haible  <bruno@clisp.org>
17338
17339         spawn-pipe tests: Comments.
17340         * tests/test-spawn-pipe-child.c (main): Update comment.
17341         Reported by James Youngman <jay@gnu.org>.
17342
17343 2011-06-11  James Youngman  <jay@gnu.org>
17344
17345         New module 'stat-size'.
17346         * modules/stat-size: New module.  Provides macros for accessing
17347         file size information in instances of struct stat.  Depends on the
17348         fileblocks module because it calls st_blocks.
17349         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17350         * doc/gnulib.texi: Include stat-size.texi.
17351         * doc/stat-size.texi: Documentation for this module.
17352         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17353         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17354         AC_STRUCT_ST_BLOCKS.
17355
17356 2011-06-09  Bruno Haible  <bruno@clisp.org>
17357
17358         thread: Support pthreads-win32.
17359         * lib/glthread/thread.h (gl_thread_self): Define differently on
17360         pthreads-win32.
17361         (gl_null_thread): New declaration.
17362         (gl_thread_self_pointer): New macro.
17363         * lib/glthread/thread.c (gl_null_thread): New constant.
17364         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17365         gl_thread_self.
17366         * tests/test-tls.c: Likewise.
17367         Suggested by Paul Eggert. Reported by Eric Blake.
17368
17369 2011-06-09  Bruno Haible  <bruno@clisp.org>
17370
17371         thread: Fix confusion between NULL and 0.
17372         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17373         Reported by Paul Eggert.
17374
17375 2011-06-09  Bruno Haible  <bruno@clisp.org>
17376
17377         spawn-pipe tests: Avoid test failure on HP-UX 11.
17378         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17379         is closed.
17380
17381 2011-06-09  Bruno Haible  <bruno@clisp.org>
17382
17383         acl tests: Fix compilation error on HP-UX 11.
17384         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17385
17386 2011-06-09  Bruno Haible  <bruno@clisp.org>
17387
17388         rmdir: Avoid test failure on HP-UX 10.20.
17389         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17390         EEXIST.
17391
17392 2011-06-08  Eric Blake  <eblake@redhat.com>
17393
17394         perror: fix test on mingw
17395         * modules/perror-tests (Depends-on): Add dup2.
17396
17397         strerror_r-posix: fix on MacOS
17398         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17399         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17400         logic bug.
17401         * lib/strerror_r.c (strerror_r): Fix the bug.
17402         * lib/strerror.c (strerror): Likewise.
17403         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17404         problem.
17405         * doc/posix-functions/strerror.texi (strerror): Likewise.
17406         * doc/posix-functions/perror.texi (perror): Likewise.
17407         * tests/test-strerror.c (main): Enhance test.
17408         * tests/test-strerror_r.c (main): Likewise.
17409
17410 2011-06-08  Bruno Haible  <bruno@clisp.org>
17411
17412         gnulib-tool: Better isolation between different gnulib-tool invocations.
17413         * gnulib-tool: New option --witness-c-macro.
17414         (witness_c_macro): New variable.
17415         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17416         AM_CPPFLAGS define it as a C macro.
17417         (func_emit_tests_Makefile_am): Likewise.
17418         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17419         read it from there.
17420         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17421         m4_define, not AC_DEFUN.
17422         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17423         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17424         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17425         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17426         s|...|...|, to substitute the values of the GNULIB_* module indicator
17427         variables.
17428         * modules/dirent (Makefile.am): Likewise.
17429         * modules/fcntl-h (Makefile.am): Likewise.
17430         * modules/iconv-h (Makefile.am): Likewise.
17431         * modules/langinfo (Makefile.am): Likewise.
17432         * modules/locale (Makefile.am): Likewise.
17433         * modules/math (Makefile.am): Likewise.
17434         * modules/netdb (Makefile.am): Likewise.
17435         * modules/poll-h (Makefile.am): Likewise.
17436         * modules/pty (Makefile.am): Likewise.
17437         * modules/search (Makefile.am): Likewise.
17438         * modules/signal (Makefile.am): Likewise.
17439         * modules/spawn (Makefile.am): Likewise.
17440         * modules/stdio (Makefile.am): Likewise.
17441         * modules/stdlib (Makefile.am): Likewise.
17442         * modules/string (Makefile.am): Likewise.
17443         * modules/sys_ioctl (Makefile.am): Likewise.
17444         * modules/sys_select (Makefile.am): Likewise.
17445         * modules/sys_socket (Makefile.am): Likewise.
17446         * modules/sys_stat (Makefile.am): Likewise.
17447         * modules/sys_times (Makefile.am): Likewise.
17448         * modules/sys_utsname (Makefile.am): Likewise.
17449         * modules/sys_wait (Makefile.am): Likewise.
17450         * modules/termios (Makefile.am): Likewise.
17451         * modules/time (Makefile.am): Likewise.
17452         * modules/unistd (Makefile.am): Likewise.
17453         * modules/wchar (Makefile.am): Likewise.
17454
17455 2011-06-08  Eric Blake  <eblake@redhat.com>
17456
17457         strerror: simplify replacement
17458         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17459         * modules/strerror (configure.ac): No prereqs needed here...
17460         * modules/strerror-override (configure.ac): ...but this needs it.
17461         (Files): Add file for needed prereq macro.
17462
17463 2011-06-08  Bruno Haible  <bruno@clisp.org>
17464
17465         strerror_r-posix: Tweaks.
17466         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17467         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17469         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17470         (gl_FUNC_STRERROR_R): ... to here.
17471         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17472
17473 2011-06-07  Eric Blake  <eblake@redhat.com>
17474
17475         perror: document fixed bugs
17476         * doc/posix-functions/perror.texi (perror): Document recent
17477         patches.
17478
17479 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17480
17481         stat-time: get_stat_birthtime failure is better-defined
17482         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17483         return a timestamp whose tv_sec and tv_nsec values are both -1.
17484         Previously, the spec said only that the tv_nsec value was negative.
17485         This upward-compatible change simplifies GNU tar a bit.
17486
17487 2011-06-07  Eric Blake  <eblake@redhat.com>
17488
17489         strerror_r-posix: work around cygwin 1.7.9
17490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17491         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17492         bug without replacing strerror_r.
17493         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17494         strerror_r is buggy, but without requiring strerror_r compilation.
17495         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17496
17497         test-perror: relax test to ignore cygwin bug
17498         * tests/test-perror2.c (main): Relax test on requiring detection
17499         of stream errors, and use unbuffered stream.
17500         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17501         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17502         * doc/posix-functions/fputc.texi (fputc): Likewise.
17503         * doc/posix-functions/fputs.texi (fputs): Likewise.
17504         * doc/posix-functions/fputws.texi (fputws): Likewise.
17505         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17506         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17507         * doc/posix-functions/getopt.texi (getopt): Likewise.
17508         * doc/posix-functions/perror.texi (perror): Likewise.
17509         * doc/posix-functions/printf.texi (printf): Likewise.
17510         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17511         * doc/posix-functions/psignal.texi (psignal): Likewise.
17512         * doc/posix-functions/putc.texi (putc): Likewise.
17513         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17514         Likewise.
17515         * doc/posix-functions/putchar.texi (putchar): Likewise.
17516         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17517         Likewise.
17518         * doc/posix-functions/puts.texi (puts): Likewise.
17519         * doc/posix-functions/putwc.texi (putwc): Likewise.
17520         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17521         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17522         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17523         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17524         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17525         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17526         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17527         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17528
17529 2011-05-22  Bruno Haible  <bruno@clisp.org>
17530
17531         strerror: Move AC_LIBOBJ invocations to module description.
17532         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17533         gl_PREREQ_STRERROR invocations from here...
17534         * modules/strerror (configure.ac): ... to here.
17535
17536 2011-05-21  Bruno Haible  <bruno@clisp.org>
17537
17538         perror: Use common idiom.
17539         * modules/perror (configure.ac): Reorder statements.
17540
17541 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17542
17543         tests: fix usage message in 'mktempd_'
17544         * tests/init.sh (mktempd_): In the usage message, use literal
17545         'mktempd_', not '$ME' (which is even undefined), as the name of
17546         the subroutine.
17547
17548 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17549
17550         tests init: new function 'fatal_', for hard errors
17551         Before this patch, the only way offered by tests/init.sh to
17552         properly signal a hard error was the `framework_failure_'
17553         function.  But the error message issued by that function,
17554         as its name would suggest, refers to a set-up failure in the
17555         testsuite, while hard errors can obviously also be due to
17556         other reasons.  The best way to fix this inconsistency is to
17557         introduce a new function with a more general error message.
17558         * tests/init.sh (fatal_): New function.
17559
17560 2011-06-06  Eric Blake  <eblake@redhat.com>
17561
17562         canonicalize-lgpl: use common idiom
17563         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17564         over newer POSIX -Rf.
17565         Reported by Bruno Haible.
17566
17567         canonicalize-lgpl: work around AIX realpath bug
17568         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17569         * doc/posix-functions/realpath.texi (realpath): Document it.
17570         Reported by Bruno Haible.
17571
17572         strerror: work around FreeBSD bug
17573         * lib/strerror.c (strerror): Special case 0.
17574         Reported by Bruno Haible.
17575
17576         strerror-override: avoid bloating errno module
17577         * modules/errno (Files, configure.ac): Move replacement strings...
17578         * modules/strerror-override: ...to new module.
17579         * modules/strerror (Depends-on): Add strerror-override.
17580         * modules/strerror_r-posix (Depends-on): Likewise.
17581         * MODULES.html.sh: Document new module.
17582         Reported by Bruno Haible.
17583
17584 2011-06-06  Bruno Haible  <bruno@clisp.org>
17585
17586         spawn-pipe tests: Rename program.
17587         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17588         * tests/test-spawn-pipe-child.c: Update comment.
17589         * tests/test-spawn-pipe.sh: Update.
17590         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17591
17592         spawn-pipe tests: Link the child program only against libc.
17593         * tests/test-spawn-pipe-child.c: New file, extracted from
17594         tests/test-spawn-pipe.c.
17595         (main): Expect only one argument.
17596         (is_open): New function, copied from tests/test-pipe.c.
17597         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17598         (child_main): Remove function.
17599         (test_pipe): Pass only one argument to the child program.
17600         (main): Remove child process code. Expect the child program's name as
17601         first argument.
17602         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17603         argument.
17604         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17605         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17606         test-spawn-pipe-child against no libraries.
17607
17608 2011-06-06  Bruno Haible  <bruno@clisp.org>
17609
17610         careadlinkat: Avoid mismatch between ssize_t and int.
17611         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17612         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17613
17614 2011-06-06  Jim Meyering  <meyering@redhat.com>
17615
17616         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17617         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17618         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17619
17620 2011-06-05  Bruno Haible  <bruno@clisp.org>
17621
17622         ansi-c++-opt: Interoperability with libtool.
17623         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17624         set the variable to "no", not to ":".
17625         * NEWS: Mention the change.
17626
17627 2011-06-05  Bruno Haible  <bruno@clisp.org>
17628
17629         acl: Fix test failure on AIX 7.
17630         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17631         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17632
17633 2011-06-05  Bruno Haible  <bruno@clisp.org>
17634
17635         pipe-filter-ii: Fix test failure on AIX and IRIX.
17636         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17637         with EAGAIN, retry with a smaller buffer size.
17638
17639 2011-06-05  Bruno Haible  <bruno@clisp.org>
17640
17641         localename: Fix link dependencies.
17642         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17643         * modules/localename-tests (Makefile.am): Link test-localename with
17644         $(LIBTHREAD).
17645
17646 2011-06-05  Bruno Haible  <bruno@clisp.org>
17647
17648         error: Avoid gcc warning.
17649         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17650
17651 2011-06-05  Bruno Haible  <bruno@clisp.org>
17652
17653         unsetenv: Avoid gcc warning.
17654         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17655
17656 2011-06-05  Bruno Haible  <bruno@clisp.org>
17657
17658         setenv: Avoid gcc warning.
17659         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17660
17661 2011-06-05  Bruno Haible  <bruno@clisp.org>
17662
17663         sys_select: Ensure memset is declared also on AIX 7.
17664         * lib/sys_select.in.h: Include <string.h> also on AIX.
17665         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17666         self-contained also on AIX 7.1.
17667
17668 2011-06-04  Jim Meyering  <meyering@redhat.com>
17669
17670         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17671         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17672         function name, "error".
17673         (_gl_translatable_diag_func_re): New configurable variable.
17674
17675 2011-06-04  Bruno Haible  <bruno@clisp.org>
17676
17677         getopt: Avoid gcc warning.
17678         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17679
17680 2011-06-04  Bruno Haible  <bruno@clisp.org>
17681
17682         strerror_r: Fix comments.
17683         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17684         commit.
17685
17686 2011-06-04  Bruno Haible  <bruno@clisp.org>
17687
17688         perror: Fix compilation error.
17689         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17690         Undefine fprintf, not sprintf.
17691         * modules/perror (Depends-on): Remove intprops, verify.
17692
17693 2011-06-04  Bruno Haible  <bruno@clisp.org>
17694
17695         setlocale: Enable replacement on Cygwin 1.5.
17696         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17697         Cygwin 1.5.x.
17698         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17699         LC_CTYPE category also exists on Cygwin 1.5.x.
17700
17701 2011-06-04  Bruno Haible  <bruno@clisp.org>
17702
17703         strerror-override: Don't disable symbol renamings.
17704         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17705         * lib/strerror-override.c: Include config.h.
17706         (strerror_override): Don't undefine.
17707
17708 2011-06-03  Bruno Haible  <bruno@clisp.org>
17709
17710         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17711         * lib/localename.h: Update copyright header.
17712         * lib/localename.c: Likewise.
17713         * lib/relocatable.h: Likewise.
17714         * lib/relocatable.c: Likewise.
17715
17716 2011-06-02  Bruno Haible  <bruno@clisp.org>
17717
17718         doc: Fix a module name.
17719         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17720
17721 2011-06-02  Bruno Haible  <bruno@clisp.org>
17722
17723         pipe2: Remove dependency on 'nonblocking' module.
17724         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17725         O_NONBLOCK is defined by gnulib.
17726         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17727         is zero.
17728         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17729         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17730         defined by gnulib.
17731         (get_nonblocking_flag): New function.
17732         (main): Test O_NONBLOCK flag only if it is nonzero.
17733         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17734
17735 2011-06-03  Jim Meyering  <meyering@redhat.com>
17736
17737         maint: three new prohibit-header-without-use rules
17738         Prohibit use of cloexec.h, posixver.h, same.h without use.
17739         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17740         (sc_prohibit_posixver_without_use): Likewise.
17741         (sc_prohibit_same_without_use): Likewise.
17742
17743 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17744
17745         allocator: 'die' routine is now given requested size
17746         * lib/allocator.h (struct allocator.die): New size arg.
17747         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17748         If the actual problem is an ssize_t limitation, not a size_t or
17749         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17750
17751 2011-06-01  Eric Blake  <eblake@redhat.com>
17752
17753         strerror: drop strerror_r dependency
17754         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17755         * lib/strerror-override.c (strerror_override): ...to new file.
17756         * lib/strerror-override.h: Add prototype.
17757         * lib/strerror-impl.h: Delete.
17758         * lib/strerror.c (strerror): New implementation.
17759         * modules/errno (Files): Add new files.
17760         (configure.ac): Compile new file as appropriate.
17761         * modules/strerror (Files): Drop unused file.
17762         (Depends-on): Drop strerror_r-posix.
17763         * MODULES.html.sh: Document strerror_r-posix.
17764         Requested by Sam Steingold.
17765
17766         perror: call strerror_r directly
17767         * modules/perror (Files): Drop strerror-impl.h.
17768         * lib/perror.c (perror): Use our own stack buffer, rather than
17769         calling a wrapper that uses static storage.
17770         * doc/posix-functions/perror.texi (perror): Document a limitation
17771         of our replacement.
17772
17773         strerror_r: fix includes for FreeBSD
17774         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17775         since we use abort on some platforms.
17776         Reported by Matthias Bolte.
17777
17778 2011-05-31  Bruno Haible  <bruno@clisp.org>
17779
17780         Fix link errors in tests: openat-die uses gettext-h.
17781         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17782         against $(LIBINTL).
17783         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17784         against $(LIBINTL).
17785         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17786         $(LIBINTL).
17787         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17788         against $(LIBINTL).
17789         * modules/linkat-tests (Makefile.am): Link test-linkat against
17790         $(LIBINTL).
17791         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17792         $(LIBINTL).
17793         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17794         against $(LIBINTL).
17795         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17796         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17797         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17798         $(LIBINTL).
17799         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17800         $(LIBINTL).
17801         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17802         $(LIBINTL).
17803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17804
17805 2011-05-31  Bruno Haible  <bruno@clisp.org>
17806
17807         Fix link errors in tests: wait-process uses gettext-h.
17808         * modules/nonblocking-pipe-tests (Makefile.am): Set
17809         test_nonblocking_pipe_main_LDADD.
17810         * modules/nonblocking-socket-tests (Makefile.am): Link
17811         test-nonblocking-socket-main against $(LIBINTL).
17812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17813
17814 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17815
17816         assert-h: work around 'verify' incompatibility
17817         * lib/verify.h: Use @...@ directives, not ifdef.
17818         * modules/assert-h (assert.h): Implement the directives.
17819         (assert.h): Substitute the symbol-prefix more consistently.
17820
17821 2011-05-29  Jim Meyering  <meyering@redhat.com>
17822
17823         trim: remove three superfluous assignments
17824         * lib/trim.c (trim2): Remove three superfluous assignments
17825         and correct brace positioning.
17826
17827 2011-05-29  Bruno Haible  <bruno@clisp.org>
17828
17829         wctype-h: Avoid namespace pollution on Solaris 2.6.
17830         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17831         identifiers.
17832         * doc/posix-headers/wctype.texi: Mention the problem.
17833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17834
17835 2011-05-28  Jim Meyering  <meyering@redhat.com>
17836
17837         parse-datetime.y: accommodate -Wstrict-overflow
17838         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17839         placate -Wstrict-overflow.
17840
17841         trim: avoid a warning from -O2 -Wstrict-overflow
17842         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17843
17844 2011-05-29  Bruno Haible  <bruno@clisp.org>
17845
17846         gnulib-tool: Fix bug in yesterday's commit.
17847         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17848         twice.
17849
17850 2011-05-29  Bruno Haible  <bruno@clisp.org>
17851
17852         Allow multiple gnulib generated include files to be combined.
17853         * gnulib-tool (func_compute_include_guard_prefix): New function.
17854         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17855         ${gl_include_guard_prefix} references.
17856         (func_import, func_create_testdir): Invoke
17857         func_compute_include_guard_prefix.
17858         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17859         * lib/ctype.in.h: Likewise.
17860         * lib/dirent.in.h: Likewise.
17861         * lib/errno.in.h: Likewise.
17862         * lib/fcntl.in.h: Likewise.
17863         * lib/float.in.h: Likewise.
17864         * lib/getopt.in.h: Likewise.
17865         * lib/iconv.in.h: Likewise.
17866         * lib/langinfo.in.h: Likewise.
17867         * lib/locale.in.h: Likewise.
17868         * lib/math.in.h: Likewise.
17869         * lib/netdb.in.h: Likewise.
17870         * lib/netinet_in.in.h: Likewise.
17871         * lib/poll.in.h: Likewise.
17872         * lib/pthread.in.h: Likewise.
17873         * lib/pty.in.h: Likewise.
17874         * lib/sched.in.h: Likewise.
17875         * lib/se-selinux.in.h: Likewise.
17876         * lib/search.in.h: Likewise.
17877         * lib/signal.in.h: Likewise.
17878         * lib/spawn.in.h: Likewise.
17879         * lib/stdarg.in.h: Likewise.
17880         * lib/stddef.in.h: Likewise.
17881         * lib/stdint.in.h: Likewise.
17882         * lib/stdio.in.h: Likewise.
17883         * lib/stdlib.in.h: Likewise.
17884         * lib/string.in.h: Likewise.
17885         * lib/strings.in.h: Likewise.
17886         * lib/sys_file.in.h: Likewise.
17887         * lib/sys_ioctl.in.h: Likewise.
17888         * lib/sys_select.in.h: Likewise.
17889         * lib/sys_socket.in.h: Likewise.
17890         * lib/sys_stat.in.h: Likewise.
17891         * lib/sys_time.in.h: Likewise.
17892         * lib/sys_times.in.h: Likewise.
17893         * lib/sys_uio.in.h: Likewise.
17894         * lib/sys_utsname.in.h: Likewise.
17895         * lib/sys_wait.in.h: Likewise.
17896         * lib/sysexits.in.h: Likewise.
17897         * lib/termios.in.h: Likewise.
17898         * lib/time.in.h: Likewise.
17899         * lib/unistd.in.h: Likewise.
17900         * lib/wchar.in.h: Likewise.
17901         * lib/wctype.in.h: Likewise.
17902         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17903         * modules/ctype (Makefile.am): Likewise.
17904         * modules/dirent (Makefile.am): Likewise.
17905         * modules/errno (Makefile.am): Likewise.
17906         * modules/fcntl-h (Makefile.am): Likewise.
17907         * modules/float (Makefile.am): Likewise.
17908         * modules/getopt-posix (Makefile.am): Likewise.
17909         * modules/iconv-h (Makefile.am): Likewise.
17910         * modules/langinfo (Makefile.am): Likewise.
17911         * modules/locale (Makefile.am): Likewise.
17912         * modules/math (Makefile.am): Likewise.
17913         * modules/netdb (Makefile.am): Likewise.
17914         * modules/netinet_in (Makefile.am): Likewise.
17915         * modules/poll-h (Makefile.am): Likewise.
17916         * modules/pthread (Makefile.am): Likewise.
17917         * modules/pty (Makefile.am): Likewise.
17918         * modules/sched (Makefile.am): Likewise.
17919         * modules/search (Makefile.am): Likewise.
17920         * modules/selinux-h (Makefile.am): Likewise.
17921         * modules/signal (Makefile.am): Likewise.
17922         * modules/spawn (Makefile.am): Likewise.
17923         * modules/stdarg (Makefile.am): Likewise.
17924         * modules/stddef (Makefile.am): Likewise.
17925         * modules/stdint (Makefile.am): Likewise.
17926         * modules/stdio (Makefile.am): Likewise.
17927         * modules/stdlib (Makefile.am): Likewise.
17928         * modules/string (Makefile.am): Likewise.
17929         * modules/strings (Makefile.am): Likewise.
17930         * modules/sys_file (Makefile.am): Likewise.
17931         * modules/sys_ioctl (Makefile.am): Likewise.
17932         * modules/sys_select (Makefile.am): Likewise.
17933         * modules/sys_socket (Makefile.am): Likewise.
17934         * modules/sys_stat (Makefile.am): Likewise.
17935         * modules/sys_time (Makefile.am): Likewise.
17936         * modules/sys_times (Makefile.am): Likewise.
17937         * modules/sys_uio (Makefile.am): Likewise.
17938         * modules/sys_utsname (Makefile.am): Likewise.
17939         * modules/sys_wait (Makefile.am): Likewise.
17940         * modules/sysexits (Makefile.am): Likewise.
17941         * modules/termios (Makefile.am): Likewise.
17942         * modules/time (Makefile.am): Likewise.
17943         * modules/unistd (Makefile.am): Likewise.
17944         * modules/wchar (Makefile.am): Likewise.
17945         * modules/wctype-h (Makefile.am): Likewise.
17946         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17947
17948 2011-05-29  Bruno Haible  <bruno@clisp.org>
17949
17950         assert-h: Allow multiple gnulib generated replacements to coexist.
17951         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17952
17953 2011-05-29  Bruno Haible  <bruno@clisp.org>
17954
17955         argp: Allow coexistence with strerror_r-posix module.
17956         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17957         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17958         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17959         not the glibc signature.
17960
17961 2011-05-28  Bruno Haible  <bruno@clisp.org>
17962
17963         gnulib-tool: Alternative structure of testdirs, similar to --import.
17964         * gnulib-tool: New option --single-configure.
17965         (func_usage): Document it.
17966         (single_configure): New variable.
17967         (func_modules_transitive_closure_separately,
17968         func_modules_transitive_closure_separately,
17969         func_determine_use_libtests, func_modules_add_dummy_separately,
17970         func_modules_to_filelist_separately): New functions, extracted from
17971         func_import.
17972         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17973         (func_import): Use the new functions.
17974         (func_create_testdir): Set final_modules. Handle $single_configure =
17975         true case.
17976
17977 2011-05-28  Bruno Haible  <bruno@clisp.org>
17978
17979         getloadavg: Remove an unreliable safety check.
17980         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17981         getloadavg.c is in place.
17982         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17983         Reported by Sam Steingold <sds@gnu.org>.
17984
17985 2011-05-28  Bruno Haible  <bruno@clisp.org>
17986
17987         doc: Cleanup yet another file produced by texinfo.tex.
17988         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17989
17990 2011-05-28  Bruno Haible  <bruno@clisp.org>
17991
17992         Finish the conditional dependencies mechanism.
17993         * gnulib-tool: New option --no-conditional-dependencies.
17994         (func_usage): Document it. Don't mark --conditional-dependencies as
17995         experimental.
17996         (cond_dependencies): The possible values can now be true, false, empty.
17997         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17998         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17999         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18000
18001 2011-05-28  Bruno Haible  <bruno@clisp.org>
18002
18003         doc: Use a recent texinfo.tex.
18004         * doc/Makefile (tex_opts): New variable.
18005         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18006
18007 2011-05-28  Jim Meyering  <meyering@redhat.com>
18008
18009         intprops.h: adjust comment to match code change
18010         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18011         only once, it *may* have side effects.  Also fix an unrelated typo.
18012         (_GL_INT_SIGNED): Likewise.
18013
18014 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18015
18016         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18017
18018 2011-05-26  Bruno Haible  <bruno@clisp.org>
18019
18020         mbsrchr: Avoid collision with system function on Interix.
18021         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18022         Reported by Markus Duft <mduft@gentoo.org>.
18023
18024 2011-05-15  James Youngman  <jay@gnu.org>
18025
18026         getopt: for ambiguous options, enumerate the possibilities.
18027         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18028         the ambiguous options when an ambiguous prefix is given. This was
18029         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18030         glibc change was
18031         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18032
18033 2011-05-25  Eric Blake  <eblake@redhat.com>
18034
18035         getcwd: work around mingw bug
18036         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18037         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18038         Reported by Matthias Bolte.
18039
18040 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18041
18042         test-intprops: disable -Wtype-limits diagnostics
18043         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18044         diagnostics.  Otherwise, the integer overflow macros generate many
18045         diagnostics.  Reported by Jim Meyering in
18046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18047
18048         intprops: shorten, to pacify gcc -Woverlength-strings
18049         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18050         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18051         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18052         likely to run afoul of C compiler limits for string constant lengths.
18053         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18054
18055 2011-05-24  Eric Blake  <eblake@redhat.com>
18056
18057         docs: document recently fixed glibc printf bug
18058         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18059         * doc/posix-functions/printf.texi (printf): Likewise.
18060         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18061         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18062
18063         closein-tests: convert to init.sh
18064         * modules/closein-tests (Files): Add init.sh
18065         * tests/test-closein.sh Use it.
18066
18067         yesno-tests: convert to init.sh
18068         * modules/yesno-tests (Files): Add init.sh.
18069         * tests/test-yesno.sh: Use it.
18070
18071         atexit-tests: ensure reliable exit status
18072         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18073         Reported by Bruno Haible.
18074
18075 2011-05-24  Bruno Haible  <bruno@clisp.org>
18076
18077         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18079         gl_PREREQ_STRERROR_R invocations from here...
18080         * modules/strerror_r-posix (configure.ac): ... to here.
18081
18082 2011-05-24  Eric Blake  <eblake@redhat.com>
18083
18084         strerror_r: fix missing header
18085         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18086
18087         strerror_r: fix AIX test failures
18088         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18089         ERANGE failure.
18090
18091         strerror_r: fix Solaris test failures
18092         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18093         failures.
18094         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18095
18096         strerror_r: enforce POSIX recommendations
18097         * lib/strerror_r.c (safe_copy): New helper method.
18098         (strerror_r): Guarantee a non-empty string.
18099         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18100         recent POSIX rulings and to match our strerror guarantees.
18101         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18102
18103 2011-05-24  Jim Meyering  <meyering@redhat.com>
18104
18105         test-perror2.c: avoid warning about unused variable
18106         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18107
18108 2011-05-24  Eric Blake  <eblake@redhat.com>
18109
18110         perror: avoid spurious test failure on HP-UX
18111         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18112
18113         tests: fix logic bug in init.sh
18114         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18115         shell.
18116
18117 2011-05-24  Jim Meyering  <meyering@redhat.com>
18118
18119         utimensat: do not reference an out-of-scope buffer
18120         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18121         declared in an inner scope, yet "times" would be dereferenced outside
18122         the scope in which "ts" was valid.
18123         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18124         of ts[2] "out/up", so that the use of aliased "times" (via
18125         "times = ts;") does not end up referencing an out-of-scope "ts"
18126
18127         opendir-safer.c: don't clobber errno; don't close negative FD
18128         * lib/opendir-safer.c (opendir_safer):
18129         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18130         file descriptor, and more importantly, don't clobber the
18131         offending errno value with EINVAL.  Before, upon failure
18132         of dup_safer, we would pass the negative file descriptor to
18133         fdopendir, which would clobber errno.
18134
18135 2011-05-23  Bruno Haible  <bruno@clisp.org>
18136
18137         idcache: Fix module description.
18138         * modules/idcache (Include): Set to "idcache.h".
18139
18140 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18141
18142         gnulib-tool: fix portability problem with MacOS sed
18143         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18144         before the "}".  Problem reported by Leo in
18145         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18146         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18147         sed_extract_condition1, sed_extract_condition2.
18148
18149 2011-05-23  Bruno Haible  <bruno@clisp.org>
18150
18151         hash: Simplify autoconf macro.
18152         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18153
18154 2011-05-23  Bruno Haible  <bruno@clisp.org>
18155
18156         getugroups: Fix module description.
18157         * modules/getugroups (Include): Set to "getugroups.h".
18158
18159 2011-05-23  Bruno Haible  <bruno@clisp.org>
18160
18161         linkat: Simplify autoconf macro.
18162         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18163
18164 2011-05-23  Bruno Haible  <bruno@clisp.org>
18165             Eric Blake  <eblake@redhat.com>
18166
18167         linkat, renameat: Update dependencies.
18168         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18169         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18170         symlinkat.
18171
18172 2011-05-23  Jim Meyering  <meyering@redhat.com>
18173
18174         maint.mk: more tight_scope improvements
18175         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18176         (_gl_TS_headers): Define only in if-0'd block.
18177         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18178         sometimes we must *not* use it.  Adjust uses accordingly.
18179         (sc_tight_scope): Use much simpler grep-based test to determine
18180         whether we skip this rule.
18181
18182         maint.mk: generalize/improve the tight-scope rule
18183         * top/maint.mk: Emit a warning when the test is skipped.
18184         (_gl_TS_dir): Add $(srcdir)/ prefix.
18185         (_gl_TS_function_match): Simplify, rather than trying
18186         to enumerate common types.  Otherwise, it would fail to match an
18187         "extern unsigned char const *" declaration in idutils.
18188         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18189         a way to support use of that type of macro.
18190         (_gl_TS_var_match): Simplify regexp.
18191         (_gl_TS_obj_files): New configurable variable.
18192         (_gl_TS_headers): Likewise.
18193
18194 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18195
18196         verify: fix bug when gnulib <assert.h> is also included
18197         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18198         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18199         Perhaps there's a better way, but this fixes the immediate problem.
18200         Problem reported by Bruno Haible in
18201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18202
18203 2011-05-22  Bruno Haible  <bruno@clisp.org>
18204
18205         xgetcwd: Simplify autoconf macro.
18206         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18207
18208 2011-05-22  Bruno Haible  <bruno@clisp.org>
18209
18210         New module 'mktime-internal'.
18211         * modules/mktime-internal: New file.
18212         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18213         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18214         mktime_internal as a C macro if libc has __mktime_internal.
18215         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18216         conditions.
18217         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18218
18219 2011-05-22  Bruno Haible  <bruno@clisp.org>
18220
18221         timegm: Correct mktime replacement statements.
18222         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18223         defining mktime as a C macro. This completes a 2009-07-28 commit.
18224
18225 2011-05-22  Bruno Haible  <bruno@clisp.org>
18226
18227         timegm: Simplify autoconf macro.
18228         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18229
18230 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18231
18232         clock-time: change to LGPLv2+.
18233         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18234         BSD-like but we have no mark for that; this is good enough for now.
18235
18236 2011-05-21  Bruno Haible  <bruno@clisp.org>
18237
18238         strerror_r: Fix comments.
18239         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18240
18241 2011-05-21  Bruno Haible  <bruno@clisp.org>
18242
18243         relocatable-prog-wrapper: Fix possible link error.
18244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18245         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18246         (gl_FUNC_SETENV): ... to here.
18247         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18248         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18249
18250 2011-05-21  Bruno Haible  <bruno@clisp.org>
18251
18252         relocatable-prog-wrapper: Assume strerror() exists.
18253         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18254         m4/strerror.m4.
18255         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18256         * lib/relocwrapper.c: Remove mention of strerror module.
18257         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18258         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18259         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18260         C macro.
18261
18262 2011-05-21  Bruno Haible  <bruno@clisp.org>
18263
18264         select: Simplify replacement idiom.
18265         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18266         Win32 platforms.
18267         * lib/sys_select.in.h (select): Simplify accordingly.
18268         * modules/select (Depends-on): Likewise.
18269
18270 2011-05-21  Bruno Haible  <bruno@clisp.org>
18271
18272         mkdir-p: Simplify autoconf macro.
18273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18274         gl_FUNC_LCHOWN.
18275
18276 2011-05-21  Eric Blake  <eblake@redhat.com>
18277
18278         strerror_r: avoid clobbering strerror on cygwin
18279         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18280         fall back instead to sys_errlist.
18281         * modules/strerror (configure.ac): Add witness.
18282         * tests/test-strerror_r.c (main): Enhance test.
18283         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18284         * tests/test-perror2.c (main): Free memory before exit.
18285
18286 2011-05-21  Bruno Haible  <bruno@clisp.org>
18287
18288         mkdtemp: Use gnulib naming conventions.
18289         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18290         * modules/mkdtemp (configure.ac): Update.
18291
18292 2011-05-20  Eric Blake  <eblake@redhat.com>
18293
18294         strerror_r: avoid corrupting errno on Solaris
18295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18296         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18297
18298         strerror_r: avoid compiler warning
18299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18300
18301         strerror_r: simplify AIX code
18302         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18303
18304         test-perror: avoid spurious failure on FreeBSD
18305         * modules/perror-tests (Depends-on): Add strerror, now that
18306         strerror_r no longer pulls it in.
18307
18308 2011-05-20  Bruno Haible  <bruno@clisp.org>
18309
18310         strerror_r-posix: Remove unused dependencies.
18311         * modules/strerror_r-posix (Depends-on): Remove strerror.
18312         Reported by Eric Blake.
18313
18314 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18315
18316         intprops: remove assumption about A|B representation
18317         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18318         is a valid integer if both A and B are.  Although this is true for
18319         all known practical hosts, the C standard doesn't guarantee it,
18320         and the code need not assume it.  Also, this change may work around
18321         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18323
18324 2011-05-20  Eric Blake  <eblake@redhat.com>
18325
18326         perror: work around FreeBSD bug
18327         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18328         is broken.  Move AC_LIBOBJ...
18329         * modules/perror (configure.ac): Here.
18330         * doc/posix-functions/perror.texi (perror): Document this.
18331         * tests/test-perror2.c (main): Enhance test.
18332
18333         test-perror: check for strerror interactions
18334         * tests/macros.h (STREQ): Add macro.
18335         * modules/perror-tests (Files): Add second test.
18336         * tests/test-perror2.c (main): New file.
18337         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18338
18339         test-perror: rewrite to use init script
18340         * modules/perror-tests (Files): Add init.sh.
18341         * tests/test-perror.sh: Use temporary directory.
18342
18343 2011-05-20  Jim Meyering  <meyering@redhat.com>
18344
18345         maint: replace misused "a" with "an"
18346         * doc/intprops.texi: "a integer"
18347         * doc/regex.texi: "a explanation"
18348         * lib/alignof.h: "a object"
18349         * lib/argmatch.h: "a explanation"
18350         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18351         * lib/stdint.in.h: "a integer"
18352         * lib/userspec.c: "a owner"
18353         * doc/gnulib.texi: Fix "a idea", and reword.
18354
18355 2011-05-19  Jim Meyering  <meyering@redhat.com>
18356
18357         maint: correct misuse of "a" and "an"
18358         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18359         * lib/argp-help.c: "an docum...": s/an/a/
18360         * lib/argp-parse.c: "An vector": s/An/A/
18361         * lib/execute.c: "an native": s/an/a/
18362         * lib/spawn-pipe.c: Likewise.
18363         * lib/gc.h: "an Gc_rc": s/an/a/
18364         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18365         * lib/fts.c: "an stat.st_dev": s/an/a/
18366
18367 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18368
18369         intprops-tests: work around HP-UX 11.23 cc bug with constants
18370         * tests/test-intprops.c (VERIFY): New macro.
18371         (main): Use it, instead of verify, to work around the compiler bug; see
18372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18373
18374         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18375         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18376         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18377         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18378         (_GL_REMAINDER_OVERFLOW): Use it.
18379
18380         intprops-tests: revert unsigned part of previous change
18381         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18382         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18383         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18385
18386 2011-05-19  Bruno Haible  <bruno@clisp.org>
18387
18388         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18389         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18390         strerror_r() returned without filling the buffer.
18391         Reported by Eric Blake.
18392
18393 2011-05-19  Eric Blake  <eblake@redhat.com>
18394
18395         strerror_r: guarantee unchanged errno
18396         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18397         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18398         failure.
18399         * tests/test-strerror_r.c (main): Enhance test.
18400
18401 2011-05-19  Bruno Haible  <bruno@clisp.org>
18402
18403         strerror_r: Reorder #if blocks.
18404         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18405         for consistency with the previous commit.
18406
18407 2011-05-19  Bruno Haible  <bruno@clisp.org>
18408
18409         perror: Avoid clobbering the strerror buffer when possible.
18410         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18411         * lib/strerror.c: Include it.
18412         * modules/strerror (Files): Add lib/strerror-impl.h.
18413         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18414         (my_strerror): New function, defined through lib/strerror-impl.h.
18415         (perror): Use it instead of strerror.
18416         * modules/perror (Files): Add lib/strerror-impl.h.
18417         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18418
18419 2011-05-19  Eric Blake  <eblake@redhat.com>
18420
18421         strerror_r: fix on newer cygwin
18422         * lib/strerror_r.c (strerror_r): Cygwin now has
18423         __xpg_strerror_r, use it.
18424
18425 2011-05-19  Bruno Haible  <bruno@clisp.org>
18426
18427         strerror_r: Avoid clobbering the strerror buffer when possible.
18428         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18429         (sys_nerr, sys_errlist): New declarations.
18430         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18431         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18432         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18433
18434 2011-05-19  Bruno Haible  <bruno@clisp.org>
18435
18436         strerror_r: Fix test failure on mingw.
18437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18438         EXTEND_STRERROR_R.
18439         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18440         macros from errno.in.h instead.
18441
18442 2011-05-19  Eric Blake  <eblake@redhat.com>
18443
18444         strerror: relax test for Solaris
18445         * tests/test-strerror.c (main): Permit Solaris behavior.
18446         * tests/test-strerror_r.c (main): Likewise.
18447
18448         strerror: enforce POSIX ruling on strerror(0)
18449         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18451         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18452         * doc/posix-functions/strerror.texi (strerror): Document it.
18453         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18454         * tests/test-strerror.c (main): Strengthen test.
18455         * tests/test-strerror_r.c (main): Likewise.
18456
18457 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18458
18459         intprop-tests: port to older and more-pedantic compilers
18460         * modules/intprops-tests (Files): Add tests/macros.h.
18461         * tests/test-intprops.c: Include macros.h.
18462         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18463         it's no longer documented to expand to an integer constant expression.
18464         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18465         argument is floating point, as it's no longer documented to expand
18466         to an integer constant expression in that case.
18467         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18468         compiler bugs reported by Bruno Haible.  See
18469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18470         (U0, U1): New constants, to work around the same bugs.  Also,
18471         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18472
18473         intprops: work around C compiler bugs
18474         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18475         bug in Sun C 5.11 2010/08/13 and other compilers; see
18476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18477
18478         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18479         * doc/intprops.texi (Integer Type Determination): Fix
18480         documentation for TYPE_IS_INTEGER: it returns an constant
18481         expression, not an integer constant expression.  Fix doc for
18482         TYPE_SIGNED: it returns an integer constant expression only if its
18483         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18484         hardly worth documented that way....)
18485
18486 2011-05-18  Bruno Haible  <bruno@clisp.org>
18487
18488         strerror_r: Avoid clobbering the strerror buffer when possible.
18489         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18490         Handle gnulib defined errno values here. When strerror() returns NULL
18491         or an empty string, return EINVAL.
18492         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18493         gnulib defined errno values here.
18494         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18495
18496 2011-05-18  Eric Blake  <eblake@redhat.com>
18497
18498         fnmatch: avoid compiler warning
18499         * lib/fnmatch_loop.c (FCT): Use correct type.
18500         Reported by Matthias Bolte.
18501
18502 2011-05-13  Jim Meyering  <meyering@redhat.com>
18503
18504         maint.mk: three new prohibit_<HDR>_without_use rules
18505         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18506         (sc_prohibit_stdio-safer_without_use): Likewise.
18507         (sc_prohibit_xfreopen_without_use): Likewise.
18508
18509 2011-05-17  Jim Meyering  <meyering@redhat.com>
18510
18511         announce-gen: fail if the NEWS delta is empty
18512         If there's nothing noteworthy in NEWS, then either you forgot
18513         or you shouldn't be releasing.
18514         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18515
18516 2011-05-17  Pádraig Brady <P@draigBrady.com>
18517
18518         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18519         reserved symbols starting with double underscore from the check.
18520
18521 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18522
18523         intprops: add doc
18524         * doc/intprops.texi: New file, documenting intprops.
18525         * doc/gnulib.texi (Particular Modules): Include it.
18526
18527         verify: add doc to gnulib manual and fix example
18528         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18529         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18530         (Compile-time Assertions): Fix example so it can't overflow.
18531
18532 2011-05-17  Jim Meyering  <meyering@redhat.com>
18533
18534         warnings.m4: don't usurp save_CPPFLAGS variable name
18535         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18536
18537         doc: fix typo
18538         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18539
18540 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18541             Bruno Haible  <bruno@clisp.org>
18542
18543         doc: Tweak recent change.
18544         * README (Portability guidelines): Tweak new text.
18545         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18546         Interix 6.1.
18547
18548 2011-05-16  Eric Blake  <eblake@redhat.com>
18549
18550         inttypes: avoid autoconf warning
18551         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18552         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18553
18554 2011-05-16  Sam Steingold <sds@gnu.org>
18555         and Eric Blake  <eblake@redhat.com>
18556
18557         vc-list-files: accept multiple directory operands
18558         * build-aux/vc-list-files: Iterate over all remaining operands.
18559
18560 2011-05-16  Bruno Haible  <bruno@clisp.org>
18561
18562         Fix confusion regarding deprecated modules.
18563         * modules/calloc (Status, Notice): Mark module as deprecated, not
18564         obsolete.
18565         * modules/fnmatch-posix (Status, Notice): Likewise.
18566         * modules/getdate (Status, Notice): Likewise.
18567         * modules/getopt (Status, Notice): Likewise.
18568         * modules/malloc (Status, Notice): Likewise.
18569         * modules/pipe (Status, Notice): Likewise.
18570         * modules/realloc (Status, Notice): Likewise.
18571         * modules/rename-dest-slash (Status, Notice): Likewise.
18572         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18573         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18574         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18575         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18576         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18577
18578 2011-05-16  Bruno Haible  <bruno@clisp.org>
18579
18580         doc: List the target platforms.
18581         * doc/gnulib-intro.texi (Target Platforms): New section.
18582         * doc/gnulib.texi (Introduction): Update menu.
18583         * README (Portability guidelines): Refer to the new section. Update
18584         statement about oldest supported environment. Remove rationale why
18585         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18586         unportable C89 function.
18587         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18588         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18589
18590 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18591
18592         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18593
18594 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18595
18596         intprops-tests: new module
18597         * modules/intprops-tests, tests/test-intprops.c: New files.
18598
18599         intprops: add safe, portable integer overflow checking
18600         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18601         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18602         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18603         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18604         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18605         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18606         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18607         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18608         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18609         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18610         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18611
18612 2011-05-12  James Youngman  <jay@gnu.org>
18613
18614         Add a test for glibc's Bugzilla bug #12378.
18615         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18616         doesn't allow the literal matching of a lone "[" (which is
18617         required by POSIX).
18618         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18619
18620 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18621
18622         Sync glibc change fixing Bugzilla bug #12378.
18623         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18624         beginning and fall back to matching as normal character if the
18625         string ends before the matching ']' is found.  This is what POSIX
18626         requires.
18627
18628 2011-05-13  Eric Blake  <eblake@redhat.com>
18629
18630         getcwd-lgpl: relax test for FreeBSD
18631         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18632         issue.
18633         * tests/test-getcwd-lgpl.c (main): Relax test.
18634         Reported by Matthias Bolte.
18635
18636 2011-05-11  Eric Blake  <eblake@redhat.com>
18637
18638         test-fflush: silence compiler warning
18639         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18640
18641 2011-05-11  Bruno Haible  <bruno@clisp.org>
18642
18643         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18644         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18645         * modules/canonicalize (Depends-on): Add 'nocrash'.
18646         * modules/canonicalize-lgpl (Depends-on): Likewise.
18647         * doc/posix-functions/realpath.texi: Update platforms list.
18648         Reported by Ryan Schmidt <ryandesign@macports.org>.
18649
18650 2011-05-11  Bruno Haible  <bruno@clisp.org>
18651
18652         group-member: Declare function in <unistd.h>.
18653         * lib/unistd.in.h (group_member): New declaration.
18654         * lib/group-member.h: Remove file.
18655         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18656         * tests/test-unistd-c++.cc: Check signature of group_member.
18657         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18658         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18659         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18660         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18661         HAVE_GROUP_MEMBER.
18662         * modules/group-member (Files): Remove lib/group-member.h.
18663         (Depends-on): Add unistd. Specify conditions.
18664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18665         (Include): Change to <unistd.h>.
18666         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18667         HAVE_GROUP_MEMBER.
18668         * NEWS: Mention the change.
18669         * lib/euidaccess.c: Don't include group-member.h.
18670
18671 2011-05-11  Bruno Haible  <bruno@clisp.org>
18672
18673         group-member: Document module.
18674         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18675         module.
18676
18677 2011-05-11  Bruno Haible  <bruno@clisp.org>
18678
18679         fclose: Fix mistake earlier today.
18680         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18681
18682 2011-05-11  Eric Blake  <eblake@redhat.com>
18683
18684         fclose: preserve fflush errors
18685         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18686         Reported by Jim Meyering.
18687
18688         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18689         * build-aux/bootstrap (check_versions): When no specific version
18690         is required, merely check that the app produces an exit status
18691         that indicates its existence.
18692
18693         maint.mk: drop redundant check
18694         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18695         the same but better.
18696
18697 2011-05-11  Bruno Haible  <bruno@clisp.org>
18698
18699         fclose: Fix possible link error.
18700         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18701         unregister_shadow_fd. Improve comments.
18702         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18703         Eric Blake.
18704
18705 2011-05-11  Jim Meyering  <meyering@redhat.com>
18706
18707         maint.mk: improve "can not" detection and generalize rule name
18708         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18709         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18710         Use the same technique as in sc_prohibit_doubled_word, so that
18711         we recognize "can not" also when the words are separated by a newline.
18712         Suggested by Eric Blake.
18713         (perl_filename_lineno_text_): Define.  Factored out of...
18714         (prohibit_doubled_word_): ...here.  Use the new definition.
18715         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18716         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18717         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18718
18719 2011-05-10  Eric Blake  <eblake@redhat.com>
18720
18721         fclose: avoid double close race when possible
18722         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18723         all but WINDOWS_SOCKETS.
18724
18725 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18726
18727         openat: correct new comment
18728         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18729
18730 2011-05-10  Jim Meyering  <meyering@redhat.com>
18731
18732         openat: add comments
18733         * lib/openat-proc.c (openat_proc_name): Add comments,
18734         mostly from Eric Blake.
18735
18736 2011-05-09  Eric Blake  <eblake@redhat.com>
18737
18738         openat: reduce syscalls in first probe of /proc
18739         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18740         be a directory.  Simplify the probe for .. bugs.
18741         * modules/openat (Depends-on): Drop same-inode.
18742         Reported by Bastien ROUCARIES.
18743
18744 2011-05-09  Jim Meyering  <meyering@redhat.com>
18745
18746         maint.mk: change semantics/name of tight_scope variables
18747         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18748         Rename variables to align with semantics that make them more useful.
18749
18750         maint.mk: tweak new rule's name not to impinge
18751         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18752         (sc_tight_scope): Use new rule name rather than $@-0.
18753
18754         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18755         * top/maint.mk (sc_tight_scope): New rule.
18756         (sc_tight_scope-0): New rule, ifdef'd out.
18757         (_gl_TS_dir): Default.
18758         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18759         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18760
18761 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18762
18763         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18764         Haible <bruno@clisp.org>.
18765
18766 2011-05-08  Bruno Haible  <bruno@clisp.org>
18767
18768         Comments.
18769         * m4/isnanf.m4: Add comment.
18770         * m4/isnanl.m4: Likewise.
18771
18772 2011-05-08  Bruno Haible  <bruno@clisp.org>
18773
18774         glob: Remove obsolete macro.
18775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18776
18777 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18778
18779         intprops: Sun C 5.11 supports __typeof__
18780         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18781         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18782         which is new.
18783         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18784
18785         intprops: switch to usual gnulib indenting and naming
18786         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18787         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18788
18789         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18790
18791 2011-05-08  Jim Meyering  <meyering@redhat.com>
18792
18793         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18794         * top/maint.mk (release-prep): Use make's --no-print-directory
18795         option when generating the announcement.  This eliminates the
18796         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18797         generated announcement template.
18798
18799 2011-05-08  Bruno Haible  <bruno@clisp.org>
18800
18801         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18802         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18803         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18804
18805 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18806
18807         ignore-value, verify: Omit include files from lib_SOURCES.
18808         * modules/ignore-value, modules/verify (Makefile.am):
18809         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18810         that leads Automake to duplicate use of am__objects_... variables
18811         in Makefile.in.  See
18812         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18813
18814 2011-05-07  Bruno Haible  <bruno@clisp.org>
18815
18816         fclose: Simplify autoconf macro.
18817         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18818         defined.
18819
18820 2011-05-07  Bruno Haible  <bruno@clisp.org>
18821
18822         canonicalize-lgpl: Fix autoconf macro ordering bug.
18823         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18824         gl_STDLIB_H_DEFAULTS.
18825
18826 2011-05-06  Eric Blake  <eblake@redhat.com>
18827
18828         maintainer-makefile: make sc_po_check easier to tune
18829         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18830         to probe for strings, such as an alternate location for gnulib.
18831
18832         fclose: guarantee behavior on seekable stdin
18833         * modules/fclose (Depends-on): Add fflush.
18834         * doc/posix-functions/fclose.texi (fclose): Document this.
18835         * tests/test-fclose.c (main): Make test for this unconditional.
18836
18837 2011-05-06  Bruno Haible  <bruno@clisp.org>
18838
18839         fflush, fpurge: Relicense under LGPLv2+.
18840         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18841         * modules/fpurge (License): Likewise.
18842         With permission from Eric Blake and Jim Meyering.
18843         Suggested by Eric Blake.
18844
18845 2011-05-06  Karl Berry  <karl@gnu.org>
18846
18847         * MODULES.html.sh (func_all_modules): remove exit.
18848
18849 2011-05-06  Jim Meyering  <meyering@redhat.com>
18850
18851         maint.mk: use info-gnu@ as the default only for a stable release
18852         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18853         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18854         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18855         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18856
18857 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18858
18859         assert-h: new module, which supports C1X-style static_assert
18860         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18861         * lib/verify.h: Revamp so that this can be copied into assert.h,
18862         while retaining the ability to use it standalone as before.
18863         Rename private identifiers so as not to encroach on the
18864         standard C namespace, since this is now used by assert.h.
18865         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18866         the old verify_true.
18867         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18868         the old verify_true.  Use _GL_VERIFY_TYPE.
18869         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18870         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18871         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18872         defined when this file is copied into the replacement assert.h.
18873         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18874         and _Static_assert is not built in.
18875         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18876         defined, and use the new macros mentioned above.
18877         * doc/posix-headers/assert.texi: Document this.
18878
18879 2011-05-05  Bruno Haible  <bruno@clisp.org>
18880
18881         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18882         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18883         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18884         gl_REPLACE_FCLOSE here.
18885         * modules/fflush (Depends-on): Remove fclose.
18886         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18887         combination with module 'fclose'.
18888
18889 2011-05-05  Bruno Haible  <bruno@clisp.org>
18890
18891         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18892         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18893         gl_FUNC_FFLUSH.
18894         (gl_FUNC_FFLUSH): Use it.
18895         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18897         gl_REPLACE_FSEEKO here.
18898
18899 2011-05-05  Bruno Haible  <bruno@clisp.org>
18900
18901         tzset: Relicense under LGPL.
18902         * modules/tzset (License): Change to LGPL.
18903         No agreement needed; it's a no-op.
18904
18905         strtoimax, strtoumax: Relicense under LGPL.
18906         * modules/strtoimax (License): Change to LGPL.
18907         * modules/strtoumax (License): Likewise.
18908         With permission from Jim Meyering, Paul Eggert:
18909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18911
18912         getgroups: Relicense under LGPL.
18913         * modules/getgroups (License): Change to LGPL.
18914         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18918
18919         nanosleep: Relicense under LGPL.
18920         * modules/nanosleep (License): Change to LGPL.
18921         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18922         Haible:
18923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18927
18928         futimens: Relicense under LGPL.
18929         * modules/futimens (License): Change to LGPL.
18930         With permission from Eric Blake:
18931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18932
18933         fflush: Relicense under LGPL.
18934         * modules/fflush (License): Change to LGPL.
18935         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18939
18940         tmpfile: Relicense under LGPL.
18941         * modules/tmpfile (License): Change to LGPL.
18942         With permission from Ben Pfaff:
18943         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18944
18945         isfinite: Relicense under LGPL.
18946         * modules/isfinite (License): Change to LGPL.
18947         With permission from Ben Pfaff, Bruno Haible:
18948         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18950
18951         acosl..tanl: Relicense under LGPL.
18952         * modules/acosl (License): Change to LGPL.
18953         * modules/asinl (License): Likewise.
18954         * modules/atanl (License): Likewise.
18955         * modules/cosl (License): Likewise.
18956         * modules/expl (License): Likewise.
18957         * modules/logl (License): Likewise.
18958         * modules/sinl (License): Likewise.
18959         * modules/sqrtl (License): Likewise.
18960         * modules/tanl (License): Likewise.
18961         Source code originally from glibc and Paolo Bonzini. Agreements:
18962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18964
18965 2011-05-05  Bruno Haible  <bruno@clisp.org>
18966
18967         signal: Define sighandler_t.
18968         * lib/signal.in.h (sighandler_t): New type.
18969         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18970         whether sighandler_t is defined.
18971         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18972         * modules/signal (Depends-on): Add extensions.
18973         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18974         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18975         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18976
18977 2011-05-05  Eric Blake  <eblake@redhat.com>
18978
18979         maint: remove useless REPLACE_*_H macros
18980         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18981         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18982         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18983         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18984         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18985         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18986         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18987         * m4/btowc.m4: Update callers.
18988         * m4/dirfd.m4: Likewise.
18989         * m4/duplocale.m4: Likewise.
18990         * m4/fchdir.m4: Likewise.
18991         * m4/fdopendir.m4: Likewise.
18992         * m4/inet_ntop.m4: Likewise.
18993         * m4/inet_pton.m4: Likewise.
18994         * m4/ioctl.m4: Likewise.
18995         * m4/mbrlen.m4: Likewise.
18996         * m4/mbrtowc.m4: Likewise.
18997         * m4/mbsinit.m4: Likewise.
18998         * m4/mbsnrtowcs.m4: Likewise.
18999         * m4/mbsrtowcs.m4: Likewise.
19000         * m4/poll.m4: Likewise.
19001         * m4/setlocale.m4: Likewise.
19002         * m4/wcrtomb.m4: Likewise.
19003         * m4/wcsnrtombs.m4: Likewise.
19004         * m4/wcsrtombs.m4: Likewise.
19005         * m4/wctob.m4: Likewise.
19006         * m4/wcwidth.m4: Likewise.
19007         * modules/posix_spawn: Likewise.
19008         * modules/posix_spawn_file_actions_addclose: Likewise.
19009         * modules/posix_spawn_file_actions_adddup2: Likewise.
19010         * modules/posix_spawn_file_actions_addopen: Likewise.
19011         * modules/posix_spawn_file_actions_destroy: Likewise.
19012         * modules/posix_spawn_file_actions_init: Likewise.
19013         * modules/posix_spawnattr_destroy: Likewise.
19014         * modules/posix_spawnattr_getflags: Likewise.
19015         * modules/posix_spawnattr_getpgroup: Likewise.
19016         * modules/posix_spawnattr_getschedparam: Likewise.
19017         * modules/posix_spawnattr_getschedpolicy: Likewise.
19018         * modules/posix_spawnattr_getsigdefault: Likewise.
19019         * modules/posix_spawnattr_getsigmask: Likewise.
19020         * modules/posix_spawnattr_init: Likewise.
19021         * modules/posix_spawnattr_setflags: Likewise.
19022         * modules/posix_spawnattr_setpgroup: Likewise.
19023         * modules/posix_spawnattr_setschedparam: Likewise.
19024         * modules/posix_spawnattr_setschedpolicy: Likewise.
19025         * modules/posix_spawnattr_setsigdefault: Likewise.
19026         * modules/posix_spawnattr_setsigmask: Likewise.
19027         * modules/posix_spawnp: Likewise.
19028
19029 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19030
19031         Add option to do-release-commit-and-tag to specify branch.
19032         * build-aux/do-release-commit-and-tag: Add --branch.
19033
19034 2011-05-03  Bruno Haible  <bruno@clisp.org>
19035
19036         Avoid unnecessary compilation units, through conditional dependencies.
19037         * modules/accept (Depends-on): Add conditions to the dependencies.
19038         * modules/acosl (Depends-on): Likewise.
19039         * modules/argz (Depends-on): Likewise.
19040         * modules/asinl (Depends-on): Likewise.
19041         * modules/atanl (Depends-on): Likewise.
19042         * modules/atoll (Depends-on): Likewise.
19043         * modules/bind (Depends-on): Likewise.
19044         * modules/btowc (Depends-on): Likewise.
19045         * modules/canonicalize-lgpl (Depends-on): Likewise.
19046         * modules/ceil (Depends-on): Likewise.
19047         * modules/ceilf (Depends-on): Likewise.
19048         * modules/ceill (Depends-on): Likewise.
19049         * modules/chdir-long (Depends-on): Likewise.
19050         * modules/chown (Depends-on): Likewise.
19051         * modules/close (Depends-on): Likewise.
19052         * modules/connect (Depends-on): Likewise.
19053         * modules/cosl (Depends-on): Likewise.
19054         * modules/dirfd (Depends-on): Likewise.
19055         * modules/dprintf (Depends-on): Likewise.
19056         * modules/dprintf-posix (Depends-on): Likewise.
19057         * modules/error (Depends-on): Likewise.
19058         * modules/euidaccess (Depends-on): Likewise.
19059         * modules/expl (Depends-on): Likewise.
19060         * modules/faccessat (Depends-on): Likewise.
19061         * modules/fchdir (Depends-on): Likewise.
19062         * modules/fclose (Depends-on): Likewise.
19063         * modules/fcntl (Depends-on): Likewise.
19064         * modules/fdopendir (Depends-on): Likewise.
19065         * modules/fflush (Depends-on): Likewise.
19066         * modules/floor (Depends-on): Likewise.
19067         * modules/floorf (Depends-on): Likewise.
19068         * modules/floorl (Depends-on): Likewise.
19069         * modules/fnmatch (Depends-on): Likewise.
19070         * modules/fopen (Depends-on): Likewise.
19071         * modules/fprintf-posix (Depends-on): Likewise.
19072         * modules/frexp (Depends-on): Likewise.
19073         * modules/frexp-nolibm (Depends-on): Likewise.
19074         * modules/frexpl (Depends-on): Likewise.
19075         * modules/frexpl-nolibm (Depends-on): Likewise.
19076         * modules/fseek (Depends-on): Likewise.
19077         * modules/fsusage (Depends-on): Likewise.
19078         * modules/ftell (Depends-on): Likewise.
19079         * modules/ftello (Depends-on): Likewise.
19080         * modules/futimens (Depends-on): Likewise.
19081         * modules/getcwd (Depends-on): Likewise.
19082         * modules/getcwd-lgpl (Depends-on): Likewise.
19083         * modules/getdelim (Depends-on): Likewise.
19084         * modules/getdomainname (Depends-on): Likewise.
19085         * modules/getgroups (Depends-on): Likewise.
19086         * modules/gethostname (Depends-on): Likewise.
19087         * modules/getline (Depends-on): Likewise.
19088         * modules/getlogin_r (Depends-on): Likewise.
19089         * modules/getopt-posix (Depends-on): Likewise.
19090         * modules/getpeername (Depends-on): Likewise.
19091         * modules/getsockname (Depends-on): Likewise.
19092         * modules/getsockopt (Depends-on): Likewise.
19093         * modules/getsubopt (Depends-on): Likewise.
19094         * modules/getusershell (Depends-on): Likewise.
19095         * modules/glob (Depends-on): Likewise.
19096         * modules/grantpt (Depends-on): Likewise.
19097         * modules/iconv_open (Depends-on): Likewise.
19098         * modules/iconv_open-utf (Depends-on): Likewise.
19099         * modules/inet_ntop (Depends-on): Likewise.
19100         * modules/inet_pton (Depends-on): Likewise.
19101         * modules/ioctl (Depends-on): Likewise.
19102         * modules/isapipe (Depends-on): Likewise.
19103         * modules/isfinite (Depends-on): Likewise.
19104         * modules/isinf (Depends-on): Likewise.
19105         * modules/lchown (Depends-on): Likewise.
19106         * modules/ldexpl (Depends-on): Likewise.
19107         * modules/link (Depends-on): Likewise.
19108         * modules/linkat (Depends-on): Likewise.
19109         * modules/listen (Depends-on): Likewise.
19110         * modules/logl (Depends-on): Likewise.
19111         * modules/lstat (Depends-on): Likewise.
19112         * modules/mbrlen (Depends-on): Likewise.
19113         * modules/mbrtowc (Depends-on): Likewise.
19114         * modules/mbsinit (Depends-on): Likewise.
19115         * modules/mbsnrtowcs (Depends-on): Likewise.
19116         * modules/mbsrtowcs (Depends-on): Likewise.
19117         * modules/mbtowc (Depends-on): Likewise.
19118         * modules/memcmp (Depends-on): Likewise.
19119         * modules/mkdir (Depends-on): Likewise.
19120         * modules/mkdtemp (Depends-on): Likewise.
19121         * modules/mkfifo (Depends-on): Likewise.
19122         * modules/mkfifoat (Depends-on): Likewise.
19123         * modules/mknod (Depends-on): Likewise.
19124         * modules/mkostemp (Depends-on): Likewise.
19125         * modules/mkostemps (Depends-on): Likewise.
19126         * modules/mkstemp (Depends-on): Likewise.
19127         * modules/mkstemps (Depends-on): Likewise.
19128         * modules/mktime (Depends-on): Likewise.
19129         * modules/nanosleep (Depends-on): Likewise.
19130         * modules/open (Depends-on): Likewise.
19131         * modules/openat (Depends-on): Likewise.
19132         * modules/perror (Depends-on): Likewise.
19133         * modules/poll (Depends-on): Likewise.
19134         * modules/popen (Depends-on): Likewise.
19135         * modules/posix_spawn (Depends-on): Likewise.
19136         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19137         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19138         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19139         * modules/posix_spawnp (Depends-on): Likewise.
19140         * modules/pread (Depends-on): Likewise.
19141         * modules/printf-posix (Depends-on): Likewise.
19142         * modules/ptsname (Depends-on): Likewise.
19143         * modules/putenv (Depends-on): Likewise.
19144         * modules/pwrite (Depends-on): Likewise.
19145         * modules/readline (Depends-on): Likewise.
19146         * modules/readlink (Depends-on): Likewise.
19147         * modules/readlinkat (Depends-on): Likewise.
19148         * modules/recv (Depends-on): Likewise.
19149         * modules/recvfrom (Depends-on): Likewise.
19150         * modules/regex (Depends-on): Likewise.
19151         * modules/remove (Depends-on): Likewise.
19152         * modules/rename (Depends-on): Likewise.
19153         * modules/renameat (Depends-on): Likewise.
19154         * modules/rmdir (Depends-on): Likewise.
19155         * modules/round (Depends-on): Likewise.
19156         * modules/roundf (Depends-on): Likewise.
19157         * modules/roundl (Depends-on): Likewise.
19158         * modules/rpmatch (Depends-on): Likewise.
19159         * modules/select (Depends-on): Likewise.
19160         * modules/send (Depends-on): Likewise.
19161         * modules/sendto (Depends-on): Likewise.
19162         * modules/setenv (Depends-on): Likewise.
19163         * modules/setlocale (Depends-on): Likewise.
19164         * modules/setsockopt (Depends-on): Likewise.
19165         * modules/shutdown (Depends-on): Likewise.
19166         * modules/sigaction (Depends-on): Likewise.
19167         * modules/signbit (Depends-on): Likewise.
19168         * modules/sigprocmask (Depends-on): Likewise.
19169         * modules/sinl (Depends-on): Likewise.
19170         * modules/sleep (Depends-on): Likewise.
19171         * modules/snprintf (Depends-on): Likewise.
19172         * modules/snprintf-posix (Depends-on): Likewise.
19173         * modules/socket (Depends-on): Likewise.
19174         * modules/sprintf-posix (Depends-on): Likewise.
19175         * modules/sqrtl (Depends-on): Likewise.
19176         * modules/stat (Depends-on): Likewise.
19177         * modules/strchrnul (Depends-on): Likewise.
19178         * modules/strdup-posix (Depends-on): Likewise.
19179         * modules/strerror (Depends-on): Likewise.
19180         * modules/strerror_r-posix (Depends-on): Likewise.
19181         * modules/strndup (Depends-on): Likewise.
19182         * modules/strnlen (Depends-on): Likewise.
19183         * modules/strptime (Depends-on): Likewise.
19184         * modules/strsep (Depends-on): Likewise.
19185         * modules/strsignal (Depends-on): Likewise.
19186         * modules/strstr-simple (Depends-on): Likewise.
19187         * modules/strtod (Depends-on): Likewise.
19188         * modules/strtoimax (Depends-on): Likewise.
19189         * modules/strtok_r (Depends-on): Likewise.
19190         * modules/strtoumax (Depends-on): Likewise.
19191         * modules/symlink (Depends-on): Likewise.
19192         * modules/symlinkat (Depends-on): Likewise.
19193         * modules/tanl (Depends-on): Likewise.
19194         * modules/tcgetsid (Depends-on): Likewise.
19195         * modules/tmpfile (Depends-on): Likewise.
19196         * modules/trunc (Depends-on): Likewise.
19197         * modules/truncf (Depends-on): Likewise.
19198         * modules/truncl (Depends-on): Likewise.
19199         * modules/uname (Depends-on): Likewise.
19200         * modules/unlink (Depends-on): Likewise.
19201         * modules/unlockpt (Depends-on): Likewise.
19202         * modules/unsetenv (Depends-on): Likewise.
19203         * modules/usleep (Depends-on): Likewise.
19204         * modules/utimensat (Depends-on): Likewise.
19205         * modules/vasprintf (Depends-on): Likewise.
19206         * modules/vdprintf (Depends-on): Likewise.
19207         * modules/vdprintf-posix (Depends-on): Likewise.
19208         * modules/vfprintf-posix (Depends-on): Likewise.
19209         * modules/vprintf-posix (Depends-on): Likewise.
19210         * modules/vsnprintf (Depends-on): Likewise.
19211         * modules/vsnprintf-posix (Depends-on): Likewise.
19212         * modules/vsprintf-posix (Depends-on): Likewise.
19213         * modules/wcrtomb (Depends-on): Likewise.
19214         * modules/wcscasecmp (Depends-on): Likewise.
19215         * modules/wcscspn (Depends-on): Likewise.
19216         * modules/wcsdup (Depends-on): Likewise.
19217         * modules/wcsncasecmp (Depends-on): Likewise.
19218         * modules/wcsnrtombs (Depends-on): Likewise.
19219         * modules/wcspbrk (Depends-on): Likewise.
19220         * modules/wcsrtombs (Depends-on): Likewise.
19221         * modules/wcsspn (Depends-on): Likewise.
19222         * modules/wcsstr (Depends-on): Likewise.
19223         * modules/wcstok (Depends-on): Likewise.
19224         * modules/wcswidth (Depends-on): Likewise.
19225         * modules/wctob (Depends-on): Likewise.
19226         * modules/wctomb (Depends-on): Likewise.
19227         * modules/wctype (Depends-on): Likewise.
19228         * modules/wcwidth (Depends-on): Likewise.
19229         * modules/write (Depends-on): Likewise.
19230
19231 2011-05-03  Bruno Haible  <bruno@clisp.org>
19232
19233         Support for conditional dependencies.
19234         * doc/gnulib.texi (Module description): Document the syntax of
19235         conditional dependencies.
19236         * gnulib-tool: New option --conditional-dependencies.
19237         (func_usage): Document it.
19238         (cond_dependencies): New variable.
19239         (func_get_automake_snippet_conditional,
19240         func_get_automake_snippet_unconditional): New functions, extracted from
19241         func_get_automake_snippet.
19242         (func_get_automake_snippet): Use them.
19243         (sed_first_32_chars): New variable.
19244         (func_module_shellfunc_name): New function.
19245         (func_module_shellvar_name): New function.
19246         (func_module_conditional_name): New function.
19247         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19248         func_cond_module_condition): New functions.
19249         (func_modules_transitive_closure): Add support for conditional
19250         dependencies.
19251         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19252         conditional automake snippet in an automake conditional.
19253         (func_emit_autoconf_snippets): Emit shell functions that contain the
19254         code for conditional modules.
19255         (func_import, func_create_testdir): Update specification.
19256
19257 2011-05-03  Eric Blake  <eblake@redhat.com>
19258
19259         test-getaddrinfo: report error information
19260         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19261
19262 2011-05-03  Jim Meyering  <meyering@redhat.com>
19263
19264         bootstrap: avoid build failure when $GZIP is set
19265         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19266         program name.  If defined at all, it is supposed to list gzip options.
19267         Reported by Alan Curry in http://debbugs.gnu.org/8609
19268
19269 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19270
19271         readme-release: new module with release instructions
19272         * modules/readme-release: New module.
19273         * top/README-release: New file, from coreutils, grep, diffutils.
19274         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19275
19276 2011-05-02  Eric Blake  <eblake@redhat.com>
19277
19278         fflush: also replace fclose when fixing fflush
19279         * modules/fflush (Depends-on): Add fclose.
19280         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19281         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19282         memstreams with no backing fd.
19283         * doc/posix-functions/fclose.texi (fclose): Document the use of
19284         fflush module to fix the bug.
19285         * tests/test-fclose.c (main): Relax test when fclose is used in
19286         isolation.
19287
19288         fclose: add some tests
19289         * modules/fclose-tests: New test module.
19290         * tests/test-fclose.c: New file.
19291         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19292
19293         fclose: reduced dependencies
19294         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19295         simpler lseek.
19296         * lib/fclose.c (rpl_fclose): Likewise.
19297         Reported by Simon Josefsson.
19298
19299         exit: drop remaining clients
19300         * modules/argmatch (Depends-on): Replace exit with stdlib.
19301         * modules/copy-file (Depends-on): Likewise.
19302         * modules/execute (Depends-on): Likewise.
19303         * modules/exitfail (Depends-on): Likewise.
19304         * modules/obstack (Depends-on): Likewise.
19305         * modules/pagealign_alloc (Depends-on): Likewise.
19306         * modules/pipe-filter-gi (Depends-on): Likewise.
19307         * modules/pipe-filter-ii (Depends-on): Likewise.
19308         * modules/savewd (Depends-on): Likewise.
19309         * modules/spawn-pipe (Depends-on): Likewise.
19310         * modules/wait-process (Depends-on): Likewise.
19311         * modules/xsetenv (Depends-on): Likewise.
19312         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19313         * modules/git-merge-changelog (Depends-on): Likewise.
19314         * modules/long-options (Depends-on): Likewise.
19315         * modules/pt_chown (Depends-on): Likewise.
19316         * modules/sysexits (Depends-on): Likewise.
19317
19318         freading: relax license from LGPLv3+ to LGPLv2+
19319         * modules/freading (License): Relax LGPL version.
19320
19321 2011-05-02  Bruno Haible  <bruno@clisp.org>
19322
19323         fchdir: Remove unused dependencies.
19324         * modules/fchdir (Depends-on): Remove include_next.
19325
19326 2011-05-02  Bruno Haible  <bruno@clisp.org>
19327
19328         gnulib-tool: Refactor.
19329         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19330         from func_emit_autoconf_snippets.
19331         (func_emit_autoconf_snippets): Use it.
19332
19333 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19334
19335         * NEWS: Document removal of 'exit'.
19336         * modules/exit: Remove file.
19337
19338 2011-05-01  Bruno Haible  <bruno@clisp.org>
19339
19340         Update DEPENDENCIES.
19341         * DEPENDENCIES (gettext): Recommend the newest release.
19342         Reported by Simon Josefsson.
19343
19344 2011-05-01  Bruno Haible  <bruno@clisp.org>
19345
19346         gnulib-tool: Reduce code duplication.
19347         * gnulib-tool (func_emit_autoconf_snippets): New function.
19348         (func_import, func_create_testdir): Use it.
19349
19350 2011-04-30  Eric Blake  <eblake@redhat.com>
19351
19352         fclose: don't fail on non-seekable input stream
19353         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19354         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19355         since fflush is allowed to fail in that case.
19356
19357 2011-04-30  Bruno Haible  <bruno@clisp.org>
19358
19359         dup3: cleanup
19360         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19361
19362 2011-04-30  Bruno Haible  <bruno@clisp.org>
19363
19364         netdb: Make it work in C++ mode.
19365         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19366         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19367         module.
19368         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19369         gl_MODULE_INDICATOR_FOR_TESTS.
19370         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19371         * modules/netdb-c++-tests: New file.
19372         * tests/test-netdb-c++.cc: New file.
19373
19374 2011-04-30  Bruno Haible  <bruno@clisp.org>
19375
19376         New modules 'vfscanf', 'vscanf'.
19377         * modules/vfscanf: New file.
19378         * modules/vscanf: New file.
19379         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19380         here.
19381         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19382         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19383
19384 2011-04-30  Bruno Haible  <bruno@clisp.org>
19385
19386         passfd: Add comments.
19387         * lib/passfd.c: Add comments about platforms.
19388
19389 2011-04-30  Bruno Haible  <bruno@clisp.org>
19390
19391         sys_uio: Make <sys/uio.h> self-contained.
19392         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19393         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19394
19395 2011-04-30  Bruno Haible  <bruno@clisp.org>
19396
19397         sys_socket: Ensure 'struct iovec' definition.
19398         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19399         <sys/socket.h>.
19400         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19401
19402 2011-04-30  Bruno Haible  <bruno@clisp.org>
19403
19404         sys_uio: Protect definition of 'struct iovec'.
19405         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19406         it as a C struct.
19407
19408 2011-04-30  Bruno Haible  <bruno@clisp.org>
19409
19410         manywarnings: fix indentation
19411         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19412
19413 2011-04-30  Pádraig Brady <P@draigBrady.com>
19414
19415         manywarnings: add -Wno-missing-field-initializers if needed.
19416         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19417         option if it's needed to allow initialization with { 0, }
19418
19419 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19420
19421         announce-gen: cosmetic improvement
19422         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19423
19424 2011-04-29  Jim Meyering  <meyering@redhat.com>
19425
19426         vc-list-files: indent with spaces, not TABs
19427         * build-aux/vc-list-files: Convert leading TABs to spaces,
19428         to match the style of most other files in gnulib.
19429
19430         announce-gen: indent with spaces, not TABs
19431         * build-aux/announce-gen: Convert all TABs to spaces, to match
19432         the style of most other files in gnulib.
19433
19434 2011-04-29  Eric Blake  <eblake@redhat.com>
19435
19436         quotearg: avoid uninitialized variable use
19437         * lib/quotearg.c (quoting_options_from_style): Initialize
19438         remaining fields, and ensure that custom styles are only used via
19439         quoting_options rather than quoting_style.
19440
19441 2011-04-29  Jim Meyering  <meyering@redhat.com>
19442
19443         maint.mk: remove unused VC-tag variable
19444         * top/maint.mk (VC-tag): Remove unused variable.
19445
19446 2011-04-29  Bruno Haible  <bruno@clisp.org>
19447
19448         netdb: fix gai_strerror replacements
19449         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19450         * modules/netdb: Substitute it.
19451
19452 2011-04-29  Jim Meyering  <meyering@redhat.com>
19453
19454         test-getcwd.c: avoid new set-but-not-used warning
19455         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19456         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19457         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19458         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19459
19460         test-hash.c: avoid a new shadowing warning
19461         * tests/test-hash.c (main): Don't shadow "dup".
19462
19463 2011-04-28  Eric Blake  <eblake@redhat.com>
19464
19465         getaddrinfo: fix gai_strerror signature
19466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19467         and work around mingw with UNICODE defined.
19468         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19469         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19470         * modules/netdb (Makefile.am): Substitute it.
19471         * lib/netdb.in.h (gai_strerror): Declare replacement.
19472         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19473         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19474         the fix.
19475
19476         getsockopt: avoid compiler warning
19477         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19478         Reported by Matthias Bolte.
19479
19480         tests: drop unused link dependency
19481         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19482         * modules/dirent-safer-tests (Makefile.am): Likewise.
19483         * modules/fdopendir-tests (Makefile.am): Likewise.
19484         * modules/mkfifoat-tests (Makefile.am): Likewise.
19485         * modules/openat-safer-tests (Makefile.am): Likewise.
19486         * modules/openat-tests (Makefile.am): Likewise.
19487         * modules/readlinkat-tests (Makefile.am): Likewise.
19488         * modules/symlinkat-tests (Makefile.am): Likewise.
19489         * modules/linkat-tests (Makefile.am): Likewise.
19490         (Depends-on): Switch to filenamecat-lgpl.
19491         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19492         LIBINTL.
19493         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19494         * tests/test-linkat.c (main): Don't require xalloc.
19495
19496         hash, mgetgroups: drop xalloc dependency
19497         * lib/hash.c (includes): Adjust includes.
19498         * lib/mgetgroups.c (includes): Likewise.
19499         (xgetgroups): Move...
19500         * lib/xgetgroups.c: ...to new file.
19501         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19502         * modules/xgetgroups: New file, split from...
19503         * modules/mgetgroups: ...here.
19504         (Depends-on): Add xalloc-oversized.
19505         * modules/hash (Depends-on): Likewise.
19506         * modules/hash-tests (Depends-on): Drop xalloc.
19507         (test_hash_LDADD): Drop unused library.
19508         * tests/test-hash.c (main): Break xalloc dependency.
19509         (includes): Drop unused include.
19510
19511         xalloc-oversized: new module
19512         * modules/xalloc-oversized: New module.
19513         * modules/xalloc (Depends-on): Add it.
19514         * lib/xalloc.h (xalloc_oversized): Move...
19515         * lib/xalloc-oversized.h: ...into new file.
19516
19517         utimecmp: drop dependency on xmalloc
19518         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19519         due to memory pressure.
19520         * modules/utimecmp (Depends-on): Drop xalloc.
19521
19522 2011-04-27  Eric Blake  <eblake@redhat.com>
19523
19524         getcwd: fix mingw bugs
19525         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19526         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19527         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19528
19529 2011-04-27  Bruno Haible  <bruno@clisp.org>
19530
19531         mkstemps: Ensure declaration on MacOS X 10.5.
19532         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19533         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19534         MacOS X.
19535
19536 2011-04-27  Bruno Haible  <bruno@clisp.org>
19537
19538         mkstemp: More documentation.
19539         * doc/posix-functions/mkstemp.texi: Document header file problem on
19540         MacOS X.
19541
19542 2011-04-27  Bruno Haible  <bruno@clisp.org>
19543
19544         mkstemp: Tweak configure message when cross-compiling.
19545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19546         result as a guess.
19547
19548 2011-04-27  Bruno Haible  <bruno@clisp.org>
19549
19550         clean-temp: Clarify what it does.
19551         * lib/clean-temp.h: Add more comments.
19552         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19553         module.
19554         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19555         * doc/glibc-functions/mkstemps.texi: Likewise.
19556         * doc/glibc-functions/mkostemps.texi: Likewise.
19557
19558 2011-04-27  Eric Blake  <eblake@redhat.com>
19559
19560         fchdir: avoid extra chdir and fix test
19561         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19562         getcwd-lgpl.
19563         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19564         have to be canonical.
19565         (canonicalize_file_name): Drop unused macro.
19566         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19567
19568         filenamecat-lgpl: fix licence
19569         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19570         when it was first created.
19571
19572         linkat, renameat: add missing dependency
19573         * modules/linkat (Depends-on): Require getcwd-lgpl.
19574         * modules/renameat (Depends-on): Likewise.
19575
19576         tests: reduce dependencies
19577         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19578         * tests/test-renameat.c (main): Likewise.
19579         * modules/linkat-tests (Depends-on): Relax dependency.
19580         * modules/renameat-tests (Depends-on): Likewise.
19581         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19582         dependency explicit.
19583
19584         save-cwd: reduce default dependency
19585         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19586         * lib/save-cwd.c: Update comments.
19587         * NEWS: Document the semantic change.
19588
19589         getcwd: enhance tests
19590         * tests/test-getcwd-lgpl.c: New file, taken from...
19591         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19592         repeat long path stress tests from m4 probe.
19593         * modules/getcwd-lgpl-tests: New module.
19594         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19595         * m4/getcwd-abort-bug.m4: Update comment.
19596         * m4/getcwd-path-max.m4: Likewise.
19597
19598         getcwd-lgpl: new module
19599         * modules/getcwd-lgpl: New module.
19600         * lib/getcwd-lgpl.c: New file.
19601         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19602         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19603         * modules/getcwd (configure.ac): Set C witness.
19604         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19605
19606         getcwd: tweak comments
19607         * m4/getcwd-abort-bug.m4: Fix comments.
19608         * m4/getcwd-path-max.m4: Likewise.
19609         * m4/getcwd.m4: Likewise.
19610
19611 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19612         and Eric Blake  <eblake@redhat.com>
19613
19614         mkstemp: replace if system version uses wrong permissions
19615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19616         read/write mode bits set in file created by mkstemp.
19617         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19618
19619 2011-04-27  Eric Blake  <eblake@redhat.com>
19620
19621         passfd: avoid compiler warning
19622         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19623         Reported by Laine Stump.
19624
19625 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19626
19627         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19628         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19629
19630 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19631         and Eric Blake  <eblake@redhat.com>
19632
19633         mkstemp: mention clean-temp module
19634         * lib/mkstemp.c: Add comment.
19635         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19636
19637 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19638
19639         inttypes: also provide default values for 32-bit tests
19640         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19641         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19642
19643 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19644
19645         strtoumax: remove dependency on strtoimax
19646         This is like the strtoull change of yesterday.
19647         * modules/strtoumax (Files): Add lib/strtoimax.c.
19648         (Depends-on): Remove strtoimax and add verify.
19649
19650         inttypes-incomplete: new module
19651         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19652         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19653         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19654         of gl_INTTYPES_H.
19655         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19656         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19657         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19658         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19659         * modules/strtoumax, modules/xstrtol (Depends-on):
19660         Depend on inttypes-incomplete, not inttypes.
19661         * modules/inttypes-incomplete: New module, containing the contents
19662         of the old modules/inttypes module, except that the Files: section
19663         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19664         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19665         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19666         (Depends-on): Depend only on inttypes-incomplete.
19667         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19668
19669         inttypes: omit now-redundant strtoimax and strtoumax work
19670         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19671         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19672
19673         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19674         This supports apps that need pointers to strtoimax and strtoumax,
19675         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19676         nonexistent functions.  See
19677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19678         et seq.
19679         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19681         a macro.
19682         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19683
19684 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19685
19686         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19687
19688 2011-04-25  Bruno Haible  <bruno@clisp.org>
19689
19690         strtol, strtoul: Mark modules as obsolete.
19691         * modules/strtol (Status, Notice): New sections.
19692         * modules/strtoul (Status, Notice): New sections.
19693
19694 2011-04-25  Bruno Haible  <bruno@clisp.org>
19695
19696         strtod: Remove check for strtod, unless supporting old platforms.
19697         * modules/strtod-obsolete: New file.
19698         * m4/strtod-obsolete.m4: New file.
19699         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19700         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19701         * modules/strtod (Depends-on): Add strtod-obsolete.
19702         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19703
19704 2011-04-25  Bruno Haible  <bruno@clisp.org>
19705
19706         strcase: Make module obsolete.
19707         * modules/strcase (Status, Notice): New sections.
19708
19709 2011-04-25  Bruno Haible  <bruno@clisp.org>
19710
19711         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19712         * modules/dup2-obsolete: New file.
19713         * m4/dup2-obsolete.m4: New file.
19714         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19715         gl_FUNC_DUP2_OBSOLETE is not also defined.
19716         * modules/dup2 (Depends-on): Add dup2-obsolete.
19717         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19718
19719 2011-04-25  Bruno Haible  <bruno@clisp.org>
19720
19721         strnlen: Avoid memchr related link error on old obsolete platforms.
19722         * modules/memchr-obsolete: New file.
19723         * m4/memchr-obsolete.m4: New file.
19724         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19725         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19726         * modules/memchr (Depends-on): Add memchr-obsolete.
19727         * modules/strnlen (Depends-on): Likewise.
19728         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19729
19730 2011-04-25  Jim Meyering  <meyering@redhat.com>
19731
19732         maint.mk: makefile_at_at_check extend and clean up
19733         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19734         in addition to */Makefile.am.
19735         Exempt legitimate uses of @VAR@ notation, e.g.,
19736         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19737         Remove obsolete coreutils-specific comment.
19738         Prompted by discussion here:
19739         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19740
19741 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19742
19743         strtoul: remove dependency on strtol
19744         This is so that 'configure' need not check for strtol merely because
19745         the application needs strtoul.
19746         * modules/strtoul (Files): Add lib/strtol.c.
19747         (Depends-on): Remove strtol.
19748
19749         strtoull: remove dependency on strtoul
19750         This is like the strtoll change.
19751         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19752         (Depends-on): Remove strtoul.
19753
19754         strtoll: remove dependency on strtol
19755         This is so that 'configure' need not check for strtol merely because
19756         the application needs strtoll.
19757         * modules/strtoll (Files): Add lib/strtol.c.
19758         (Depends-on): Remove strtol.
19759
19760 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19761
19762         inttypes: Move some configure check to module 'imaxdiv'.
19763         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19764         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19765         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19766
19767 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19768
19769         inttypes: Move some configure check to module 'imaxabs'.
19770         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19771         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19772         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19773
19774 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19775
19776         inttypes: Remove configure tests that are not needed since 2009-12-31.
19777         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19778         gl_cv_header_working_inttypes_h.
19779
19780 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         * modules/strnlen (Depends-on): Remove memchr.
19783         The strnlen implementation doesn't need the memchr module's fixes; see
19784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19785
19786         strtol: remove dependency on wchar
19787         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19788         * modules/strtol (Depends-on): Remove wchar.
19789
19790 2011-04-21  Eric Blake  <eblake@redhat.com>
19791
19792         passfd: fix test regression on Linux
19793         * modules/passfd-tests (configure.ac): Correct socketpair check.
19794
19795         passfd: speed up configure and drop unused code
19796         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19797         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19798         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19799         Instead of probing at configure for unix_scm_rights_bsd44_way,
19800         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19801         check to a struct member probe.
19802         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19803         (sendfd, recvfd): Update preprocessor checks.
19804         * modules/passfd (Files): Reflect rename, and drop unused file.
19805         (Depends-on): Drop unused dependency.
19806
19807         passfd: allow compilation on mingw
19808         * modules/sys_socket (Depends-on): Add sys_uio.
19809         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19810         iovec and a minimal struct msghdr.
19811         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19812         * tests/test-sys_socket.c (main): Enhance test.
19813         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19814         guaranteed to provide what we need.
19815         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19816         * modules/passfd-tests (Depends-on): Add sys_wait.
19817         * tests/test-passfd.c (main): Skip test on mingw, for now.
19818         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19819         partial 'struct msghdr' implementation.
19820
19821         sys_uio: new module
19822         * modules/sys_uio: New module.
19823         * modules/sys_uio-tests: Likewise.
19824         * lib/sys_uio.in.h: New file.
19825         * m4/sys_uio_h.m4: Likewise.
19826         * tests/test-sys_uio.c: Likewise.
19827         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19828         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19829
19830 2011-04-20  Jim Meyering  <meyering@redhat.com>
19831
19832         useless-if-before-free: avoid false-positive
19833         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19834         disjunct so that it too requires a terminating ";".  Without that,
19835         this script would identify as useless one statement from gcc that
19836         was not:
19837           if (aligned_ptr)
19838             free (((void **) aligned_ptr) [-1]);
19839
19840 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19841
19842         doc: update users.txt.
19843         * users.txt: Add barcode.
19844
19845 2011-04-19  Bruno Haible  <bruno@clisp.org>
19846
19847         ioctl: Remove link dependency on native Windows.
19848         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19849         (gl_close_fn, gl_ioctl_fn): New types.
19850         (struct fd_hook): Renamed from struct close_hook. Change type of
19851         private_close_fn field. Add private_ioctl_fn field.
19852         (close_hook_fn): Add parameter for primary close method.
19853         (execute_close_hooks, execute_all_close_hooks): Likewise.
19854         (ioctl_hook_fn): New type.
19855         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19856         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19857         argument.
19858         (unregister_fd_hook): Renamed from unregister_close_hook.
19859         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19860         Don't include <unistd.h>.
19861         (close): Remove undef.
19862         (anchor): Update.
19863         (execute_close_hooks): Add argument for primary close method.
19864         (execute_all_close_hooks): Likewise.
19865         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19866         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19867         argument. Allow each argument to be NULL.
19868         (unregister_fd_hook): Renamed from unregister_close_hook.
19869         * lib/close.c (rpl_close): Pass 'close' function pointer to
19870         execute_all_close_hooks.
19871         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19872         (primary_ioctl): New function.
19873         (ioctl): Don't call ioctlsocket here. Instead, call
19874         execute_all_ioctl_hooks.
19875         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19876         close method.
19877         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19878         (fd_sockets_hook): Renamed from close_sockets_hook.
19879         (gl_sockets_startup, gl_sockets_cleanup): Update.
19880         * modules/fd-hook: Renamed from modules/close-hook. Update.
19881         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19882         * modules/sockets (Depends-on): Likewise.
19883         * modules/ioctl (Depends-on): Add fd-hook.
19884         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19885         GNULIB_SOCKET.
19886
19887 2011-04-19  Bruno Haible  <bruno@clisp.org>
19888
19889         Move the support of O_NONBLOCK in open() to the 'open' module.
19890         * modules/nonblocking (Depends-on): Remove 'open'.
19891         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19892         gl_cv_have_open_O_NONBLOCK.
19893         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19894         O_NONBLOCK support.
19895         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19896
19897 2011-04-17  Bruno Haible  <bruno@clisp.org>
19898
19899         pipe2: Simplify code.
19900         * lib/pipe2.c (pipe2): Reduce code duplication.
19901
19902 2011-04-17  Bruno Haible  <bruno@clisp.org>
19903
19904         nonblocking: Add comment.
19905         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19906
19907 2011-04-17  Bruno Haible  <bruno@clisp.org>
19908
19909         nonblocking: Add tests for sockets.
19910         * tests/test-nonblocking-socket.sh: New file.
19911         * tests/test-nonblocking-socket-main.c: New file.
19912         * tests/test-nonblocking-socket-child.c: New file.
19913         * tests/test-nonblocking-socket.h: New file.
19914         * tests/socket-server.h: New file.
19915         * tests/socket-client.h: New file.
19916         * modules/nonblocking-socket-tests: New file.
19917         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19918
19919 2011-04-17  Bruno Haible  <bruno@clisp.org>
19920
19921         nonblocking: Add tests for pipes.
19922         * tests/test-nonblocking-pipe.sh: New file.
19923         * tests/test-nonblocking-pipe-main.c: New file.
19924         * tests/test-nonblocking-pipe-child.c: New file.
19925         * tests/test-nonblocking-pipe.h: New file.
19926         * tests/test-nonblocking-writer.h: New file.
19927         * tests/test-nonblocking-reader.h: New file.
19928         * tests/test-nonblocking-misc.h: New file.
19929         * modules/nonblocking-pipe-tests: New file.
19930         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19931
19932 2011-04-16  Bruno Haible  <bruno@clisp.org>
19933
19934         gettext: Clarify the needed programmer actions.
19935         * modules/gettext (Notice): New field.
19936         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19937
19938 2011-04-16  Bruno Haible  <bruno@clisp.org>
19939
19940         strchrnul: Tweak last commit.
19941         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19942         bug.
19943         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19944         as in _GL_FUNCDECL_SYS.
19945         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19946         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19947
19948 2011-04-15  Eric Blake  <eblake@redhat.com>
19949
19950         strchrnul: work around cygwin bug
19951         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19954         * modules/string (Makefile.am): Substitute it.
19955         * lib/string.in.h (strchrnul): Use it.
19956
19957 2011-04-15  Bruno Haible  <bruno@clisp.org>
19958
19959         Don't require lib/stdio-write.c when only module 'stdio' is used.
19960         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19961         invocation.
19962         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19963
19964 2011-04-14  Bruno Haible  <bruno@clisp.org>
19965
19966         Support non-blocking pipe I/O in read() on native Windows.
19967         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19968         (read): New declaration.
19969         * lib/read.c: New file.
19970         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19971         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19972         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19973         vscanf): New declarations.
19974         * lib/stdio-read.c: New file.
19975         * m4/read.m4: New file.
19976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19977         REPLACE_READ.
19978         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19979         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19980         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19981         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19982         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19983         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19984         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19985         * modules/read: New file.
19986         * modules/nonblocking (Files): Add lib/stdio-read.c.
19987         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19988         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19989         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19990         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19991         * modules/pread (Depends-on): Add read.
19992         * modules/safe-read (Depends-on): Likewise.
19993         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19994         gets, scanf, vfscanf, vscanf): Verify signatures.
19995         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19996         problem with non-blocking pipes.
19997         * doc/posix-functions/fgetc.texi: Likewise.
19998         * doc/posix-functions/fgets.texi: Likewise.
19999         * doc/posix-functions/fread.texi: Likewise.
20000         * doc/posix-functions/fscanf.texi: Likewise.
20001         * doc/posix-functions/getc.texi: Likewise.
20002         * doc/posix-functions/getchar.texi: Likewise.
20003         * doc/posix-functions/gets.texi: Likewise.
20004         * doc/posix-functions/scanf.texi: Likewise.
20005         * doc/posix-functions/vfscanf.texi: Likewise.
20006         * doc/posix-functions/vscanf.texi: Likewise.
20007
20008 2011-04-14  Bruno Haible  <bruno@clisp.org>
20009
20010         Support non-blocking pipe I/O in write() on native Windows.
20011         * lib/write.c (rpl_write): Split a write request that failed merely
20012         because the byte count was larger than the pipe buffer's size.
20013         * doc/posix-functions/write.texi: Mention the problem with large byte
20014         counts.
20015
20016 2011-04-14  Bruno Haible  <bruno@clisp.org>
20017
20018         wchar: Ensure that wchar_t gets defined on uClibc.
20019         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20020         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20021
20022 2011-04-13  Bruno Haible  <bruno@clisp.org>
20023
20024         safe-write, full-read: Avoid unnecessary compilation units.
20025         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20026         (Depends-on): Remove safe-read. Add ssize_t.
20027         * modules/full-read (Files): Add lib/full-write.c.
20028         (Depends-on): Add full-write.
20029
20030 2011-04-13  Bruno Haible  <bruno@clisp.org>
20031
20032         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20033         * modules/pwrite (Depends-on): Add 'write'.
20034
20035 2011-04-13  Bruno Haible  <bruno@clisp.org>
20036
20037         Support non-blocking pipe I/O in write() on native Windows.
20038         * lib/unistd.in.h (write): Enable replacement also if
20039         GNULIB_UNISTD_H_NONBLOCKING is 1.
20040         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20041         (rpl_write): When failing to write on a non-blocking pipe, change
20042         errno from ENOSPC to EAGAIN.
20043         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20044         putchar, puts, vfprintf, vprintf): Enable replacement also if
20045         GNULIB_STDIO_H_NONBLOCKING is 1.
20046         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20047         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20048         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20049         CALL_WITH_SIGPIPE_EMULATION.
20050         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20051         * m4/nonblocking.m4: New file.
20052         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20053         for non-blocking I/O support.
20054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20055         GNULIB_UNISTD_H_NONBLOCKING.
20056         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20057         required for non-blocking I/O support.
20058         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20059         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20060         lib/stdio-write.c, m4/asm-underscore.m4.
20061         (Depends-on): Add stdio, unistd.
20062         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20063         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20064         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20065         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20066         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20067         problem with non-blocking pipes.
20068         * doc/posix-functions/fputc.texi: Likewise.
20069         * doc/posix-functions/fputs.texi: Likewise.
20070         * doc/posix-functions/fwrite.texi: Likewise.
20071         * doc/posix-functions/printf.texi: Likewise.
20072         * doc/posix-functions/putc.texi: Likewise.
20073         * doc/posix-functions/putchar.texi: Likewise.
20074         * doc/posix-functions/puts.texi: Likewise.
20075         * doc/posix-functions/vfprintf.texi: Likewise.
20076         * doc/posix-functions/vprintf.texi: Likewise.
20077         * doc/posix-functions/write.texi: Likewise.
20078
20079 2011-04-10  Jim Meyering  <meyering@redhat.com>
20080
20081         maint.mk: prohibit doubled words
20082         Detect them also when they're separated by a newline.
20083         There are 3 ways to customize it:
20084           - disable the test on a per file basis, as usual with rules using
20085             $(VC_LIST_EXCEPT)
20086           - replace the default doubled-word-selecting regexp (affects all files)
20087           - ignore a particular file-vs-doubled-word match
20088         I nearly used that last one to ignore the "is is" match in
20089         coreutils' NEWS file, since the text was "ls -is is ..."
20090         To do that, I would have added this line to cfg.mk:
20091           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20092         but it would have ignored any "is is" match in NEWS.
20093         Low probability, but still...
20094         Instead, I changed the text, slightly:
20095           -  ls -is is now consistent with ls -lis in ignoring values returned
20096           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20097         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20098         (prohibit_doubled_word_): Define.
20099         (sc_prohibit_doubled_word): New rule.
20100         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20101
20102 2011-04-10  Jim Meyering  <meyering@redhat.com>
20103
20104         maint: fix doubled-word typo in comment
20105         * m4/gethostname.m4: s/is is/it is/
20106         * m4/getdomainname.m4: Likewise.
20107
20108 2011-04-10  Jim Meyering  <meyering@redhat.com>
20109
20110         maint: remove doubled word: s/it it/it/
20111         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20112
20113 2011-04-10  Jim Meyering  <meyering@redhat.com>
20114
20115         maint.mk: remove useless semicolon and backslash
20116         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20117         semicolon and backslash.
20118
20119 2011-04-10  Bruno Haible  <bruno@clisp.org>
20120
20121         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20122         * modules/stdint-tests (Depends-on): Add wchar.
20123
20124 2011-04-10  Jim Meyering  <meyering@redhat.com>
20125
20126         maint: remove doubled words in comments, e.g., s/a a/a/
20127         * lib/strptime.c (day_of_the_week): s/the the/the/
20128         * tests/test-chown.h (test_chown): s/a a/a/
20129
20130         test-chown.h: correct a cast
20131         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20132         when the destination is a stat.st_gid.
20133
20134 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20135
20136         getaddrinfo: Fix test for sa_len member.
20137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20138         include <sys/types.h> before <sys/socket.h>.
20139
20140 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20141
20142         maint: change "can not" to "cannot"
20143         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20144         boundaries.
20145
20146 2011-04-09  Jim Meyering  <meyering@redhat.com>
20147
20148         maint: change "a a" to "a"
20149         * tests/test-lchown.h (test_lchown): s/a a/a/
20150
20151         maint.mk: prohibit \<the the\>
20152         * top/maint.mk (sc_prohibit_the_the): New rule.
20153
20154         maint: fix "the the" in comment
20155         * lib/count-one-bits.h: s/the the/the/
20156
20157         maint: change "can not" to "cannot"
20158         But do not change the occurrences in maintain.texi or in
20159         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20160         * doc/gnulib-tool.texi: s/can not/cannot/
20161         * doc/posix-functions/accept.texi (accept): Likewise.
20162         * doc/posix-functions/socket.texi (socket): Likewise.
20163         * lib/mbrtowc.c: Likewise.
20164
20165         maint.mk: prohibit use of "can not"
20166         * top/maint.mk (sc_prohibit_can_not): New rule.
20167         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20168
20169 2011-04-09  Bruno Haible  <bruno@clisp.org>
20170
20171         careadlinkat: Guard against misuse of careadlinkatcwd.
20172         * lib/careadlinkat.c: Include <stdlib.h>.
20173         (careadlinkatcwd): Check that the fd argument is as expected.
20174
20175 2011-04-09  Bruno Haible  <bruno@clisp.org>
20176
20177         careadlinkat: Use common coding style.
20178         * lib/careadlinkat.c: Move gnulib includes after system includes.
20179
20180 2011-04-09  Bruno Haible  <bruno@clisp.org>
20181
20182         careadlinkat: Clarify specification.
20183         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20184         (careadlinkatcwd): Add comment.
20185         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20186
20187 2011-04-09  Bruno Haible  <bruno@clisp.org>
20188
20189         areadlinkat: Avoid link error on many platforms.
20190         * modules/areadlinkat (Depends-on): Add areadlink.
20191
20192 2011-04-09  Bruno Haible  <bruno@clisp.org>
20193
20194         allocator, careadlinkat: Fix double-inclusion guard.
20195         * lib/allocator.h: Fix double-inclusion guard.
20196         * lib/careadlinkat.h: Likewise.
20197
20198 2011-04-09  Bruno Haible  <bruno@clisp.org>
20199
20200         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20201         * lib/relocwrapper.c: Update dependencies hierarchy.
20202         * build-aux/install-reloc: Update list of files to be compiled.
20203         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20204         lib/allocator.[hc].
20205
20206 2011-04-08  Eric Blake  <eblake@redhat.com>
20207
20208         strftime: silence gnulib-tool warning
20209         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20210
20211 2011-04-08  Bruno Haible  <bruno@clisp.org>
20212
20213         verify: Fix syntax error with GCC 4.6 in C++ mode.
20214         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20215         (HAVE_STATIC_ASSERT): New macro.
20216         (verify_true, verify): Use 'static_assert' if it is supported and
20217         '_Static_assert' is not supported.
20218
20219 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20220
20221         allocator: New module.
20222         * modules/allocator, lib/allocator.c: New files.
20223         * lib/allocator.h (stdlib_allocator): New decl.
20224         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20225         Remove.  Do not include <stdlib.h>.
20226         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20227         * modules/careadlinkat (Files): Remove lib/allocator.h.
20228         (Depends-on): Add allocator.
20229
20230         stdlib: let modules use system malloc, realloc
20231         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20232         if !_GL_USE_STDLIB_ALLOC.
20233         (malloc, realloc): Limit this change to a smaller scope.
20234
20235         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20236         (malloc, realloc): Don't #undef; no longer needed.
20237         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20238         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20239         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20240         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20241         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20242         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20243         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20244         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20245
20246         careadlinkat: rename members to avoid problem
20247         * lib/allocator.h (struct allocator): Rename members from
20248         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20249         and realloc are #define'd.  Reported by Eric Blake in
20250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20251         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20252
20253 2011-04-08  Eric Blake  <eblake@redhat.com>
20254
20255         nonblocking: reduce dependency
20256         * tests/test-nonblocking.c: Only test sockets when in use.
20257         * modules/nonblocking-tests (Depends-on): Drop socket.
20258         (Makefile.am): Link even if sockets are not present.
20259         * modules/pipe2-tests (Makefile.am): Likewise.
20260         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20261
20262         pipe2: fix O_NONBLOCK support on mingw
20263         * modules/pipe2 (Depends-on): Add nonblocking.
20264         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20265         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20266         * tests/test-nonblocking.c (main): Likewise.
20267         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20268
20269         fcntl-h: fix O_ACCMODE on cygwin
20270         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20271         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20272
20273         pipe-filter: drop O_NONBLOCK workarounds
20274         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20275         * modules/pipe-filter-ii (Depends-on): Likewise.
20276         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20277
20278         nonblocking: provide O_NONBLOCK for mingw
20279         * modules/nonblocking (Depends-on): Add open.
20280         (configure.ac): Set new witness macro.
20281         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20282         * modules/fcntl-h (Makefile.am): Substitute it.
20283         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20284         nonblocking module is in use.
20285         * lib/nonblocking.c: Adjust portability test.
20286         * lib/open.c (open): Don't let native open see gnulib flag.
20287         * tests/test-fcntl-h.c (main): Enhance test.
20288         * tests/test-open.h (test_open): Likewise.
20289         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20290
20291         careadlinkat: fix compilation error on mingw
20292         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20293         within struct allocator.
20294
20295 2011-04-06  Eric Blake  <eblake@redhat.com>
20296
20297         binary-io: relicense under LGPLv2+
20298         * modules/binary-io (License): Relax to LGPLv2+.
20299         Requested for libvirt, and required by pipe2.
20300
20301 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20302
20303         verify: use _Static_assert if available
20304         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20305         (verify_true, verify): Use it if available.  This generates better
20306         diagnostics with GCC 4.6.0 and later.
20307
20308 2011-04-05  Bruno Haible  <bruno@clisp.org>
20309
20310         Remove leftover generated .h files after config.status changed.
20311
20312         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20313         GL_GENERATE_ALLOCA_H.
20314         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20315         GL_GENERATE_ALLOCA_H evaluates to false.
20316
20317         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20318         GL_GENERATE_ARGZ_H.
20319         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20320         evaluates to false.
20321
20322         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20323         GL_GENERATE_BYTESWAP_H.
20324         * modules/byteswap (Makefile.am): Remove byteswap.h if
20325         GL_GENERATE_BYTESWAP_H evaluates to false.
20326
20327         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20328         GL_GENERATE_ERRNO_H.
20329         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20330         evaluates to false.
20331
20332         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20333         GL_GENERATE_FLOAT_H.
20334         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20335         evaluates to false.
20336
20337         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20338         GL_GENERATE_FNMATCH_H.
20339         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20340         GL_GENERATE_FNMATCH_H evaluates to false.
20341
20342         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20343         GL_GENERATE_GLOB_H.
20344         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20345         evaluates to false.
20346
20347         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20348         automake conditional GL_GENERATE_ICONV_H.
20349         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20350         evaluates to false.
20351
20352         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20353         GL_GENERATE_NETINET_IN_H.
20354         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20355         GL_GENERATE_NETINET_IN_H evaluates to false.
20356
20357         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20358         conditional GL_GENERATE_PTHREAD_H.
20359         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20360         * modules/pthread (Makefile.am): Remove pthread.h if
20361         GL_GENERATE_PTHREAD_H evaluates to false.
20362
20363         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20364         GL_GENERATE_SCHED_H.
20365         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20366         evaluates to false.
20367
20368         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20369         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20370         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20371         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20372
20373         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20374         GL_GENERATE_STDARG_H.
20375         * modules/stdarg (Makefile.am): Remove stdarg.h if
20376         GL_GENERATE_STDARG_H evaluates to false.
20377
20378         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20379         GL_GENERATE_STDBOOL_H.
20380         * modules/stdbool (Makefile.am): Remove stdbool.h if
20381         GL_GENERATE_STDBOOL_H evaluates to false.
20382
20383         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20384         conditional GL_GENERATE_STDDEF_H.
20385         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20386         * modules/stddef (Makefile.am): Remove stddef.h if
20387         GL_GENERATE_STDDEF_H evaluates to false.
20388
20389         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20390         GL_GENERATE_STDINT_H.
20391         * modules/stdint (Makefile.am): Remove stdint.h if
20392         GL_GENERATE_STDINT_H evaluates to false.
20393
20394         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20395         GL_GENERATE_SYSEXITS_H.
20396         * modules/sysexits (Makefile.am): Remove sysexits.h if
20397         GL_GENERATE_SYSEXITS_H evaluates to false.
20398
20399         Reported by Karl Berry and Ralf Wildenhues.
20400
20401 2011-04-05  Bruno Haible  <bruno@clisp.org>
20402
20403         Ensure to rebuild generated .h files when config.status has changed.
20404         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20405         config.status.
20406         * modules/ctype (Makefile.am): Likewise.
20407         * modules/dirent (Makefile.am): Likewise.
20408         * modules/errno (Makefile.am): Likewise.
20409         * modules/fcntl-h (Makefile.am): Likewise.
20410         * modules/float (Makefile.am): Likewise.
20411         * modules/getopt-posix (Makefile.am): Likewise.
20412         * modules/glob (Makefile.am): Likewise.
20413         * modules/iconv-h (Makefile.am): Likewise.
20414         * modules/inttypes (Makefile.am): Likewise.
20415         * modules/langinfo (Makefile.am): Likewise.
20416         * modules/locale (Makefile.am): Likewise.
20417         * modules/math (Makefile.am): Likewise.
20418         * modules/netdb (Makefile.am): Likewise.
20419         * modules/netinet_in (Makefile.am): Likewise.
20420         * modules/poll-h (Makefile.am): Likewise.
20421         * modules/pthread (Makefile.am): Likewise.
20422         * modules/pty (Makefile.am): Likewise.
20423         * modules/sched (Makefile.am): Likewise.
20424         * modules/search (Makefile.am): Likewise.
20425         * modules/selinux-h (Makefile.am): Likewise.
20426         * modules/signal (Makefile.am): Likewise.
20427         * modules/spawn (Makefile.am): Likewise.
20428         * modules/stdarg (Makefile.am): Likewise.
20429         * modules/stdbool (Makefile.am): Likewise.
20430         * modules/stddef (Makefile.am): Likewise.
20431         * modules/stdint (Makefile.am): Likewise.
20432         * modules/stdio (Makefile.am): Likewise.
20433         * modules/stdlib (Makefile.am): Likewise.
20434         * modules/string (Makefile.am): Likewise.
20435         * modules/strings (Makefile.am): Likewise.
20436         * modules/sys_file (Makefile.am): Likewise.
20437         * modules/sys_ioctl (Makefile.am): Likewise.
20438         * modules/sys_select (Makefile.am): Likewise.
20439         * modules/sys_socket (Makefile.am): Likewise.
20440         * modules/sys_stat (Makefile.am): Likewise.
20441         * modules/sys_time (Makefile.am): Likewise.
20442         * modules/sys_times (Makefile.am): Likewise.
20443         * modules/sys_utsname (Makefile.am): Likewise.
20444         * modules/sys_wait (Makefile.am): Likewise.
20445         * modules/sysexits (Makefile.am): Likewise.
20446         * modules/termios (Makefile.am): Likewise.
20447         * modules/time (Makefile.am): Likewise.
20448         * modules/unistd (Makefile.am): Likewise.
20449         * modules/wchar (Makefile.am): Likewise.
20450         * modules/wctype-h (Makefile.am): Likewise.
20451         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20452
20453 2011-04-05  Bruno Haible  <bruno@clisp.org>
20454
20455         pipe2: Relicense under LGPLv2+.
20456         * modules/pipe2 (License): Change to LGPLv2+.
20457         Requested by Eric Blake, for libvirt.
20458
20459 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20460
20461         bootstrap: compute gnulib_extra_files after updating build_aux
20462         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20463         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20464
20465 2011-04-05  Eric Blake  <eblake@redhat.com>
20466
20467         bootstrap: preserve git whitelist item sorting
20468         * build-aux/bootstrap (sort_patterns): New function.
20469         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20470
20471 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20472
20473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20474         sc_space_tab check.
20475
20476 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20477
20478         areadlink, areadlinkat: rewrite in terms of careadlinkat
20479         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20480         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20481         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20482         (malloc, realloc): Remove #undefs.
20483         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20484         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20485         readlink, ssize_t, stdint, unistd.
20486         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20487         areadlink, stdint.
20488
20489         careadlinkat: new module
20490         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20491         * modules/careadlinkat: New files, written by me with
20492         a review and feedback from Ben Pfaff in
20493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20494
20495 2011-04-01  Bruno Haible  <bruno@clisp.org>
20496
20497         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20498         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20499         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20500         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20501         Reported by Bruce Korb <bruce.korb@gmail.com>.
20502
20503 2011-04-01  Bruno Haible  <bruno@clisp.org>
20504
20505         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20506         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20507         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20508         * modules/wcpcpy (Depends-on): Add extensions.
20509         * modules/wcpncpy (Depends-on): Likewise.
20510         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20511         systems.
20512         * doc/posix-functions/wcpncpy.texi: Likewise.
20513         * doc/posix-functions/wcwidth.texi: Likewise.
20514
20515 2011-03-31  Eric Blake  <eblake@redhat.com>
20516
20517         nonblocking: fix mingw test failures
20518         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20519         non-blocking flag on regular file.
20520         (get_nonblocking_flag): Set errno on invalid fd.
20521         * tests/test-nonblocking.c (main): Avoid test failure on
20522         directories if fchdir is not active.
20523         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20524
20525 2011-03-31  Bruno Haible  <bruno@clisp.org>
20526
20527         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20528         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20529         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20530         Reported by Simon Josefsson <simon@josefsson.org>.
20531
20532 2011-03-31  Bruno Haible  <bruno@clisp.org>
20533         and Eric Blake  <eblake@redhat.com>
20534
20535         nonblocking: new module
20536         * modules/nonblocking: New module.
20537         * modules/nonblocking-tests: Likewise.
20538         * lib/nonblocking.h: New file.
20539         * lib/nonblocking.c: Likewise.
20540         * tests/test-nonblocking.c: New test.
20541         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20542
20543 2011-03-30  Bruno Haible  <bruno@clisp.org>
20544
20545         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20546         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20547         instead of 'printf' format for GCC >= 4.4.
20548         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20549         (fprintf, printf, vfprintf, vprintf): Declare with
20550         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20551         the system's vfprintf() function.
20552         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20553
20554 2011-03-30  Eric Blake  <eblake@redhat.com>
20555
20556         passfd: fix scoping bug
20557         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20558         before sendmsg/recvmsg.
20559
20560         passfd: standardize coding conventions
20561         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20562         can be learned at compile time.
20563         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20564         ifdefs.
20565         (sendfd, recvfd): Follow gnulib code conventions.
20566
20567         passfd: fix incorrect sendmsg arguments
20568         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20569         incorrect msg_controllen value.
20570         * modules/passfd-tests (Depends-on): Check for alarm.
20571         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20572         Reported by Bastien ROUCARIES.
20573
20574 2011-03-30  Bruno Haible  <bruno@clisp.org>
20575
20576         c-strcasestr: Relicense under LGPLv2+.
20577         * modules/c-strcasestr (License): Change to LGPLv2+.
20578         Requested by Eric Blake, for libvirt.
20579
20580 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20581
20582         * users.txt: Add libidn2.  Fix libtasn1 link.
20583
20584 2011-03-30  Jim Meyering  <meyering@redhat.com>
20585
20586         tests: readlink* ("",... fails with EINVAL on newer kernels
20587         readlink and readlinkat have typically failed with ENOENT for
20588         the invalid, empty file name,  "".  However, with the advent
20589         of linux-2.6.39, they fail with EINVAL.
20590         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20591         when operating on the empty file name.
20592         * tests/test-readlink.h (test_readlink): Likewise.
20593
20594 2011-03-29  Bruno Haible  <bruno@clisp.org>
20595
20596         Relicense some modules under LGPLv2+, for libidn2.
20597         * modules/array-mergesort (License): Change to LGPLv2+.
20598         * modules/c-strcaseeq (License): Likewise.
20599         * modules/striconveh (License): Likewise.
20600         * modules/striconveha (License): Likewise.
20601         * modules/uniconv/base (License): Likewise.
20602         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20603         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20604         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20605         * modules/unictype/base (License): Likewise.
20606         * modules/unictype/bidiclass-of (License): Likewise.
20607         * modules/unictype/category-M (License): Likewise.
20608         * modules/unictype/category-none (License): Likewise.
20609         * modules/unictype/category-of (License): Likewise.
20610         * modules/unictype/category-test (License): Likewise.
20611         * modules/unictype/category-test-withtable (License): Likewise.
20612         * modules/unictype/combining-class (License): Likewise.
20613         * modules/unictype/joiningtype-of (License): Likewise.
20614         * modules/unictype/scripts (License): Likewise.
20615         * modules/uninorm/base (License): Likewise.
20616         * modules/uninorm/canonical-decomposition (License): Likewise.
20617         * modules/uninorm/composition (License): Likewise.
20618         * modules/uninorm/decompose-internal (License): Likewise.
20619         * modules/uninorm/decomposition-table (License): Likewise.
20620         * modules/uninorm/nfc (License): Likewise.
20621         * modules/uninorm/nfd (License): Likewise.
20622         * modules/uninorm/u32-normalize (License): Likewise.
20623         * modules/unistr/base (License): Likewise.
20624         * modules/unistr/u32-cpy (License): Likewise.
20625         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20626         * modules/unistr/u32-to-u8 (License): Likewise.
20627         * modules/unistr/u32-uctomb (License): Likewise.
20628         * modules/unistr/u8-check (License): Likewise.
20629         * modules/unistr/u8-mblen (License): Likewise.
20630         * modules/unistr/u8-mbtouc (License): Likewise.
20631         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20632         * modules/unistr/u8-mbtoucr (License): Likewise.
20633         * modules/unistr/u8-prev (License): Likewise.
20634         * modules/unistr/u8-strlen (License): Likewise.
20635         * modules/unistr/u8-to-u32 (License): Likewise.
20636         * modules/unistr/u8-uctomb (License): Likewise.
20637         * modules/unitypes (License): Likewise.
20638         Requested by Simon Josefsson.
20639
20640 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20641
20642         lib-symbol-visibility: Add a notice.
20643         * modules/lib-symbol-visibility (Notice): New field.
20644
20645 2011-03-29  Bruno Haible  <bruno@clisp.org>
20646
20647         getaddrinfo: Doc fix.
20648         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20649         section "fixed in Gnulib".
20650
20651 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20652
20653         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20654         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20655
20656 2011-03-26  Bruno Haible  <bruno@clisp.org>
20657
20658         unictype/property-byname: Reduce the number of load-time relocations.
20659         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20660         (UC_PROPERTY_INDEX_*): New enumeration values.
20661         (uc_property_byname): Convert an index from the lookup table to an
20662         uc_property_t.
20663         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20664         values.
20665
20666 2011-03-26  Bruno Haible  <bruno@clisp.org>
20667
20668         unictype/property-byname: Allow omitted word separators and aliases.
20669         * lib/unictype/pr_byname.gperf: Add property names without word
20670         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20671         for 'space'.
20672
20673 2011-03-26  Bruno Haible  <bruno@clisp.org>
20674
20675         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20676         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20677         also hyphens to space.
20678         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20679         without spaces.
20680         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20681
20682 2011-03-26  Bruno Haible  <bruno@clisp.org>
20683
20684         unictype/joiningtype-byname: Recognize long names as well.
20685         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20686         a long name.
20687         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20688         unictype/joiningtype_byname.h.
20689         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20690         * lib/unictype/joiningtype_byname.gperf: New file.
20691         * modules/unictype/joiningtype-byname (Files): Add
20692         lib/unictype/joiningtype_byname.gperf.
20693         (Depends-on): Add gperf.
20694         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20695         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20696         long names.
20697
20698         Tests for module 'unictype/joiningtype-longname'.
20699         * modules/unictype/joiningtype-longname-tests: New file.
20700         * tests/unictype/test-joiningtype_longname.c: New file.
20701
20702         New module 'unictype/joiningtype-longname'.
20703         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20704         * lib/unictype/joiningtype_longname.c: New file.
20705         * modules/unictype/joiningtype-longname: New file.
20706         * modules/unictype/joiningtype-all (Depends-on): Add
20707         unictype/joiningtype-longname.
20708
20709 2011-03-26  Bruno Haible  <bruno@clisp.org>
20710
20711         unictype/bidiclass-byname: Recognize long names as well.
20712         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20713         name.
20714         * lib/unictype/bidi_byname.c: Include <string.h>,
20715         unictype/bidi_byname.h.
20716         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20717         * lib/unictype/bidi_byname.gperf: New file.
20718         * modules/unictype/bidiclass-byname (Files): Add
20719         lib/unictype/bidi_byname.gperf.
20720         (Depends-on): Add gperf.
20721         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20722         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20723         long names.
20724
20725         Tests for module 'unictype/bidiclass-longname'.
20726         * modules/unictype/bidiclass-longname-tests: New file.
20727         * tests/unictype/test-bidi_longname.c: New file.
20728
20729         New module 'unictype/bidiclass-longname'.
20730         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20731         * lib/unictype/bidi_longname.c: New file.
20732         * modules/unictype/bidiclass-longname: New file.
20733         * modules/unictype/bidiclass-all (Depends-on): Add
20734         unictype/bidiclass-longname.
20735
20736 2011-03-26  Bruno Haible  <bruno@clisp.org>
20737
20738         unictype/bidi*: Rename modules.
20739         * modules/unictype/bidiclass-all: Renamed from
20740         modules/unictype/bidicategory-all.
20741         * modules/unictype/bidiclass-name: Renamed from
20742         modules/unictype/bidiclass-name.
20743         (Description): Update.
20744         * modules/unictype/bidiclass-name-tests: Renamed from
20745         modules/unictype/bidicategory-name-tests.
20746         * modules/unictype/bidiclass-byname: Renamed from
20747         modules/unictype/bidicategory-byname.
20748         (Description): Update.
20749         * modules/unictype/bidiclass-byname-tests: Renamed from
20750         modules/unictype/bidicategory-byname-tests.
20751         * modules/unictype/bidiclass-of: Renamed from
20752         modules/unictype/bidicategory-of.
20753         (Description): Update.
20754         * modules/unictype/bidiclass-of-tests: Renamed from
20755         modules/unictype/bidicategory-of-tests.
20756         * modules/unictype/bidiclass-test: Renamed from
20757         modules/unictype/bidicategory-test.
20758         (Description): Update.
20759         * modules/unictype/bidiclass-test-tests: Renamed from
20760         modules/unictype/bidicategory-test-tests.
20761         * modules/unictype/bidicategory-all: New file, a simple redirection.
20762         * modules/unictype/bidicategory-name: Likewise.
20763         * modules/unictype/bidicategory-byname: Likewise.
20764         * modules/unictype/bidicategory-of: Likewise.
20765         * modules/unictype/bidicategory-test: Likewise.
20766         * modules/unictype/property-bidi-* (Dependencies): Update.
20767         * lib/unictype/bidi_*.c: Update comment.
20768
20769 2011-03-26  Bruno Haible  <bruno@clisp.org>
20770
20771         unictype/bidi*: Rename functions, part 2.
20772         * modules/unictype/bidicategory-name (configure.ac): Update required
20773         libunistring version.
20774         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20775
20776 2011-03-25  Bruno Haible  <bruno@clisp.org>
20777
20778         New module 'unictype/combining-class-all'.
20779         * modules/unictype/combining-class-all: New file.
20780
20781         Tests for module 'unictype/combining-class-byname'.
20782         * modules/unictype/combining-class-byname-tests: New file.
20783         * tests/unictype/test-combiningclass_byname.c: New file.
20784
20785         New module 'unictype/combining-class-byname'.
20786         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20787         * lib/unictype/combiningclass_byname.c: New file.
20788         * lib/unictype/combiningclass_byname.gperf: New file.
20789         * modules/unictype/combining-class-byname: New file.
20790
20791         Tests for module 'unictype/combining-class-longname'.
20792         * modules/unictype/combining-class-longname-tests: New file.
20793         * tests/unictype/test-combiningclass_longname.c: New file.
20794
20795         New module 'unictype/combining-class-longname'.
20796         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20797         * lib/unictype/combiningclass_longname.c: New file.
20798         * modules/unictype/combining-class-longname: New file.
20799
20800         Tests for module 'unictype/combining-class-name'.
20801         * modules/unictype/combining-class-name-tests: New file.
20802         * tests/unictype/test-combiningclass_name.c: New file.
20803
20804         New module 'unictype/combining-class-name'.
20805         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20806         * lib/unictype/combiningclass_name.c: New file.
20807         * modules/unictype/combining-class-name: New file.
20808
20809 2011-03-25  Bruno Haible  <bruno@clisp.org>
20810
20811         unictype/combining-class: Rename source files.
20812         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20813         of unictype/combining.h.
20814         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20815         Update.
20816         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20817         * modules/unictype/combining-class (Description): Fix.
20818         (Files, Makefile.am): Update.
20819         * tests/unictype/test-combiningclass.c: Renamed from
20820         tests/unictype/test-combining.c.
20821         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20822
20823 2011-03-25  Bruno Haible  <bruno@clisp.org>
20824
20825         unictype: Update list of canonical combining classes.
20826         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20827
20828 2011-03-25  Bruno Haible  <bruno@clisp.org>
20829
20830         unictype/category-byname: Recognize long names as well.
20831         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20832         a long name.
20833         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20834         unictype/categ_byname.h.
20835         (UC_CATEGORY_INDEX_*): New enumeration values.
20836         (uc_general_category_byname): Use uc_general_category_lookup and
20837         convert from index to value.
20838         * lib/unictype/categ_byname.gperf: New file.
20839         * modules/unictype/category-byname (Files): Add
20840         lib/unictype/categ_byname.gperf.
20841         (Depends-on): Add gperf.
20842         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20843         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20844         long names.
20845
20846         Tests for module 'unictype/category-longname'.
20847         * modules/unictype/category-longname-tests: New file.
20848         * tests/unictype/test-categ_longname.c: New file.
20849
20850         New module 'unictype/category-longname'.
20851         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20852         * lib/unictype/categ_longname.c: New file.
20853         * modules/unictype/category-longname: New file.
20854         * modules/unictype/category-all (Depends-on): Add it.
20855
20856 2011-03-25  Bruno Haible  <bruno@clisp.org>
20857
20858         Tests for module 'unictype/category-LC'.
20859         * modules/unictype/category-LC-tests: New file.
20860         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20861
20862         New module 'unictype/category-LC'.
20863         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20864         (UC_CATEGORY_LC): New declaration.
20865         (UC_CASED_LETTER): New macro.
20866         * lib/gen-uni-tables.c (is_category_LC): New function.
20867         (output_categories): Also handle category LC.
20868         (UC_CATEGORY_MASK_LC): New enumeration value.
20869         (general_category_byname): Also handle category LC.
20870         * lib/unictype/categ_LC.c: New file.
20871         * lib/unictype/categ_LC.h: New file, automatically generated.
20872         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20873         category LC.
20874         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20875         * modules/unictype/category-LC: New file.
20876         * modules/unictype/category-byname (Depends-on): Add
20877         unictype/category-LC.
20878         * modules/unictype/category-all (Depends-on): Likewise.
20879
20880 2011-03-25  Eric Blake  <eblake@redhat.com>
20881
20882         xmalloc: revert yesterday's regression
20883         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20884         realloc's underlying behavior (allowing allocation of zero-size
20885         objects, especially if malloc-gnu is also in use).
20886
20887 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20888
20889         maint.mk: add missing version to VC-tag
20890         * top/maint.mk: git tag was missing actual tag name; add it.
20891
20892         valgrind: do leak checking, and exit with code 1 on error (not 0)
20893         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20894         to VALGRIND.
20895
20896 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20897
20898         posix-modules: say what it does.
20899         * posix-modules: Add a line to the --help output saying what it does.
20900
20901 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         xmalloc: Do not leak if underlying realloc is C99 compatible.
20904         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20905         This avoids a leak on C99-based systems.  See
20906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20907
20908 2011-03-24  Eric Blake  <eblake@redhat.com>
20909
20910         realloc: document portability problem
20911         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20912         passing 0 size to realloc.
20913
20914 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20915
20916         doc: update users.txt
20917         * users.txt: Add cvsps, tmpwatch
20918
20919 2011-03-23  Matt Rice  <ratmice@gmail.com>
20920
20921         doc: update users.txt
20922         * users.txt: Add gdb.
20923
20924 2011-03-23  Jim Meyering  <meyering@redhat.com>
20925
20926         doc: update users.txt
20927         Looking through matches up to the following URL (there are still
20928         several more pages), I found several projects that use gnulib:
20929         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20930         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20931         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20932
20933 2011-03-22  Bruno Haible  <bruno@clisp.org>
20934
20935         unictype/bidi*: Rename functions.
20936         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20937         uc_bidi_class, uc_is_bidi_class): New declarations.
20938         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20939         uc_bidi_category_byname.
20940         (uc_bidi_category_byname): New function.
20941         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20942         u_bidi_category_name.
20943         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20944         (uc_bidi_category_name): New function.
20945         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20946         uc_bidi_category.
20947         (uc_bidi_category): New function.
20948         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20949         uc_is_bidi_category. Invoke uc_bidi_class.
20950         (uc_is_bidi_category): New function.
20951         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20952         instead of uc_bidi_category_byname.
20953         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20954         instead of uc_bidi_category_name.
20955         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20956         uc_bidi_category.
20957         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20958         instead of uc_is_bidi_category.
20959
20960 2011-03-21  Bruno Haible  <bruno@clisp.org>
20961
20962         New module 'unictype/joininggroup-all'.
20963         * modules/unictype/joininggroup-all: New file.
20964
20965         Tests for module 'unictype/joininggroup-of'.
20966         * modules/unictype/joininggroup-of-tests: New file.
20967         * tests/unictype/test-joininggroup_of.c: New file.
20968         * tests/unictype/test-joininggroup_of.h: New file, automatically
20969         generated by gen-uni-tables.
20970
20971         New module 'unictype/joininggroup-of'.
20972         * modules/unictype/joininggroup-of: New file.
20973         * lib/unictype/joininggroup_of.c: New file.
20974         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20975         gen-uni-tables.
20976
20977         Tests for module 'unictype/joininggroup-byname'.
20978         * modules/unictype/joininggroup-byname-tests: New file.
20979         * tests/unictype/test-joininggroup_byname.c: New file.
20980
20981         New module 'unictype/joininggroup-byname'.
20982         * modules/unictype/joininggroup-byname: New file.
20983         * lib/unictype/joininggroup_byname.c: New file.
20984         * lib/unictype/joininggroup_byname.gperf: New file.
20985
20986         Tests for module 'unictype/joininggroup-name'.
20987         * modules/unictype/joininggroup-name-tests: New file.
20988         * tests/unictype/test-joininggroup_name.c: New file.
20989
20990         New module 'unictype/joininggroup-name'.
20991         * modules/unictype/joininggroup-name: New file.
20992         * lib/unictype/joininggroup_name.c: New file.
20993         * lib/unictype/joininggroup_name.h: New file.
20994
20995         New module 'unictype/joiningtype-all'.
20996         * modules/unictype/joiningtype-all: New file.
20997
20998         Tests for module 'unictype/joiningtype-of'.
20999         * modules/unictype/joiningtype-of-tests: New file.
21000         * tests/unictype/test-joiningtype_of.c: New file.
21001         * tests/unictype/test-joiningtype_of.h: New file, automatically
21002         generated by gen-uni-tables.
21003
21004         New module 'unictype/joiningtype-of'.
21005         * modules/unictype/joiningtype-of: New file.
21006         * lib/unictype/joiningtype_of.c: New file.
21007         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21008         gen-uni-tables.
21009
21010         Tests for module 'unictype/joiningtype-byname'.
21011         * modules/unictype/joiningtype-byname-tests: New file.
21012         * tests/unictype/test-joiningtype_byname.c: New file.
21013
21014         New module 'unictype/joiningtype-byname'.
21015         * modules/unictype/joiningtype-byname: New file.
21016         * lib/unictype/joiningtype_byname.c: New file.
21017
21018         Tests for module 'unictype/joiningtype-name'.
21019         * modules/unictype/joiningtype-name-tests: New file.
21020         * tests/unictype/test-joiningtype_name.c: New file.
21021
21022         New module 'unictype/joiningtype-name'.
21023         * modules/unictype/joiningtype-name: New file.
21024         * lib/unictype/joiningtype_name.c: New file.
21025
21026         unictype: Add support for Arabic shaping properties.
21027         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21028         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21029         declarations.
21030         (UC_JOINING_GROUP_*): New enumeration values.
21031         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21032         declarations.
21033         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21034         (unicode_joining_type): New variable.
21035         (UC_JOINING_GROUP_*): New enumeration values.
21036         (unicode_joining_group): New variable.
21037         (fill_arabicshaping, joining_type_as_c_identifier,
21038         output_joining_type_test, output_joining_type,
21039         joining_group_as_c_identifier, output_joining_group_test,
21040         output_joining_group): New functions.
21041         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21042         fill_arabicshaping and output_joining_type_test, output_joining_type,
21043         output_joining_group_test, output_joining_group.
21044         Reported by Simon Josefsson.
21045
21046 2011-03-21  Jim Meyering  <meyering@redhat.com>
21047
21048         strftime: fix a bug in yesterday's change
21049         * lib/strftime.c (add): Accommodate width's initial value of -1.
21050         Otherwise, nstrftime would copy uninitialized data into
21051         the result buffer.
21052
21053 2011-03-21  Jim Meyering  <meyering@redhat.com>
21054
21055         tests: add strftime-tests module
21056         * tests/test-strftime.c: New file.
21057         * modules/strftime-tests: New module.
21058
21059 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21060
21061         strftime: don't assume a byte count fits in 'int'
21062         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21063         found this problem by static analysis, using gcc -Wstrict-overflow
21064         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21065         on an integer overflow having undefined behavior, but it turns out
21066         that the argument is a size, which might not fit in 'int' anyway,
21067
21068 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         stdio: don't require ignore_value around fwrite
21071
21072         This patch works around libc bug 11959
21073         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21074         Without this patch, applications must often write
21075         ignore_value (fwrite (...)) even though the ignore_value is
21076         not helpful here.  It's common to write many objects, using
21077         fwrite/printf/etc., and then use ferror to detect output error.
21078
21079         I considered making this patch optional, but decided against it,
21080         because libc is obviously being inconsistent here: there is no
21081         reason libc should insist that user code must inspect fwrite
21082         return's value without also insisting that it inspect printf's,
21083         putchar's, etc.  If user code wants to have a strict style where
21084         all these functions' values are checked (so that ferror need not
21085         be checked), we could add support for that style in a new gnulib
21086         module, but in the meantime it's better to be consistent and to
21087         support common usage.
21088
21089         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21090         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21091         that we are compiling in checking mode, and if not C++, and
21092         if not already wrapping fwrite for some other reason.
21093         (fwrite): #define to rpl_fwrite if the latter is defined.
21094
21095 2011-03-20  Bruno Haible  <bruno@clisp.org>
21096
21097         verror: Fix compilation error introduced on 2011-02-13.
21098         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21099         instead of __attribute__.
21100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21101
21102 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21103             Bruno Haible  <bruno@clisp.org>
21104
21105         socklen: do not depend on sys_socket
21106         While trying to modify Emacs to use gnulib's socklen module,
21107         I discovered a circular dependency: socklen depends on sys_socket
21108         and vice versa.  Emacs can use socklen, but it does not need
21109         sys_socket because it has its own substitute for sys/socket.h.
21110         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21111         gl_TYPE_SOCKLEN_T.
21112         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21113         gl_PREREQ_SYS_H_SOCKET.
21114         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21115         gl_PREREQ_SYS_H_SOCKET.
21116         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21117         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21118         * modules/socklen (Depends-on): Do not depend on sys_socket.
21119         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21120
21121 2011-03-20  Jim Meyering  <meyering@redhat.com>
21122
21123         maint.mk: sort file names *after* new transformation
21124         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21125         prefix would have led to an unwarranted failure in GNU parted.
21126         Sort after that transformation.
21127
21128 2011-03-19  Jim Meyering  <meyering@redhat.com>
21129
21130         maint.mk: fix po-file syntax-check rule
21131         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21132         Patch by Bruno Haible.
21133
21134 2011-03-19  Bruno Haible  <bruno@clisp.org>
21135
21136         socklen: Update comment.
21137         * m4/socklen.m4: Update comment about platforms.
21138
21139 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21140             Bruno Haible  <bruno@clisp.org>
21141
21142         inet_ntop, inet_pton: Simplify.
21143         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21144         documented to provide socklen_t and we already depend on sys_socket.
21145         * modules/inet_pton (Depends-on): Likewise.
21146         * lib/arpa_inet.in.h: Adjust comment.
21147
21148 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21149             Bruno Haible  <bruno@clisp.org>
21150
21151         netdb: Simplify.
21152         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21153         documented to provide socklen_t and we already depend on sys_socket.
21154         * lib/netdb.in.h: Adjust comment.
21155
21156 2011-03-19  Bruno Haible  <bruno@clisp.org>
21157
21158         sys_socket, netdb: Document problem with socklen_t.
21159         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21160         platforms.
21161         * doc/posix-headers/netdb.texi: Likewise.
21162
21163 2011-03-18  Eric Blake  <eblake@redhat.com>
21164
21165         maint.mk: let po check work in VPATH build
21166         * top/maint.mk (po_file): Allow cfg.mk override.
21167         (sc_po_check): Allow VPATH use.
21168         Reported by Jiri Denemark.
21169
21170 2011-03-16  Jim Meyering  <meyering@redhat.com>
21171
21172         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21173         Before, you would have had to create one .x-sc_ file per rule in order
21174         to exempt offending files.  Now, you may instead use a Make variable --
21175         usually defined in cfg.mk -- whose name identifies the affected rule.
21176         * top/maint.mk (_sc_excl): Define.
21177         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21178         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21179
21180 2011-03-13  Bruno Haible  <bruno@clisp.org>
21181
21182         ignore-value tests: Avoid warnings.
21183         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21184         empty for gcc < 3.4.
21185
21186 2011-03-13  Bruno Haible  <bruno@clisp.org>
21187
21188         passfd: Fix link error on Solaris.
21189         * modules/passfd (Description): Correct.
21190         (Depends-on): Add socketlib.
21191         (Link): New section.
21192         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21193
21194 2011-03-13  Bruno Haible  <bruno@clisp.org>
21195
21196         passfd: Fix link error on AIX 5.2.
21197         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21198
21199 2011-03-13  Bruno Haible  <bruno@clisp.org>
21200
21201         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21202         * lib/sys_socket.in.h: Include <stddef.h>.
21203         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21204         CMSG_FIRSTHDR. Remove unused variable.
21205
21206 2011-03-13  Bruno Haible  <bruno@clisp.org>
21207
21208         passfd: Fix compilation error on OpenBSD.
21209         * lib/passfd.c: Include <sys/uio.h>.
21210
21211 2011-03-13  Bruno Haible  <bruno@clisp.org>
21212
21213         passfd test: Fix warnings.
21214         * tests/test-passfd.c: Include <sys/wait.h>.
21215         (main): Fix typo.
21216
21217 2011-03-13  Bruno Haible  <bruno@clisp.org>
21218
21219         passfd module, part 4, tweaks.
21220         * tests/test-passfd.c: Reorder includes.
21221         (main): Fix perror and printf calls.
21222
21223 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21224
21225         passfd module, part 4.
21226         * modules/passfd-tests: New file.
21227         * tests/test-passfd.c: New file.
21228
21229 2011-03-13  Jim Meyering  <meyering@redhat.com>
21230
21231         Makefile: rely on GNU make; derive syntax-check rule names
21232         Rather than requiring that each sc_ rule be listed as a dependent
21233         of "check", use features of GNU make to derive the list.
21234         * Makefile (syntax-check-rules): Define.
21235         (check): Depend on the new variable, not the hard-coded list.
21236
21237 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21238             Bruno Haible  <bruno@clisp.org>
21239
21240         passfd module, part 3.
21241         * lib/passfd.h (recvfd): Add a flags argument.
21242         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21243         (recvfd): Add a flags argument.
21244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21245         exists.
21246         * modules/passfd (Depends-on): Add cloexec.
21247         Suggested by Eric Blake.
21248
21249 2011-03-13  Bruno Haible  <bruno@clisp.org>
21250
21251         passfd module, part 2, tweaks.
21252         * modules/passfd (Files): Reorder.
21253         (Depends-on): Remove errno.
21254         (Include): Remove <sys/socket.h>, <sys/un.h>.
21255         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21256         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21257         specification header. Include <sys/socket.h> always. Don't include
21258         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21259         (sendfd): Clarify that it sets errno when it fails.
21260         (recvfd): Fix specification.
21261
21262 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21263
21264         passfd module, part 2.
21265         * modules/passfd: New file.
21266         * lib/passfd.h: New file.
21267         * lib/passfd.c: New file.
21268
21269 2011-03-12  Bruno Haible  <bruno@clisp.org>
21270
21271         wcswidth, mbswidth: Avoid integer overflow.
21272         * lib/wcswidth.c: Include <limits.h>.
21273         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21274         * lib/mbswidth.c: Include <limits.h>.
21275         (mbsnwidth): Avoid 'int' overflow.
21276         Reported by Jim Meyering.
21277
21278 2011-03-12  Bruno Haible  <bruno@clisp.org>
21279
21280         futimens, utimensat: Avoid endless recursion on Solaris 10.
21281         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21282         Solaris.
21283         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21284         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21285
21286 2011-03-11  Jim Meyering  <meyering@redhat.com>
21287
21288         maint.mk: relax a regexp to accommodate other formatting styles
21289         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21290         between "ngettext" and the following "(".
21291
21292 2011-03-11  Pádraig Brady <P@draigBrady.com>
21293
21294         maint.mk: suppress a false positive warning
21295         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21296         diagnostics are marked with ngettext.
21297
21298 2011-03-10  Eric Blake  <eblake@redhat.com>
21299
21300         wchar: add explicit dependencies, for Tru64
21301         * modules/mbmemcasecoll (Depends-on): Add wchar.
21302         * modules/mbtowc (Depends-on): Likewise.
21303         * modules/vasnprintf (Depends-on): Likewise.
21304         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21305         * modules/wctomb (Depends-on): Likewise.
21306         Reported by Peter O'Gorman.
21307
21308 2011-03-08  Bruno Haible  <bruno@clisp.org>
21309
21310         passfd module, part 1, tweaks.
21311         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21312         Improve indentation. Improve AC_MSG_CHECKING messages.
21313         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21314         gl_SOCKET_FAMILIES.
21315
21316 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21317
21318         passfd module, part 1.
21319         * m4/afunix.m4: New file.
21320         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21321         sockets.
21322
21323 2011-03-08  Bruno Haible  <bruno@clisp.org>
21324
21325         regex-quote: New API.
21326         * lib/regex-quote.h: Include <stdbool.h>.
21327         (struct regex_quote_spec): New type.
21328         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21329         New declarations.
21330         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21331         'const struct regex_quote_spec *' argument.
21332         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21333         (pcre_special): New constant.
21334         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21335         New functions.
21336         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21337         'const struct regex_quote_spec *' argument.
21338         * modules/regex-quote (Depends-on): Add stdbool.
21339         * tests/test-regex-quote.c (check): Update for new API. Add test for
21340         anchored results.
21341         * NEWS: Mention the API change.
21342         Reported by Reuben Thomas and Eric Blake.
21343
21344 2011-03-06  Bruno Haible  <bruno@clisp.org>
21345
21346         regex-quote: Fix creation of POSIX extended regular expressions.
21347         * lib/regex-quote.c (ere_special): Add grouping and alternation
21348         operators.
21349
21350 2011-03-05  Bruno Haible  <bruno@clisp.org>
21351
21352         doc: Improve doc regarding autopoint vs. gnulib.
21353         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21354         disable autopoint while running autoreconf.
21355         Suggested by Ralf Wildenhues.
21356
21357 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21358
21359         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21360         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21361
21362 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21363
21364         parse-duration: remove xalloc.h dependency
21365         * lib/parse-duration.c (parse_period): handle NULL return from
21366         strdup instead of calling xstrdup().
21367         * modules/parse-duration: remove "xalloc" dependency
21368
21369 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21370
21371         bootstrap: honor m4_base when running aclocal
21372         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21373
21374 2011-03-02  Jim Meyering  <meyering@redhat.com>
21375
21376         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21377         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21378         on request from Matt Booth.
21379
21380 2011-03-01  Eric Blake  <eblake@redhat.com>
21381
21382         test-link: work on Hurd
21383         * tests/test-link.h (test_link): Hurd rejects linking directories
21384         with EISDIR instead of the POSIX-mandated EPERM.
21385
21386 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21387
21388         stdio: simplify by moving files to printf-posix, sigpipe
21389         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21390         since this symbol is needed only if printf is replaced.
21391         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21392         Require gl_ASM_SYMBOL_PREFIX.
21393         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21394         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21395         (Depends-on): Add 'raise'.
21396         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21397         * modules/stdio (Files): Remove lib/stdio-write.c,
21398         m4/asm-underscore.m4.
21399         (Depends-on): Remove 'raise'.
21400
21401         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21402         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21403         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21404         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21405
21406 2011-02-28  Bruno Haible  <bruno@clisp.org>
21407
21408         localcharset: Assume ANSI C behaviour of free().
21409         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21410         calling free().
21411         Suggested by Simon Josefsson <simon@josefsson.org>.
21412
21413 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21414             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21415             Bruno Haible  <bruno@clisp.org>  (tiny change)
21416
21417         On Cygwin, use /proc file system instead of win32 API.
21418         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21419         Win32 file names.
21420         (DllMain): Simplify by removing Cygwin specific code.
21421         (find_shared_library_fullname): Use Linux specific implementation also
21422         for Cygwin.
21423         (get_shared_library_fullname): Update accordingly.
21424         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21425         Win32 file names.
21426         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21427         Cygwin specific code.
21428
21429 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21430             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21431
21432         Fix OpenMP flag detection for various Fortran compilers.
21433         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21434         OpenMP-conditional compilation construct, to force compile
21435         failure with missing OpenMP flag.
21436         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21437
21438 2011-02-25  Eric Blake  <eblake@redhat.com>
21439
21440         strstr: expand test coverage
21441         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21442         compilation.
21443         * tests/test-memmem.c (main): Duplicate tests.
21444         * tests/test-strcasestr.c (main): Likewise.
21445         * tests/test-c-strcasestr.c (main): Likewise.
21446
21447 2011-02-25  Jim Meyering  <meyering@redhat.com>
21448
21449         maint.mk: detect missing-NL-at-EOF, too
21450         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21451         it also detects when a file lacks a newline at EOF.
21452         (require_exactly_one_NL_at_EOF_): Renamed from
21453         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21454         since people may well have .x-sc_... file names tied to the
21455         existing name.  Suggested by Eric Blake.
21456
21457 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21458
21459         dirname: move m4/dos.m4 functionality into lib/dosname.h
21460
21461         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21462         extracts symbols from it, puts them into config.h; but it's much
21463         easier to use the symbols directly.  filename.h already does this,
21464         but it disagrees with dos.m4 in some respects.  This patch
21465         introduces a different include file dosname.h that packages up
21466         dos.m4, and then later we can work on merging filename.h and
21467         dosname.h.  Applications that need only the easy-to-configure
21468         symbols should consider including dosname.h rather than dirname.h.
21469         * NEWS: Mention incompatible changes.
21470         * m4/dos.m4: Remove.
21471         * lib/dosname.h, modules/dosname: New files.
21472         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21473         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21474         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21475         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21476         Include dosname.h, not dirname.h.
21477         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21478         Include dosname.h, for definitions of symbols like ISSLASH
21479         that used to be in config.h.
21480         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21481         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21482         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21483         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21484         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21485         * modules/rmdir (Files): Likewise.
21486         * modules/stat (Files): Likewise.
21487         * modules/unlink (Files): Likewise.
21488         * modules/dirname-lgpl (Depends-on): Add dosname.
21489         * modules/lstat (Depends-on): Likewise.
21490         * modules/openat (Depends-on): Likewise.
21491         * modules/rmdir (Depends-on): Likewise.
21492         * modules/savewd (Depends-on): Likewise.
21493         * modules/stat (Depends-on): Likewise.
21494         * modules/unlink (Depends-on): Likewise.
21495         * modules/openat (Depends-on): Remove dirname-lgpl.
21496         * modules/savewd (Depends-on): Likewise.
21497         * tests/test-dirname.c: Do not use removed symbols like
21498         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21499         the remaining symbols, e.g., ISSLASH ('\\').
21500
21501 2011-02-25  Eric Blake  <eblake@redhat.com>
21502
21503         strstr: revert patches that introduced bug and pessimization
21504         * lib/str-two-way.h: Add another reference.
21505         (two_way_short_needle, two_way_long_needle): Revert changes from
21506         2011-02-24; they pessimize search speed.
21507         (critical_factorization): Partially revert changes from
21508         2010-06-22; they violate the requirement that the left half of the
21509         needle be smaller than the period of the needle.
21510
21511 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         filenamecat: remove unnecessary dependency on dirname-lgpl
21514         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21515         is no direct dependency, just an indirect one via filenamecat-lgpl.
21516
21517         remove: remove unnecessary use of m4/dos.m4
21518         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21519         * modules/remove (FILES): Remove m4/dos.m4.
21520
21521         * lib/openat-proc.c: Don't include dirname.h; not needed.
21522
21523         backupfile: remove unnecessary use of m4/dos.m4
21524         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21525         of its symbols are used by the backupfile code.  backupfile.c does
21526         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21527         for the rare case of programs that want all their backup file
21528         names to live within 8+3 limits, and dos.m4 doesn't address that.
21529         * modules/backupfile (Files): Remove m4/dos.m4.
21530
21531 2011-02-24  Jim Meyering  <meyering@redhat.com>
21532
21533         strstr: fix a bug whereby strstr would mistakenly return NULL
21534         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21535         in period calculation.
21536         (two_way_long_needle): Likewise.
21537         The original problem was reported by Mike Stump in
21538         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21539         Ralf Wildenhues provided the short needle and haystack.
21540         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21541         Add a more involved test to trigger the bug in two_way_long_needle.
21542
21543 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21544
21545         gnulib-tool: remove use of bold display in help screen
21546         * gnulib-tool (func_usage): Do not use bold display anymore in the
21547         help screen.  That was just meant to be a temporary emphasis for a
21548         backward-incompatible change.
21549
21550 2011-02-23  Bruno Haible  <bruno@clisp.org>
21551
21552         Fix misindentation of preprocessor directives.
21553         * lib/argp-namefrob.h: Reindent preprocessor directives.
21554         * lib/getopt_int.h (struct _getopt_data): Likewise.
21555         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21556         * lib/vasnprintf.c (decode_long_double): Likewise.
21557         * tests/test-argmatch.c: Insert blank lines, for clarity.
21558         * tests/test-exclude.c: Likewise.
21559
21560 2011-02-22  Bruno Haible  <bruno@clisp.org>
21561
21562         ioctl: Fix for MacOS X in 64-bit mode.
21563         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21564         value.
21565         Suggested by Eric Blake.
21566         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21567
21568 2011-02-22  Jim Meyering  <meyering@redhat.com>
21569
21570         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21571         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21572         in lib/.
21573
21574 2011-02-22  Eric Blake  <eblake@redhat.com>
21575
21576         maint: avoid any CDPATH issue
21577         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21578
21579         maint: adjust cpp indentation for my modules, as well
21580         * Makefile (sc_cpp_indent_check): Add my name.
21581         * lib/fbufmode.c: Filter through cppi.
21582         * lib/fpurge.c: Likewise.
21583         * lib/freadable.c: Likewise.
21584         * lib/freading.c: Likewise.
21585         * lib/fwritable.c: Likewise.
21586         * lib/fwriting.c: Likewise.
21587         * lib/sigaction.c: Likewise.
21588
21589 2011-02-22  Jim Meyering  <meyering@redhat.com>
21590
21591         maint: adjust cpp indentation to reflect nesting depth
21592         I.e., in a block of code that begins with an unnested "#if",
21593         put one space between the "#" in column 1 and following token.
21594         For example,
21595         -#include <sys/vfs.h>
21596         +# include <sys/vfs.h>
21597         Do this only in .c files that are part of a module I maintain.
21598         * lib/linkat.c: Filter through cppi.
21599         * lib/nanosleep.c: Likewise.
21600         * lib/openat.c: Likewise.
21601         * lib/openat-die.c: Likewise.
21602         * lib/dup3.c: Likewise.
21603         * lib/fchownat.c: Likewise.
21604         * lib/flock.c: Likewise.
21605         * lib/fsync.c: Likewise.
21606         * lib/fts.c: Likewise.
21607         * lib/getpass.c: Likewise.
21608         * lib/gettimeofday.c: Likewise.
21609         * lib/userspec.c: Likewise.
21610         * Makefile (sc_cpp_indent_check): New rule, to check this.
21611
21612 2011-02-22  Bruno Haible  <bruno@clisp.org>
21613
21614         New module 'wctomb'.
21615         * lib/stdlib.in.h (wctomb): New declaration.
21616         * lib/wctomb.c: New file.
21617         * lib/wctomb-impl.h: New file.
21618         * m4/wctomb.m4: New file.
21619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21620         REPLACE_WCTOMB.
21621         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21622         REPLACE_WCTOMB.
21623         * modules/wctomb: New file.
21624         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21625         * doc/posix-functions/wctomb.texi: Mention the new module.
21626         * modules/wctob (Depends-on): Add wctomb.
21627
21628 2011-02-22  Bruno Haible  <bruno@clisp.org>
21629
21630         New module 'mbtowc'.
21631         * lib/stdlib.in.h (mbtowc): New declaration.
21632         * lib/mbtowc.c: New file.
21633         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21634         * m4/mbtowc.m4: New file.
21635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21636         REPLACE_MBTOWC.
21637         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21638         REPLACE_MBTOWC.
21639         * modules/mbtowc: New file.
21640         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21641         * doc/posix-functions/mbtowc.texi: Mention the new module.
21642         * modules/btowc (Depends-on): Add mbtowc.
21643
21644 2011-02-22  Bruno Haible  <bruno@clisp.org>
21645
21646         wcrtomb: Add more tests for native Windows platforms.
21647         * tests/test-wcrtomb-w32-1.sh: New file.
21648         * tests/test-wcrtomb-w32-2.sh: New file.
21649         * tests/test-wcrtomb-w32-3.sh: New file.
21650         * tests/test-wcrtomb-w32-4.sh: New file.
21651         * tests/test-wcrtomb-w32-5.sh: New file.
21652         * tests/test-wcrtomb-w32.c: New file.
21653         * modules/wcrtomb-tests (Files): Add them.
21654         (Makefile.am): Arrange to run these tests.
21655         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21656         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21657
21658 2011-02-20  Bruno Haible  <bruno@clisp.org>
21659
21660         wcrtomb: Enhance test.
21661         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21662
21663 2011-02-20  Bruno Haible  <bruno@clisp.org>
21664
21665         mbrtowc: Tiny optimization.
21666         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21667
21668 2011-02-20  Jim Meyering  <meyering@redhat.com>
21669
21670         test-exclude.c: remove unmatched #endif
21671         * tests/test-exclude.c: Remove stray #endif, left over from
21672         the change of a week ago.
21673
21674 2011-02-19  Jim Meyering  <meyering@redhat.com>
21675
21676         git-version-gen: skip "-dirty" check when appropriate
21677         * build-aux/git-version-gen: Don't run any git commands when the
21678         version string comes from .tarball-version.  Prior to this, we
21679         would run git update-index --refresh even from a just-unpacked
21680         tarball directory, and that could affect a .git/ directory in a
21681         parent of the build directory.  Reported by Mike Frysinger.
21682
21683 2011-02-19  Bruno Haible  <bruno@clisp.org>
21684
21685         unictype/property-byname: Reduce the size of the 'data' segment.
21686         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21687
21688 2011-02-19  Bruno Haible  <bruno@clisp.org>
21689
21690         unictype/scripts: Reduce the size of the 'data' segment.
21691         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21692         '%pic'.
21693         * lib/unictype/scripts_byname.gperf: Regenerated.
21694
21695 2011-02-19  Bruno Haible  <bruno@clisp.org>
21696
21697         stdint: Update documentation.
21698         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21699
21700 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21701
21702         stdint: omit redundant check for wchar.h
21703         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21704         always tests whether wchar.h exists, so remove the now-redundant test.
21705
21706 2011-02-18  Bruno Haible  <bruno@clisp.org>
21707
21708         stdint: Cut dependency to module 'wchar'.
21709         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21710         include the necessary prerequisites.
21711         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21712         * modules/stdint (Depends-on): Remove wchar.
21713         (Makefile.am): Substitute HAVE_WCHAR_H.
21714         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21715
21716 2011-02-18  Eric Blake  <eblake@redhat.com>
21717
21718         longlong: skip, rather than fail, on cross-compilation
21719         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21720         when cross-compiling; regression from 2011-02-16.
21721
21722 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21723
21724         * NEWS: Mention 2011-02-08 change to stdlib.
21725
21726 2011-02-17  Bruno Haible  <bruno@clisp.org>
21727
21728         getloadavg: Add comments about platforms.
21729         * m4/getloadavg.m4: Add comment.
21730         * lib/getloadavg.c: Likewise.
21731
21732 2011-02-17  Bruno Haible  <bruno@clisp.org>
21733
21734         getloadavg: Fix link error on Solaris 2.6.
21735         * modules/getloadavg (Link): New section.
21736         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21737         linking test-getloadavg.
21738         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21739         getloadavg.
21740
21741 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21742
21743         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21744         It was 'int', but this doesn't match the IRIX 6.5 manual.
21745         Suggested by Bruno Haible in
21746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21747
21748 2011-02-17  Bruno Haible  <bruno@clisp.org>
21749
21750         havelib: Fix comments.
21751         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21752         change.
21753
21754 2011-02-17  Bruno Haible  <bruno@clisp.org>
21755
21756         havelib: Update config.rpath.
21757         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21758
21759 2011-02-17  Bruno Haible  <bruno@clisp.org>
21760
21761         getloadavg test: Add some plausibility checks.
21762         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21763         is improbable.
21764
21765 2011-02-16  Eric Blake  <eblake@redhat.com>
21766
21767         maintainer-makefile: make syntax-check a no-op from tarballs
21768         * top/maint.mk (no-vc-detected): New rule.
21769         (local-checks-available): Use it to avoid hanging if someone tries
21770         'make syntax-check' from a tarball.  Also append to any non-syntax
21771         checks already defined in cfg.mk.
21772
21773 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21774
21775         longlong: tune, particularly for common case of c99
21776
21777         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21778         or running anything if c99, or if unsigned long long int does not
21779         work.  In either case, we know the answer without further tests.
21780         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21781         it at most once, and use its results for both long long int and
21782         unsigned long long int.  This is more likely to be efficient in
21783         the common case where the program wants to check for both long
21784         long int and unsigned long long int.
21785         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21786         since the answer is already known.
21787
21788 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21789
21790         getloadavg: set errno
21791         * lib/getloadavg.c: Set errno when returning -1.  If no other
21792         error number looks appropriate, set it to ENOSYS if the getloadavg
21793         looks like it can't possibly ever work, ENOTSUP otherwise.
21794         Suggested by Bruno Haible in
21795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21796
21797         getloadavg: trim unused parts and speed up 'configure'
21798         * NEWS: Document this.
21799         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21800         always compiled if getloadavg is absent.
21801         Move test code to ...
21802         * tests/test-getloadavg.c: New file, containing previous
21803         contents of test from lib/getloadavg.c.  It also contains
21804         suggestions by Bruno Haible in
21805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21806         * modules/getloadavg-tests: New file.
21807         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21808         Do tests in the same order as they're needed for getloadavg.c.
21809         Omit setgid-related tests that generate symbols KMEM_GROUP,
21810         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21811         Do only the tests that are needed to see whether the system has
21812         getloadavg, moving the other tests into ...
21813         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21814         NLIST_NAME_UNION; nobody should be using it.  Do not define
21815         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21816         relevant, as the user of this module shouldn't care how getloadavg
21817         is implemented.
21818
21819         getloadavg: omit unused var
21820         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21821
21822 2011-02-15  Jim Meyering  <meyering@redhat.com>
21823
21824         doc: update users.txt
21825         * users.txt: Update iwhd's URL.
21826
21827 2011-02-13  Bruno Haible  <bruno@clisp.org>
21828
21829         Consistent macro naming for macros that use GCC __attribute__.
21830         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21831         _ATTRIBUTE_NONNULL_.
21832         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21833         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21834         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21835         ATTRIBUTE_DEPRECATED.
21836         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21837         ATTRIBUTE_NORETURN.
21838         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21839         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21840         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21841         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21842         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21843         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21844         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21845         ATTRIBUTE_SENTINEL.
21846         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21847         ATTRIBUTE_RETURN_CHECK.
21848         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21849         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21850         ATTRIBUTE_NORETURN.
21851         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21852         Reported by Paul Eggert.
21853
21854 2011-02-13  Bruno Haible  <bruno@clisp.org>
21855
21856         Don't interfere with a program's definition of __attribute__.
21857         * lib/argp.h (__attribute__): Remove definition.
21858         (_GL_ATTRIBUTE_FORMAT): New macro.
21859         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21860         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21861         (_GL_ATTRIBUTE_FORMAT): New macro.
21862         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21863         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21864         GCC 3 or newer.
21865         * lib/error.h (__attribute__): Remove definition.
21866         (_GL_ATTRIBUTE_FORMAT): New macro.
21867         (error, error_at_line): Use it.
21868         * lib/hash.h (__attribute__): Remove definition.
21869         (ATTRIBUTE_WUR): Update definition. Define always.
21870         * lib/openat.h (__attribute__): Remove definition.
21871         (ATTRIBUTE_NORETURN): Update definition. Define always.
21872         * lib/sigpipe-die.h (__attribute__): Remove definition.
21873         (ATTRIBUTE_NORETURN): Update definition. Define always.
21874         * lib/vasnprintf.h (__attribute__): Remove definition.
21875         (_GL_ATTRIBUTE_FORMAT): New macro.
21876         (asnprintf, vasnprintf): Use it.
21877         * lib/xalloc.h (__attribute__): Remove definition.
21878         (ATTRIBUTE_NORETURN): Update definition. Define always.
21879         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21880         * lib/xmemdup0.h (__attribute__): Remove definition.
21881         (ATTRIBUTE_NORETURN): Update definition. Define always.
21882         * lib/xprintf.h (__attribute__): Remove definition.
21883         (_GL_ATTRIBUTE_FORMAT): New macro.
21884         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21885         * lib/xstrtol.h (__attribute__): Remove definition.
21886         (ATTRIBUTE_NORETURN): Update definition. Define always.
21887         * lib/xvasprintf.h (__attribute__): Remove definition.
21888         (_GL_ATTRIBUTE_FORMAT): New macro.
21889         (xasprintf, xvasprintf): Use it.
21890         * tests/test-argmatch.c (__attribute__): Remove definition.
21891         (ATTRIBUTE_NORETURN): Update definition. Define always.
21892         * tests/test-exclude.c (__attribute__): Remove definition.
21893         (ATTRIBUTE_NORETURN): Update definition. Define always.
21894         Reported by Paul Eggert.
21895
21896 2011-02-13  Bruno Haible  <bruno@clisp.org>
21897
21898         mbrtowc: Add more tests for native Windows platforms.
21899         * tests/test-mbrtowc-w32-1.sh: New file.
21900         * tests/test-mbrtowc-w32-2.sh: New file.
21901         * tests/test-mbrtowc-w32-3.sh: New file.
21902         * tests/test-mbrtowc-w32-4.sh: New file.
21903         * tests/test-mbrtowc-w32-5.sh: New file.
21904         * tests/test-mbrtowc-w32.c: New file.
21905         * modules/mbrtowc-tests (Files): Add them.
21906         (Makefile.am): Arrange to run these tests.
21907         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21908         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21909
21910 2011-02-13  Bruno Haible  <bruno@clisp.org>
21911
21912         mbrtowc: Work around native Windows bug.
21913         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21914         guess when no suitable locale for testing was found.
21915         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21916
21917 2011-02-13  Bruno Haible  <bruno@clisp.org>
21918
21919         mbsinit: Work around mingw bug.
21920         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21921         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21922         Windows.
21923         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21924
21925 2011-02-13  Bruno Haible  <bruno@clisp.org>
21926
21927         mbsinit: Don't crash for a NULL argument.
21928         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21929         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21930
21931 2011-02-13  Bruno Haible  <bruno@clisp.org>
21932
21933         Don't interfere with a program's definition of __attribute__.
21934         * lib/stdio.in.h (__attribute__): Remove definition.
21935         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21936         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21937         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21938         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21939         * lib/string.in.h (__attribute__): Remove definition.
21940         Reported by Paul Eggert.
21941
21942 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         stdlib: don't get in the way of non-GCC __attribute__
21945         See thread starting at
21946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21947         Revert previous stdlib change, installing the following instead:
21948         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21949         to get in the way of a non-GCC compiler that supports __attribute__.
21950         (_GL_ATTRIBUTE_RETURN): New macro.
21951         (_Exit): Use it instead of __attribute__.
21952
21953 2011-02-12  Bruno Haible  <bruno@clisp.org>
21954
21955         quotearg test: Avoid test failure on mingw.
21956         * tests/test-quotearg.sh: Convert the locale identifier from native
21957         Windows syntax to Unix syntax.
21958
21959 2011-02-12  Bruno Haible  <bruno@clisp.org>
21960
21961         setlocale: Prefer gnulib's override over libintl's override.
21962         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21963         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21964         GNULIB_defined_setlocale is set.
21965
21966 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21967
21968         stdlib: support non-GCC __attribute__
21969
21970         Fix a serious and tricky problem encountered when attempting to
21971         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21972         5.5, but it crashed due to memory corruption on Solaris 10 with
21973         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21974         bits that are otherwise zero.  This tagging is optional inside
21975         Emacs but is preferred and is used when __attribute__ ((__aligned
21976         (8))) works, as it does with both recent-enough GCC and with Sun C
21977         5.11.  However, Sun C 5.11 is not GCC and does not #define
21978         __GNUC__ and __GNUC_MINOR__.
21979
21980         When I added the getloadavg module to Emacs, it brought in
21981         stdlib.in.h, which contained this fragment:
21982
21983            #ifndef __attribute__
21984            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21985            #  define __attribute__(Spec)   /* empty */
21986            # endif
21987            #endif
21988
21989         When files that include <stdlib.h> were compiled with Sun C 5.11,
21990         the above code disabled __attribute__ ((__aligned (8))), which
21991         caused variables to not be properly aligned, which eventually led
21992         to the pointer corruption mentioned above.  (This was a bit hard
21993         to diagnose, unfortunately.)
21994
21995         Several "#define __attribute__(X) /* empty */" code snippets need
21996         to be eradicated from Gnulib to work with non-GCC compilers that
21997         support __attribute__.  The Autoconf way to do this is to test for
21998         each kind of attribute that we want support for, and selectively
21999         enable that in source code.
22000
22001         Fix this problem just for stdlib.h, by adding a test for the
22002         __noreturn__ attribute, and change stdlib.in.h to use that test
22003         when needed.  This technique can be easily generalized to the
22004         other *.in.h files and attributes, and a similar technique can be
22005         used for *.h and *.c files.  This patch is enough to solve the
22006         problem for Emacs + getloadavg, and I thought I'd publish it for
22007         feedback before undertaking further, similar fixes in other
22008         modules.
22009
22010         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22011         because it's not needed for stdlib.h.  It merely substitutes the
22012         value directly into stdlib.h.  We may well need to #define it, or
22013         similar symbols, for other modules, but it's nice to also have an
22014         option to not #define it for applications like Emacs that do not
22015         need it.
22016
22017         * lib/stdlib.in.h (__attribute__): Do not #define.
22018         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22019         be defined only if the _Exit module is also used.
22020         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22022         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22023         platforms.
22024         * modules/_Exit (Files): Add m4/attribute.m4.
22025         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22026         * m4/attribute.m4: New file.
22027
22028 2011-02-12  Bruno Haible  <bruno@clisp.org>
22029
22030         wcsrtombs: Work around bug on native Windows.
22031         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22032         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22033         instead of len.
22034         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22035
22036 2011-02-12  Bruno Haible  <bruno@clisp.org>
22037
22038         mbsrtowcs: Work around bug on native Windows.
22039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22040         against mingw bug.
22041         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22042
22043 2011-02-12  Bruno Haible  <bruno@clisp.org>
22044
22045         Avoid setlocale bugs in tests.
22046         * modules/btowc (Dependencies): Add setlocale.
22047         * modules/c-strcase (Dependencies): Likewise.
22048         * modules/mbmemcasecmp (Dependencies): Likewise.
22049         * modules/mbmemcasecoll (Dependencies): Likewise.
22050         * modules/mbrtowc (Dependencies): Likewise.
22051         * modules/mbscasecmp (Dependencies): Likewise.
22052         * modules/mbscasestr (Dependencies): Likewise.
22053         * modules/mbschr (Dependencies): Likewise.
22054         * modules/mbscspn (Dependencies): Likewise.
22055         * modules/mbsinit (Dependencies): Likewise.
22056         * modules/mbsncasecmp (Dependencies): Likewise.
22057         * modules/mbsnrtowcs (Dependencies): Likewise.
22058         * modules/mbspbrk (Dependencies): Likewise.
22059         * modules/mbspcasecmp (Dependencies): Likewise.
22060         * modules/mbsrchr (Dependencies): Likewise.
22061         * modules/mbsrtowcs (Dependencies): Likewise.
22062         * modules/mbsspn (Dependencies): Likewise.
22063         * modules/mbsstr (Dependencies): Likewise.
22064         * modules/nl_langinfo (Dependencies): Likewise.
22065         * modules/quotearg (Dependencies): Likewise.
22066         * modules/unicase/locale-language (Dependencies): Likewise.
22067         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22068         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22069         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22070         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22071         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22072         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22073         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22074         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22075         * modules/vasnprintf-posix (Dependencies): Likewise.
22076         * modules/wcrtomb (Dependencies): Likewise.
22077         * modules/wcsnrtombs (Dependencies): Likewise.
22078         * modules/wcsrtombs (Dependencies): Likewise.
22079
22080 2011-02-12  Bruno Haible  <bruno@clisp.org>
22081
22082         setlocale: Workaround native Windows bug.
22083         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22084         succeeds but sets LC_CTYPE to "C", report a failure.
22085         * tests/test-setlocale2.sh: New file.
22086         * tests/test-setlocale2.c: New file.
22087         * modules/setlocale-tests (Files): Add the new files.
22088         (Makefile.am): Enable test-setlocale2.sh test.
22089         * doc/posix-functions/setlocale.texi: Mention workaround.
22090
22091 2011-02-11  Bruno Haible  <bruno@clisp.org>
22092
22093         Tests for module 'setlocale'.
22094         * modules/setlocale-tests: New file.
22095         * tests/test-setlocale1.sh: New file.
22096         * tests/test-setlocale1.c: New file.
22097
22098         New module 'setlocale'.
22099         * lib/locale.in.h (setlocale): New declaration.
22100         * lib/setlocale.c: New file, based on
22101         gettext/gettext-runtime/intl/setlocale.c.
22102         * m4/setlocale.m4: New file.
22103         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22104         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22105         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22106         REPLACE_SETLOCALE.
22107         * modules/setlocale: New file.
22108         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22109         * doc/posix-functions/setlocale.texi: Mention the new module.
22110
22111 2011-02-11  Bruno Haible  <bruno@clisp.org>
22112
22113         Prepare for locale dependent tests on mingw.
22114         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22115         because it has the wrong locale encoding.
22116         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22117         French_France.1252 instead of "fr".
22118         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22119         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22120         because it has the wrong locale encoding.
22121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22122         native Windows, try Turkish_Turkey.65001.
22123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22124         Chinese_China.54936.
22125
22126         Prepare for locale dependent tests on mingw.
22127         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22128         differently.
22129         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22130         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22131         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22132         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22133
22134 2011-02-11  Eric Blake  <eblake@redhat.com>
22135
22136         strptime: avoid compiler warnings
22137         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22138         compiler warnings about dead code.
22139         Reported by Daniel P. Berrange.
22140
22141 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22142
22143         doc: update users.txt
22144         * users.txt: Add rcs.
22145
22146 2011-02-10  John W. Eaton  <jwe@gnu.org>
22147
22148         doc: update users.txt
22149         * users.txt: Add octave.
22150
22151 2011-02-10  Jim Meyering  <meyering@redhat.com>
22152
22153         doc: update users.txt
22154         * users.txt: Add iwhd.
22155
22156 2011-02-09  Bruno Haible  <bruno@clisp.org>
22157
22158         gnulib-tool: Make copyright notice adjustment more robust.
22159         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22160         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22161         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22162         License".
22163         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22164
22165 2011-02-06  Bruno Haible  <bruno@clisp.org>
22166
22167         New module 'towctrans'.
22168         * modules/towctrans: New file.
22169         * lib/wctype.in.h (towctrans): New declaration.
22170         * lib/towctrans.c: New file.
22171         * lib/towctrans-impl.h: New file.
22172         * m4/towctrans.m4: New file.
22173         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22174         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22175         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22176         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22177         * doc/posix-functions/towctrans.texi: Mention the new module.
22178
22179 2011-02-06  Bruno Haible  <bruno@clisp.org>
22180
22181         New module 'wctrans'.
22182         * modules/wctrans: New file.
22183         * lib/wctype.in.h (wctrans): New declaration.
22184         * lib/wctrans.c: New file.
22185         * lib/wctrans-impl.h: New file.
22186         * m4/wctrans.m4: New file.
22187         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22188         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22189         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22190         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22191         * doc/posix-functions/wctrans.texi: Mention the new module.
22192
22193 2011-02-06  Bruno Haible  <bruno@clisp.org>
22194
22195         New module 'iswctype'.
22196         * modules/iswctype: New file.
22197         * lib/wctype.in.h (iswctype): New declaration.
22198         * lib/iswctype.c: New file.
22199         * lib/iswctype-impl.h: New file.
22200         * m4/iswctype.m4: New file.
22201         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22202         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22203         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22204         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22205         * doc/posix-functions/iswctype.texi: Mention the new module and the
22206         HP-UX 11.00 problem.
22207
22208 2011-02-06  Bruno Haible  <bruno@clisp.org>
22209
22210         New module 'wctype'.
22211         * modules/wctype: Change to represent the wctype() substitute.
22212         * lib/wctype.in.h (wctype): New declaration.
22213         * lib/wctype.c: New file.
22214         * lib/wctype-impl.h: New file.
22215         * m4/wctype.m4: New file.
22216         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22217         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22218         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22219         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22220         * doc/posix-functions/wctype.texi: Mention the new module and the
22221         HP-UX 11.00 problem.
22222
22223 2011-02-06  Bruno Haible  <bruno@clisp.org>
22224
22225         wctype-h: Ensure wctype_t and wctrans_t are defined.
22226         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22227         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22228         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22229         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22230         HAVE_WCTRANS_T.
22231         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22232
22233 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22234
22235         flock: fix license typo
22236
22237         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22238         omitted.
22239
22240 2011-02-08  Bruno Haible  <bruno@clisp.org>
22241
22242         Split large sed scripts, for HP-UX sed.
22243         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22244         to avoid HP-UX limit of 99 commands, in the near future.
22245         * modules/stdlib (Makefile.am): Likewise.
22246         * modules/unistd (Makefile.am): Likewise.
22247         * modules/wchar (Makefile.am): Likewise.
22248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22249         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22251
22252 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22253             Bruno Haible  <bruno@clisp.org>
22254
22255         stdlib: improve random_r modularization
22256         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22257         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22258         you also need the random_r module to get this material right.
22259         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22260         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22261         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22262
22263 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22264
22265         stdlib: don't depend on stdint
22266         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22267         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22268         be independent of whether stdint.h is needed.
22269         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22270         here, instead of ...
22271         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22272         struct random_data should be using the random_r module, not just
22273         the stdlib module (which wouldn't make sense: what package needs
22274         just struct random_data without also needing random_r?).
22275         * modules/stdlib (Depends-on): Remove stdint.
22276
22277         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22278         See the thread rooted at
22279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22280         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22281         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22282         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22283         __VMS)); previously it was always included (via fcntl--.h).
22284         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22285         hand; this is good enough for load averages.  Also, do not use
22286         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22287         flags directly if available and don't bother otherwise.  (Packages
22288         that need the extra reliability should use the modules that define
22289         these flags on older platforms that lack them.)
22290         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22291         fcntl-safer.
22292
22293 2011-02-08  Jim Meyering  <meyering@redhat.com>
22294
22295         di-set.h, ino-map.h: add multiple-inclusion guard
22296         Technically, the guard is required only for ino-map.h, due to its
22297         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22298         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22299         * lib/ino-map.h: Likewise.
22300
22301 2011-02-06  Bruno Haible  <bruno@clisp.org>
22302
22303         iswblank: Ensure declaration on glibc systems.
22304         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22305         * modules/iswblank (Dependencies): Add 'extensions'.
22306         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22307
22308 2011-02-06  Bruno Haible  <bruno@clisp.org>
22309
22310         New module 'iswblank'.
22311         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22312         * modules/iswblank: New file.
22313         * modules/wctype-h (Files): Remove lib/iswblank.c.
22314         (Makefile.am): Substitute GNULIB_ISWBLANK.
22315         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22316         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22317         (gl_WCTYPE_H_DEFAULTS): New macro.
22318         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22319         * modules/iswblank-tests: New file.
22320         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22321         * tests/test-wctype-h.c (main): Remove iswblank tests.
22322         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22323         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22324         of 'wctype-h'.
22325         * NEWS: Mention the change.
22326         * modules/mbchar (Depends-on): Add iswblank.
22327
22328 2011-02-08  Bruno Haible  <bruno@clisp.org>
22329
22330         di-set tests: Refactor.
22331         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22332         unnecessary includes.
22333         (ASSERT): Remove macro.
22334         (main): Make C90 compliant by avoiding variable declaration after
22335         statement.
22336         * modules/di-set-tests (Files): Add tests/macros.h.
22337
22338 2011-02-08  Bruno Haible  <bruno@clisp.org>
22339
22340         ino-map tests: Refactor.
22341         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22342         unnecessary includes.
22343         (ASSERT): Remove macro.
22344         (main): Make C90 compliant by avoiding variable declaration after
22345         statement.
22346         * modules/ino-map-tests (Files): Add tests/macros.h.
22347
22348 2011-02-08  Jim Meyering  <meyering@redhat.com>
22349
22350         di-set: add "const" to a cast
22351         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22352         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22353
22354 2011-02-06  Bruno Haible  <bruno@clisp.org>
22355
22356         Rename module 'wctype' to 'wctype-h'.
22357         * modules/wctype-h: Renamed from modules/wctype.
22358         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22359         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22360         (Files, Depends-on, Makefile.am): Update.
22361         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22362         (Files, Makefile.am): Update.
22363         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22364         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22365         * doc/posix-headers/wctype.texi: Update.
22366         * doc/posix-functions/iswalnum.texi: Update.
22367         * doc/posix-functions/iswalpha.texi: Update.
22368         * doc/posix-functions/iswblank.texi: Update.
22369         * doc/posix-functions/iswcntrl.texi: Update.
22370         * doc/posix-functions/iswdigit.texi: Update.
22371         * doc/posix-functions/iswgraph.texi: Update.
22372         * doc/posix-functions/iswlower.texi: Update.
22373         * doc/posix-functions/iswprint.texi: Update.
22374         * doc/posix-functions/iswpunct.texi: Update.
22375         * doc/posix-functions/iswspace.texi: Update.
22376         * doc/posix-functions/iswupper.texi: Update.
22377         * doc/posix-functions/iswxdigit.texi: Update.
22378         * doc/posix-functions/towlower.texi: Update.
22379         * doc/posix-functions/towupper.texi: Update.
22380         * NEWS: Mention the change.
22381         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22382         * modules/mbchar (Dependencies): Likewise.
22383         * modules/mbswidth (Dependencies): Likewise.
22384         * modules/quotearg (Dependencies): Likewise.
22385         * modules/regex (Dependencies): Likewise.
22386         * modules/wcscasecmp (Dependencies): Likewise.
22387         * modules/wcsncasecmp (Dependencies): Likewise.
22388         * modules/wcwidth (Dependencies): Likewise.
22389
22390 2011-02-06  Bruno Haible  <bruno@clisp.org>
22391
22392         New module 'wcswidth'.
22393         * modules/wcswidth: New file.
22394         * lib/wchar.in.h (wcswidth): New declaration.
22395         * lib/wcswidth.c: New file.
22396         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22397         * m4/wcswidth.m4: New file.
22398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22400         REPLACE_WCSWIDTH.
22401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22402         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22403         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22404         * doc/posix-functions/wcswidth.texi: Mention the new module.
22405
22406 2011-02-06  Bruno Haible  <bruno@clisp.org>
22407
22408         New module 'wcstok'.
22409         * modules/wcstok: New file.
22410         * lib/wchar.in.h (wcstok): New declaration.
22411         * lib/wcstok.c: New file.
22412         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22413         * m4/wcstok.m4: New file.
22414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22417         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22418         * doc/posix-functions/wcstok.texi: Mention the new module.
22419
22420 2011-02-06  Bruno Haible  <bruno@clisp.org>
22421
22422         New module 'wcsstr'.
22423         * modules/wcsstr: New file.
22424         * lib/wchar.in.h (wcsstr): New declaration.
22425         * lib/wcsstr.c: New file.
22426         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22427         * m4/wcsstr.m4: New file.
22428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22431         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22432         * doc/posix-functions/wcsstr.texi: Mention the new module.
22433
22434 2011-02-06  Bruno Haible  <bruno@clisp.org>
22435
22436         New module 'wcspbrk'.
22437         * modules/wcspbrk: New file.
22438         * lib/wchar.in.h (wcspbrk): New declaration.
22439         * lib/wcspbrk.c: New file.
22440         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22441         * m4/wcspbrk.m4: New file.
22442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22445         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22446         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22447
22448 2011-02-06  Bruno Haible  <bruno@clisp.org>
22449
22450         New module 'wcsspn'.
22451         * modules/wcsspn: New file.
22452         * lib/wchar.in.h (wcsspn): New declaration.
22453         * lib/wcsspn.c: New file.
22454         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22455         * m4/wcsspn.m4: New file.
22456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22459         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22460         * doc/posix-functions/wcsspn.texi: Mention the new module.
22461
22462 2011-02-06  Bruno Haible  <bruno@clisp.org>
22463
22464         New module 'wcscspn'.
22465         * modules/wcscspn: New file.
22466         * lib/wchar.in.h (wcscspn): New declaration.
22467         * lib/wcscspn.c: New file.
22468         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22469         * m4/wcscspn.m4: New file.
22470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22473         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22474         * doc/posix-functions/wcscspn.texi: Mention the new module.
22475
22476 2011-02-06  Bruno Haible  <bruno@clisp.org>
22477
22478         New module 'wcsrchr'.
22479         * modules/wcsrchr: New file.
22480         * lib/wchar.in.h (wcsrchr): New declaration.
22481         * lib/wcsrchr.c: New file.
22482         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22483         * m4/wcsrchr.m4: New file.
22484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22487         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22488         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22489
22490 2011-02-06  Bruno Haible  <bruno@clisp.org>
22491
22492         New module 'wcschr'.
22493         * modules/wcschr: New file.
22494         * lib/wchar.in.h (wcschr): New declaration.
22495         * lib/wcschr.c: New file.
22496         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22497         * m4/wcschr.m4: New file.
22498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22501         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22502         * doc/posix-functions/wcschr.texi: Mention the new module.
22503
22504 2011-02-06  Bruno Haible  <bruno@clisp.org>
22505
22506         New module 'wcsdup'.
22507         * modules/wcsdup: New file.
22508         * lib/wchar.in.h (wcsdup): New declaration.
22509         * lib/wcsdup.c: New file.
22510         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22511         * m4/wcsdup.m4: New file.
22512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22515         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22516         * doc/posix-functions/wcsdup.texi: Mention the new module.
22517
22518 2011-02-06  Bruno Haible  <bruno@clisp.org>
22519
22520         New module 'wcsxfrm'.
22521         * modules/wcsxfrm: New file.
22522         * lib/wchar.in.h (wcsxfrm): New declaration.
22523         * lib/wcsxfrm.c: New file.
22524         * lib/wcsxfrm-impl.h: New file.
22525         * m4/wcsxfrm.m4: New file.
22526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22529         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22530         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22531
22532 2011-02-06  Bruno Haible  <bruno@clisp.org>
22533
22534         New module 'wcscoll'.
22535         * modules/wcscoll: New file.
22536         * lib/wchar.in.h (wcscoll): New declaration.
22537         * lib/wcscoll.c: New file.
22538         * lib/wcscoll-impl.h: New file.
22539         * m4/wcscoll.m4: New file.
22540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22543         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22544         * doc/posix-functions/wcscoll.texi: Mention the new module.
22545
22546 2011-02-06  Bruno Haible  <bruno@clisp.org>
22547
22548         New module 'wcsncasecmp'.
22549         * modules/wcsncasecmp: New file.
22550         * lib/wchar.in.h (wcsncasecmp): New declaration.
22551         * lib/wcsncasecmp.c: New file.
22552         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22553         * m4/wcsncasecmp.m4: New file.
22554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22557         HAVE_WCSNCASECMP.
22558         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22559         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22560
22561 2011-02-06  Bruno Haible  <bruno@clisp.org>
22562
22563         New module 'wcscasecmp'.
22564         * modules/wcscasecmp: New file.
22565         * lib/wchar.in.h (wcscasecmp): New declaration.
22566         * lib/wcscasecmp.c: New file.
22567         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22568         * m4/wcscasecmp.m4: New file.
22569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22572         HAVE_WCSCASECMP.
22573         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22574         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22575
22576 2011-02-05  Bruno Haible  <bruno@clisp.org>
22577
22578         New module 'wcsncmp'.
22579         * modules/wcsncmp: New file.
22580         * lib/wchar.in.h (wcsncmp): New declaration.
22581         * lib/wcsncmp.c: New file.
22582         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22583         * m4/wcsncmp.m4: New file.
22584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22587         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22588         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22589
22590 2011-02-05  Bruno Haible  <bruno@clisp.org>
22591
22592         New module 'wcscmp'.
22593         * modules/wcscmp: New file.
22594         * lib/wchar.in.h (wcscmp): New declaration.
22595         * lib/wcscmp.c: New file.
22596         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22597         * m4/wcscmp.m4: New file.
22598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22601         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22602         * doc/posix-functions/wcscmp.texi: Mention the new module.
22603
22604 2011-02-05  Bruno Haible  <bruno@clisp.org>
22605
22606         New module 'wcsncat'.
22607         * modules/wcsncat: New file.
22608         * lib/wchar.in.h (wcsncat): New declaration.
22609         * lib/wcsncat.c: New file.
22610         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22611         * m4/wcsncat.m4: New file.
22612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22615         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22616         * doc/posix-functions/wcsncat.texi: Mention the new module.
22617
22618 2011-02-05  Bruno Haible  <bruno@clisp.org>
22619
22620         New module 'wcscat'.
22621         * modules/wcscat: New file.
22622         * lib/wchar.in.h (wcscat): New declaration.
22623         * lib/wcscat.c: New file.
22624         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22625         * m4/wcscat.m4: New file.
22626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22629         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22630         * doc/posix-functions/wcscat.texi: Mention the new module.
22631
22632 2011-02-05  Bruno Haible  <bruno@clisp.org>
22633
22634         New module 'wcpncpy'.
22635         * modules/wcpncpy: New file.
22636         * lib/wchar.in.h (wcpncpy): New declaration.
22637         * lib/wcpncpy.c: New file.
22638         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22639         * m4/wcpncpy.m4: New file.
22640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22642         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22643         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22644         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22645
22646 2011-02-05  Bruno Haible  <bruno@clisp.org>
22647
22648         New module 'wcsncpy'.
22649         * modules/wcsncpy: New file.
22650         * lib/wchar.in.h (wcsncpy): New declaration.
22651         * lib/wcsncpy.c: New file.
22652         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22653         * m4/wcsncpy.m4: New file.
22654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22657         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22658         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22659
22660 2011-02-05  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'wcpcpy'.
22663         * modules/wcpcpy: New file.
22664         * lib/wchar.in.h (wcpcpy): New declaration.
22665         * lib/wcpcpy.c: New file.
22666         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22667         * m4/wcpcpy.m4: New file.
22668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22670         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22671         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22672         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22673
22674 2011-02-05  Bruno Haible  <bruno@clisp.org>
22675
22676         New module 'wcscpy'.
22677         * modules/wcscpy: New file.
22678         * lib/wchar.in.h (wcscpy): New declaration.
22679         * lib/wcscpy.c: New file.
22680         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22681         * m4/wcscpy.m4: New file.
22682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22685         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22686         * doc/posix-functions/wcscpy.texi: Mention the new module.
22687
22688 2011-02-05  Bruno Haible  <bruno@clisp.org>
22689
22690         New module 'wcsnlen'.
22691         * modules/wcsnlen: New file.
22692         * lib/wchar.in.h (wcsnlen): New declaration.
22693         * lib/wcsnlen.c: New file.
22694         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22695         * m4/wcsnlen.m4: New file.
22696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22699         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22700         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22701
22702 2011-02-05  Bruno Haible  <bruno@clisp.org>
22703
22704         New module 'wcslen'.
22705         * modules/wcslen: New file.
22706         * lib/wchar.in.h (wcslen): New declaration.
22707         * lib/wcslen.c: New file.
22708         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22709         * m4/wcslen.m4: New file.
22710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22713         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22714         * doc/posix-functions/wcslen.texi: Mention the new module.
22715
22716 2011-02-05  Bruno Haible  <bruno@clisp.org>
22717
22718         New module 'wmemset'.
22719         * modules/wmemset: New file.
22720         * lib/wchar.in.h (wmemset): New declaration.
22721         * lib/wmemset.c: New file.
22722         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22723         * m4/wmemset.m4: New file.
22724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22727         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22728         * doc/posix-functions/wmemset.texi: Mention the new module.
22729
22730 2011-02-05  Bruno Haible  <bruno@clisp.org>
22731
22732         New module 'wmemmove'.
22733         * modules/wmemmove: New file.
22734         * lib/wchar.in.h (wmemmove): New declaration.
22735         * lib/wmemmove.c: New file.
22736         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22737         * m4/wmemmove.m4: New file.
22738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22740         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22741         HAVE_WMEMMOVE.
22742         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22743         * doc/posix-functions/wmemmove.texi: Mention the new module.
22744
22745 2011-02-05  Bruno Haible  <bruno@clisp.org>
22746
22747         New module 'wmemcpy'.
22748         * modules/wmemcpy: New file.
22749         * lib/wchar.in.h (wmemcpy): New declaration.
22750         * lib/wmemcpy.c: New file.
22751         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22752         * m4/wmemcpy.m4: New file.
22753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22755         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22756         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22757         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22758
22759 2011-02-05  Bruno Haible  <bruno@clisp.org>
22760
22761         New module 'wmemcmp'.
22762         * modules/wmemcmp: New file.
22763         * lib/wchar.in.h (wmemcmp): New declaration.
22764         * lib/wmemcmp.c: New file.
22765         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22766         * m4/wmemcmp.m4: New file.
22767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22769         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22770         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22771         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22772
22773 2011-02-07  Jim Meyering  <meyering@redhat.com>
22774
22775         di-set, ino-map: new modules, from coreutils
22776         * lib/di-set.c: New file.
22777         * lib/di-set.h: Likewise.
22778         * lib/ino-map.c: Likewise.
22779         * lib/ino-map.h: Likewise.
22780         * modules/di-set: Likewise.
22781         * modules/di-set-tests: Likewise.
22782         * modules/ino-map: Likewise.
22783         * modules/ino-map-tests: Likewise.
22784         * tests/test-di-set.c: Likewise.
22785         * tests/test-ino-map.c: Likewise.
22786
22787 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22788
22789         getloadavg: merge minor changes from Emacs
22790
22791         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22792         (getloadavg): Use memset, not bzero.
22793
22794         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22795         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22796         clash (bug#86).
22797
22798 2010-11-14  Bruno Haible  <bruno@clisp.org>
22799
22800         Allow multiple gnulib generated replacements to coexist.
22801         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22802         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22803         * lib/langinfo.in.h (nl_item): Likewise.
22804         * lib/math.in.h (_NaN, NAN): Likewise.
22805         * lib/netdb.in.h (struct addrinfo): Likewise.
22806         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22807         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22808         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22809         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22810         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22811         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22812         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22813         pthread_mutexattr_init, pthread_mutexattr_settype,
22814         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22815         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22816         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22817         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22818         * lib/sched.in.h (struct sched_param): Likewise.
22819         * lib/se-selinux.in.h (security_class_t, security_context_t,
22820         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22821         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22822         lsetfilecon, fsetfilecon, security_check_context,
22823         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22824         Likewise.
22825         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22826         Likewise.
22827         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22828         _gl_function_taking_int_returning_void_t, union sigval,
22829         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22830         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22831         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22832         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22833         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22834         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22835         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22836         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22837         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22838         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22839         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22840         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22841         socklen_t, rpl_fd_isset): Likewise.
22842         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22843         * lib/sys_time.in.h (struct timeval): Likewise.
22844         * lib/sys_times.in.h (struct tms): Likewise.
22845         * lib/sys_utsname.in.h (struct utsname):
22846         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22847         * lib/unistd.in.h (getpagesize): Likewise.
22848         * lib/wchar.in.h (mbstate_t): Likewise.
22849         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22850         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22851         towlower, towupper): Likewise.
22852         Reported by Sam Steingold <sds@gnu.org>.
22853
22854 2011-02-05  Eric Blake  <eblake@redhat.com>
22855
22856         unsetenv: work around Haiku issues
22857         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22858         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22859
22860 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22861
22862         libposix: avoid calling error() within libposix
22863         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22864         is defined.
22865
22866 2011-02-05  Eric Blake  <eblake@redhat.com>
22867
22868         strerror_r-posix: port to cygwin
22869         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22870         implementation.
22871         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22872         * tests/test-strerror_r.c (main): Fix test.
22873         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22874         issue.
22875
22876 2011-02-05  Bruno Haible  <bruno@clisp.org>
22877
22878         New module 'wmemchr'.
22879         * modules/wmemchr: New file.
22880         * lib/wchar.in.h (wmemchr): New declaration.
22881         * lib/wmemchr.c: New file.
22882         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22883         * m4/wmemchr.m4: New file.
22884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22886         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22887         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22888         * doc/posix-functions/wmemchr.texi: Mention the new module.
22889
22890 2011-02-04  Eric Blake  <eblake@redhat.com>
22891
22892         fdopendir: detect FreeBSD bug
22893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22894         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22895
22896 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22897
22898         stdbool: do not define HAVE_STDBOOL_H
22899         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22900         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22901         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22902         imported from the latest Autoconf git.  It was motivated by Emacs,
22903         which uses gnulib but does not need HAVE_STDBOOL_H.
22904
22905 2011-02-04  Bruno Haible  <bruno@clisp.org>
22906
22907         wcsnrtombs: Prepare for new module wwcsnrtombs.
22908         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22909         * lib/wcsnrtombs.c: Include it.
22910         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22911
22912         wcsrtombs: Prepare for new module wwcsrtombs.
22913         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22914         * lib/wcsrtombs.c: Include it.
22915         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22916
22917         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22918         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22919         * lib/mbsnrtowcs.c: Include it.
22920         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22921
22922         mbsrtowcs: Prepare for new module mbsrtowwcs.
22923         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22924         * lib/mbsrtowcs.c: Include it.
22925         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22926
22927 2011-02-04  Bruno Haible  <bruno@clisp.org>
22928
22929         vasnprintf: Reduce use of malloc for small format strings.
22930         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22931         (arguments): Add room for the first 7 arguments.
22932         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22933         (char_directives, u8_directives, u16_directives, u32_directives): Add
22934         room for the first 7 directives.
22935         * lib/printf-parse.c: Include <string.h>.
22936         (PRINTF_PARSE): Change memory handling code so that it uses the first
22937         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22938         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22939         Reported by Pádraig Brady <P@draigbrady.com>.
22940
22941 2011-01-31  Eric Blake  <eblake@redhat.com>
22942
22943         dup2: work around Haiku bug
22944         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22945         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22946         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22947         * tests/test-dup2.c (main): Enhance test.
22948
22949 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22950
22951         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22952         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22953         declared by eglibc 2.11.2.
22954         * lib/stdio.in.h: Likewise.
22955
22956 2011-01-31  Eric Blake  <eblake@redhat.com>
22957
22958         ignore-value: add missing test dependency
22959         * tests/test-ignore-value.c: Revert previous change; stdio.h
22960         provides off_t.
22961         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22962
22963 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22964
22965         mktime: clarify long_int width checking
22966         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22967         the top level, to make it clearer that the assumption about
22968         long_int width is being checked.  See
22969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22970
22971 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22972
22973         ignore-value: Fix self-test.
22974         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22975
22976 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22977
22978         TYPE_MAXIMUM: avoid theoretically undefined behavior
22979         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22980         negative number, which the C Standard says has undefined behavior.
22981         In practice this is not a problem, but might as well do it by the book.
22982         Reported by Rich Felker and Eric Blake; see
22983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22984         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22985         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22987         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22988         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22989         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22990
22991         mktime: #undef mktime before #defining it
22992         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22993
22994         mktime: systematically normalize tm_isdst comparisons
22995         * lib/mktime.c (isdst_differ): New function.
22996         (__mktime_internal): Use it systematically for all isdst comparisons.
22997         This completes the fix for libc BZ #6723, and removes the need for
22998         normalizing tm_isdst.  See
22999         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23000         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23001
23002         mktime: fix some integer overflow issues and sidestep the rest
23003
23004         This was prompted by a bug report by Benjamin Lindner for MinGW
23005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23006         His bug is due to signed integer overflow (0 - INT_MIN), and I
23007         I scanned through mktime.c looking for other integer overflow
23008         problems, fixing all the bugs I found.
23009
23010         Although the C Standard says the resulting code is still not safe
23011         in the presence of integer overflow, in practice it should be good
23012         enough for all real-world two's-complement implementations, except
23013         for debugging environments that deliberately trap on integer
23014         overflow (e.g., gcc -ftrapv).
23015
23016         * lib/mktime.c (WRAPV): New macro.
23017         (SHR): Also check that long_int and time_t shift right in the
23018         usual way, before using the fast-but-unportable method.
23019         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23020         used.  The code already assumed two's complement, so there's
23021         no need to test for alternatives.  All uses removed.
23022         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23023         the C standard.  Problem reported by Rich Felker in
23024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23025         (twos_complement_arithmetic): Also check long_int and time_t.
23026         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23027         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23028         (__mktime_internal): Avoid integer overflow with unary subtraction
23029         in two instances where -1 - X is an adequate replacement for -X,
23030         since the calculations are approximate.
23031
23032 2011-01-29  Eric Blake  <eblake@redhat.com>
23033
23034         mktime: avoid infinite loop
23035         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23036         type; behavior is still undefined but portable to all known targets.
23037         Reported by Rich Felker.
23038
23039 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23040
23041         rename, unlink, same-inode: Relicense.
23042         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23043         * modules/unlink (License): Likewise.
23044         * modules/same-inode (License): Likewise.
23045
23046 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23047
23048         mktime: avoid problems on NetBSD 5 / i386
23049         * lib/mktime.c (long_int): New type.  This works around a problem
23050         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23051         but time_t is 64 bits, and where I expect the existing code is
23052         wrong in some cases.
23053         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23054         (ydhms_diff): Bring back the compile-time check for wide-enough
23055         year and yday.
23056
23057         mktime: fix misspelling in comment
23058         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23059         This merges all recent glibc changes of importance.
23060
23061 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23062
23063         move-if-change: cope with concurrent mv of identical file.
23064         * build-aux/move-if-change (CMPPROG): Accept environment
23065         variable as an override for `cmp'.
23066         (usage): Document CMPPROG.
23067         Adjust comparison to drop stdout.  Cope with failure of mv if
23068         the target file exists and is identical to the source, for
23069         parallel builds.
23070         Report from H.J. Lu against binutils in PR binutils/12283.
23071
23072 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23073
23074         * users.txt: Mention sharutils.
23075
23076 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23077
23078         * users.txt: Mention OATH Toolkit.
23079
23080 2011-01-27  Bruno Haible  <bruno@clisp.org>
23081
23082         Prepare for supporting FreeBSD 10.
23083         * build-aux/config.libpath: Remove handling of freebsd1*.
23084
23085 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23086
23087         Prepare for supporting FreeBSD 10.
23088         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23089         match FreeBSD 10.0.
23090
23091 2011-01-27  Bruno Haible  <bruno@clisp.org>
23092
23093         vma-iter, get-rusage-as: Add OpenBSD support.
23094         * modules/vma-iter (configure.ac): Test for mquery.
23095         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23096         * lib/vma-iter.c: Include <sys/mman.h>.
23097         (vma_iterate): Add an implementation based on mquery().
23098         * lib/resource-ext.h (get_rusage_as): Update comments.
23099         * lib/get-rusage-as.c: Likewise.
23100         * lib/get-rusage-data.c: Likewise.
23101
23102 2011-01-26  Karl Berry  <karl@gnu.org>
23103
23104         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23105         variables to make it easier to override the makeinfo program used.
23106
23107 2011-01-26  Eric Blake  <eblake@redhat.com>
23108
23109         fcntl: work around Haiku F_DUPFD bugs
23110         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23111         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23112         cloexec bit on duplication.
23113         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23114
23115 2011-01-26  Bruno Haible  <bruno@clisp.org>
23116
23117         Enable memory leak tests on AIX.
23118         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23119         * tests/test-fprintf-posix3.c (main): Likewise.
23120
23121 2011-01-26  Bruno Haible  <bruno@clisp.org>
23122
23123         Tests for module 'get-rusage-data'.
23124         * modules/get-rusage-data-tests: New file.
23125         * tests/test-get-rusage-data.c: New file.
23126
23127         New module 'get-rusage-data'.
23128         * lib/resource-ext.h (get_rusage_data): New declaration.
23129         * lib/get-rusage-data.c: New file.
23130         * modules/get-rusage-data: New file.
23131
23132 2011-01-25  Bruno Haible  <bruno@clisp.org>
23133
23134         get-rusage-as: Allow for easier testing.
23135         * lib/resource-ext.h (get_rusage_as): Add comment.
23136         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23137         (main): New function for interactive testing.
23138
23139 2011-01-25  Bruno Haible  <bruno@clisp.org>
23140
23141         vma-iter: Treat Haiku like BeOS.
23142         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23143         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23144
23145 2011-01-25  Eric Blake  <eblake@redhat.com>
23146
23147         c-stack: fix regression on cygwin when libsigsegv is present
23148         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23149
23150 2011-01-24  Bruno Haible  <bruno@clisp.org>
23151
23152         vma-iter: Avoid empty intervals.
23153         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23154         on an empty interval.
23155
23156 2011-01-24  Jim Meyering  <meyering@redhat.com>
23157
23158         u64: remove unnecessary #include
23159         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23160
23161 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23162
23163         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23164         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23165
23166 2011-01-23  Bruno Haible  <bruno@clisp.org>
23167
23168         New module 'vma-iter'.
23169         * lib/vma-iter.h: New file.
23170         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23171         * modules/vma-iter: New file.
23172         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23173         for get_rusage_as_via_iterator.
23174         (vma_iterate_callback): New function.
23175         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23176         * modules/get-rusage-as (Depends-on): Add vma-iter.
23177
23178 2011-01-23  Bruno Haible  <bruno@clisp.org>
23179
23180         uninorm: Tweak includes.
23181         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23182         Reported by Jim Meyering.
23183
23184 2011-01-23  Bruno Haible  <bruno@clisp.org>
23185
23186         get-rusage-as: Improve on NetBSD.
23187         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23188         /proc, like on FreeBSD.
23189
23190 2011-01-23  Jim Meyering  <meyering@redhat.com>
23191
23192         xreadlink.h: remove unnecessary #include
23193         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23194
23195         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23196         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23197
23198 2011-01-23  Bruno Haible  <bruno@clisp.org>
23199
23200         get-rusage-as: Fix bug.
23201         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23202         original limit when aborting the first loop.
23203
23204 2011-01-23  Bruno Haible  <bruno@clisp.org>
23205
23206         wctype: Ensure valid C syntax.
23207         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23208         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23209
23210 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23211
23212         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23214         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23215         as they are needed only for configure's test case.
23216         This removes two unnecessary symbols from config.h.
23217
23218         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23219         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23221         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23222         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23223         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23225         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23226         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23227         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23228         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23230         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23231         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23232         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23233         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23234         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23235         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23236
23237 2011-01-21  Eric Blake  <eblake@redhat.com>
23238
23239         maintainer-makefile: work with older git for submodule check
23240         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23241         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23242         Reported by Matthias Bolte.
23243
23244         bootstrap: minor portability fixes
23245         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23246         (usage): Omit leading capital and trailing . on help phrases, per
23247         GNU Coding Standards.
23248         (check_versions, top level): Prefix messages with script name.
23249
23250 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23251
23252         bootstrap: support --no-git option
23253         * build-aux/bootstrap: Add --no-git option, to be used when
23254         --gnulib-srcdir points to the exact desired checkout.
23255
23256 2011-01-21  Eric Blake  <eblake@redhat.com>
23257
23258         strerror_r-posix: work with glibc 2.13
23259         * lib/strerror_r.c (strerror_r): Fix return type.
23260
23261 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23262             Bruno Haible  <bruno@clisp.org>
23263
23264         uN_strstr: New unit tests.
23265         * modules/unistr/u8-strstr-tests: New file.
23266         * modules/unistr/u16-strstr-tests: New file.
23267         * modules/unistr/u32-strstr-tests: New file.
23268         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23269         * tests/unistr/test-u8-strstr.c: New file.
23270         * tests/unistr/test-u16-strstr.c: New file.
23271         * tests/unistr/test-u32-strstr.c: New file.
23272
23273 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23274             Bruno Haible  <bruno@clisp.org>
23275
23276         Make uN_strstr functions O(n) worst-case.
23277         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23278         16-bit and 32-bit unit cases, use the unibyte algorithm from
23279         lib/mbsstr.c.
23280         * lib/unistr/u8-strstr.c: Include <string.h>.
23281         (UNIT_IS_UINT8_T): New macro.
23282         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23283         (U_STRLEN, U_STRNLEN): New macros.
23284         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23285         (U_STRLEN, U_STRNLEN): New macros.
23286         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23287         (configure.ac): Update required libunistring version.
23288         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23289         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23290         malloca.
23291         (configure.ac): Update required libunistring version.
23292         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23293         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23294         malloca.
23295         (configure.ac): Update required libunistring version.
23296
23297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23298             Bruno Haible  <bruno@clisp.org>
23299
23300         Prepare for faster uN_strstr functions.
23301         * lib/str-kmp.h: Support definable UNITs.
23302         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23303         needle_len argument.
23304         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23305         * lib/mbscasestr.c (mbscasestr): Likewise.
23306
23307 2011-01-21  Pádraig Brady <P@draigBrady.com>
23308
23309         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23310         * tests/test-malloca.c (main): Unset the environment variable
23311         to greatly speed up the test.
23312         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23313         * modules/malloca-tests: Depend on unsetenv.
23314
23315 2011-01-21  Pádraig Brady <P@draigBrady.com>
23316
23317         ignore-value: remove stdint dependency
23318         * lib/ignore-value.h: Remove <stdint.h>
23319         * modules/ignore-value: Remove stdint dependency.
23320
23321 2011-01-21  Jim Meyering  <meyering@redhat.com>
23322
23323         maint.mk: adjust variable name to be consistent with other gl_ vars
23324         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23325         to be lower case.
23326
23327 2011-01-20  Jim Meyering  <meyering@redhat.com>
23328
23329         maint.mk: make "check" depend on public-submodule-commit by default
23330         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23331
23332 2011-01-20  Bruno Haible  <bruno@clisp.org>
23333
23334         mbfile, mbiter: Complete change from 2008-12-21.
23335         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23336         * m4/mbiter.m4 (gl_MBITER): Likewise.
23337
23338 2011-01-20  Jim Meyering  <meyering@redhat.com>
23339
23340         init.sh: insert space between each function name and "()"
23341         * tests/init.sh: Make it a little easier to see that a function's
23342         name is "warn_", and not "warn" when looking at the first part of
23343         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23344
23345 2011-01-20  Jim Meyering  <meyering@redhat.com>
23346
23347         mountlist: clean up code formatting
23348         * lib/mountlist.c (read_file_system_list): Split a long line,
23349         correct bracing style, use NULL in place of "(struct statfs *)0",
23350         don't parenthesize return value, add spaces around "=" and after
23351         ";-in-for-stmt".
23352
23353 2011-01-14  Markus Duft <mduft@gentoo.org>
23354
23355         mountlist: add support for Interix
23356         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23357         Apply statvfs to all entries of /dev/fs.
23358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23359         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23360
23361 2011-01-20  Jim Meyering  <meyering@redhat.com>
23362
23363         maint.mk: improve the public-submodule-commit rule
23364         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23365         to suppress printing of its commands... unless V=1.
23366         Add git submodule's --quiet option to suppress printing of e.g.,
23367         "Entering gnulib" output.
23368         "cd" into $(srcdir) before running git submodule.
23369
23370 2011-01-20  Bruno Haible  <bruno@clisp.org>
23371
23372         include_next: Fix bug introduced on 2011-01-18.
23373         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23374         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23375         ac_cv_header_... variable if the second argument is not 'check'.
23376         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23377         gl_NEXT_HEADERS_INTERNAL.
23378
23379 2011-01-20  Bruno Haible  <bruno@clisp.org>
23380
23381         Allow the user to avoid the GNULIB_TEST_* macros.
23382         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23383         Suggested by Paul Eggert.
23384
23385 2011-01-14  Jim Meyering  <meyering@redhat.com>
23386
23387         bootstrap: avoid failure when there is no .gitmodules file
23388         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23389         has been assigned to, even when its value is the empty string.
23390         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23391         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23392         Reported by John W. Eaton <jwe@gnu.org>.
23393
23394 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23395
23396         assume <ctype.h>, ..., <time.h> exist
23397         For years gnulib has been assuming the existence of the headers
23398         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23399         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23400         them, since they don't appear to be needed.
23401         * README (Portability guidelines): Document this.
23402         * lib/flock.c: Assume <fcntl.h> exists.
23403         * lib/regex_internal.h: Assume <locale.h> exists.
23404         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23406         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23407         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23408         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23409         * m4/regex.m4 (gl_REGEX): Likewise.
23410         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23411         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23412         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23413         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23414         * tests/test-argp.c: Likewise.
23415         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23416
23417         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23418         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23419         AA_APPLE_UNIVERSAL_BUILD.  See
23420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23421         * NEWS: Document this.
23422
23423 2011-01-19  Eric Blake  <eblake@redhat.com>
23424
23425         c-stack: assume stack overflow if SA_SIGINFO unsupported
23426         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23427         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23428         sigaction will work.
23429         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23430         behavior match Linux.
23431         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23432
23433         stdbool-tests: accommodate Haiku
23434         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23435
23436         binary-io: fix O_TEXT on Haiku
23437         * modules/binary-io (Depends-on): Add fcntl-h.
23438         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23439         than blindly undefining O_TEXT.
23440         Reported by Scott McCreary.
23441
23442 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23443
23444         include_next: do not check for standard headers like stddef.h
23445
23446         I found this problem when modifying Emacs to use gnulib.
23447         I noticed that it added HAVE_STDDEF_H to config.h, even though
23448         gnulib always assumes <stddef.h> exists as per README and this
23449         symbol is unnecessary.
23450         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23451         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23452         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23453         faster for headers like stddef.h that are known to exist.
23454         (gl_CHECK_NEXT_HEADERS): Use it.
23455         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23456         rather than gl_CHECK_NEXT_HEADERS.
23457         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23458         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23459
23460 2011-01-18  Eric Blake  <eblake@redhat.com>
23461
23462         ansi-c++-opt: skip C++ dependency style if C++ is unused
23463         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23464         tests when we know C++ compilation is not desired.
23465         Reported by Scott McCreary.
23466
23467 2011-01-18  Bruno Haible  <bruno@clisp.org>
23468
23469         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23470         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23471         (main): Perform test also when getrlimit and setrlimit don't exist or
23472         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23473         limiting the address space size using setrlimit, compare the address
23474         space size before and after the the test.
23475         * tests/test-dprintf-posix2.c: Likewise.
23476         * tests/test-fprintf-posix3.sh: Update skip messages.
23477         * tests/test-dprintf-posix2.sh: Likewise.
23478         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23479         * modules/dprintf-posix-tests (Depends-on): Likewise.
23480         Reported by Bruce Korb <bkorb@gnu.org> and
23481         Gary V. Vaughan <gary@gnu.org>.
23482
23483 2011-01-18  Bruno Haible  <bruno@clisp.org>
23484
23485         get-rusage-as: Improvement for Cygwin.
23486         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23487         areas that are merely reserved.
23488
23489 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23490
23491         strftime: remove dependencies on multibyte modules
23492
23493         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23494         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23495         only if __osf__ is defined, and I suspect OSF doesn't need these
23496         other modules.  If my guess is wrong, we'll need to come up with a
23497         variant of strftime that doesn't need the multibyte modules.
23498
23499         I discovered this problem when attempting modify Emacs to use the
23500         strftime module.  With the previous gnulib, this caused Emacs to
23501         need 31 new files, ranging from lib/config.charset to
23502         m4/wint_t.m4.  This was overkill and I expect would be offputting
23503         to the Emacs maintainers.  After this change, only 6 new files are
23504         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23505         stdbool.m4, and tm_gmtoff.m4.
23506
23507         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23508         Suggested by Bruno Haible in
23509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23510         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23511         and do not check for wchar.h.
23512         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23513         (Depends-on): Remove mbrlen, mbsinit, wchar.
23514
23515 2011-01-18  Bruno Haible  <bruno@clisp.org>
23516
23517         Tests for module 'get-rusage-as'.
23518         * modules/get-rusage-as-tests: New file.
23519         * tests/test-get-rusage-as.c: New file.
23520
23521         New module 'get-rusage-as'.
23522         * modules/get-rusage-as: New file.
23523         * lib/resource-ext.h: New file.
23524         * lib/get-rusage-as.c: New file.
23525
23526 2011-01-17  Eric Blake  <eblake@redhat.com>
23527
23528         sigaction: relax license from LGPLv3+ to LGPLv2+
23529         * modules/sigaction (License): Relax to LGPLv2+.
23530
23531 2011-01-14  Bruno Haible  <bruno@clisp.org>
23532
23533         filemode: Make function declarations usable in C++ mode.
23534         * lib/filemode.h: Enclose function declarations in extern "C" block.
23535         Reported by John W. Eaton <jwe@gnu.org>.
23536
23537 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23538
23539         save-cwd: no longer include "xgetcwd.h"
23540         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23541         This avoids a compilation failure in projects that use save-cwd
23542         without also using the xgetcwd module.
23543
23544 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23545
23546         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23547         This is so that a program like Emacs, which needs only dtoastr,
23548         does not have to bother with distributing and compiling ftoastr
23549         and ldtoastr.
23550         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23551         * modules/dtoastr, modules/ldtoastr: New files.
23552         * modules/ftoastr: Now works just for 'float'.
23553         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23554         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23555         dtoastr.c, ldtoastr.c.
23556
23557 2011-01-11  Jim Meyering  <meyering@redhat.com>
23558
23559         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23560         There is no need to work around the lack of the fchdir function,
23561         since gnulib can now provide a replacement when required.
23562         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23563         * modules/save-cwd (Depends-on): Add fchdir.
23564
23565 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23566
23567         openat, save-cwd: avoid xmalloc
23568
23569         This removes a direct (but undocumented) dependency of openat on
23570         xalloc, along with an indirect dependency via save-cwd.  It also
23571         removes a dependency of save-cwd on xgetcwd, and thereby
23572         indirectly on xalloc.  This change causes the openat substitute
23573         to fall back on save_cwd when memory is tight, and for save_cwd to
23574         fail instead of dying when memory is tight, but that's good enough.
23575         Problem and initial idea for fix reported by Bastien Roucaries in
23576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23577
23578         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23579         xalloc.h (for xmalloc).
23580         (openat_proc_name): Use malloc, not xmalloc.
23581         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23582         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23583
23584         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23585         This avoids heap allocation for file names whose lengths are in
23586         the range 512..1023, with the upper bound increasing to at most
23587         4031 depending on the platform's PATH_MAX.  (We do not want
23588         pathmax.h here as it might supply a non-constant PATH_MAX.)
23589         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23590         Perhaps they should be moved to malloca.h?
23591         (OPENAT_BUFFER_SIZE): Use them.
23592
23593 2011-01-10  Bruno Haible  <bruno@clisp.org>
23594
23595         doc: Update users.txt.
23596         * users.txt: Add recutils.
23597
23598 2011-01-09  Karl Berry  <karl@gnu.org>
23599
23600         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23601
23602         * doc/configmake.texi: New file.
23603         * doc/gnulib.texi: Include it.
23604         * modules/configmake: Move documentation from here.
23605
23606 2011-01-09  Bruno Haible  <bruno@clisp.org>
23607
23608         Update to Unicode 6.0.0.
23609         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23610         (get_lbp): Update for Unicode 6.0.0.
23611         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23612         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23613         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23614         U+11001, U+11038..U+11046. Remove U+06DE.
23615         (uc_width): Fix bounds of planes.
23616         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23617         lib/uniwidth/width.c.
23618         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23619         trailing whitespace removed.
23620         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23621         without comments, but with the original copyright notice.
23622         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23623         * lib/unicase/ignorable.h: Likewise.
23624         * lib/unicase/tocasefold.h: Likewise.
23625         * lib/unicase/tolower.h: Likewise.
23626         * lib/unicase/totitle.h: Likewise.
23627         * lib/unicase/toupper.h: Likewise.
23628         * lib/unictype/bidi_of.h: Likewise.
23629         * lib/unictype/blocks.h: Likewise.
23630         * lib/unictype/categ_C.h: Likewise.
23631         * lib/unictype/categ_Cn.h: Likewise.
23632         * lib/unictype/categ_L.h: Likewise.
23633         * lib/unictype/categ_Ll.h: Likewise.
23634         * lib/unictype/categ_Lm.h: Likewise.
23635         * lib/unictype/categ_Lo.h: Likewise.
23636         * lib/unictype/categ_Lu.h: Likewise.
23637         * lib/unictype/categ_M.h: Likewise.
23638         * lib/unictype/categ_Mc.h: Likewise.
23639         * lib/unictype/categ_Me.h: Likewise.
23640         * lib/unictype/categ_Mn.h: Likewise.
23641         * lib/unictype/categ_N.h: Likewise.
23642         * lib/unictype/categ_Nd.h: Likewise.
23643         * lib/unictype/categ_No.h: Likewise.
23644         * lib/unictype/categ_P.h: Likewise.
23645         * lib/unictype/categ_Po.h: Likewise.
23646         * lib/unictype/categ_S.h: Likewise.
23647         * lib/unictype/categ_Sc.h: Likewise.
23648         * lib/unictype/categ_Sk.h: Likewise.
23649         * lib/unictype/categ_Sm.h: Likewise.
23650         * lib/unictype/categ_So.h: Likewise.
23651         * lib/unictype/categ_of.h: Likewise.
23652         * lib/unictype/combining.h: Likewise.
23653         * lib/unictype/ctype_alnum.h: Likewise.
23654         * lib/unictype/ctype_alpha.h: Likewise.
23655         * lib/unictype/ctype_graph.h: Likewise.
23656         * lib/unictype/ctype_lower.h: Likewise.
23657         * lib/unictype/ctype_print.h: Likewise.
23658         * lib/unictype/ctype_punct.h: Likewise.
23659         * lib/unictype/ctype_upper.h: Likewise.
23660         * lib/unictype/decdigit.h: Likewise.
23661         * lib/unictype/digit.h: Likewise.
23662         * lib/unictype/numeric.h: Likewise.
23663         * lib/unictype/pr_alphabetic.h: Likewise.
23664         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23665         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23666         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23667         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23668         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23669         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23670         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23671         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23672         * lib/unictype/pr_case_ignorable.h: Likewise.
23673         * lib/unictype/pr_cased.h: Likewise.
23674         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23675         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23676         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23677         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23678         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23679         * lib/unictype/pr_combining.h: Likewise.
23680         * lib/unictype/pr_composite.h: Likewise.
23681         * lib/unictype/pr_currency_symbol.h: Likewise.
23682         * lib/unictype/pr_decimal_digit.h: Likewise.
23683         * lib/unictype/pr_deprecated.h: Likewise.
23684         * lib/unictype/pr_format_control.h: Likewise.
23685         * lib/unictype/pr_grapheme_base.h: Likewise.
23686         * lib/unictype/pr_grapheme_extend.h: Likewise.
23687         * lib/unictype/pr_grapheme_link.h: Likewise.
23688         * lib/unictype/pr_id_continue.h: Likewise.
23689         * lib/unictype/pr_id_start.h: Likewise.
23690         * lib/unictype/pr_ideographic.h: Likewise.
23691         * lib/unictype/pr_lowercase.h: Likewise.
23692         * lib/unictype/pr_math.h: Likewise.
23693         * lib/unictype/pr_numeric.h: Likewise.
23694         * lib/unictype/pr_other_alphabetic.h: Likewise.
23695         * lib/unictype/pr_other_id_continue.h: Likewise.
23696         * lib/unictype/pr_other_math.h: Likewise.
23697         * lib/unictype/pr_punctuation.h: Likewise.
23698         * lib/unictype/pr_sentence_terminal.h: Likewise.
23699         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23700         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23701         * lib/unictype/pr_unified_ideograph.h: Likewise.
23702         * lib/unictype/pr_uppercase.h: Likewise.
23703         * lib/unictype/pr_xid_continue.h: Likewise.
23704         * lib/unictype/pr_xid_start.h: Likewise.
23705         * lib/unictype/scripts.h: Likewise.
23706         * lib/unictype/scripts_byname.gperf: Likewise.
23707         * lib/unictype/sy_java_ident.h: Likewise.
23708         * lib/unigbrk/gbrkprop.h: Likewise.
23709         * lib/unilbrk/lbrkprop1.h: Likewise.
23710         * lib/unilbrk/lbrkprop2.h: Likewise.
23711         * lib/uninorm/decomposition-table2.h: Likewise.
23712         * lib/uniwbrk/wbrkprop.h: Likewise.
23713         * tests/unicase/test-cased.c: Likewise.
23714         * tests/unicase/test-ignorable.c: Likewise.
23715         * tests/unicase/test-uc_tolower.c: Likewise.
23716         * tests/unicase/test-uc_totitle.c: Likewise.
23717         * tests/unicase/test-uc_toupper.c: Likewise.
23718         * tests/unictype/test-categ_C.c: Likewise.
23719         * tests/unictype/test-categ_Cn.c: Likewise.
23720         * tests/unictype/test-categ_L.c: Likewise.
23721         * tests/unictype/test-categ_Ll.c: Likewise.
23722         * tests/unictype/test-categ_Lm.c: Likewise.
23723         * tests/unictype/test-categ_Lo.c: Likewise.
23724         * tests/unictype/test-categ_Lu.c: Likewise.
23725         * tests/unictype/test-categ_M.c: Likewise.
23726         * tests/unictype/test-categ_Mc.c: Likewise.
23727         * tests/unictype/test-categ_Me.c: Likewise.
23728         * tests/unictype/test-categ_Mn.c: Likewise.
23729         * tests/unictype/test-categ_N.c: Likewise.
23730         * tests/unictype/test-categ_Nd.c: Likewise.
23731         * tests/unictype/test-categ_No.c: Likewise.
23732         * tests/unictype/test-categ_P.c: Likewise.
23733         * tests/unictype/test-categ_Po.c: Likewise.
23734         * tests/unictype/test-categ_S.c: Likewise.
23735         * tests/unictype/test-categ_Sc.c: Likewise.
23736         * tests/unictype/test-categ_Sk.c: Likewise.
23737         * tests/unictype/test-categ_Sm.c: Likewise.
23738         * tests/unictype/test-categ_So.c: Likewise.
23739         * tests/unictype/test-ctype_alnum.c: Likewise.
23740         * tests/unictype/test-ctype_alpha.c: Likewise.
23741         * tests/unictype/test-ctype_graph.c: Likewise.
23742         * tests/unictype/test-ctype_lower.c: Likewise.
23743         * tests/unictype/test-ctype_print.c: Likewise.
23744         * tests/unictype/test-ctype_punct.c: Likewise.
23745         * tests/unictype/test-ctype_upper.c: Likewise.
23746         * tests/unictype/test-decdigit.h: Likewise.
23747         * tests/unictype/test-digit.h: Likewise.
23748         * tests/unictype/test-numeric.h: Likewise.
23749         * tests/unictype/test-pr_alphabetic.c: Likewise.
23750         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23751         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23752         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23753         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23754         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23755         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23756         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23757         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23758         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23759         * tests/unictype/test-pr_cased.c: Likewise.
23760         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23761         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23762         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23763         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23764         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23765         * tests/unictype/test-pr_combining.c: Likewise.
23766         * tests/unictype/test-pr_composite.c: Likewise.
23767         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23768         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23769         * tests/unictype/test-pr_deprecated.c: Likewise.
23770         * tests/unictype/test-pr_format_control.c: Likewise.
23771         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23772         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23773         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23774         * tests/unictype/test-pr_id_continue.c: Likewise.
23775         * tests/unictype/test-pr_id_start.c: Likewise.
23776         * tests/unictype/test-pr_ideographic.c: Likewise.
23777         * tests/unictype/test-pr_lowercase.c: Likewise.
23778         * tests/unictype/test-pr_math.c: Likewise.
23779         * tests/unictype/test-pr_numeric.c: Likewise.
23780         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23781         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23782         * tests/unictype/test-pr_other_math.c: Likewise.
23783         * tests/unictype/test-pr_punctuation.c: Likewise.
23784         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23785         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23786         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23787         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23788         * tests/unictype/test-pr_uppercase.c: Likewise.
23789         * tests/unictype/test-pr_xid_continue.c: Likewise.
23790         * tests/unictype/test-pr_xid_start.c: Likewise.
23791         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23792         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23793         changes.
23794         * lib/unictype/categ_Cc.h: Likewise.
23795         * lib/unictype/categ_Cf.h: Likewise.
23796         * lib/unictype/categ_Co.h: Likewise.
23797         * lib/unictype/categ_Cs.h: Likewise.
23798         * lib/unictype/categ_Lt.h: Likewise.
23799         * lib/unictype/categ_Nl.h: Likewise.
23800         * lib/unictype/categ_Pc.h: Likewise.
23801         * lib/unictype/categ_Pd.h: Likewise.
23802         * lib/unictype/categ_Pe.h: Likewise.
23803         * lib/unictype/categ_Pf.h: Likewise.
23804         * lib/unictype/categ_Pi.h: Likewise.
23805         * lib/unictype/categ_Ps.h: Likewise.
23806         * lib/unictype/categ_Z.h: Likewise.
23807         * lib/unictype/categ_Zl.h: Likewise.
23808         * lib/unictype/categ_Zp.h: Likewise.
23809         * lib/unictype/categ_Zs.h: Likewise.
23810         * lib/unictype/ctype_blank.h: Likewise.
23811         * lib/unictype/ctype_cntrl.h: Likewise.
23812         * lib/unictype/ctype_digit.h: Likewise.
23813         * lib/unictype/ctype_space.h: Likewise.
23814         * lib/unictype/ctype_xdigit.h: Likewise.
23815         * lib/unictype/mirror.h: Likewise.
23816         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23817         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23818         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23819         * lib/unictype/pr_bidi_control.h: Likewise.
23820         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23821         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23822         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23823         * lib/unictype/pr_bidi_pdf.h: Likewise.
23824         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23825         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23826         * lib/unictype/pr_dash.h: Likewise.
23827         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23828         * lib/unictype/pr_diacritic.h: Likewise.
23829         * lib/unictype/pr_extender.h: Likewise.
23830         * lib/unictype/pr_hex_digit.h: Likewise.
23831         * lib/unictype/pr_hyphen.h: Likewise.
23832         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23833         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23834         * lib/unictype/pr_ignorable_control.h: Likewise.
23835         * lib/unictype/pr_iso_control.h: Likewise.
23836         * lib/unictype/pr_join_control.h: Likewise.
23837         * lib/unictype/pr_left_of_pair.h: Likewise.
23838         * lib/unictype/pr_line_separator.h: Likewise.
23839         * lib/unictype/pr_logical_order_exception.h: Likewise.
23840         * lib/unictype/pr_non_break.h: Likewise.
23841         * lib/unictype/pr_not_a_character.h: Likewise.
23842         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23843         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23844         * lib/unictype/pr_other_id_start.h: Likewise.
23845         * lib/unictype/pr_other_lowercase.h: Likewise.
23846         * lib/unictype/pr_other_uppercase.h: Likewise.
23847         * lib/unictype/pr_paired_punctuation.h: Likewise.
23848         * lib/unictype/pr_paragraph_separator.h: Likewise.
23849         * lib/unictype/pr_pattern_syntax.h: Likewise.
23850         * lib/unictype/pr_pattern_white_space.h: Likewise.
23851         * lib/unictype/pr_private_use.h: Likewise.
23852         * lib/unictype/pr_quotation_mark.h: Likewise.
23853         * lib/unictype/pr_radical.h: Likewise.
23854         * lib/unictype/pr_soft_dotted.h: Likewise.
23855         * lib/unictype/pr_space.h: Likewise.
23856         * lib/unictype/pr_titlecase.h: Likewise.
23857         * lib/unictype/pr_variation_selector.h: Likewise.
23858         * lib/unictype/pr_white_space.h: Likewise.
23859         * lib/unictype/pr_zero_width.h: Likewise.
23860         * lib/unictype/sy_c_ident.h: Likewise.
23861         * lib/unictype/sy_c_whitespace.h: Likewise.
23862         * lib/unictype/sy_java_whitespace.h: Likewise.
23863         * lib/uninorm/composition-table.gperf: Likewise.
23864         * lib/uninorm/decomposition-table1.h: Likewise.
23865         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23866         LB8.
23867         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23868         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23869         * modules/unictype/*: Bump version number of expected libunistring
23870         version.
23871
23872 2011-01-09  Bruno Haible  <bruno@clisp.org>
23873
23874         Update to Unicode 5.2.0.
23875         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23876         trailing whitespace removed.
23877
23878 2011-01-09  Bruno Haible  <bruno@clisp.org>
23879
23880         New Unicode character properties, from Unicode 5.2.0.
23881         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23882         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23883         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23884         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23885         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23886         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23887         uc_is_property_cased, uc_is_property_case_ignorable,
23888         uc_is_property_changes_when_lowercased,
23889         uc_is_property_changes_when_uppercased,
23890         uc_is_property_changes_when_titlecased,
23891         uc_is_property_changes_when_casefolded,
23892         uc_is_property_changes_when_casemapped): New declarations.
23893         * lib/unictype/pr_byname.gperf: Add the new properties.
23894         * modules/unictype/property-byname (Depends-on): Depend on the new
23895         properties modules.
23896         * modules/unictype/property-all (Depends-on): Likewise.
23897         * MODULES.html.sh (Unicode string functions): Add
23898         unictype/property-case-ignorable, unictype/property-cased,
23899         unictype/property-changes-when-casefolded,
23900         unictype/property-changes-when-casemapped,
23901         unictype/property-changes-when-lowercased,
23902         unictype/property-changes-when-titlecased,
23903         unictype/property-changes-when-uppercased.
23904
23905         New module 'unictype/property-changes-when-casemapped'.
23906         * modules/unictype/property-changes-when-casemapped: New file.
23907         * lib/unictype/pr_changes_when_casemapped.c: New file.
23908         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23909         generated by gen-uni-tables.
23910         * modules/unictype/property-changes-when-casemapped-tests: New file.
23911         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23912         automatically generated by gen-uni-tables.
23913
23914         New module 'unictype/property-changes-when-casefolded'.
23915         * modules/unictype/property-changes-when-casefolded: New file.
23916         * lib/unictype/pr_changes_when_casefolded.c: New file.
23917         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23918         generated by gen-uni-tables.
23919         * modules/unictype/property-changes-when-casefolded-tests: New file.
23920         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23921         automatically generated by gen-uni-tables.
23922
23923         New module 'unictype/property-changes-when-titlecased'.
23924         * modules/unictype/property-changes-when-titlecased: New file.
23925         * lib/unictype/pr_changes_when_titlecased.c: New file.
23926         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23927         generated by gen-uni-tables.
23928         * modules/unictype/property-changes-when-titlecased-tests: New file.
23929         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23930         automatically generated by gen-uni-tables.
23931
23932         New module 'unictype/property-changes-when-uppercased'.
23933         * modules/unictype/property-changes-when-uppercased: New file.
23934         * lib/unictype/pr_changes_when_uppercased.c: New file.
23935         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23936         generated by gen-uni-tables.
23937         * modules/unictype/property-changes-when-uppercased-tests: New file.
23938         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23939         automatically generated by gen-uni-tables.
23940
23941         New module 'unictype/property-changes-when-lowercased'.
23942         * modules/unictype/property-changes-when-lowercased: New file.
23943         * lib/unictype/pr_changes_when_lowercased.c: New file.
23944         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23945         generated by gen-uni-tables.
23946         * modules/unictype/property-changes-when-lowercased-tests: New file.
23947         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23948         automatically generated by gen-uni-tables.
23949
23950         New module 'unictype/property-case-ignorable'.
23951         * modules/unictype/property-case-ignorable: New file.
23952         * lib/unictype/pr_case_ignorable.c: New file.
23953         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23954         by gen-uni-tables.
23955         * modules/unictype/property-case-ignorable-tests: New file.
23956         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23957         generated by gen-uni-tables.
23958
23959         New module 'unictype/property-cased'.
23960         * modules/unictype/property-cased: New file.
23961         * lib/unictype/pr_cased.c: New file.
23962         * lib/unictype/pr_cased.h: New file, automatically generated by
23963         gen-uni-tables.
23964         * modules/unictype/property-cased-tests: New file.
23965         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23966         gen-uni-tables.
23967
23968 2011-01-09  Bruno Haible  <bruno@clisp.org>
23969
23970         Update to Unicode 5.2.0.
23971         * lib/gen-uni-tables.c (output_predicate, output_category,
23972         output_combclass, output_bidi_category, output_decimal_digit_test,
23973         output_decimal_digit, output_digit_test, output_digit,
23974         output_numeric_test, output_numeric, output_mirror, output_scripts,
23975         output_scripts_byname, output_blocks, output_ident_category): Fix
23976         comment header.
23977         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23978         get_wbp.
23979         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23980         items.
23981         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23982         Changes_When_Lowercased, Changes_When_Uppercased,
23983         Changes_When_Titlecased, Changes_When_Casefolded,
23984         Changes_When_Casemapped.
23985         (is_property_alphabetic, is_property_default_ignorable_code_point):
23986         Update for Unicode 5.2.0.
23987         (is_property_cased, is_property_case_ignorable,
23988         is_property_changes_when_lowercased,
23989         is_property_changes_when_uppercased,
23990         is_property_changes_when_titlecased,
23991         is_property_changes_when_casefolded,
23992         is_property_changes_when_casemapped): New functions.
23993         (output_properties): Output also the properties cased, case_ignorable,
23994         changes_when_lowercased, changes_when_uppercased,
23995         changes_when_titlecased, changes_when_casefolded,
23996         changes_when_casemapped.
23997         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23998         Unicode TR#11 revision 17 -> 19.
23999         (LBP_CP): New enumeration value.
24000         (LBP_*): Adjust values accordingly.
24001         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24002         TR#14 revision 22 -> 24.
24003         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24004         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24005         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24006         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24007         is_WBP_MIDLETTER.
24008         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24009         the code1 and code2 of each composition rule.
24010         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24011         * lib/unicase/ignorable.h: Likewise.
24012         * lib/unicase/tocasefold.h: Likewise.
24013         * lib/unicase/tolower.h: Likewise.
24014         * lib/unicase/totitle.h: Likewise.
24015         * lib/unicase/toupper.h: Likewise.
24016         * lib/unictype/bidi_of.h: Likewise.
24017         * lib/unictype/blocks.h: Likewise.
24018         * lib/unictype/categ_C.h: Likewise.
24019         * lib/unictype/categ_Cf.h: Likewise.
24020         * lib/unictype/categ_Cn.h: Likewise.
24021         * lib/unictype/categ_L.h: Likewise.
24022         * lib/unictype/categ_Ll.h: Likewise.
24023         * lib/unictype/categ_Lm.h: Likewise.
24024         * lib/unictype/categ_Lo.h: Likewise.
24025         * lib/unictype/categ_Lu.h: Likewise.
24026         * lib/unictype/categ_M.h: Likewise.
24027         * lib/unictype/categ_Mc.h: Likewise.
24028         * lib/unictype/categ_Mn.h: Likewise.
24029         * lib/unictype/categ_N.h: Likewise.
24030         * lib/unictype/categ_Nd.h: Likewise.
24031         * lib/unictype/categ_Nl.h: Likewise.
24032         * lib/unictype/categ_No.h: Likewise.
24033         * lib/unictype/categ_P.h: Likewise.
24034         * lib/unictype/categ_Pd.h: Likewise.
24035         * lib/unictype/categ_Po.h: Likewise.
24036         * lib/unictype/categ_S.h: Likewise.
24037         * lib/unictype/categ_Sc.h: Likewise.
24038         * lib/unictype/categ_So.h: Likewise.
24039         * lib/unictype/categ_of.h: Likewise.
24040         * lib/unictype/combining.h: Likewise.
24041         * lib/unictype/ctype_alnum.h: Likewise.
24042         * lib/unictype/ctype_alpha.h: Likewise.
24043         * lib/unictype/ctype_graph.h: Likewise.
24044         * lib/unictype/ctype_lower.h: Likewise.
24045         * lib/unictype/ctype_print.h: Likewise.
24046         * lib/unictype/ctype_punct.h: Likewise.
24047         * lib/unictype/ctype_upper.h: Likewise.
24048         * lib/unictype/decdigit.h: Likewise.
24049         * lib/unictype/digit.h: Likewise.
24050         * lib/unictype/numeric.h: Likewise.
24051         * lib/unictype/pr_alphabetic.h: Likewise.
24052         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24053         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24054         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24055         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24056         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24057         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24058         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24059         * lib/unictype/pr_combining.h: Likewise.
24060         * lib/unictype/pr_composite.h: Likewise.
24061         * lib/unictype/pr_currency_symbol.h: Likewise.
24062         * lib/unictype/pr_dash.h: Likewise.
24063         * lib/unictype/pr_decimal_digit.h: Likewise.
24064         * lib/unictype/pr_deprecated.h: Likewise.
24065         * lib/unictype/pr_diacritic.h: Likewise.
24066         * lib/unictype/pr_extender.h: Likewise.
24067         * lib/unictype/pr_grapheme_base.h: Likewise.
24068         * lib/unictype/pr_grapheme_extend.h: Likewise.
24069         * lib/unictype/pr_grapheme_link.h: Likewise.
24070         * lib/unictype/pr_id_continue.h: Likewise.
24071         * lib/unictype/pr_id_start.h: Likewise.
24072         * lib/unictype/pr_ideographic.h: Likewise.
24073         * lib/unictype/pr_ignorable_control.h: Likewise.
24074         * lib/unictype/pr_logical_order_exception.h: Likewise.
24075         * lib/unictype/pr_lowercase.h: Likewise.
24076         * lib/unictype/pr_numeric.h: Likewise.
24077         * lib/unictype/pr_other_alphabetic.h: Likewise.
24078         * lib/unictype/pr_punctuation.h: Likewise.
24079         * lib/unictype/pr_sentence_terminal.h: Likewise.
24080         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24081         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24082         * lib/unictype/pr_unified_ideograph.h: Likewise.
24083         * lib/unictype/pr_uppercase.h: Likewise.
24084         * lib/unictype/pr_xid_continue.h: Likewise.
24085         * lib/unictype/pr_xid_start.h: Likewise.
24086         * lib/unictype/pr_zero_width.h: Likewise.
24087         * lib/unictype/scripts.h: Likewise.
24088         * lib/unictype/scripts_byname.gperf: Likewise.
24089         * lib/unictype/sy_java_ident.h: Likewise.
24090         * lib/unigbrk/gbrkprop.h: Likewise.
24091         * lib/unilbrk/lbrkprop1.h: Likewise.
24092         * lib/unilbrk/lbrkprop2.h: Likewise.
24093         * lib/unilbrk/lbrktables.h: Likewise.
24094         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24095         LBP_CP. Implement rule LB30.
24096         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24097         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24098         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24099         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24100         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24101         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24102         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24103         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24104         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24105         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24106         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24107         bits instead of 16 bits in the code1 and code2 of each composition
24108         rule.
24109         (uc_composition): Update for Unicode 5.2.0.
24110         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24111         * lib/uninorm/decomposition-table2.h: Likewise.
24112         * lib/uniwbrk/wbrkprop.h: Likewise.
24113         * tests/unicase/test-cased.c: Likewise.
24114         * tests/unicase/test-ignorable.c: Likewise.
24115         * tests/unicase/test-uc_tolower.c: Likewise.
24116         * tests/unicase/test-uc_totitle.c: Likewise.
24117         * tests/unicase/test-uc_toupper.c: Likewise.
24118         * tests/unictype/test-categ_C.c: Likewise.
24119         * tests/unictype/test-categ_Cf.c: Likewise.
24120         * tests/unictype/test-categ_Cn.c: Likewise.
24121         * tests/unictype/test-categ_L.c: Likewise.
24122         * tests/unictype/test-categ_Ll.c: Likewise.
24123         * tests/unictype/test-categ_Lm.c: Likewise.
24124         * tests/unictype/test-categ_Lo.c: Likewise.
24125         * tests/unictype/test-categ_Lu.c: Likewise.
24126         * tests/unictype/test-categ_M.c: Likewise.
24127         * tests/unictype/test-categ_Mc.c: Likewise.
24128         * tests/unictype/test-categ_Mn.c: Likewise.
24129         * tests/unictype/test-categ_N.c: Likewise.
24130         * tests/unictype/test-categ_Nd.c: Likewise.
24131         * tests/unictype/test-categ_Nl.c: Likewise.
24132         * tests/unictype/test-categ_No.c: Likewise.
24133         * tests/unictype/test-categ_P.c: Likewise.
24134         * tests/unictype/test-categ_Pd.c: Likewise.
24135         * tests/unictype/test-categ_Po.c: Likewise.
24136         * tests/unictype/test-categ_S.c: Likewise.
24137         * tests/unictype/test-categ_Sc.c: Likewise.
24138         * tests/unictype/test-categ_So.c: Likewise.
24139         * tests/unictype/test-ctype_alnum.c: Likewise.
24140         * tests/unictype/test-ctype_alpha.c: Likewise.
24141         * tests/unictype/test-ctype_graph.c: Likewise.
24142         * tests/unictype/test-ctype_lower.c: Likewise.
24143         * tests/unictype/test-ctype_print.c: Likewise.
24144         * tests/unictype/test-ctype_punct.c: Likewise.
24145         * tests/unictype/test-ctype_upper.c: Likewise.
24146         * tests/unictype/test-decdigit.h: Likewise.
24147         * tests/unictype/test-digit.h: Likewise.
24148         * tests/unictype/test-numeric.h: Likewise.
24149         * tests/unictype/test-pr_alphabetic.c: Likewise.
24150         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24151         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24152         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24153         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24154         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24155         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24156         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24157         * tests/unictype/test-pr_combining.c: Likewise.
24158         * tests/unictype/test-pr_composite.c: Likewise.
24159         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24160         * tests/unictype/test-pr_dash.c: Likewise.
24161         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24162         * tests/unictype/test-pr_deprecated.c: Likewise.
24163         * tests/unictype/test-pr_diacritic.c: Likewise.
24164         * tests/unictype/test-pr_extender.c: Likewise.
24165         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24166         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24167         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24168         * tests/unictype/test-pr_id_continue.c: Likewise.
24169         * tests/unictype/test-pr_id_start.c: Likewise.
24170         * tests/unictype/test-pr_ideographic.c: Likewise.
24171         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24172         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24173         * tests/unictype/test-pr_lowercase.c: Likewise.
24174         * tests/unictype/test-pr_numeric.c: Likewise.
24175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24176         * tests/unictype/test-pr_punctuation.c: Likewise.
24177         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24178         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24179         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24180         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24181         * tests/unictype/test-pr_uppercase.c: Likewise.
24182         * tests/unictype/test-pr_xid_continue.c: Likewise.
24183         * tests/unictype/test-pr_xid_start.c: Likewise.
24184         * tests/unictype/test-pr_zero_width.c: Likewise.
24185         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24186         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24187         changed behaviour: line breaking is now disallowed between a letter
24188         or '=' and '('.
24189         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24190         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24191         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24192         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24193         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24194         lib/uniwidth/width.c.
24195         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24196         without comments, but with the original copyright notice.
24197         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24198         changes.
24199         * lib/unictype/categ_Cc.h: Likewise.
24200         * lib/unictype/categ_Co.h: Likewise.
24201         * lib/unictype/categ_Cs.h: Likewise.
24202         * lib/unictype/categ_Lt.h: Likewise.
24203         * lib/unictype/categ_Me.h: Likewise.
24204         * lib/unictype/categ_Pc.h: Likewise.
24205         * lib/unictype/categ_Pe.h: Likewise.
24206         * lib/unictype/categ_Pf.h: Likewise.
24207         * lib/unictype/categ_Pi.h: Likewise.
24208         * lib/unictype/categ_Ps.h: Likewise.
24209         * lib/unictype/categ_Sk.h: Likewise.
24210         * lib/unictype/categ_Sm.h: Likewise.
24211         * lib/unictype/categ_Z.h: Likewise.
24212         * lib/unictype/categ_Zl.h: Likewise.
24213         * lib/unictype/categ_Zp.h: Likewise.
24214         * lib/unictype/categ_Zs.h: Likewise.
24215         * lib/unictype/ctype_blank.h: Likewise.
24216         * lib/unictype/ctype_cntrl.h: Likewise.
24217         * lib/unictype/ctype_digit.h: Likewise.
24218         * lib/unictype/ctype_space.h: Likewise.
24219         * lib/unictype/ctype_xdigit.h: Likewise.
24220         * lib/unictype/mirror.h: Likewise.
24221         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24222         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24223         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24224         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24225         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24226         * lib/unictype/pr_bidi_control.h: Likewise.
24227         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24228         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24229         * lib/unictype/pr_bidi_pdf.h: Likewise.
24230         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24231         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24232         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24233         * lib/unictype/pr_format_control.h: Likewise.
24234         * lib/unictype/pr_hex_digit.h: Likewise.
24235         * lib/unictype/pr_hyphen.h: Likewise.
24236         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24237         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24238         * lib/unictype/pr_iso_control.h: Likewise.
24239         * lib/unictype/pr_join_control.h: Likewise.
24240         * lib/unictype/pr_left_of_pair.h: Likewise.
24241         * lib/unictype/pr_line_separator.h: Likewise.
24242         * lib/unictype/pr_math.h: Likewise.
24243         * lib/unictype/pr_non_break.h: Likewise.
24244         * lib/unictype/pr_not_a_character.h: Likewise.
24245         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24246         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24247         * lib/unictype/pr_other_id_continue.h: Likewise.
24248         * lib/unictype/pr_other_id_start.h: Likewise.
24249         * lib/unictype/pr_other_lowercase.h: Likewise.
24250         * lib/unictype/pr_other_math.h: Likewise.
24251         * lib/unictype/pr_other_uppercase.h: Likewise.
24252         * lib/unictype/pr_paired_punctuation.h: Likewise.
24253         * lib/unictype/pr_paragraph_separator.h: Likewise.
24254         * lib/unictype/pr_pattern_syntax.h: Likewise.
24255         * lib/unictype/pr_pattern_white_space.h: Likewise.
24256         * lib/unictype/pr_private_use.h: Likewise.
24257         * lib/unictype/pr_quotation_mark.h: Likewise.
24258         * lib/unictype/pr_radical.h: Likewise.
24259         * lib/unictype/pr_soft_dotted.h: Likewise.
24260         * lib/unictype/pr_space.h: Likewise.
24261         * lib/unictype/pr_titlecase.h: Likewise.
24262         * lib/unictype/pr_variation_selector.h: Likewise.
24263         * lib/unictype/pr_white_space.h: Likewise.
24264         * lib/unictype/sy_c_ident.h: Likewise.
24265         * lib/unictype/sy_c_whitespace.h: Likewise.
24266         * lib/unictype/sy_java_whitespace.h: Likewise.
24267         * modules/uni*/*: Bump version number of expected libunistring version.
24268         Reported by Simon Josefsson.
24269
24270 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24271
24272         useless-if-before-free: fix typo in --help and make the internal,
24273         automatic version date update process work once again.
24274         --help output contained a NUL character instead of the
24275         backslash-zero that was intended.  Also, the "must lie within
24276         the first 8 lines" line is on line 9, and hence not getting
24277         automatically updated.
24278         * build-aux/useless-if-before-free: Fix the former by adding a
24279         backslash, and the latter by condensing the three lines of what-it-does
24280         to a single line, leaving one line of slack for the future.
24281
24282 2011-01-09  Bruno Haible  <bruno@clisp.org>
24283
24284         uniwidth/width: Fix width of U+1D173..U+1D17A.
24285         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24286         symbolic_width, output_width_property_test): New functions.
24287         (main): Invoke output_nonspacing_property, output_width_property_test.
24288         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24289         U+1D173..U+1D17A.
24290         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24291         1.
24292         * modules/uniwidth/*: Bump version number of expected libunistring
24293         version.
24294         * modules/unilbrk/*: Likewise.
24295
24296 2011-01-08  Bruno Haible  <bruno@clisp.org>
24297
24298         uninorm tests: Preserve copyright of Unicode data file.
24299         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24300         Mention modifications.
24301
24302 2011-01-08  Bruno Haible  <bruno@clisp.org>
24303
24304         gen-uni-tables: Prepare for Unicode 5.2.0.
24305         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24306         (debug_output_lbp, output_lbp): Update.
24307
24308 2011-01-08  Bruno Haible  <bruno@clisp.org>
24309
24310         unilbrk: Clarify gen-uni-tables.c code.
24311         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24312         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24313         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24314
24315 2011-01-07  Bruno Haible  <bruno@clisp.org>
24316
24317         strtod: Restore errno when successfully parsing Infinity or NaN.
24318         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24319         restore the original errno.
24320
24321 2011-01-07  Bruno Haible  <bruno@clisp.org>
24322
24323         remove test: Avoid failure on HP-UX 11.
24324         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24325
24326 2011-01-07  Bruno Haible  <bruno@clisp.org>
24327
24328         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24329         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24330         error code.
24331
24332 2011-01-07  Pádraig Brady <P@draigBrady.com>
24333
24334         ignore-value: fixup comments, and add Eric Blake
24335         as an author since he rewrote the macros.
24336         * lib/ignore-value.h (ignore_value):  State that
24337         we now support aggregates.  Also specify exactly
24338         when the GCC warn_unused_result feature was added.
24339
24340 2011-01-06  Eric Blake  <eblake@redhat.com>
24341
24342         ignore-value: support aggregate types
24343         * lib/ignore-value.h (ignore_value): Provide separate gcc
24344         definition.
24345         * modules/ignore-value-tests: New test module.
24346         * tests/test-ignore-value.c: New test.
24347
24348         maint.mk: improve sc_prohibit_strcmp regex
24349         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24350         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24351         definition of STRNEQ.
24352
24353         signal: work around Haiku issue with SIGBUS
24354         * lib/siglist.h: Add comment.
24355         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24356         strsignal's favoring of SIGSEGV.
24357         * tests/test-signal.c (main): Avoid test failure.
24358         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24359         Reported by Scott McCreary.
24360
24361         maint.mk: add pre-release check to ensure submodule commits are public
24362         * top/maint.mk (public-submodule-commit): New rule.
24363         (submodule-checks): New variable.
24364         (alpha beta stable): Depend on the variable.
24365
24366 2011-01-05  Pádraig Brady <P@draigBrady.com>
24367         and Jim Meyering  <meyering@redhat.com>
24368
24369         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24370         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24371         (ATTRIBUTE_DEPRECATED): Define.
24372         (_ignore_case): New function.
24373         (ignore_value): New macro, to replace the old function.
24374         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24375         * modules/ignore-value (Depends-on): Add stdint.
24376
24377 2011-01-04  Eric Blake  <eblake@redhat.com>
24378
24379         doc: regenerate INSTALL
24380         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24381         @firstparagraphindent support, now that autoconf dropped it.
24382         (INSTALL_PRELUDE): Reinstate old macro.
24383         * doc/install.texi: Resync from autoconf.
24384         * doc/INSTALL: Reflect recent autoconf update.
24385         * doc/INSTALL.ISO: Likewise.
24386         * doc/INSTALL.UTF-8: Likewise.
24387         Reported by Karl Berry.
24388
24389 2011-01-04  Bruce Korb  <address@hidden>
24390
24391         git-version-gen: avoid a sub-shell
24392         * build-aux/git-version-gen: Redirect stderr in `...` via
24393         "exec 2>...", rather than via an added sub-shell.
24394
24395 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24396
24397         git-version-gen: use (...) rather than sh -c '...'
24398         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24399         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24400
24401 2011-01-03  Jim Meyering  <meyering@redhat.com>
24402
24403         git-version-gen: convert leading TABs to spaces
24404         * build-aux/git-version-gen: Expand leading TABs.
24405
24406         git-version-gen: handle failed "git rev-list"
24407         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24408         from git and proceeding as if it had succeeded but printed no SHA1
24409         checksums, suppress the diagnostic and handle the failure.
24410         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24411
24412         git-version-gen: include command name in one more diagnostic
24413         * build-aux/git-version-gen: When the required .tarball-version file
24414         was missing or unreadable, you might see the diagnostic from "cat",
24415         but no trace of the name of the invoking script.  Now, you still see
24416         the diagnostic from cat, but also get one from "git-version-gen: ".
24417         Inspired by a patch from Bruce Korb.
24418
24419         update-copyright: adjust test to match changed code
24420         * tests/test-update-copyright.sh: Change test's expected output
24421         to match new actual output.
24422
24423 2011-01-02  Bruno Haible  <bruno@clisp.org>
24424
24425         getlogin_r: Avoid test failure on HP-UX 11.
24426         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24427         ERANGE when the second argument is zero.
24428         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24429         portability problem.
24430
24431 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24432
24433         * build-aux/update-copyright: doc Simon's changes
24434
24435 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24436
24437         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24438         environment variable.
24439
24440 2011-01-02  Bruno Haible  <bruno@clisp.org>
24441
24442         unigbrk: Avoid gcc warnings.
24443         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24444         unused variable.
24445         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24446         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24447         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24448         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24449         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24450         Change type of first argument to 'const char *'.
24451         (main): Remove unused variable.
24452         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24453         type of first argument to 'const char *'.
24454         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24455         Likewise.
24456         (main): Change type of variable 's'.
24457         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24458         to 'int'.
24459
24460 2011-01-02  Bruno Haible  <bruno@clisp.org>
24461
24462         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24463         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24464         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24465         bug.
24466         * lib/pwrite.c: Undo 2010-12-31 patch.
24467         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24468
24469 2011-01-02  Bruno Haible  <bruno@clisp.org>
24470
24471         pread: Fix test whether it works.
24472         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24473
24474 2011-01-02  Bruno Haible  <bruno@clisp.org>
24475
24476         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24477         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24478         ends in "6". Don't require a specific month name. Try also the locale
24479         names found on HP-UX 11 and Solaris 7.
24480
24481 2011-01-02  Bruno Haible  <bruno@clisp.org>
24482
24483         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24484         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24485         C linkage.
24486         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24487
24488 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24489
24490         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24491         for consistency, since the "cluster" term is not used elsewhere.
24492         * lib/unigbrk.in.h: Update name.
24493         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24494         * lib/unigbrk/u16-grapheme-next.c: Update name.
24495         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24496         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24497         * lib/unigbrk/u32-grapheme-next.c: Update name.
24498         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24499         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24500         * lib/unigbrk/u8-grapheme-next.c: Update name.
24501         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24502         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24503         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24504         Suggested by Bruno Haible.
24505
24506 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24507
24508         Remove module 'u8-grapheme-len' as too redundant with
24509         'u8-grapheme-next'.
24510         * modules/unigbrk/u8-grapheme-len: Delete file.
24511         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24512         * lib/unigbrk.in.h: Remove prototype for deleted function.
24513         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24514         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24515
24516         Remove module 'u16-grapheme-len' as too redundant with
24517         'u16-grapheme-next'.
24518         * modules/unigbrk/u16-grapheme-len: Delete file.
24519         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24520         * lib/unigbrk.in.h: Remove prototype for deleted function.
24521         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24522         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24523
24524         Remove module 'u32-grapheme-len' as too redundant with
24525         'u32-grapheme-next'.
24526         * modules/unigbrk/u32-grapheme-len: Delete file.
24527         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24528         * lib/unigbrk.in.h: Remove prototype for deleted function.
24529         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24530         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24531
24532         Suggested by Bruno Haible.
24533
24534 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24535
24536         * unigbrk.in.h: Fix typo: "ben" => "been".
24537         Reported by Bruno Haible.
24538
24539 2011-01-01  Jim Meyering  <meyering@redhat.com>
24540
24541         maint: update almost all copyright ranges to include 2011
24542         Run the new "make update-copyright" rule.
24543
24544 2011-01-01  Jim Meyering  <meyering@redhat.com>
24545
24546         maint: update-copyright: exempt doc/INSTALL*
24547         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24548         since they are generated.  Suggested by Bruno Haible.
24549
24550 2011-01-01  Jim Meyering  <meyering@redhat.com>
24551
24552         maint: refine the update-copyright rule
24553         * Makefile (update-copyright): Also exclude any file that includes
24554         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24555         code that merely generates the comment.
24556
24557 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24558
24559         New module 'u8-grapheme-len'.
24560         * modules/unigbrk/u8-grapheme-len: New file.
24561         * modules/unigbrk/u8-grapheme-len-tests: New file.
24562         * lib/unigbrk.in.h: Add prototype for new function.
24563         * lib/unigbrk/u8-grapheme-len.c: New file.
24564         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24565
24566         New module 'u16-grapheme-len'.
24567         * modules/unigbrk/u16-grapheme-len: New file.
24568         * modules/unigbrk/u16-grapheme-len-tests: New file.
24569         * lib/unigbrk.in.h: Add prototype for new function.
24570         * lib/unigbrk/u16-grapheme-len.c: New file.
24571         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24572
24573         New module 'u32-grapheme-len'.
24574         * modules/unigbrk/u32-grapheme-len: New file.
24575         * modules/unigbrk/u32-grapheme-len-tests: New file.
24576         * lib/unigbrk.in.h: Add prototype for new function.
24577         * lib/unigbrk/u32-grapheme-len.c: New file.
24578         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24579
24580         New module 'u8-grapheme-next'.
24581         * modules/unigbrk/u8-grapheme-next: New file.
24582         * modules/unigbrk/u8-grapheme-next-tests: New file.
24583         * lib/unigbrk.in.h: Add prototype for new function.
24584         * lib/unigbrk/u8-grapheme-next.c: New file.
24585         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24586
24587         New module 'u16-grapheme-next'.
24588         * modules/unigbrk/u16-grapheme-next: New file.
24589         * modules/unigbrk/u16-grapheme-next-tests: New file.
24590         * lib/unigbrk.in.h: Add prototype for new function.
24591         * lib/unigbrk/u16-grapheme-next.c: New file.
24592         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24593
24594         New module 'u32-grapheme-next'.
24595         * modules/unigbrk/u32-grapheme-next: New file.
24596         * modules/unigbrk/u32-grapheme-next-tests: New file.
24597         * lib/unigbrk.in.h: Add prototype for new function.
24598         * lib/unigbrk/u32-grapheme-next.c: New file.
24599         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24600
24601         New module 'u8-grapheme-prev'.
24602         * modules/unigbrk/u8-grapheme-prev: New file.
24603         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24604         * lib/unigbrk.in.h: Add prototype for new function.
24605         * lib/unigbrk/u8-grapheme-prev.c: New file.
24606         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24607
24608         New module 'u16-grapheme-prev'.
24609         * modules/unigbrk/u16-grapheme-prev: New file.
24610         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24611         * lib/unigbrk.in.h: Add prototype for new function.
24612         * lib/unigbrk/u16-grapheme-prev.c: New file.
24613         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24614
24615         New module 'u32-grapheme-prev'.
24616         * modules/unigbrk/u32-grapheme-prev: New file.
24617         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24618         * lib/unigbrk.in.h: Add prototype for new function.
24619         * lib/unigbrk/u32-grapheme-prev.c: New file.
24620         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24621
24622         New module 'u8-grapheme-breaks'.
24623         * modules/unigbrk/u8-grapheme-breaks: New file.
24624         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24625         * lib/unigbrk.in.h: Add prototype for new function.
24626         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24627         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24628
24629         New module 'u16-grapheme-breaks'.
24630         * modules/unigbrk/u16-grapheme-breaks: New file.
24631         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24632         * lib/unigbrk.in.h: Add prototype for new function.
24633         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24634         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24635
24636         New module 'u32-grapheme-breaks'.
24637         * modules/unigbrk/u32-grapheme-breaks: New file.
24638         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24639         * lib/unigbrk.in.h: Add prototype for new function.
24640         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24641         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24642
24643         New module 'ulc-grapheme-breaks'.
24644         * modules/unigbrk/ulc-grapheme-breaks: New file.
24645         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24646         * m4/locale-ar.m4: New file.
24647         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24648         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24649         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24650
24651 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24652
24653         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24654         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24655         modified how this file was generated before I initially submitted
24656         the module, but failed to regenerate it.  This meant that several
24657         of the level2 entries were wrong.
24658         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24659         Remove the division-by-2 that is folded into the table now that
24660         gbrkprop.h has been regenerated properly.  Now -1 entries are
24661         handled correctly.
24662
24663         New module 'unigbrk/uc-gbrk-prop-tests'.
24664         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24665         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24666         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24667         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24668
24669 2011-01-01  Bruno Haible  <bruno@clisp.org>
24670
24671         Avoid use of hexadecimal escapes.
24672         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24673         instead of hexadecimal escapes.
24674
24675 2011-01-01  Jim Meyering  <meyering@redhat.com>
24676
24677         maint: new rule to update copyright year ranges
24678         * Makefile (update-copyright): New rule.
24679
24680         maint: indent with TABs in Makefile
24681         * Makefile: Expand leading sequences of spaces to TABs
24682
24683         version-etc: update the copyright year it reports
24684         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24685
24686 2010-12-31  Bruno Haible  <bruno@clisp.org>
24687
24688         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24689         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24690         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24691         zero.
24692
24693 2010-12-31  Bruno Haible  <bruno@clisp.org>
24694
24695         pwrite: Work around HP-UX 11.11 bug.
24696         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24697         works and set REPLACE_PWRITE if not.
24698         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24699         function.
24700         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24701
24702 2010-12-31  Bruno Haible  <bruno@clisp.org>
24703
24704         pread: Work around HP-UX 11 bugs.
24705         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24706         and set REPLACE_PREAD if not.
24707         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24708
24709 2010-12-31  Eric Blake  <eblake@redhat.com>
24710
24711         nl_langinfo: fix YESEXPR on Irix 6.5
24712         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24713         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24714         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24715         it.
24716
24717 2010-12-31  Bruno Haible  <bruno@clisp.org>
24718
24719         iconv: Document HP-UX 11 bug.
24720         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24721
24722 2010-12-31  Bruno Haible  <bruno@clisp.org>
24723
24724         ldexpl: Fix link error on HP-UX 11.
24725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24726         LDEXPL_LIBM, using $ISNANL_LIBM.
24727
24728 2010-12-31  Eric Blake  <eblake@redhat.com>
24729
24730         ftello: avoid compilation failure with SunStudio c89
24731         * lib/ftello.c (ftello): Use lseek, not llseek.
24732
24733         tests: avoid failing coreutils tests on cygwin
24734         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24735         (create_exe_shims_): Return 0 when skipping.
24736
24737 2010-12-31  Bruno Haible  <bruno@clisp.org>
24738
24739         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24740         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24741
24742 2010-12-31  Bruno Haible  <bruno@clisp.org>
24743
24744         waitpid: Fix link error in C++ mode.
24745         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24746
24747 2010-12-31  Bruno Haible  <bruno@clisp.org>
24748
24749         isnan: Use GCC built-ins when possible.
24750         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24751         __builtin_isnan.
24752         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24753         (isnan): Define using GCC built-ins for GCC >= 4.0.
24754
24755 2010-12-31  Bruno Haible  <bruno@clisp.org>
24756
24757         isnand: Fix mistake.
24758         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24759         __builtin_isnand.
24760
24761 2010-12-31  Bruno Haible  <bruno@clisp.org>
24762
24763         open: Avoid C++ error on HP-UX 11.
24764         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24765
24766 2010-12-31  Bruno Haible  <bruno@clisp.org>
24767
24768         time_r: Add missing declarations on HP-UX 11.
24769         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24770         instead of HAVE_LOCALTIME_R.
24771         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24772         HAVE_LOCALTIME_R always.
24773         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24774         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24775         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24776         HAVE_LOCALTIME_R.
24777         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24778         * doc/posix-functions/localtime_r.texi: Likewise.
24779
24780 2010-12-29  Eric Blake  <eblake@redhat.com>
24781
24782         mountlist: tweak previous commit
24783         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24784         Reported by Paul Eggert.
24785
24786         mountlist: fix local drive detection on cygwin
24787         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24788         that works for cygwin.
24789
24790 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24791
24792         ftoastr, snprintf: ftoastr + snprintf module
24793         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24794         since the snprintf module now should be good enough here.
24795         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24796         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24797         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24798         GNULIB_SNPRINTF only for the test directory, and the latter
24799         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24800         seems to suffice by itself.
24801
24802 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         alloca: one step towards thread-safety
24805         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24806         need for a static variable.  All callers changed.  This does not
24807         make the alloca replacement thread-safe, but it's one step.
24808
24809         tests: minor indenting change
24810         * tests/init.sh: Sync from coreutils housekeeping patch
24811         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24812         to keep lines within 80 columns.
24813
24814 2010-12-28  Jim Meyering  <meyering@redhat.com>
24815
24816         regex: don't infloop on persistent failing calloc
24817         * lib/regexec.c (build_trtable): Return failure indication upon
24818         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24819         In glibc, this was fixed for version 2.13:
24820         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24821
24822 2010-12-28  Bruno Haible  <bruno@clisp.org>
24823             Paul Eggert <eggert@cs.ucla.edu>
24824
24825         linkat: Make implementation robust against system behaviour variations.
24826         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24827         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24828         way, and to -2 if it needs a generic runtime test.
24829         * lib/linkat.c (solaris_optimized_link_immediate,
24830         solaris_optimized_link_follow): New functions.
24831         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24832         (check_same_link): Use it.
24833
24834 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24835
24836         New module 'unigbrk/base'.
24837         * modules/unigbrk/base: New file.
24838         * lib/unigbrk.in.h: New file.
24839
24840         New module 'unigbrk/uc-gbrk-prop'.
24841         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24842         * modules/unigbrk/uc-gbrk-prop: New file.
24843         * lib/unigbrk/gbrkprop.h: New file.
24844         * lib/unigbrk/uc-gbrk-prop.c: New file.
24845
24846         New module 'unigbrk/uc-is-grapheme-break'.
24847         * modules/unigbrk/uc-is-grapheme-break: New file.
24848         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24849         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24850         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24851         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24852         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24853
24854         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24855
24856 2010-12-27  Bruno Haible  <bruno@clisp.org>
24857
24858         linkat test: Avoid failure on Solaris 11 2010-11.
24859         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24860
24861 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24862
24863         utimens: work around glibc rounding bug on more platforms
24864         * lib/utimens.c (fdutimens): Work around rounding bug even if
24865         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24867
24868 2010-12-27  Bruno Haible  <bruno@clisp.org>
24869
24870         select tests: Improve comments.
24871         * tests/test-select.c (do_select): Add comments.
24872
24873 2010-12-27  Bruno Haible  <bruno@clisp.org>
24874
24875         select tests: Safer way of handling timeout.
24876         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24877         at every invocation.
24878
24879 2010-12-27  Bruno Haible  <bruno@clisp.org>
24880
24881         select tests: Use 'bool' where appropriate.
24882         * tests/test-select.c (connect_to_socket): Change argument type to
24883         'bool'.
24884
24885 2010-12-27  Bruno Haible  <bruno@clisp.org>
24886
24887         select tests: Use existing modules.
24888         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24889         (configure.ac): Don't test for unistd.h.
24890         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24891         declared in <unistd.h>.
24892
24893 2010-12-27  Bruno Haible  <bruno@clisp.org>
24894
24895         mbrtowc: Work around a Solaris 7 bug.
24896         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24897         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24898         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24899         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24900         MBRTOWC_NULL_ARG1_BUG.
24901         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24902         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24903         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24904         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24905
24906 2010-12-27  Jim Meyering  <meyering@redhat.com>
24907
24908         read-file.c: tweak syntax
24909         * lib/read-file.c (fread_file): Remove space after "*" in function
24910         definitions.
24911
24912 2010-12-27  Bruno Haible  <bruno@clisp.org>
24913
24914         times test: Avoid gcc warnings on OSF/1.
24915         * tests/test-times.c (main): Cast printf arguments from clock_t to
24916         'long int'.
24917
24918 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24919
24920         utimens: work around glibc rounding bug on older Linux kernels
24921         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24922         on Linux with a glibc whose utimes might not work, then work
24923         around a longstanding glibc bug involving rounding rather than
24924         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24925         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24926
24927 2010-12-26  Bruno Haible  <bruno@clisp.org>
24928
24929         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24930         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24931         _GL_CXXALIAS_SYS.
24932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24933
24934 2010-12-26  Bruno Haible  <bruno@clisp.org>
24935
24936         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24937         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24938         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24939         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24940         looking for the declaration.
24941         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24942         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24943         problem.
24944         * doc/posix-functions/inet_pton.texi: Likewise.
24945
24946 2010-12-26  Bruno Haible  <bruno@clisp.org>
24947
24948         arpa_inet: Use the common idioms with C++ support.
24949         * lib/arpa_inet.in.h: Include c++defs.h.
24950         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24951         support.
24952         * modules/arpa_inet (Depends-on): Add c++defs.
24953         (Makefile.am): Substitute the contents of c++defs.h.
24954         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24955         * modules/arpa_inet-c++-tests: New file.
24956         * tests/test-arpa_inet-c++.cc: New file.
24957
24958 2010-12-25  Bruno Haible  <bruno@clisp.org>
24959
24960         Fix more C++ link errors on Solaris 8.
24961         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24962         $(LIB_EACCESS).
24963         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24964         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24965         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24966         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24967         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24968
24969 2010-12-25  Bruno Haible  <bruno@clisp.org>
24970
24971         printf-posix: Fix link error when a non-GCC compiler is used.
24972         * lib/stdio.in.h (printf): When not using GCC, override printf
24973         correctly.
24974         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24975
24976 2010-12-25  Bruno Haible  <bruno@clisp.org>
24977
24978         strerror_r-posix: Update doc.
24979         * doc/posix-functions/strerror_r.texi: Update doc about the return
24980         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24981
24982 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24983
24984         utimens: simplify the logic of the previous change
24985         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24986         This should not affect whether the test succeeds or fails.
24987
24988         utimens: configure better on hosts with NFS clock skew
24989         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24990         uses the clock of the local host.  It might use the clock of the
24991         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24993
24994 2010-12-25  Bruno Haible  <bruno@clisp.org>
24995
24996         ptsname test: Avoid failure on Solaris.
24997         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24998         open a pseudo-terminal; don't use BSD-style ptys.
24999         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25000
25001 2010-12-25  Bruno Haible  <bruno@clisp.org>
25002
25003         ptsname: Avoid ERANGE failure on some systems.
25004         * lib/ptsname.c (buffer): Increase size.
25005
25006 2010-12-25  Bruno Haible  <bruno@clisp.org>
25007
25008         rename, renameat: Avoid test failures at NFS mounted locations.
25009         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25010         so that subsequent mkdir calls succeed.
25011
25012 2010-12-25  Bruno Haible  <bruno@clisp.org>
25013
25014         iswblank: Fix C++ link error on Solaris 8.
25015         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25016         _GL_FUNCDECL_SYS.
25017
25018 2010-12-25  Bruno Haible  <bruno@clisp.org>
25019
25020         unistd: Fix C++ link error on Solaris 8.
25021         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25022
25023 2010-12-25  Bruno Haible  <bruno@clisp.org>
25024
25025         readlink doc: Mention an old glibc bug.
25026         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25027
25028 2010-12-25  Bruno Haible  <bruno@clisp.org>
25029
25030         fcntl-h: Fix for use of C++ on glibc systems.
25031         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25032         also on glibc systems in C++ mode.
25033         Reported by Gary V. Vaughan <gary@gnu.org>.
25034
25035 2010-12-25  Bruno Haible  <bruno@clisp.org>
25036
25037         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25038         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25039
25040 2010-12-25  Bruno Haible  <bruno@clisp.org>
25041
25042         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25043         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25044         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25045         test whether truncl works according to ISO C 99 with IEC 60559.
25046         * m4/truncl-ieee.m4: New file.
25047         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25048         m4/signbit.m4.
25049         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25050
25051 2010-12-25  Bruno Haible  <bruno@clisp.org>
25052
25053         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25054         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25055         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25056         test whether ceill works according to ISO C 99 with IEC 60559.
25057         * m4/ceill-ieee.m4: New file.
25058         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25059         m4/signbit.m4.
25060         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25061
25062 2010-12-25  Bruno Haible  <bruno@clisp.org>
25063
25064         Ensure all prerequisites of <wchar.h> are included.
25065         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25066         before <wchar.h>.
25067         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25068         gl_MBRLEN_NUL_RETVAL): Likewise.
25069         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25070         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25071         AC_FUNC_MBRTOWC): Likewise.
25072         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25073         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25075         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25076         Likewise.
25077         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25078         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25079         (gl_WCHAR_H): Improve comments.
25080         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25081
25082 2010-12-25  Bruno Haible  <bruno@clisp.org>
25083
25084         strtok_r: Fix C syntax error in autoconf macro.
25085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25086         characters in test program.
25087
25088 2010-12-24  Bruno Haible  <bruno@clisp.org>
25089
25090         ceil, trunc, round: Fix gcc warnings.
25091         * lib/ceil.c (MIN): Undefine before redefining.
25092         * lib/trunc.c (MIN): Likewise.
25093         * lib/round.c (MIN): Likewise.
25094         Include <math.h> first.
25095
25096 2010-12-24  Bruno Haible  <bruno@clisp.org>
25097
25098         select tests: Avoid failures on OSF/1 5.1.
25099         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25100         failure of closing the last socket; it may fail with ECONNRESET.
25101
25102 2010-12-24  Eric Blake  <eblake@redhat.com>
25103
25104         stdint: avoid HP-UX 10.20 preprocessor bug
25105         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25106         than #if.
25107         * tests/test-floor2.c (main): Likewise.
25108         Reported by Peter O'Gorman.
25109
25110         pipe: make obsoletion transition easier
25111         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25112         * modules/pipe (Files): Include revived file.
25113         (Include): Drop reference, to mirror getdate's behavior.
25114
25115 2010-12-24  Bruno Haible  <bruno@clisp.org>
25116
25117         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25118         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25119         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25121
25122 2010-12-24  Bruno Haible  <bruno@clisp.org>
25123
25124         gethostname: Ensure declaration on NonStop Kernel.
25125         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25127
25128 2010-12-24  Bruno Haible  <bruno@clisp.org>
25129
25130         sys_select: Ensure all necessary types on NonStop Kernel.
25131         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25132         include <sys/time.h>.
25133         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25134         NonStop Kernel.
25135         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25136
25137 2010-12-24  Bruno Haible  <bruno@clisp.org>
25138
25139         sys_select: Remove unneeded include.
25140         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25141         have <sys/select.h>.
25142
25143 2010-12-24  Bruno Haible  <bruno@clisp.org>
25144
25145         gethostname: Provide a fallback for HOST_NAME_MAX.
25146         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25147         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25148         instead.
25149         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25150
25151 2010-12-24  Bruno Haible  <bruno@clisp.org>
25152
25153         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25154         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25155         (SA_RESTART): Likewise.
25156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25157
25158 2010-12-24  Bruno Haible  <bruno@clisp.org>
25159
25160         signal: Define NSIG.
25161         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25162         * tests/test-signal.c (nsig): New variable.
25163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25164
25165 2010-12-24  Bruno Haible  <bruno@clisp.org>
25166
25167         rename, renameat: Avoid test failures on OSF/1 5.1.
25168         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25169         alternative error codes.
25170         * tests/test-renameat.c (main): Likewise.
25171
25172 2010-12-24  Bruno Haible  <bruno@clisp.org>
25173
25174         *printf: Detect large precisions bug on Solaris 10/SPARC.
25175         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25176         by Paul Eggert.
25177         * tests/test-snprintf-posix.h (test_function): Add this test code here
25178         too.
25179         * tests/test-sprintf-posix.h (test_function): Likewise.
25180         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25181         * tests/test-vasprintf-posix.c (test_function): Likewise.
25182         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25183         around by gnulib.
25184         * doc/posix-functions/printf.texi: Likewise.
25185         * doc/posix-functions/snprintf.texi: Likewise.
25186         * doc/posix-functions/sprintf.texi: Likewise.
25187         * doc/posix-functions/vfprintf.texi: Likewise.
25188         * doc/posix-functions/vprintf.texi: Likewise.
25189         * doc/posix-functions/vsnprintf.texi: Likewise.
25190         * doc/posix-functions/vsprintf.texi: Likewise.
25191         * doc/posix-functions/dprintf.texi: Undo last commit.
25192         * doc/posix-functions/vdprintf.texi: Likewise.
25193
25194 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25195
25196         tests: port test-fdutimensat.c to Solaris 8
25197         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25198         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25199         On Solaris 8, it fails with errno == ENOSYS, because there is no
25200         futimens (so it can't use the fd), and there is no lutimens (so it
25201         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25202
25203         vsnprintf: make more consistent with snprintf; doc fixes
25204
25205         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25206         the byte count return problem was promoted from the snprintf-posix
25207         to the snprintf module.
25208         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25209         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25210         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25211         * tests/test-snprintf.c (main): Check the byte count returned.
25212         * tests/test-vsnprintf.c (main): Likewise.
25213
25214 2010-12-23  Eric Blake  <eblake@redhat.com>
25215
25216         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25217         * modules/sigpipe (License): Relax license.
25218
25219 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25220
25221         doc: document Solaris printf bug with large float precisions
25222         * doc/posix-functions/dprintf.texi (dprintf):
25223         * doc/posix-functions/fprintf.texi (fprintf):
25224         * doc/posix-functions/printf.texi (printf):
25225         * doc/posix-functions/snprintf.texi (snprintf):
25226         * doc/posix-functions/sprintf.texi (sprintf):
25227         * doc/posix-functions/vdprintf.texi (vdprintf):
25228         * doc/posix-functions/vfprintf.texi (vfprintf):
25229         * doc/posix-functions/vprintf.texi (vprintf):
25230         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25231         * doc/posix-functions/vsprintf.texi (vsprintf):
25232         Mention that these functions mishandle large floating point
25233         precisions on Solaris 10.  The same bug is also present in Solaris
25234         8, and I assume earlier.  This causes "cd gnulib-tests; make
25235         check" to fail on Solaris 8 (and I assume, later) when building
25236         the latest coreutils, in test-vasprintf-posix's call to
25237         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25238         the wide flavors (e.g., wprintf) so this patch just updates the
25239         documentation for the narrow ones.
25240
25241         test-posixtm.c: add two tests
25242         * tests/test-posixtm.c: Add two tests, to highlight the
25243         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25244         around this bug; this is merely to document it.
25245
25246 2010-12-22  Bruno Haible  <bruno@clisp.org>
25247
25248         getlogin_r: Work around portability problem on OSF/1.
25249         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25250         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25251         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25252         test for a truncated result.
25253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25254         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25255         * modules/getlogin_r (Depends-on): Add memchr.
25256         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25257
25258 2010-12-22  Bruno Haible  <bruno@clisp.org>
25259
25260         ptsname: Avoid test failure on OSF/1 5.1.
25261         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25262         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25263         (same_slave): New function.
25264         (main): Use it to compare ptsname's result with the expected file name.
25265
25266 2010-12-22  Bruno Haible  <bruno@clisp.org>
25267
25268         Port extended stdio modules to HP NonStop Kernel.
25269         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25270         macros.
25271         * lib/fbufmode.c: Update comments.
25272         * lib/fflush.c: Likewise.
25273         * lib/fpurge.c: Likewise.
25274         * lib/freadable.c: Likewise.
25275         * lib/freadahead.c: Likewise.
25276         * lib/freading.c: Likewise.
25277         * lib/freadptr.c: Likewise.
25278         * lib/freadseek.c: Likewise.
25279         * lib/fseeko.c: Likewise.
25280         * lib/fseterr.c: Likewise.
25281         * lib/fwritable.c: Likewise.
25282         * lib/fwriting.c: Likewise.
25283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25284
25285 2010-12-22  Bruno Haible  <bruno@clisp.org>
25286
25287         ttyname_r: Work around bug on OSF/1 5.1.
25288         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25289         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25290         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25291         present.
25292         * lib/ttyname_r.c (ttyname_r): Update comments.
25293
25294 2010-12-22  Bruno Haible  <bruno@clisp.org>
25295
25296         round: Implement result sign according to IEEE 754.
25297         * lib/round.c (MIN, MINUS_ZERO): New macros.
25298         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25299         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25300         * tests/test-round-ieee.c (main): Likewise.
25301         * tests/test-roundl-ieee.c (main): Likewise.
25302
25303         trunc: Implement result sign according to IEEE 754.
25304         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25305         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25306         * tests/test-trunc2.c: Include minus-zero.h.
25307         (MINUS_ZERO): New macro.
25308         (trunc_reference): Keep in sync with lib/trunc.c.
25309         * tests/test-truncf2.c: Include minus-zero.h.
25310         (MINUS_ZERO): New macro.
25311         (truncf_reference): Keep in sync with lib/trunc.c.
25312         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25313         * tests/test-trunc-ieee.c (main): Likewise.
25314         * tests/test-truncl-ieee.c (main): Likewise.
25315
25316         ceil: Implement result sign according to IEEE 754.
25317         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25318         (FUNC): Return -0.0 for -1 < x < 0.
25319         * tests/test-ceil2.c: Include minus-zero.h.
25320         (MINUS_ZERO): New macro.
25321         (ceil_reference): Keep in sync with lib/ceil.c.
25322         * tests/test-ceilf2.c: Include minus-zero.h.
25323         (MINUS_ZERO): New macro.
25324         (ceilf_reference): Keep in sync with lib/ceil.c.
25325         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25326         * tests/test-ceil-ieee.c (main): Likewise.
25327         * tests/test-ceill-ieee.c (main): Likewise.
25328
25329         floor: Implement result sign according to IEEE 754.
25330         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25331         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25332         * tests/test-floorf2.c (floorf_reference): Likewise.
25333         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25334         * tests/test-floor-ieee.c (main): Likewise.
25335         * tests/test-floorl-ieee.c (main): Likewise.
25336
25337 2010-12-22  Bruno Haible  <bruno@clisp.org>
25338
25339         getaddrinfo: Update doc.
25340         * doc/posix-functions/gai_strerror.texi: Return type is also different
25341         on AIX and HP-UX.
25342
25343 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         getaddrinfo, inet_ntop: Update doc for Solaris.
25346         * doc/posix-functions/gai_strerror.texi: Return type is also an
25347         issue on Solaris 9 and earlier.
25348         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25349         on Solaris 10 and earlier.
25350
25351 2010-12-21  Bruno Haible  <bruno@clisp.org>
25352
25353         New module 'roundl-ieee'.
25354         * modules/roundl-ieee: New file.
25355         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25356         test whether roundl works according to ISO C 99 with IEC 60559.
25357         * m4/roundl-ieee.m4: New file.
25358         * modules/roundl-ieee-tests: New file.
25359         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25360         * tests/test-roundl.c (main): Remove signbit tests.
25361         * modules/roundl-tests (Depends-on): Remove signbit.
25362         * doc/posix-functions/roundl.texi: Mention the new module.
25363
25364 2010-12-21  Bruno Haible  <bruno@clisp.org>
25365
25366         New module 'truncl-ieee'.
25367         * modules/truncl-ieee: New file.
25368         * modules/truncl-ieee-tests: New file.
25369         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25370         * tests/test-truncl.c (main): Remove signbit tests.
25371         * modules/truncl-tests (Depends-on): Remove signbit.
25372         * doc/posix-functions/truncl.texi: Mention the new module.
25373
25374 2010-12-21  Bruno Haible  <bruno@clisp.org>
25375
25376         New module 'ceill-ieee'.
25377         * modules/ceill-ieee: New file.
25378         * modules/ceill-ieee-tests: New file.
25379         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25380         * tests/test-ceill.c (main): Remove signbit tests.
25381         * modules/ceill-tests (Depends-on): Remove signbit.
25382         * doc/posix-functions/ceill.texi: Mention the new module.
25383
25384 2010-12-21  Bruno Haible  <bruno@clisp.org>
25385
25386         New module 'floorl-ieee'.
25387         * modules/floorl-ieee: New file.
25388         * modules/floorl-ieee-tests: New file.
25389         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25390         * tests/test-floorl.c (main): Remove signbit tests.
25391         * modules/floorl-tests (Depends-on): Remove signbit.
25392         * doc/posix-functions/floorl.texi: Mention the new module.
25393
25394 2010-12-21  Bruno Haible  <bruno@clisp.org>
25395
25396         New module 'round-ieee'.
25397         * modules/round-ieee: New file.
25398         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25399         whether round works according to ISO C 99 with IEC 60559.
25400         * m4/round-ieee.m4: New file.
25401         * modules/round-ieee-tests: New file.
25402         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25403         * tests/test-round1.c (main): Remove signbit tests.
25404         * modules/round-tests (Depends-on): Remove 'signbit'.
25405         * doc/posix-functions/round.texi: Mention the new module.
25406
25407 2010-12-21  Bruno Haible  <bruno@clisp.org>
25408
25409         New module 'trunc-ieee'.
25410         * modules/trunc-ieee: New file.
25411         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25412         whether trunc works according to ISO C 99 with IEC 60559.
25413         * m4/trunc-ieee.m4: New file.
25414         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25416         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25417         * modules/trunc-ieee-tests: New file.
25418         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25419         * tests/test-trunc1.c (main): Remove signbit tests.
25420         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25421         * doc/posix-functions/trunc.texi: Mention the new module.
25422
25423 2010-12-21  Bruno Haible  <bruno@clisp.org>
25424
25425         New module 'ceil-ieee'.
25426         * modules/ceil-ieee: New file.
25427         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25428         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25429         ISO C 99 with IEC 60559.
25430         * m4/ceil-ieee.m4: New file.
25431         * modules/ceil (Files): Add lib/ceil.c.
25432         (Depends-on): Add 'float'.
25433         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25434         * lib/math.in.h (ceil): New declaration.
25435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25436         REPLACE_CEIL.
25437         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25438         * modules/ceil-ieee-tests: New file.
25439         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25440         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25441         * doc/posix-functions/ceil.texi: Mention the new module.
25442
25443 2010-12-21  Bruno Haible  <bruno@clisp.org>
25444
25445         New module 'floor-ieee'.
25446         * modules/floor-ieee: New file.
25447         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25448         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25449         ISO C 99 with IEC 60559.
25450         * m4/floor-ieee.m4: New file.
25451         * modules/floor (Files): Add lib/floor.c.
25452         (Depends-on): Add 'float'.
25453         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25454         * lib/math.in.h (floor): New declaration.
25455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25456         REPLACE_FLOOR.
25457         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25458         * modules/floor-ieee-tests: New file.
25459         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25460         * tests/test-math-c++.cc: Check the signature of 'floor'.
25461         * doc/posix-functions/floor.texi: Mention the new module.
25462
25463 2010-12-21  Bruno Haible  <bruno@clisp.org>
25464
25465         New module 'roundf-ieee'.
25466         * modules/roundf-ieee: New file.
25467         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25468         test whether roundf works according to ISO C 99 with IEC 60559.
25469         * m4/roundf-ieee.m4: New file.
25470         * modules/roundf-ieee-tests: New file.
25471         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25472         * tests/test-roundf1.c (main): Remove signbit tests.
25473         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25474         * doc/posix-functions/roundf.texi: Mention the new module.
25475
25476 2010-12-21  Bruno Haible  <bruno@clisp.org>
25477
25478         New module 'truncf-ieee'.
25479         * modules/truncf-ieee: New file.
25480         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25481         test whether truncf works according to ISO C 99 with IEC 60559.
25482         * m4/truncf-ieee.m4: New file.
25483         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25485         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25486         * modules/truncf-ieee-tests: New file.
25487         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25488         * tests/test-truncf1.c (main): Remove signbit tests.
25489         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25490         * doc/posix-functions/truncf.texi: Mention the new module.
25491
25492 2010-12-21  Bruno Haible  <bruno@clisp.org>
25493
25494         New module 'ceilf-ieee'.
25495         * modules/ceilf-ieee: New file.
25496         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25497         test whether ceilf works according to ISO C 99 with IEC 60559.
25498         * m4/ceilf-ieee.m4: New file.
25499         * modules/ceilf-ieee-tests: New file.
25500         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25501         * tests/test-ceilf1.c (main): Remove signbit tests.
25502         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25503         * doc/posix-functions/ceilf.texi: Mention the new module.
25504
25505 2010-12-21  Bruno Haible  <bruno@clisp.org>
25506
25507         New module 'floorf-ieee'.
25508         * modules/floorf-ieee: New file.
25509         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25510         test whether floorf works according to ISO C 99 with IEC 60559.
25511         * m4/floorf-ieee.m4: New file.
25512         * modules/floorf-ieee-tests: New file.
25513         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25514         * tests/test-floorf1.c (main): Remove signbit tests.
25515         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25516         * doc/posix-functions/floorf.texi: Mention the new module.
25517
25518 2010-12-21  Bruno Haible  <bruno@clisp.org>
25519
25520         Support for minus zero in autoconf macros.
25521         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25522         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25523         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25524         * tests/minus-zero.h: Update comments.
25525
25526 2010-12-21  Bruno Haible  <bruno@clisp.org>
25527
25528         Tests for module 'ceil'.
25529         * modules/ceil-tests: New file.
25530         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25531         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25532
25533 2010-12-21  Bruno Haible  <bruno@clisp.org>
25534
25535         Tests for module 'floor'.
25536         * modules/floor-tests: New file.
25537         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25538         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25539
25540 2010-12-21  Bruno Haible  <bruno@clisp.org>
25541
25542         math: Fix indentation.
25543         * lib/math.in.h (floorf): Fix indentation.
25544
25545 2010-12-21  Bruno Haible  <bruno@clisp.org>
25546
25547         Fix cross-compilation guesses on Solaris.
25548         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25549         not match "solaris2.10".
25550         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25551         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25552         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25553
25554 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25555
25556         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25557         This fixes a problem observed with the latest coreutils snapshot
25558         that caused a test to fail on Solaris 8.  src/csplit.c's call
25559         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25560         earlier, instead of returning the number of bytes that would have
25561         been generated; this causes csplit to incorrectly report memory
25562         exhaustion.
25563         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25564         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25565         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25566         comments to match.
25567         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25568         Fix typo in matching older versions of Solaris: "solaris2.10"
25569         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25570         only for guessing while cross-compiling.
25571         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25572
25573 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25574
25575         ftoastr: fix comment again
25576         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25578         Also, simplify example a bit by using flags = 0.
25579
25580 2010-12-20  Bruno Haible  <bruno@clisp.org>
25581
25582         round*, trunc*: Update documentation regarding glibc.
25583         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25584         * doc/posix-functions/round.texi: Likewise.
25585         * doc/posix-functions/roundl.texi: Likewise.
25586         * doc/posix-functions/truncf.texi: Likewise.
25587         * doc/posix-functions/trunc.texi: Likewise.
25588         * doc/posix-functions/truncl.texi: Likewise.
25589
25590 2010-12-20  Bruno Haible  <bruno@clisp.org>
25591
25592         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25593         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25594         * doc/posix-functions/round.texi: Likewise.
25595         * doc/posix-functions/roundl.texi: Likewise.
25596
25597 2010-12-20  Bruno Haible  <bruno@clisp.org>
25598
25599         ttyname_r: Add missing declaration on HP-UX 11.
25600         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25601         HAVE_TTYNAME_R.
25602         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25603         declared. Set HAVE_TTYNAME_R always.
25604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25605         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25606         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25607         HAVE_TTYNAME_R.
25608         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25609
25610 2010-12-20  Bruno Haible  <bruno@clisp.org>
25611
25612         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25613         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25614         * doc/posix-functions/getlogin_r.texi: Likewise.
25615         * tests/test-getlogin.c: Include <errno.h>.
25616         (main): Avoid test failure on HP-UX 11.11.
25617         * tests/test-getlogin_r.c (main): Likewise.
25618
25619 2010-12-20  Bruno Haible  <bruno@clisp.org>
25620
25621         getlogin_r: Add missing declaration on HP-UX 11.
25622         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25623         declared also when it exists as a function.
25624         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25625
25626 2010-12-20  Bruno Haible  <bruno@clisp.org>
25627
25628         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25629         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25630         through wcrtomb.
25631
25632 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25633
25634         ftoastr: fix comment
25635         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25636         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25637
25638 2010-12-19  Bruno Haible  <bruno@clisp.org>
25639
25640         isnan: Ensure it is a macro.
25641         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25642         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25643         Solaris.
25644
25645 2010-12-19  Bruno Haible  <bruno@clisp.org>
25646
25647         ldexpl test: Fix link error on OSF/1 5.1.
25648         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25649
25650 2010-12-19  Bruno Haible  <bruno@clisp.org>
25651
25652         wctype: Make it work in C++ mode on OSF/1 5.1.
25653         * lib/wctype.in.h (iswblank): Declare but not define here.
25654         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25655         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25656         * modules/wctype (Files): Add lib/iswblank.c.
25657
25658 2010-12-19  Bruno Haible  <bruno@clisp.org>
25659
25660         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25661         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25662         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25663
25664 2010-12-19  Bruno Haible  <bruno@clisp.org>
25665
25666         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25668         _POSIX_PII_SOCKET.
25669         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25670         * doc/posix-functions/recvfrom.texi: Likewise.
25671         * doc/posix-functions/send.texi: Likewise.
25672         * doc/posix-functions/sendto.texi: Likewise.
25673
25674 2010-12-19  Bruno Haible  <bruno@clisp.org>
25675
25676         tcgetsid: Add missing declaration on OSF/1 5.1.
25677         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25678         HAVE_TCGETSID.
25679         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25680         Don't set HAVE_TCGETSID.
25681         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25682         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25683         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25684         HAVE_TCGETSID.
25685         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25686
25687 2010-12-19  Bruno Haible  <bruno@clisp.org>
25688
25689         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25690         * lib/stdio.in.h: During the include_next statement, let recursive
25691         includes of this file include only the system header file.
25692
25693 2010-12-19  Bruno Haible  <bruno@clisp.org>
25694
25695         iconv_open: Fix regression from 2010-12-04.
25696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25697         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25698
25699 2010-12-19  Bruno Haible  <bruno@clisp.org>
25700
25701         stdbool test: Avoid a gcc warning.
25702         * tests/test-stdbool.c (main): Fail if e1 is false.
25703         Reported by Jim Meyering.
25704
25705 2010-12-19  Jim Meyering  <meyering@redhat.com>
25706
25707         setenv: restore to working order
25708         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25709         mistakenly removed.
25710         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25711         HAVE_SETENV.
25712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25713         HAVE_SETENV.
25714
25715 2010-12-19  Bruno Haible  <bruno@clisp.org>
25716
25717         Document some different function declarations on OSF/1 5.1.
25718         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25719         * doc/posix-functions/inet_ntop.texi: Likewise.
25720         * doc/posix-functions/gethostname.texi: Likewise.
25721         * lib/unistd.in.h (gethostname): Update comment.
25722
25723 2010-12-19  Bruno Haible  <bruno@clisp.org>
25724
25725         doc: Mention vasprintf-posix module.
25726         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25727         the 'vasprintf-posix' module.
25728         * doc/glibc-functions/vasprintf.texi: Likewise.
25729
25730 2010-12-19  Bruno Haible  <bruno@clisp.org>
25731
25732         unsetenv: Add missing declaration on OSF/1 5.1.
25733         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25734         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25735         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25737         not HAVE_UNSETENV.
25738         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25739         HAVE_UNSETENV.
25740         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25741
25742 2010-12-19  Bruno Haible  <bruno@clisp.org>
25743
25744         setenv: Add missing declaration on OSF/1 5.1.
25745         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25747         declared. Don't set HAVE_SETENV.
25748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25749         not HAVE_SETENV.
25750         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25751         HAVE_SETENV.
25752         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25753
25754 2010-12-19  Bruno Haible  <bruno@clisp.org>
25755
25756         nl_langinfo tests: Avoid gcc warning.
25757         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25758
25759 2010-12-19  Bruno Haible  <bruno@clisp.org>
25760
25761         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25762         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25763         _GL_CXXALIAS_SYS.
25764
25765 2010-12-19  Bruno Haible  <bruno@clisp.org>
25766
25767         stdbool: Relax test.
25768         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25769         address to 'bool' work in static initializer, for compilers other than
25770         GCC.
25771
25772 2010-12-19  Bruno Haible  <bruno@clisp.org>
25773
25774         ftello: Add missing declaration on OSF/1 5.1.
25775         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25776         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25778         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25779         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25780
25781 2010-12-19  Bruno Haible  <bruno@clisp.org>
25782
25783         fseeko: Add missing declaration on OSF/1 5.1.
25784         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25787         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25788         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25789
25790 2010-12-19  Bruno Haible  <bruno@clisp.org>
25791
25792         fchdir: Add missing declaration on OSF/1 5.1.
25793         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25796         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25797         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25798
25799 2010-12-19  Bruno Haible  <bruno@clisp.org>
25800
25801         relocatable-prog-wrapper: Separate from relocatable-prog.
25802         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25803         uninstall-relocwrapper rule here.
25804         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25805         Reported by Ian Beckwith <ianb@erislabs.net>.
25806
25807 2010-12-19  Bruno Haible  <bruno@clisp.org>
25808
25809         unistr/u8-mbsnlen: Add missing dependency.
25810         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25811         Reported by Ian Beckwith <ianb@erislabs.net>.
25812
25813 2010-12-19  Bruno Haible  <bruno@clisp.org>
25814
25815         iconv: Make it possible again to use this module without 'iconv-h'.
25816         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25817         if it is not defined.
25818         Reported by Ian Beckwith <ianb@erislabs.net>.
25819
25820 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25821
25822         acl: port to Solaris 8 when copying from tmpfs to ufs
25823         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25824         error number.  Problem observed on Solaris 8 with latest
25825         coreutils, with "mv A B", where A is on a tmpfs file system and B
25826         is on a ufs file system.  This caused coreutils' mv/part-symlink
25827         test to fail.
25828
25829         tests: set fail=0 at start
25830         * tests/init.sh (setup_): Move fail=0 initialization here ...
25831         (mktempd_): ... from here, so that tests can rely on fail being
25832         set to 0 initially.  This fixes a problem in coreutils; see:
25833         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25834
25835 2010-12-18  Bruno Haible  <bruno@clisp.org>
25836
25837         memmem-simple: Stylistic changes.
25838         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25839         Fix preprocessor directive indentation.
25840
25841 2010-12-15  Pádraig Brady <P@draigBrady.com>
25842
25843         memmem, memmem-simple: reorganize and expand empty needle check
25844         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25845         functional checks to memmem-simple so that one has a fully functional
25846         memmem by using just this module.
25847         Restrict the performance only check to the memmem module.
25848         Also expand the empty needle check to ensure the correct
25849         pointer is returned, not just a non NULL pointer.
25850         * doc/glibc-functions/memmem.texi: Rearrange the portability
25851         documentation to correlate with the rearranged checks.
25852         Clarify exactly how the memmem and memmem-simple modules
25853         relate to each other.
25854
25855 2010-12-15  Pádraig Brady <P@draigBrady.com>
25856             Bruno Haible  <bruno@clisp.org>
25857
25858         Improve cross-compilation guesses for uClibc.
25859         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25860         that uClibc does not have the glibc bug.
25861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25863
25864 2010-12-14  Eric Blake  <eblake@redhat.com>
25865
25866         configmake: provide fallbacks for oldest supported autotools
25867         * m4/configmake.m4: New file.
25868         * modules/configmake (Files): Ship it.
25869         (configure.ac): Use it to guarantee fallbacks.
25870
25871 2010-12-13  Pádraig Brady <P@draigBrady.com>
25872
25873         read-file: Improve handling of large files
25874         * lib/read-file.c (fread_file): Minimize realloc()s
25875         for regular files, and better manage sizes around SIZE_MAX.
25876
25877 2010-12-13  Eric Blake  <eblake@redhat.com>
25878
25879         cloexec, fcntl: relax license
25880         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25881         consent from all contributors.
25882         * modules/fcntl (License): Likewise.
25883
25884 2010-12-10  Bruno Haible  <bruno@clisp.org>
25885
25886         Tests for module 'pipe-posix'.
25887         * modules/pipe-posix-tests: New file.
25888         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25889
25890 2010-12-10  Bruno Haible  <bruno@clisp.org>
25891
25892         pipe-posix: Make it work in C++ mode.
25893         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25894         (pipe): Use common idiom, not a macro definition.
25895         * lib/pipe.c: New file.
25896         * m4/pipe.m4: New file.
25897         * modules/pipe-posix (Description): Enhance.
25898         (Files): Add lib/pipe.c, m4/pipe.m4.
25899         (configure.ac): Invoke gl_FUNC_PIPE.
25900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25901         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25902         * tests/test-unistd-c++.cc: Check the signature of pipe.
25903
25904 2010-12-10  Bruno Haible  <bruno@clisp.org>
25905
25906         Rename module 'pipe' to 'spawn-pipe'.
25907         * modules/spawn-pipe: New file, renamed from modules/pipe.
25908         (Files, configure.ac, Makefile.am): Update.
25909         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25910         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25911         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25912         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25913         "spawn-pipe.h" instead of "pipe.h".
25914         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25915         to gl_SPAWN_PIPE.
25916         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25917         (Files, Makefile.am): Update.
25918         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25919         Update.
25920         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25921         Include "spawn-pipe.h" instead of "pipe.h".
25922         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25923         * lib/javacomp.c: Likewise.
25924         * lib/javaversion.c: Likewise.
25925         * lib/pipe-filter-gi.c: Likewise.
25926         * lib/pipe-filter-ii.c: Likewise.
25927         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25928         * modules/javacomp (Depends-on): Likewise.
25929         * modules/javaversion (Depends-on): Likewise.
25930         * modules/pipe-filter-gi (Depends-on): Likewise.
25931         * modules/pipe-filter-ii (Depends-on): Likewise.
25932         * MODULES.html.sh (Executing programs): Update.
25933         * NEWS: Mention the change.
25934
25935 2010-12-10  Eric Blake  <eblake@redhat.com>
25936
25937         pipe-posix: new module
25938         * modules/pipe-posix: New file.
25939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25940         (gl_UNISTD_H): Check for declaration.
25941         * modules/unistd (Makefile.am): Substitute it.
25942         * lib/unistd.in.h (pipe): Provide it for mingw.
25943         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25944         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25945
25946 2010-12-07  Bruno Haible  <bruno@clisp.org>
25947
25948         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25949         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25950         u8_strcmp_gnu.
25951         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25952
25953 2010-12-06  Bruno Haible  <bruno@clisp.org>
25954
25955         Update internal documentation.
25956         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25957
25958 2010-12-04  Bruno Haible  <bruno@clisp.org>
25959
25960         Put more information about failed tests into the test return codes.
25961         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25962         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25963         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25965         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25967         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25968         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25969         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25972         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25973         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25974         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25975         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25976         returns a bit mask.
25977         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25978         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25979         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25980         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25981         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25982         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25983         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25985         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25986         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25987         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25988         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25989         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25991         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25992         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25993         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25994         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25995         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25996         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25998         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25999         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26000         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26001         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26002         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26003         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26004         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26005         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26006         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26007         gl_PRINTF_PRECISION): Likewise.
26008         * m4/regex.m4 (gl_REGEX): Likewise.
26009         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26011         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26012         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26013         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26015         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26016         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26017         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26018         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26019         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26021         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26022         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26023         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26024         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26025         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26028         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26029         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26030         enumerated value.
26031         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26032
26033 2010-12-04  Bruno Haible  <bruno@clisp.org>
26034
26035         Update for Solaris 11 2010-11.
26036         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26037         Express, released in November 2010.
26038
26039 2010-12-04  Bruno Haible  <bruno@clisp.org>
26040
26041         nproc: Relax license.
26042         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26043         and Paul Eggert.
26044         Requested by Ludovic Courtès <ludo@gnu.org>.
26045
26046 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26047
26048         utimecmp: fine-grained src to nearby coarse-grained dest
26049
26050         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26051         and the source is on a file system with higher-resolution time
26052         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26053         not work, and the time stamps are close together, the algorithm to
26054         determine the exact resolution from the read-back mtime was buggy:
26055         it had a "!=" where it should have had an "==".  This bug has been
26056         in the code ever since it was introduced to gnulib.
26057         Problem reported by Dan Jacobson in
26058         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26059
26060 2010-11-30  Bruno Haible  <bruno@clisp.org>
26061
26062         strerror_r-posix: Fix autoconf test.
26063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26064
26065 2010-11-28  Bruno Haible  <bruno@clisp.org>
26066             Paul Eggert  <eggert@cs.ucla.edu>
26067
26068         Tests for module 'getdomainname'.
26069         * modules/getdomainname-tests: New file.
26070         * tests/test-getdomainname.c: New file, based on
26071         tests/test-gethostname.c.
26072
26073 2010-11-28  Bruno Haible  <bruno@clisp.org>
26074             Paul Eggert  <eggert@cs.ucla.edu>
26075
26076         getdomainname: Use the system function when possible.
26077         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26078         (getdomainname): Replace if needed. Provide the declaration if it is
26079         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26080         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26081         (getdomainname): When the system has getdomainname, call the system
26082         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26083         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26084         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26085         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26086         the function if its second argument is of type 'int' or if it is found
26087         in libnsl.
26088         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26089         <sys/systeminfo.h> and sysinfo().
26090         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26092         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26093         HAVE_GETDOMAINNAME.
26094         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26095         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26096         * doc/glibc-functions/getdomainname.texi: Document the problems with
26097         the getdomainname declaration.
26098
26099 2010-11-28  Bruno Haible  <bruno@clisp.org>
26100
26101         sys_socket: Ensure ss_family field on AIX.
26102         * lib/sys_socket.in.h (ss_family): New macro definition.
26103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26104         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26105         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26106         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26107         * modules/sys_socket (Makefile.am): Substitute
26108         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26109         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26110
26111 2010-11-27  Bruno Haible  <bruno@clisp.org>
26112
26113         readline: Improve configure output.
26114         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26115         "checking for readline..." result understandable.
26116
26117 2010-11-27  Bruno Haible  <bruno@clisp.org>
26118
26119         *printf-posix: Detect a bug on Solaris 10/x86.
26120         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26121         for floating-point output.
26122         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26123         directive.
26124         * tests/test-snprintf-posix.h (test_function): Likewise.
26125         * tests/test-sprintf-posix.h (test_function): Likewise.
26126         * tests/test-vasprintf-posix.c (test_function): Likewise.
26127         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26128         * doc/posix-functions/printf.texi: Likewise.
26129         * doc/posix-functions/snprintf.texi: Likewise.
26130         * doc/posix-functions/sprintf.texi: Likewise.
26131         * doc/posix-functions/vfprintf.texi: Likewise.
26132         * doc/posix-functions/vprintf.texi: Likewise.
26133         * doc/posix-functions/vsnprintf.texi: Likewise.
26134         * doc/posix-functions/vsprintf.texi: Likewise.
26135         * doc/glibc-functions/obstack_printf.texi: Likewise.
26136         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26137
26138 2010-11-27  Bruno Haible  <bruno@clisp.org>
26139
26140         Fix link error when module libunistring-optional is in use.
26141         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26142         * modules/striconveha-tests (Makefile.am): Likewise.
26143
26144 2010-11-27  Bruno Haible  <bruno@clisp.org>
26145
26146         regex: Mention link dependencies.
26147         * modules/regex (Link): New section.
26148         * modules/rpmatch (Link): Likewise.
26149         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26150
26151 2010-11-27  Bruno Haible  <bruno@clisp.org>
26152
26153         ftoastr: Fix compilation error on Solaris.
26154         * lib/ftoastr.c: Include <config.h>.
26155
26156 2010-11-27  Bruno Haible  <bruno@clisp.org>
26157
26158         getloadavg: Update documentation.
26159         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26160
26161 2010-11-27  Bruno Haible  <bruno@clisp.org>
26162
26163         sys_socket: Fix test whether the functions are declared.
26164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26165         not <sys/select.h>.
26166
26167 2010-11-27  Bruno Haible  <bruno@clisp.org>
26168
26169         getpass: Make sure to get system declaration on some platforms.
26170         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26171         gl_USE_SYSTEM_EXTENSIONS.
26172         * modules/getpass (Depends-on): Add extensions.
26173
26174 2010-11-26  Bruno Haible  <bruno@clisp.org>
26175
26176         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26177         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26178         'iconv' module is present.
26179         (ICONV_CONST): New macro.
26180         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26181         ICONV_CONST.
26182         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26183         set ICONV_CONST.
26184         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26185         here.
26186         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26187         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26188         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26189         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26190         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26191         present.
26192
26193 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26194
26195         ftoastr: comment fix
26196         * lib/ftoastr.c: "little" -> "little or no" in comment
26197
26198 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26199
26200         stdint: port to GCC 4.3 + OSX + Octave
26201         On this platform, stdint.h is buggy and defines int64_t to long
26202         long int.  The replacement defined it to long int, causing
26203         problems with C++ style name mangling.  Instead, trust the system
26204         definition if INT64_MAX is defined, and likewise for the unsigned
26205         variant.   Problem reported by Jarno Rajahalme in
26206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26207         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26208         and don't mess with int64_t and INT64_MAX in this case.
26209         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26210
26211 2010-11-24  Bruno Haible  <bruno@clisp.org>
26212
26213         doc: Corrections regarding MacOS X 10.4 and 10.5.
26214         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26215         MacOS X.
26216         Reported by Simon Josefsson.
26217
26218 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26219
26220         Uninstall ".bin" files installed by relocwrapper.
26221         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26222         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26223         unless it is already there.
26224
26225 2010-11-21  Bruno Haible  <bruno@clisp.org>
26226
26227         Update for NetBSD 5.0.
26228         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26229         NetBSD; the test fails on NetBSD 5.0.
26230         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26231         about NetBSD.
26232
26233 2010-11-21  Bruno Haible  <bruno@clisp.org>
26234
26235         Update for HP-UX 11.23 and HP-UX 11.31.
26236         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26237         HP-UX.
26238
26239 2010-11-21  Bruno Haible  <bruno@clisp.org>
26240
26241         Update for MacOS X 10.5.
26242         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26243         MacOS X; the test fails on MacOS X 10.5.8.
26244         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26245         about MacOS X.
26246
26247 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26248
26249         bootstrap: add bootstrap_sync option.
26250         See discussion at
26251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26253         * build-aux/bootstrap: Accept --bootstrap-sync to update
26254         bootstrap if it is not identical to the local gnulib's
26255         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26256         enable this by default.  Accept --no-bootstrap-sync to disable
26257         it.
26258
26259 2010-11-20  Bruno Haible  <bruno@clisp.org>
26260
26261         Ensure that <features.h> is included before __GLIBC__ is tested.
26262         * lib/printf-parse.h: Include <features.h>.
26263         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26264         Reported by Mike Frysinger <vapier@gentoo.org>.
26265
26266         Ensure that <features.h> is included before __GLIBC__ is tested.
26267         * lib/wchar.in.h: Include <features.h>.
26268         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26269         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26270         Reported by Mike Frysinger <vapier@gentoo.org>.
26271
26272         Ensure that <features.h> is included before __GLIBC__ is tested.
26273         * lib/arpa_inet.in.h: Include <features.h>.
26274         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26275         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26276         Reported by Mike Frysinger <vapier@gentoo.org>.
26277
26278         Ensure that <features.h> is included before __GLIBC__ is tested.
26279         * build-aux/link-warning.h: Include <features.h>.
26280         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26281         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26282         Reported by Mike Frysinger <vapier@gentoo.org>.
26283
26284         Ensure that <features.h> is included before __GLIBC__ is tested.
26285         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26286         Reported by Mike Frysinger <vapier@gentoo.org>.
26287
26288 2010-11-20  Bruno Haible  <bruno@clisp.org>
26289
26290         memmem: Fix autoconf test.
26291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26292
26293 2010-11-20  Bruno Haible  <bruno@clisp.org>
26294
26295         Port to uClibc.
26296         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26297         * lib/fcntl.in.h: Likewise.
26298         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26299         * lib/mbrtowc.c (mbrtowc): Likewise.
26300         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26301         * lib/strerror_r.c: Likewise.
26302         * lib/unistr/u8-strnlen.c: Likewise.
26303         * lib/vasnprintf.c (decimal_point_char): Likewise.
26304         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26305         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26307         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26308         * tests/test-sigaction.c (handler, main): Likewise.
26309         * lib/freading.h: Treat uClibc like a non-glibc platform.
26310         * lib/freading.c: Likewise.
26311         * lib/gettext.h: Likewise.
26312         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26313         Likewise.
26314         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26315         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26316         * lib/propername.c (proper_name_utf8): Likewise.
26317         * lib/spawn.in.h: Likewise.
26318         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26319         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26320         mem_cd_iconveh_internal): Likewise.
26321         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26322         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26323         strstr, strcasestr): Likewise.
26324         * lib/unicodeio.c (unicode_to_mb): Likewise.
26325         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26326         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26327         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26328         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26329         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26330         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26331         * lib/unistr/u8-stpncpy.c: Likewise.
26332         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26333         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26334         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26335         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26336         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26337         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26341         Likewise.
26342         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26343         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26346         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26347         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26348         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26349         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26350         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26351         * tests/test-striconveha.c (main): Likewise.
26352         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26353         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26354         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26355         * doc/posix-functions/getline.texi: Likewise.
26356         Reported by Mike Frysinger <vapier@gentoo.org>.
26357
26358 2010-11-20  Bruno Haible  <bruno@clisp.org>
26359
26360         nproc: Fix condition.
26361         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26362         HAVE_PTHREAD_AFFINITY_NP.
26363
26364 2010-11-20  Bruno Haible  <bruno@clisp.org>
26365
26366         Fix a comment.
26367         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26368
26369 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26370
26371         ftoastr: don't assume snprintf
26372         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26373         Implement a subset of snprintf here, by using sprintf safely.
26374         * modules/ftoastr (Depends-on): Remove snprintf.
26375
26376 2010-11-19  Jim Meyering  <meyering@redhat.com>
26377
26378         test-rename.h: fix compilation failure
26379         * tests/test-rename.h (test_rename): Add omitted "}".
26380
26381 2010-11-17  Jim Meyering  <meyering@redhat.com>
26382
26383         maint.mk: add a URL discussing the no-@acronym policy
26384         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26385
26386 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26387
26388         ftoastr: depend on snprintf, improve comments
26389         * lib/ftoastr.c: Also mention Loitsch's draft.
26390         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26391         needed in the current implementation, but it might simplify
26392         speeding up the code later.
26393         * modules/ftoastr: Depend on snprintf; this improves portability.
26394         Suggested by Bruno Haible in the same email.
26395
26396         ftoastr: port to hosts lacking strtof and strtold
26397         Problem reported by Bruno Haible in
26398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26399         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26400         environment and strtold (and presumably strtof) are not available.
26401         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26402         (configure.ac): Require gl_C99_STRTOLD.
26403
26404 2010-11-18  Bruno Haible  <bruno@clisp.org>
26405
26406         c-strtold: Avoid link error on AIX 7.
26407         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26408         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26409         (gl_C_STRTOLD): Test whether strtold_l exists.
26410         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26411
26412 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26413
26414         intprops: new macro INT_BITS_STRLEN_BOUND
26415         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26416         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26417         not exposed.  Also, it uses a slightly tighter bound than before;
26418         though this makes no practical difference, we might as well be as
26419         tight as we easily can.
26420
26421         ftoastr: new module, for lossless conversion of floats to short strings
26422         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26423         * modules/ftoastr: New files.
26424
26425 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         bootstrap: port to Solaris sed
26428         * build-aux/bootstrap (get_version): Port to Solaris sed.
26429         See Ralf Wildenhues's note in
26430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26431
26432 2010-11-14  Jim Meyering  <meyering@redhat.com>
26433
26434         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26435         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26436         and move definition closer to sole use.
26437
26438 2010-11-13  Jim Meyering  <meyering@redhat.com>
26439
26440         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26441         Now we require at least autoconf-2.59, which means the work-around
26442         is no longer needed.
26443         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26444         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26445         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26446         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26447         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26448
26449 2010-11-13  Bruno Haible  <bruno@clisp.org>
26450
26451         rename, renameat: Avoid test failures at NFS mounted locations.
26452         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26453         functions.
26454         (test_rename): Use assert_nonexistent.
26455         * tests/test-rename.c: Include <dirent.h>.
26456         * tests/test-renameat.c: Likewise.
26457         Reported by Gary V. Vaughan <gary@gnu.org>.
26458
26459         rename, renameat: Document Linux bug with NFS
26460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26461         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26462         * doc/posix-functions/renameat.texi: Likewise.
26463         Suggested by Eric Blake.
26464
26465 2010-11-13  Bruno Haible  <bruno@clisp.org>
26466
26467         rename test: Add comments.
26468         * tests/test-rename.h (test_rename): Add structure and comments.
26469
26470 2010-11-13  Eric Blake  <eblake@redhat.com>
26471
26472         maintainer-makefile: cover a few more files
26473         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26474         scripts generated within C files, for libvirt.
26475
26476 2010-11-13  Bruno Haible  <bruno@clisp.org>
26477
26478         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26479         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26480         character, return the number of bytes that belong together, not always
26481         1.
26482         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26483         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26484         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26485         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26486         number of bytes of an invalid character.
26487         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26488         (main): Invoke it.
26489         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26490         results.
26491         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26492         malformed byte sequences.
26493         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26494         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26495         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26496         Reported by Ben Pfaff and Paolo Bonzini.
26497
26498 2010-11-13  Bruno Haible  <bruno@clisp.org>
26499
26500         openat: Work around glibc bug with fchownat() and empty file names.
26501         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26502         (gl_FUNC_FCHOWNAT): Invoke it.
26503         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26504         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26505         Reported by Gary V. Vaughan <gary@gnu.org>.
26506
26507 2010-11-13  Bruno Haible  <bruno@clisp.org>
26508
26509         openat: Ensure autoconf macro ordering.
26510         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26511         gl_USE_SYSTEM_EXTENSIONS.
26512         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26513
26514 2010-11-13  Bruno Haible  <bruno@clisp.org>
26515
26516         Update comments.
26517         * lib/unistr/u8-check.c: Update file name in comments.
26518         * lib/unistr/u8-mblen.c: Likewise.
26519         * lib/unistr/u8-prev.c: Likewise.
26520         * lib/unistr/u8-strmblen.c: Likewise.
26521         * lib/unistr/u8-strmbtouc.c: Likewise.
26522
26523 2010-11-13  Jim Meyering  <meyering@redhat.com>
26524
26525         tests: avoid test failure on Solaris 10 due to lack of PATH export
26526         * tests/test-update-copyright.sh: Don't forget to export PATH.
26527
26528         init.sh: ensure that IFS is defined, just in case...
26529         * tests/init.sh (setup_): Ensure that IFS is defined,
26530         so that saving and restoring it works as expected.  This
26531         appears to be useful at least for an old version of dash
26532         from a long time ago (RH 6).  See here for details:
26533         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26534
26535         maint.mk: tighten "test a == b" check
26536         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26537         test to files that contain something like #!/bin/sh.
26538         Without this, coreutils would get two false positives in
26539         the comments of C source files.
26540
26541 2010-11-12  Eric Blake  <eblake@redhat.com>
26542
26543         bootstrap: fix typo in previous attempt
26544         * build-aux/bootstrap (buildreq): Correct the grouping.
26545         Reported by Paul Eggert.
26546
26547         maintainer-makefile: prohibit test x == x
26548         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26549         Based on a report by Matthias Bolte.
26550
26551         bootstrap: allow FreeBSD gzip
26552         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26553         which has no '.' and goes to stderr.
26554         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26555         Reported by Matthias Bolte.
26556
26557         maintainer-makefile: check for i18n setup
26558         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26559         will likely work.
26560
26561 2010-11-12  Bruno Haible  <bruno@clisp.org>
26562
26563         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26564         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26565         * lib/nanosleep.c (nanosleep): Likewise.
26566
26567 2010-11-11  Bruno Haible  <bruno@clisp.org>
26568
26569         fcntl-h: Fix for use of C++ on glibc systems.
26570         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26571         also on glibc systems in C++ mode.
26572         Reported by Gary V. Vaughan <gary@gnu.org>.
26573
26574 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26575
26576         mknod: avoid false failure with dash
26577         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26578
26579 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         unlink: Fix "is it should" typo in diagnostic.
26582         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26584
26585 2010-11-11  Bruno Haible  <bruno@clisp.org>
26586
26587         Tests for module 'strerror_r-posix'.
26588         * modules/strerror_r-posix-tests: New file.
26589         * tests/test-strerror_r.c: New file.
26590         * tests/test-string-c++.cc: Check the signature of strerror_r.
26591
26592         New module 'strerror_r-posix'.
26593         * lib/string.in.h (strerror_r): New declaration.
26594         * lib/strerror_r.c: New file.
26595         * m4/strerror_r.m4: New file.
26596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26597         of strerror_r.
26598         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26599         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26600         * modules/strerror_r-posix: New file.
26601         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26602         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26603         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26604         portability problems.
26605
26606 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26607
26608         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26609         line is also considered for output. Quoted function name in shell
26610         command, so temporary files for functions like MyClass::operator()
26611         are removed correctly without errors.
26612
26613 2010-11-09  Bruno Haible  <bruno@clisp.org>
26614
26615         * doc/posix-functions/strerror.texi: List more failing platforms.
26616
26617         * doc/posix-functions/strerror.texi: Add a comment.
26618
26619 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26620
26621         fdopendir: fix bug on MacOS X when low on file descriptors
26622
26623         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26624         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26625         All callers changed.
26626         (fdopendir): Invoke save_cwd at the top level, not after using
26627         multiple dup() calls to use up file descriptors.  Then retry
26628         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26629         less than the maximum number of open file descriptors, because
26630         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26631         on Mac OS X 10.6.4 for tar 1.24
26632         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26633         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26634         and for tar 1.25
26635         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26636
26637 2010-11-07  Bruno Haible  <bruno@clisp.org>
26638
26639         vasnprintf: Support I flag on glibc systems.
26640         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26641         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26642         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26643         snprintf function.
26644         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26645         glibc systems.
26646         * tests/test-vasnprintf-posix3.c: New file.
26647         * modules/vasnprintf-posix-tests (Files): Add it.
26648         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26649
26650 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26651
26652         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26653         * MODULES.html.sh: For compiler warnings, use name
26654         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26655
26656 2010-11-05  Eric Blake  <eblake@redhat.com>
26657
26658         ceil, floor: avoid spurious failure with icc
26659         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26660         [denormals-as-zero] when optimizing without -mieee-fp option.
26661         * tests/test-floorf2.c (floorf_reference): Likewise.
26662         * tests/test-ceilf1.c (dummy): New function.
26663         (main): Use it to outsmart icc's optimization.
26664         * tests/test-floorf1.c (dummy, main): Likewise.
26665
26666         tests: require working signbit
26667         * modules/ceilf-tests (Depends-on): Add signbit.
26668         * modules/ceill-tests (Depends-on): Likewise.
26669         * modules/floorf-tests (Depends-on): Likewise.
26670         * modules/floorl-tests (Depends-on): Likewise.
26671         * modules/round-tests (Depends-on): Likewise.
26672         * modules/roundf-tests (Depends-on): Likewise.
26673         * modules/roundl-tests (Depends-on): Likewise.
26674         * modules/trunc-tests (Depends-on): Likewise.
26675         * modules/truncf-tests (Depends-on): Likewise.
26676         * modules/truncl-tests (Depends-on): Likewise.
26677
26678         strtod: work around icc bug
26679         * lib/strtod.c (minus_zero): Define to working value.
26680         (strtod): Use it to avoid icc bug.
26681
26682         copysign: enhance tests
26683         * modules/copysign-tests (Files): Add minus-zero.h.
26684         * tests/test-copysign.c (main): Also test zeros.
26685
26686 2010-11-04  Eric Blake  <eblake@redhat.com>
26687
26688         ceil, floor, round, trunc: enhance tests of -0
26689         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26690         * tests/test-ceill.c (main): Likewise.
26691         * tests/test-floorf1.c (main): Likewise.
26692         * tests/test-floorl.c (main): Likewise.
26693         * tests/test-round1.c (main): Likewise.
26694         * tests/test-roundf1.c (main): Likewise.
26695         * tests/test-roundl.c (main): Likewise.
26696         * tests/test-trunc1.c (main): Likewise.
26697         * tests/test-truncf1.c (main): Likewise.
26698         * tests/test-truncl.c (main): Likewise.
26699
26700 2010-11-04  Eric Blake  <eblake@redhat.com>
26701
26702         frexp, tests: work around ICC bug with -zero
26703         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26704         works with more compilers.
26705         * tests/minus-zero.h: New file.
26706         * modules/ceilf-tests (Files): Include it.
26707         * modules/ceill-tests (Files): Likewise.
26708         * modules/floorf-tests (Files): Likewise.
26709         * modules/floorl-tests (Files): Likewise.
26710         * modules/frexp-nolibm-tests (Files): Likewise.
26711         * modules/frexp-tests (Files): Likewise.
26712         * modules/frexpl-nolibm-tests (Files): Likewise.
26713         * modules/frexpl-tests (Files): Likewise.
26714         * modules/isnan-tests (Files): Likewise.
26715         * modules/isnand-nolibm-tests (Files): Likewise.
26716         * modules/isnand-tests (Files): Likewise.
26717         * modules/isnanf-nolibm-tests (Files): Likewise.
26718         * modules/isnanf-tests (Files): Likewise.
26719         * modules/isnanl-nolibm-tests (Files): Likewise.
26720         * modules/isnanl-tests (Files): Likewise.
26721         * modules/round-tests (Files): Likewise.
26722         * modules/roundf-tests (Files): Likewise.
26723         * modules/roundl-tests (Files): Likewise.
26724         * modules/ldexpl-tests (Files): Likewise.
26725         * modules/signbit-tests (Files): Likewise.
26726         * modules/snprintf-posix-tests (Files): Likewise.
26727         * modules/sprintf-posix-tests (Files): Likewise.
26728         * modules/strtod-tests (Files): Likewise.
26729         * modules/trunc-tests (Files): Likewise.
26730         * modules/truncf-tests (Files): Likewise.
26731         * modules/truncl-tests (Files): Likewise.
26732         * modules/vsnprintf-posix-tests (Files): Likewise.
26733         * modules/vsprintf-posix-tests (Files): Likewise.
26734         * modules/vasnprintf-posix-tests (Files): Likewise.
26735         * modules/vasprintf-posix-tests (Files): Likewise.
26736         * tests/test-ceilf1.c (main): Use it.
26737         * tests/test-ceill.c (main): Likewise.
26738         * tests/test-floorf1.c (main): Likewise.
26739         * tests/test-floorl.c (main): Likewise.
26740         * tests/test-frexp.c (main): Likewise.
26741         * tests/test-frexpl.c (main): Likewise.
26742         * tests/test-isnan.c (main): Likewise.
26743         * tests/test-isnand.h (main): Likewise.
26744         * tests/test-isnanf.h (main): Likewise.
26745         * tests/test-isnanl.h (main): Likewise.
26746         * tests/test-ldexpl.c (main): Likewise.
26747         * tests/test-round.c (main): Likewise.
26748         * tests/test-roundf.c (main): Likewise.
26749         * tests/test-roundl.c (main): Likewise.
26750         * tests/test-signbit.c (test_signbitf, test_signbitd)
26751         (test_signbitl): Likewise.
26752         * tests/test-snprintf-posix.h (test_function): Likewise.
26753         * tests/test-sprintf-posix.h (test_function): Likewise.
26754         * tests/test-strtod.c (main): Likewise.
26755         * tests/test-trunc1.c (main): Likewise.
26756         * tests/test-truncf1.c (main): Likewise.
26757         * tests/test-truncl.c (main): Likewise.
26758
26759         isnanl: work around icc bug
26760         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26761
26762 2010-11-03  Eric Blake  <eblake@redhat.com>
26763
26764         tests: fix compiler warnings
26765         * tests/test-getopt.h (test_getopt): Fix condition.
26766         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26767         * tests/test-pipe2.c (main): Likewise.
26768         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26769
26770         utimens: fix broken m4 test
26771         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26772
26773 2010-10-28  Bruno Haible  <bruno@clisp.org>
26774
26775         posix_spawn*, getdtablesize: Relax license.
26776         * modules/posix_spawn (License): Change to LGPLv2+.
26777         * modules/posix_spawnp (License): Likewise.
26778         * modules/posix_spawn-internal (License): Likewise.
26779         * modules/posix_spawnattr_init (License): Likewise.
26780         * modules/posix_spawnattr_getflags (License): Likewise.
26781         * modules/posix_spawnattr_setflags (License): Likewise.
26782         * modules/posix_spawnattr_getpgroup (License): Likewise.
26783         * modules/posix_spawnattr_setpgroup (License): Likewise.
26784         * modules/posix_spawnattr_getschedparam (License): Likewise.
26785         * modules/posix_spawnattr_setschedparam (License): Likewise.
26786         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26787         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26788         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26789         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26790         * modules/posix_spawnattr_getsigmask (License): Likewise.
26791         * modules/posix_spawnattr_setsigmask (License): Likewise.
26792         * modules/posix_spawnattr_destroy (License): Likewise.
26793         * modules/posix_spawn_file_actions_init (License): Likewise.
26794         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26795         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26796         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26797         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26798         * modules/getdtablesize (License): Likewise.
26799         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26800
26801 2010-10-26  Bruno Haible  <bruno@clisp.org>
26802
26803         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26804         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26805         Cygwin and mingw.
26806         Suggested by Eric Blake.
26807
26808 2010-10-26  Bruno Haible  <bruno@clisp.org>
26809
26810         stdio: Work around compilation error due to renameat() on Solaris 10.
26811         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26812         * lib/renameat.c: Don't include <unistd.h> here.
26813         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26814         Reported by Paul Eggert and Eric Blake.
26815
26816 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26817
26818         renameat: port to Solaris 10, which declares renameat in unistd.h
26819
26820         * lib/renameat.c: Include unistd.h before stdio.h, because
26821         Solaris 10 declares renameat in unistd.h.  Problem encountered
26822         when building GNU tar 1.24 on Solaris 10.
26823
26824 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26825
26826         fdopendir: fix C89 compilation
26827         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26828         compilers.
26829
26830 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26831
26832         inttostr: simplify by removing unnecessary redundancy
26833         * lib/anytostr.c: Don't include verify.h.
26834         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26835         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26836         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26837         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26838         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26839         Likewise.
26840         * modules/inttostr (Depends-on): Remove 'verify'.
26841
26842 2010-10-23  Bruno Haible  <bruno@clisp.org>
26843
26844         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26845         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26846         Reported by Eric Blake.
26847
26848 2010-10-23  Bruno Haible  <bruno@clisp.org>
26849
26850         Tests: Fix LOCALE_JA on MirBSD 10.
26851         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26852         to an UTF-8 locale.
26853         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26854         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26855         Reported by Eric Blake.
26856
26857 2010-10-21  Bruno Haible  <bruno@clisp.org>
26858
26859         nl_langinfo test: Avoid test failure on NetBSD 5.
26860         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26861         Reported by Eric Blake.
26862
26863 2010-10-21  Eric Blake  <eblake@redhat.com>
26864
26865         c-stack: work around libsigsegv 2.8 bug
26866         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26867         overflow on at least PowerPC64.
26868
26869 2010-10-17  Bruno Haible  <bruno@clisp.org>
26870
26871         userspec: Drop redundant file.
26872         * modules/userspec (Files): Remove lib/inttostr.h.
26873
26874 2010-10-17  Bruno Haible  <bruno@clisp.org>
26875
26876         nl_langinfo tests: Silence some warnings.
26877         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26878         Reported by Jim Meyering.
26879
26880 2010-10-17  Bruno Haible  <bruno@clisp.org>
26881
26882         Make use of GCC's attribute __alloc_size__.
26883         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26884         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26885         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26886         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26887         __alloc_size__.
26888         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26889         Suggested by Jim Meyering.
26890
26891 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26892
26893         bootstrap: anchor .gitignore entries.
26894         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26895         with...
26896         (insert_vc_ignore): ... this new function, which prepends `/' to
26897         all .gitignore entries before passing them to
26898         insert_sorted_if_absent.
26899
26900 2010-10-16  Bruno Haible  <bruno@clisp.org>
26901
26902         nextafter: Fix configure check.
26903         * modules/nextafter (configure.ac): Correct expected prototype.
26904
26905 2010-10-16  Bruno Haible  <bruno@clisp.org>
26906
26907         termios: Update documentation.
26908         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26909
26910 2010-10-16  Bruno Haible  <bruno@clisp.org>
26911
26912         tests: Make them compile with TinyCC.
26913         * tests/test-strstr.c (main): Remove parentheses around array
26914         initializer.
26915
26916 2010-10-15  Eric Blake  <eblake@redhat.com>
26917
26918         ignore-value: make header idempotent
26919         * lib/ignore-value.h: Add double-inclusion guards.
26920         Reported by Stefan Berger.
26921
26922 2010-10-15  Jim Meyering  <meyering@redhat.com>
26923
26924         GNUmakefile: handle "stable" target, not "major"
26925         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26926         lists in maint.mk and announce-gen.  Without this, "make stable"
26927         would fail to ensure that $(VERSION) is up to date.
26928
26929 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26930
26931         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26932         & co.
26933
26934 2010-10-14  Bruno Haible  <bruno@clisp.org>
26935
26936         vasnprintf: Don't set errno to 0.
26937         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26938         block that sets it to 0.
26939         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26940
26941 2010-10-14  Bruno Haible  <bruno@clisp.org>
26942
26943         socketlib: Fix.
26944         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26945         gl_PREREQ_SYS_H_WINSOCK2.
26946         Reported by Ian Beckwith <ianb@erislabs.net>.
26947
26948 2010-10-13  Jim Meyering  <meyering@redhat.com>
26949
26950         test-select-stdin.c: avoid warn_unused_result warnings
26951         * tests/test-select-stdin.c: Include "macros.h".
26952         ASSERT that read and fflush succeed.
26953
26954 2010-10-13  Jim Meyering  <meyering@redhat.com>
26955
26956         git-version-gen: do require git-VC'd files in cwd
26957         * build-aux/git-version-gen: Reject a git version string
26958         if there are no commits associated with the current directory.
26959         This avoids an unlikely false-positive (unrelated dir whose parent
26960         repository also contains a tag matching v*), as pointed out
26961         by Giuseppe Scrivano in
26962         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26963
26964 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26965
26966         argv-iter: omit nonconforming declaration
26967         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26968         enum arg_iter_err declaration, which doesn't conform to C99.
26969         Solaris 10 cc warns about this.
26970
26971 2010-10-13  Eric Blake  <eblake@redhat.com>
26972
26973         termios: fix compilation on mingw
26974         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26975         (gl_TERMIOS_H): Adjust it on mingw.
26976         * modules/termios (Makefile.am): Substitute new key.
26977         * lib/termios.in.h (includes): Make include_next conditional.
26978         * doc/posix-headers/termios.texi (termios.h): Update
26979         documentation.
26980         Reported by Daniel P. Berrange.
26981
26982 2010-10-13  Jim Meyering  <meyering@redhat.com>
26983
26984         git-version-gen: don't require that .git/ be in the current dir
26985         * build-aux/git-version-gen: Adjust this script so that it works
26986         when run from any working directory beneath the top-level .git/-
26987         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26988         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26989
26990         test-select: avoid warn_unused_result warnings
26991         * tests/test-select.c: Include "macros.h".
26992         ASSERT that each call to read, write, and pipe succeeds.
26993         While not technically required, also check each "close".
26994         * modules/select-tests (Files): Add tests/macros.h.
26995
26996         test-symlinkat: remove declaration of unused local
26997         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26998
26999         test-inttostr: avoid shadowing warnings
27000         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27001         and use malloc rather than the stack for the same reason as
27002         mentioned in the comment justifying the other allocation.
27003
27004 2010-10-11  Bruno Haible  <bruno@clisp.org>
27005
27006         stdlib: Allow multiple gnulib generated replacements to coexist.
27007         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27008         Reported by Sam Steingold <sds@gnu.org>.
27009
27010 2010-10-11  Jim Meyering  <meyering@redhat.com>
27011
27012         fix a documentation typo
27013         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27014
27015 2010-10-11  Eric Blake  <eblake@redhat.com>
27016
27017         futimens: work around Solaris 11 bug
27018         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27019         * tests/test-futimens.h (test_futimens): Enhance, rather than
27020         weaken test.
27021         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27022
27023 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27024
27025         Indentation.
27026         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27027         higher-level operators more to the left.
27028
27029 2010-10-11  Jim Meyering  <meyering@redhat.com>
27030
27031         test-futimens: avoid unwarranted test failure on Solaris 5.11
27032         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27033         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27034         because it tries to dereference the NULL name argument.
27035
27036 2010-10-11  Bruno Haible  <bruno@clisp.org>
27037
27038         Indentation.
27039         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27040         indentation.
27041
27042 2010-10-11  Jim Meyering  <meyering@redhat.com>
27043
27044         spawn.in.h: make indentation consistent with parentheses
27045         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27046         Make indentation consistent with parentheses.
27047
27048 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27049
27050         Fix mismatched parens in previous commit
27051         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27052         parens.
27053
27054 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27055
27056         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27057
27058         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27059         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27060         * lib/malloca.c: Include "verify.h".
27061         (verify1): Remove, replacing with a verify call.
27062         * lib/relocwrapper.c (verify1): Likewise.
27063         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27064         Likewise.
27065         * modules/malloca (Depends-on): Add 'verify'.
27066         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27067         * modules/vasnprintf (Depends-on): Add 'verify'.
27068         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27069         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27070         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27071         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27072         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27073         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27074         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27075
27076         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27077
27078         Formerly the style was sometimes 2*X - 1, because the C standard
27079         was wrongly thought to disallow ?: in integral constant expressions.
27080         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27081         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27082         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27083         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27084         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27085         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27086         verify that time_t cannot be floating.
27087
27088 2010-10-08  Eric Blake  <eblake@redhat.com>
27089
27090         time: enforce recent POSIX ruling that time_t is integral
27091         * lib/time.in.h (__time_t_must_be_integral): Detect any
27092         problematic systems, allowing the rest of gnulib to assume POSIX.
27093
27094 2010-10-08  Jim Meyering  <meyering@redhat.com>
27095
27096         fdopendir: fix a bug on systems lacking openat and /proc support
27097         OpenBSD 4.7 is one such system.  The most noticeable effect was
27098         failure of any application making nontrivial use of fts: rm, du,
27099         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27100           ./rm: traversal failed: `a': Bad file descriptor
27101         Debugging that, you see that even though FD 6 was closed just
27102         prior to the opendir call in fd_clone_opendir, its resulting
27103         dir->dd_fd was 8, rather than the expected value of 6:
27104
27105         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27106         93                close (fd);
27107         (gdb) n
27108         94                dir = fd_clone_opendir (dupfd);
27109         (gdb) n
27110         95                saved_errno = errno;
27111         (gdb) p dir->dd_fd
27112         $11 = 8
27113
27114         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27115         The problem is that on OpenBSD, fd_clone_opendir has to resort
27116         to using the old-style save/restore CWD mechanism, due to its
27117         lack of openat/proc support, and *that* would steal the FD (6)
27118         that opendir was supposed to use.
27119
27120         The fix is to squirrel away the desired FD so that save_cwd uses a
27121         different one, and then free the dest FD right before calling opendir.
27122         That guarantees opendir will use the required file descriptor.
27123
27124         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27125
27126 2010-10-08  Bruno Haible  <bruno@clisp.org>
27127
27128         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27129         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27130
27131 2010-10-08  Bruno Haible  <bruno@clisp.org>
27132
27133         nanosleep: Make replacement POSIX compliant.
27134         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27135         is out of range.
27136         Reported by Jim Meyering.
27137
27138 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27139
27140         bootstrap: add hook for altering gnulib.mk, for Bison
27141         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27142         the Bison bootstrapping process can rewrite file names and variables
27143         in this file before later parts of 'bootstrap' use the file.
27144         Bison wants to include lib/gnulib.mk from the top-level makefile,
27145         so it needs the file names in this file to be relative to the top
27146         level, not relative to lib; plus it needs variable names to be
27147         rewritten.
27148         (slurp): Use the new function.
27149
27150         bootstrap: reformat for readability
27151         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27152
27153 2010-10-08  Eric Blake  <eblake@redhat.com>
27154
27155         docs: update cygwin progress
27156         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27157         1.7.7.
27158         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27159         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27160         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27161         * doc/posix-functions/carg.texi (carg): Likewise.
27162         * doc/posix-functions/cargf.texi (cargf): Likewise.
27163         * doc/posix-functions/casin.texi (casin): Likewise.
27164         * doc/posix-functions/casinf.texi (casinf): Likewise.
27165         * doc/posix-functions/casinh.texi (casinh): Likewise.
27166         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27167         * doc/posix-functions/catan.texi (catan): Likewise.
27168         * doc/posix-functions/catanf.texi (catanf): Likewise.
27169         * doc/posix-functions/catanh.texi (catanh): Likewise.
27170         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27171         * doc/posix-functions/ccos.texi (ccos): Likewise.
27172         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27173         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27174         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27175         * doc/posix-functions/cexp.texi (cexp): Likewise.
27176         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27177         * doc/posix-functions/cimag.texi (cimag): Likewise.
27178         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27179         * doc/posix-functions/clog.texi (clog): Likewise.
27180         * doc/posix-functions/clogf.texi (clogf): Likewise.
27181         * doc/posix-functions/conj.texi (conj): Likewise.
27182         * doc/posix-functions/conjf.texi (conjf): Likewise.
27183         * doc/posix-functions/cpow.texi (cpow): Likewise.
27184         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27185         * doc/posix-functions/cproj.texi (cproj): Likewise.
27186         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27187         * doc/posix-functions/creal.texi (creal): Likewise.
27188         * doc/posix-functions/crealf.texi (crealf): Likewise.
27189         * doc/posix-functions/csin.texi (csin): Likewise.
27190         * doc/posix-functions/csinf.texi (csinf): Likewise.
27191         * doc/posix-functions/csinh.texi (csinh): Likewise.
27192         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27193         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27194         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27195         * doc/posix-functions/ctan.texi (ctan): Likewise.
27196         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27197         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27198         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27199         * doc/posix-headers/complex.texi (complex.h): Likewise.
27200
27201 2010-10-07  Jim Meyering  <meyering@redhat.com>
27202
27203         parse-datetime: avoid compilation failure on OpenBSD 4.7
27204         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27205         This works around a compilation failure on OpenBSD 4.7:
27206         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27207
27208 2010-10-07  Eric Blake  <eblake@redhat.com>
27209
27210         docs: update cygwin progress
27211         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27212         1.7.6.
27213         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27214         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27215         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27216         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27217         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27218         Likewise.
27219         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27220         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27221         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27222         Likewise.
27223         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27224         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27225         Likewise.
27226         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27227         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27228         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27229         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27230         Likewise.
27231         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27232         Likewise.
27233         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27234
27235         docs: update parse-datetime history
27236         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27237         documentation of this function's history and alternatives.
27238
27239         cygwin: use more robust version check
27240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27241         exclude an eventual cygwin 1.9.1.
27242         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27244         (gl_FUNC_STRCASESTR): Likewise.
27245         Reported by Bruno Haible.
27246
27247 2010-10-06  Bruno Haible  <bruno@clisp.org>
27248
27249         string, sys_select: Avoid #including large headers unless necessary.
27250         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27251         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27252         OSF/1, BeOS, Haiku.
27253         Reported by Jim Meyering.
27254
27255 2010-10-05  Eric Blake  <eblake@redhat.com>
27256
27257         memmem, strstr, strcasestr: fix bug with long periodic needle
27258         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27259         periodic needle having false positive.
27260         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27261         and cygwin 1.7.7.
27262         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27264         (gl_FUNC_STRCASESTR): Likewise.
27265         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27266         * tests/test-memmem.c (main): Expose the bug.
27267         * tests/test-strcasestr.c (main): Likewise.
27268         * tests/test-strstr.c (main): Likewise.
27269         * tests/test-c-strcasestr.c (main): Likewise.
27270         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27271         * doc/posix-functions/strstr.texi (strstr): Likewise.
27272         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27273         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27274
27275 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27276
27277         parse-datetime: do some more renaming
27278         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27279         parse_datetime, not get_date.  Mention the renaming.
27280         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27281         in comments.
27282         * m4/bison.m4: Likewise.
27283
27284 2010-10-05  Eric Blake  <eblake@redhat.com>
27285
27286         parse-datetime: better name than get_date
27287         * NEWS: Reword the deprecation notice.
27288         * modules/get_date: Rename to modules/parse-datetime.
27289         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27290         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27291         * lib/get_date.y: Rename to lib/parse-datetime.y.
27292         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27293         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27294         * doc/getdate.texi: Provide fallback wrapper.
27295         * lib/getdate.h: Move guts, and wrap...
27296         * lib/parse-datetime.h: ...new file.
27297         * lib/parse-datetime.y (get_date): Rename...
27298         (parse_datetime): ...to this.
27299         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27300         (gl_PARSE_DATETIME): ...to this.
27301         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27302         documentation.
27303         * modules/getdate (Files): Provide fallback docs and header.
27304         (Notice, Depends-on): Update references.
27305         * tests/test-parse-datetime.c: Likewise.
27306         * DEPENDENCIES: Likewise.
27307         * MODULES.html.sh (Date and time <time.h>): Likewise.
27308         * doc/parse-datetime.texi (Date input formats)
27309         (Authors of parse_datetime): Likewise.
27310         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27311         (Include): Likewise.
27312         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27313         * gnulib-tool: Likewise.
27314         * m4/bison.m4 (gl_BISON): Likewise.
27315         Suggested by Bruno Haible.
27316
27317 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27318
27319         more ports to Solaris tr, which needs [] around ranges
27320         * gnulib-tool: Solaris tr needs [] around ranges.
27321         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27322         * tests/test-pipe-filter-gi1.c (main): Likewise.
27323         * tests/test-pipe-filter-ii1.c (main): Likewise.
27324
27325 2010-10-05  Eric Blake  <eblake@redhat.com>
27326
27327         bootstrap: fix Solaris regression
27328         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27329         around ranges.
27330         Reported by Pádraig Brady.
27331
27332         bootstrap: work with pkg-config
27333         * build-aux/bootstrap (check_versions): Also transliterate - in
27334         prerequisite name.
27335         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27336         prerequisites that were already found, to avoid confusion.
27337         Reported by Justin Clift.
27338
27339         faccessat: remove unused wrappers
27340         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27341         presence of these wrappers dragged in -lgen on Solaris.
27342         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27343
27344 2010-10-05  Jim Meyering  <meyering@redhat.com>
27345
27346         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27347         * Makefile (sc_pragma_columns): New syntax-check rule.
27348
27349 2010-10-04  Bruno Haible  <bruno@clisp.org>
27350
27351         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27352         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27353         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27354         Reported by Bruce Korb and Eric Blake.
27355
27356 2010-10-04  Bruno Haible  <bruno@clisp.org>
27357
27358         threadlib: Make option --with-libpth-prefix work.
27359         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27360         use $LIBPTH, not just -lpth.
27361
27362 2010-10-04  Bruno Haible  <bruno@clisp.org>
27363
27364         Avoid line length limitation from HP NonStop system header files.
27365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27366         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27367         * lib/ctype.in.h: Likewise.
27368         * lib/dirent.in.h: Likewise.
27369         * lib/errno.in.h: Likewise.
27370         * lib/fcntl.in.h: Likewise.
27371         * lib/float.in.h: Likewise.
27372         * lib/getopt.in.h: Likewise.
27373         * lib/iconv.in.h: Likewise.
27374         * lib/inttypes.in.h: Likewise.
27375         * lib/langinfo.in.h: Likewise.
27376         * lib/locale.in.h: Likewise.
27377         * lib/math.in.h: Likewise.
27378         * lib/netdb.in.h: Likewise.
27379         * lib/netinet_in.in.h: Likewise.
27380         * lib/poll.in.h: Likewise.
27381         * lib/pthread.in.h: Likewise.
27382         * lib/pty.in.h: Likewise.
27383         * lib/sched.in.h: Likewise.
27384         * lib/se-selinux.in.h: Likewise.
27385         * lib/search.in.h: Likewise.
27386         * lib/signal.in.h: Likewise.
27387         * lib/spawn.in.h: Likewise.
27388         * lib/stdarg.in.h: Likewise.
27389         * lib/stddef.in.h: Likewise.
27390         * lib/stdint.in.h: Likewise.
27391         * lib/stdio.in.h: Likewise.
27392         * lib/stdlib.in.h: Likewise.
27393         * lib/string.in.h: Likewise.
27394         * lib/strings.in.h: Likewise.
27395         * lib/sys_file.in.h: Likewise.
27396         * lib/sys_ioctl.in.h: Likewise.
27397         * lib/sys_select.in.h: Likewise.
27398         * lib/sys_socket.in.h: Likewise.
27399         * lib/sys_stat.in.h: Likewise.
27400         * lib/sys_time.in.h: Likewise.
27401         * lib/sys_times.in.h: Likewise.
27402         * lib/sys_utsname.in.h: Likewise.
27403         * lib/sys_wait.in.h: Likewise.
27404         * lib/sysexits.in.h: Likewise.
27405         * lib/termios.in.h: Likewise.
27406         * lib/time.in.h: Likewise.
27407         * lib/unistd.in.h: Likewise.
27408         * lib/wchar.in.h: Likewise.
27409         * lib/wctype.in.h: Likewise.
27410         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27411         * modules/ctype (Makefile.am): Likewise.
27412         * modules/dirent (Makefile.am): Likewise.
27413         * modules/errno (Makefile.am): Likewise.
27414         * modules/fcntl-h (Makefile.am): Likewise.
27415         * modules/float (Makefile.am): Likewise.
27416         * modules/getopt-posix (Makefile.am): Likewise.
27417         * modules/iconv-h (Makefile.am): Likewise.
27418         * modules/inttypes (Makefile.am): Likewise.
27419         * modules/langinfo (Makefile.am): Likewise.
27420         * modules/locale (Makefile.am): Likewise.
27421         * modules/math (Makefile.am): Likewise.
27422         * modules/netdb (Makefile.am): Likewise.
27423         * modules/netinet_in (Makefile.am): Likewise.
27424         * modules/poll-h (Makefile.am): Likewise.
27425         * modules/pthread (Makefile.am): Likewise.
27426         * modules/pty (Makefile.am): Likewise.
27427         * modules/sched (Makefile.am): Likewise.
27428         * modules/search (Makefile.am): Likewise.
27429         * modules/selinux-h (Makefile.am): Likewise.
27430         * modules/signal (Makefile.am): Likewise.
27431         * modules/spawn (Makefile.am): Likewise.
27432         * modules/stdarg (Makefile.am): Likewise.
27433         * modules/stddef (Makefile.am): Likewise.
27434         * modules/stdint (Makefile.am): Likewise.
27435         * modules/stdio (Makefile.am): Likewise.
27436         * modules/stdlib (Makefile.am): Likewise.
27437         * modules/string (Makefile.am): Likewise.
27438         * modules/strings (Makefile.am): Likewise.
27439         * modules/sys_file (Makefile.am): Likewise.
27440         * modules/sys_ioctl (Makefile.am): Likewise.
27441         * modules/sys_select (Makefile.am): Likewise.
27442         * modules/sys_socket (Makefile.am): Likewise.
27443         * modules/sys_stat (Makefile.am): Likewise.
27444         * modules/sys_time (Makefile.am): Likewise.
27445         * modules/sys_times (Makefile.am): Likewise.
27446         * modules/sys_utsname (Makefile.am): Likewise.
27447         * modules/sys_wait (Makefile.am): Likewise.
27448         * modules/sysexits (Makefile.am): Likewise.
27449         * modules/termios (Makefile.am): Likewise.
27450         * modules/time (Makefile.am): Likewise.
27451         * modules/unistd (Makefile.am): Likewise.
27452         * modules/wchar (Makefile.am): Likewise.
27453         * modules/wctype (Makefile.am): Likewise.
27454
27455 2010-10-04  Bruno Haible  <bruno@clisp.org>
27456
27457         read-file tests: Avoid a test failure on NonStop Kernel.
27458         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27459         a regular file.
27460         Reported by Joachim Schmitz <schmitz@hp.com>.
27461
27462 2010-10-03  Bruno Haible  <bruno@clisp.org>
27463
27464         gnulib-tool: Fixes for --create-testdir with --libtool.
27465         * gnulib-tool (func_get_automake_snippet): Don't augment
27466         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27467         an executable.
27468         (func_create_testdir): Handle module 'alloca' like func_import.
27469         Reported by Bruce Korb <bruce.korb@gmail.com>.
27470
27471 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27472
27473         Avoid some lines longer than 80 characters.
27474         * lib/stdint.in.h: Break long comment lines.
27475         * lib/math.in.h: Likewise.
27476         (_GL_NUM_UINT_WORDS): New macro, for readability.
27477         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27478         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27479         * lib/stdlib.in.h: Likewise.
27480         * lib/spawn.in.h: Likewise.
27481         * lib/sys_socket.in.h: Update an URL.
27482         * lib/sys_stat.in.h: Break long line.
27483
27484 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27485
27486         Improve pmccabe2html.
27487         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27488         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27489         when the sources change. Remove the line in the HTML about "Used
27490         ranges" (which implied that there might be other unused ranges),
27491         rename "Resume" to "Summary" (easier to understand for more users).
27492         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27493         styles, and some unnecessary blank lines.
27494
27495 2010-10-03  Bruno Haible  <bruno@clisp.org>
27496             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27497
27498         acl: Add support for ACLs on NonStop Kernel.
27499         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27500         Check whether the function aclsort() exists.
27501         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27502         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27503         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27504         (acl_nontrivial [HAVE_ACLSORT]: New function.
27505         (file_has_acl): Implement for NonStop Kernel.
27506         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27507         (qset_acl): Implement for NonStop Kernel.
27508         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27509         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27510         (main): Implement for NonStop Kernel.
27511         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27512         Kernel. Handle this flavor.
27513         * tests/test-set-mode-acl.sh: Likewise.
27514         * tests/test-copy-acl.sh: Likewise.
27515         * tests/test-copy-file.sh: Likewise.
27516
27517 2010-10-03  Bruno Haible  <bruno@clisp.org>
27518
27519         Info about ACLs on NonStop Kernel.
27520         * doc/acl-resources.txt: Add info about NonStop Kernel.
27521         References by Joachim Schmitz <schmitz@hp.com>.
27522
27523 2010-10-02  Bruno Haible  <bruno@clisp.org>
27524
27525         Define missing EDQUOT on NonStop Kernel.
27526         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27527         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27528         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27529         missing.
27530         * doc/posix-headers/errno.texi: Mention the NSK bug.
27531         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27532         Reported by Joachim Schmitz <schmitz@hp.com>.
27533
27534 2010-10-02  Bruno Haible  <bruno@clisp.org>
27535
27536         Update doc for POSIX:2008.
27537         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27538         Update URL of POSIX specification.
27539
27540 2010-10-02  Bruno Haible  <bruno@clisp.org>
27541
27542         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27543         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27544         from gnulib, not from Automake.
27545
27546 2010-10-02  Bruno Haible  <bruno@clisp.org>
27547
27548         New module 'system-posix'.
27549         * modules/system-posix: New file.
27550         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27551         module is present.
27552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27553         GNULIB_SYSTEM_POSIX.
27554         * modules/stdlib (Depends-on): Remove sys_wait.
27555         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27556         * doc/posix-functions/system.texi: Mention the new module.
27557         * doc/posix-headers/stdlib.texi: Likewise.
27558         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27559         define test_sys_wait_macros to a no-op.
27560         Reported by Sam Steingold <sds@gnu.org>.
27561
27562 2010-09-30  Bruno Haible  <bruno@clisp.org>
27563
27564         More renaming from 'getdate' to 'get_date'.
27565         * doc/get_date.texi: Renamed from doc/getdate.texi.
27566         * modules/get_date (Files): Update.
27567         * MODULES.html.sh (Date and time <time.h>): Update.
27568         * DEPENDENCIES: Update.
27569         * gnulib-tool: Update comment.
27570         * m4/bison.m4 (gl_BISON): Likewise.
27571         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27572
27573 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27574
27575         bootstrap: support ACLOCAL_FLAGS during aclocal
27576         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27577         can add additional -I dir for third-party .m4 files.
27578
27579 2010-09-30  Eric Blake  <eblake@redhat.com>
27580
27581         bootstrap: use glibtoolize on MacOS
27582         * build-aux/bootstrap (check_versions): Convert libtool into
27583         libtoolize.
27584         (tool search): Move libtool check earlier, and look for
27585         glibtoolize for MacOS.
27586         (gnulib_tool_options): Auto-add --libtool when appropriate.
27587         Reported by Justin Clift.
27588
27589         poll: fix typo that broke test on MacOS
27590         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27591         Reported by Justin Clift.
27592
27593         getdate: rename to get_date
27594         Note: getdate.h is not renamed, to minimize client impact.
27595         * modules/getdate: Mark obsolete.  Move old contents...
27596         * modules/get_date: ...to new module name.
27597         * modules/getdate-tests: Move...
27598         * modules/get_date-tests: ...here.
27599         * m4/getdate.m4: Move...
27600         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27601         * lib/getdate.y: Move...
27602         * lib/get_date.y: ...here.
27603         * tests/test-getdate.c: Move...
27604         * tests/test-get_date.c: ...here.
27605         * doc/posix-functions/getdate.texi (getdate): Update name.
27606         * NEWS: Mention the change.
27607
27608 2010-09-29  Bruno Haible  <bruno@clisp.org>
27609
27610         Separate the module 'waitpid' from the module 'sys_wait'.
27611         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27612         present.
27613         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27614         gl_MODULE_INDICATOR_FOR_TESTS.
27615         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27616         * modules/sys_wait (Depends-on): Remove waitpid.
27617         (Makefile.am): Substitute GNULIB_WAITPID.
27618         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27619         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27620         signature only if the 'waitpid' module is present.
27621         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27622         * NEWS: Mention the change.
27623         * modules/grantpt (Depends-on): Add waitpid.
27624         * modules/wait-process (Depends-on): Likewise.
27625
27626 2010-09-29  Bruno Haible  <bruno@clisp.org>
27627
27628         More tests for module 'sys_wait'.
27629         * modules/sys_wait-c++-tests: New file.
27630         * tests/test-sys_wait-c++.cc: New file.
27631         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27632         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27633
27634 2010-09-29  Bruno Haible  <bruno@clisp.org>
27635
27636         New module 'waitpid'.
27637         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27638         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27639         Don't include <process.h>.
27640         (waitpid): Declare only, using modern idiom.
27641         * m4/waitpid.m4: New file.
27642         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27643         * modules/waitpid: New file.
27644         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27645         (Makefile.am): Update.
27646         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27647
27648 2010-09-28  Bruno Haible  <bruno@clisp.org>
27649
27650         poll: Assume ANSI C.
27651         * lib/poll.c (poll): Use an ANSI C declaration.
27652
27653 2010-09-28  Bruno Haible  <bruno@clisp.org>
27654
27655         poll-h: Create poll.h on all platforms.
27656         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27657         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27658         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27659         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27660         (gl_REPLACE_POLL_H): Don't set POLL_H.
27661         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27662         * modules/poll-h (Depends-on): Add include_next.
27663         (Makefile.am): Create poll.h unconditionally. Substitute also
27664         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27665
27666 2010-09-28  Bruno Haible  <bruno@clisp.org>
27667
27668         Tests for module 'poll-h'.
27669         * modules/poll-h-c++-tests: New file.
27670         * tests/test-poll-h-c++.cc: New file.
27671
27672         Tests for module 'poll-h'.
27673         * modules/poll-h-tests: New file.
27674         * tests/test-poll-h.c: New file.
27675
27676 2010-09-28  Bruno Haible  <bruno@clisp.org>
27677
27678         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27679         * modules/poll-h (Depends-on): Add 'extensions'.
27680
27681 2010-09-28  Bruno Haible  <bruno@clisp.org>
27682
27683         New module 'poll-h'.
27684         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27685         (poll): Use modern idiom.
27686         * modules/poll-h: New file.
27687         * modules/poll (Files): Remove lib/poll.in.h.
27688         (Depends-on): Add poll-h.
27689         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27690         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27691         * m4/poll_h.m4: New file.
27692         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27693         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27694         and invoke gl_REPLACE_POLL_H.
27695         * lib/poll.c: Use common idiom.
27696         * tests/test-poll.c: Likewise.
27697         * doc/posix-headers/poll.texi: Mention the poll-h module.
27698         Suggested by Eric Blake.
27699
27700 2010-09-26  Bruno Haible  <bruno@clisp.org>
27701
27702         sys_wait: Implement WSTOPSIG.
27703         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27704         Reported by Simon Josefsson.
27705
27706 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27707
27708         stdlib, sys_wait: Avoid compilation error on mingw.
27709         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27710
27711 2010-09-26  Bruno Haible  <bruno@clisp.org>
27712
27713         stdlib tests: Avoid code duplication.
27714         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27715         * modules/sys_wait-tests (Files): Likewise.
27716         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27717         * tests/test-stdlib.c: Include test-sys_wait.h.
27718         (main): Invoke test_sys_wait_macros.
27719         * tests/test-sys_wait.c: Include test-sys_wait.h.
27720         (main): Invoke test_sys_wait_macros.
27721
27722 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27723
27724         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27725         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27726         sure Windows sockets are working before calling getaddrinfo.
27727         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27728         * doc/gnulib.texi (Windows sockets): Fix typo.
27729
27730 2010-09-25  Bruno Haible  <bruno@clisp.org>
27731
27732         Tests for module 'regex-quote'.
27733         * modules/regex-quote-tests: New file.
27734         * tests/test-regex-quote.c: New file.
27735
27736         New module 'regex-quote'.
27737         * lib/regex-quote.h: New file.
27738         * lib/regex-quote.c: New file.
27739         * modules/regex-quote: New file.
27740         Suggested by Reuben Thomas <rrt@sc3d.org>.
27741
27742 2010-09-24  Bruno Haible  <bruno@clisp.org>
27743
27744         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27745         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27746
27747 2010-09-23  Bruno Haible  <bruno@clisp.org>
27748
27749         setenv: Relax license.
27750         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27751         Blake.
27752         Requested by Eric Blake.
27753
27754 2010-09-22  Bruno Haible  <bruno@clisp.org>
27755
27756         termios: Relax license.
27757         * modules/termios (License): Change to LGPLv2+.
27758         Requested by Eric Blake.
27759
27760 2010-09-22  Bruno Haible  <bruno@clisp.org>
27761
27762         threadlib: Allow the package to change the default to 'no'.
27763         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27764         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27765         Reported by Paul Eggert.
27766
27767 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27768             Bruno Haible  <bruno@clisp.org>
27769
27770         Fix endless loop in mbmemcasecoll.
27771         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27772         byte.
27773         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27774
27775 2010-09-22  Bruno Haible  <bruno@clisp.org>
27776
27777         Tests for module 'memcoll'.
27778         * modules/memcoll-tests: New file.
27779         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27780
27781         memcoll, xmemcoll: Clarify size vs. length.
27782         * modules/memcoll.c (memcoll0): Clarify specification.
27783         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27784         passed to collate_error.
27785
27786 2010-09-22  Bruno Haible  <bruno@clisp.org>
27787
27788         Tests for module 'memcasecmp'.
27789         * modules/memcasecmp-tests: New file.
27790         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27791
27792 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27793
27794         * lib/pthread.in.h: Add split double-inclusion guard, and include
27795         system <pthread.h> if there is one.  Use @@-style as in other
27796         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27797         pthread.h doesn't.
27798         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27799         (pthread_mutexattr_settype, pthread_mutex_trylock):
27800         New static inline functions, if there's no system <pthread.h>.
27801         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27802         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27803         Approximate with mutexes if the system lacks spinlocks, as in
27804         MacOS.
27805         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27806         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27807         @@-style.  Check for spinlocks separately.
27808         (gl_PTHREAD_DEFAULTS): New macro.
27809         * modules/pthread: Redo to use a more typical style for in.h files.
27810
27811 2010-09-21  Eric Blake  <eblake@redhat.com>
27812
27813         net_if: enhance tests
27814         * tests/test-net_if.c (main): Move signature checks earlier.
27815         Print failures to stderr.
27816         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27817         Document the bug that we do not yet fix.
27818
27819 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27820
27821         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27822         about gnulib, not GSS.
27823
27824 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27825
27826         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27827         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27828         for Emacs.
27829         * build-aux/pmccabe2html: Make Makefile.am example code more
27830         cut-and-paste friendly.
27831
27832 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27833
27834         * tests/test-net_if.c: New file.
27835         * modules/net_if-tests: New file.
27836
27837 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27838
27839         pthread: add pthread_spin_destroy
27840         * lib/pthread.in.h (pthread_spin_destroy): New function.
27841
27842 2010-09-19  Bruno Haible  <bruno@clisp.org>
27843
27844         gnulib-tool: Fix --help output.
27845         * gnulib-tool (func_usage): Fix help message.
27846         Reported by Reuben Thomas <rrt@sc3d.org>.
27847
27848 2010-09-18  Jim Meyering  <meyering@redhat.com>
27849
27850         maint.mk: avoid unexpanded \n in two diagnostics
27851         * top/maint.mk (sc_prohibit_always_true_header_tests):
27852         Don't use a literal \n in a halt=... assignment.  It would not be
27853         expanded, and the two \n bytes would appear in the diagnostic output
27854         rather than the desired newline.  Use halt=$$(printf ... instead.
27855         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27856
27857 2010-09-18  Bruno Haible  <bruno@clisp.org>
27858
27859         netinet_in: Doc tweak.
27860         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27861         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27862
27863 2010-09-18  Jim Meyering  <meyering@redhat.com>
27864
27865         init.sh: correct an outdated comment
27866         * tests/init.sh (create_exe_shims_):  s/function/alias/
27867
27868         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27869         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27870         a file named "*.exe" is removed between the glob expansion and the
27871         processing of that oddly named file.
27872
27873 2010-09-17  Eric Blake  <eblake@redhat.com>
27874
27875         mirbsd: add some more support
27876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27877         in BSD family.
27878         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27879         devices as OpenBSD.
27880         * m4/host-os.m4 (mirbsd): Add MirBSD.
27881
27882         tests: fix unportable assumption on sys/wait.h
27883         * tests/test-sys_wait.c (main): Relax test.
27884         * tests/test-stdlib.c (main): Likewise.
27885
27886         init.sh: accommodate directory with no .exes
27887         * tests/init.sh: Accomodate directory containing only scripts.
27888
27889         tests: avoid compiler warning
27890         * tests/test-stdlib.c (main): Use the variable.
27891
27892         fdutimens, fdutimensat: update signature, again
27893         * lib/utimens.h (gl_futimens): Delete, and move signature...
27894         (fdutimens): ...here.
27895         (fdutimensat): Rearrange signature.
27896         (lutimensat): Rename variable for clarity.
27897         * lib/fdutimensat.c (fdutimensat): Update signature.
27898         * lib/utimens.c (fdutimens): Likewise.
27899         (gl_futimens): Delete.
27900         (utimens, lutimens): Update callers.
27901         * lib/futimens.c (futimens): Likewise.
27902         * tests/test-fdutimensat.c: Likewise.
27903         * tests/test-utimens.c: Likewise.
27904         * tests/test-futimens.h: Update comment.
27905         * NEWS: Mention this.
27906         Suggested by Paul Eggert.
27907
27908 2010-09-17  Bruno Haible  <bruno@clisp.org>
27909
27910         Take over the maintenance of some older macros from Autoconf.
27911         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27912         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27913         GNU Autoconf.
27914         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27915         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27916
27917 2010-09-17  Eric Blake  <eblake@redhat.com>
27918
27919         fdutimensat: drop atflag validation
27920         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27921         with valid fd, to close a race scenario where futimens is
27922         unsupported and FILE was replaced by a symlink.
27923         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27924         accordingly.
27925         Suggested by Paul Eggert.
27926
27927 2010-09-16  Bruno Haible  <bruno@clisp.org>
27928
27929         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27930         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27931
27932 2010-09-16  Bruno Haible  <bruno@clisp.org>
27933
27934         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27935         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27936         login_tty exists.
27937         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27938
27939 2010-09-16  Bruno Haible  <bruno@clisp.org>
27940
27941         login_tty: Make the replacement code work on BSD systems.
27942         * lib/login_tty.c: Include <sys/ioctl.h>.
27943         (login_tty): Use ioctl TIOCSCTTY when available.
27944         * modules/login_tty (Depends-on): Add sys_ioctl.
27945         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27946
27947 2010-09-16  Bruno Haible  <bruno@clisp.org>
27948
27949         login_tty: Stricter unit test.
27950         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27951         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27952         and tcgetsid() after login_tty.
27953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27954
27955 2010-09-16  Bruno Haible  <bruno@clisp.org>
27956
27957         New module 'tcgetsid'.
27958         * lib/tcgetsid.c: New file.
27959         * m4/tcgetsid.m4: New file.
27960         * modules/tcgetsid: New file.
27961         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27962         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27963         GNULIB_TCGETSID, HAVE_TCGETSID.
27964         * lib/termios.in.h: Include <sys/types.h>.
27965         (tcgetsid): New declaration.
27966         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27967         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27968         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27969         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27970
27971 2010-09-16  Bruno Haible  <bruno@clisp.org>
27972
27973         Tests for module 'termios'.
27974         * modules/termios-c++-tests: New file.
27975         * modules/termios-tests: New file.
27976         * tests/test-termios-c++.cc: New file.
27977         * tests/test-termios.c: New file.
27978
27979         New module 'termios'.
27980         * modules/termios: New file.
27981         * lib/termios.in.h: New file.
27982         * m4/termios_h.m4: New file.
27983         * doc/posix-headers/termios.texi: Mention the new module.
27984
27985 2010-09-16  Eric Blake  <eblake@redhat.com>
27986
27987         fdutimensat: add an atflag parameter
27988         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27989         * lib/utimens.h (fdutimensat): Update prototype.
27990         * tests/test-fdutimensat.c: Adjust test to match.
27991         * NEWS: Document the change.
27992         Suggested by Paul Eggert.
27993
27994 2010-09-16  Bruno Haible  <bruno@clisp.org>
27995
27996         Fix typos in comments.
27997         * lib/striconveh.h: Fix typo in comment.
27998         * lib/login_tty.c (login_tty): Likewise.
27999
28000 2010-09-15  Bruno Haible  <bruno@clisp.org>
28001
28002         stdlib: clarify MirBSD WEXITSTATUS bug
28003         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28004         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28005
28006 2010-09-15  Eric Blake  <eblake@redhat.com>
28007
28008         stdlib: work around MirBSD WEXITSTATUS bug
28009         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28010         * modules/stdlib (Depends-on): Add sys_wait.
28011         * tests/test-sys_wait.c (main): Enhance test.
28012         * tests/test-stdlib.c (main): Likewise.
28013         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28014
28015         docs: mention MacOS issue with WEXITSTATUS(constant)
28016         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28017         issue.
28018         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28019
28020         strnlen: add tests
28021         * modules/strnlen-tests: New file.
28022         * tests/test-strnlen.c: Likewise.
28023
28024 2010-09-14  Bruno Haible  <bruno@clisp.org>
28025
28026         unistr/base: Avoid link errors when module 'libunistring' is also used.
28027         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28028         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28029         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28030         Declare also when HAVE_LIBUNISTRING is set.
28031         Reported by Pádraig Brady <P@draigbrady.com>.
28032
28033 2010-09-14  Eric Blake  <eblake@redhat.com>
28034
28035         test-rawmemchr: make more robust
28036         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28037         (Depends-on, configure.ac): Add needed prerequisites to use it.
28038         * modules/memchr-tests (Files, Depends-on, configure.ac):
28039         Likewise, to avoid implicit reliance on memchr module prereqs.
28040         * tests/test-memchr.c (main): Ensure proper masking.
28041         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28042         reads.
28043
28044         memchr: detect glibc Alpha bug
28045         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28046         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28047         Alpha.
28048         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28049         * tests/test-memchr.c (main): Enhance test.
28050         Reported by Nelson H. F. Beebe.
28051
28052 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28053
28054         fts, getcwd, glob: audit for dirfd returning -1
28055         * lib/fts.c (opendir): Remove #define; no longer used.
28056         (opendirat): New arg PDIR_FD.  All callers changed.
28057         (fts_build, _opendir2): Use new opendirat to avoid the need for
28058         dirfd, or for checking whether dirfd returns a negative value.
28059         Don't use opendir; always use openat followed by fdopendir.
28060         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28061         it.
28062         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28063         returns -1 here.
28064         * modules/fts (Depends-on): Remove dirfd.
28065         * modules/getcwd (Depends-on): Likewise.
28066
28067 2010-09-13  Eric Blake  <eblake@redhat.com>
28068
28069         float: fix broken MirBSD header
28070         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28071         * doc/posix-headers/float.texi (float.h): Document it.
28072
28073 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28074
28075         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28076         * lib/fts.c (opendirat): New arg extra_flags.
28077         (__opendir2): Use it to avoid following symlinks when opening
28078         a directory, if symlinks are not supposed to be followed.  See
28079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28080
28081         fdopendir: preserve argument fd before returning
28082         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28083         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28084         (fdopendir): Use them, arranging for FD to be open to the same
28085         directory that it was when it started.  (It might be temporarily
28086         closed while fdopendir is running, so this not thread- or
28087         signal-safe.)  Be careful to do the right thing even when file
28088         descriptors are scarce and dup fails with errno == EMFILE.  See
28089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28090
28091 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28092
28093         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28094         * NEWS: Document change.
28095         * m4/regex.m4: Disable test for regoff_t size.
28096
28097 2010-09-13  Jim Meyering  <meyering@redhat.com>
28098
28099         fts: don't operate on an invalid file descriptor after failed dup
28100         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28101         negative file descriptor.
28102
28103 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28104
28105         savedir: add streamsavedir, deprecate fdsavedir
28106         * NEWS: Mention deprecation of fdsavedir.
28107         * lib/savedir.c (streamsavedir): New extern function, whose name
28108         ends in "savedir" to be consistent with the others.  This differs
28109         from savedirstream in that it doesn't close its argument.  The
28110         next version of GNU tar will use this instead of fdsavedir, to
28111         avoid some race conditions and conserve file descriptors.
28112         (savedirstream): Reimplement as a wrapper around streamsavedir.
28113         (fdsavedir): Add a comment deprecating this function.  As far as
28114         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28115         * lib/savedir.h (streamsavedir): New decl.
28116         (fdsavedir): Add a comment deprecating this.
28117
28118 2010-09-10  Bruno Haible  <bruno@clisp.org>
28119
28120         langinfo: Fix last commit.
28121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28122         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28124
28125 2010-09-10  Bruno Haible  <bruno@clisp.org>
28126
28127         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28128         * lib/progreloc.c (O_EXEC): Define fallback.
28129
28130 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28131
28132         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28133         * NEWS: Document recent changes to fcntl-h.
28134         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28135         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28136         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28137         Similarly for O_SEARCH; this last was already true, but not documented.
28138         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28139         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28140         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28141         Likewise.
28142         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28143         is zero, not whether it is defined.
28144         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28145         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28146         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28147
28148 2010-09-10  Bruno Haible  <bruno@clisp.org>
28149
28150         langinfo, nl_langinfo: Fix for IRIX 5.3.
28151         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28152         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28153         HAVE_LANGINFO_YESEXPR.
28154         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28155         HAVE_LANGINFO_YESEXPR.
28156         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28157         HAVE_LANGINFO_T_FMT_AMPM is 0.
28158         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28159         HAVE_LANGINFO_YESEXPR is 0.
28160         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28161         NOEXPR.
28162         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28163         * doc/posix-functions/nl_langinfo.texi: Likewise.
28164         Reported by Eric Blake.
28165
28166 2010-09-10  Bruno Haible  <bruno@clisp.org>
28167
28168         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28169         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28170         on FreeBSD 8.0 and OpenBSD 4.6.
28171         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28172         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28173         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28174         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28175         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28176         ac_includes_default.
28177         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28178
28179 2010-09-09  Eric Blake  <eblake@redhat.com>
28180
28181         strsignal: work around NetBSD bug
28182         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28183         * lib/string.in.h (includes): Likewise.
28184         * doc/posix-functions/strsignal.texi (strsignal): Document the
28185         bug.
28186         Reported by Nelson H. F. Beebe.
28187
28188         gnulib-tool: work with NetBSD /bin/sh
28189         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28190         (func_get_description, func_get_comment, func_get_status)
28191         (func_get_notice, func_get_applicability, func_get_filelist)
28192         (func_get_dependencies, func_get_autoconf_early_snippet)
28193         (func_get_autoconf_snippet, func_get_automake_snippet)
28194         (func_get_include_directive, func_get_link_directive)
28195         (func_get_license, func_get_maintainer, func_import): Avoid
28196         shell syntax errors from parsing syntax extensions.
28197
28198 2010-09-09  Bruno Haible  <bruno@clisp.org>
28199
28200         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28201         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28202         a reliable way to determine whether the 'alias' command works.
28203
28204 2010-09-08  Jim Meyering  <meyering@redhat.com>
28205
28206         init.sh: penalize a set-x-impaired shell; don't disqualify it
28207         * tests/init.sh: Too many shells corrupt application stderr when
28208         you set -x, so we can't afford to disqualify them, since at least
28209         on Irix-6.5, that would disqualify all bourne shells.
28210         Instead, use a two-pass approach.
28211         On the first pass, try to find a shell that meets the stricter
28212         condition that set -x does not corrupt stderr.
28213         If no shell meets the stricter condition, retest each candidate
28214         shell, but without that extra condition.  Finally, when
28215         VERBOSE=yes is requested and set -x might cause trouble, simply
28216         issue a warning and refrain from enabling debug output.
28217
28218 2010-09-08  Eric Blake  <eblake@redhat.com>
28219
28220         unsetenv: fix OpenBSD bug
28221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28222         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28223         documentation.
28224         Reported by Jim Meyering.
28225
28226         strtod: work around IRIX 6.5 bug
28227         * lib/strtod.c (strtod): Reparse number on shorter string if
28228         exponent parse was invalid.
28229         * tests/test-strtod.c (main): Add check for "0x1p 2".
28230         Reported by Tom G. Christensen.
28231
28232         getopt: optimize previous patch
28233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28234         empty variable.  Speed up awk script.
28235         Reported by Paolo Bonzini.
28236
28237 2010-09-08  Jim Meyering  <meyering@redhat.com>
28238
28239         test.sh: disqualify shells for which set -x corrupts stderr
28240         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28241         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28242         appear in stderr output.  For example, this command:
28243             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28244         prints "P=1" on those two systems:
28245
28246 2010-09-08  Bruno Haible  <bruno@clisp.org>
28247
28248         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28249         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28250         commands, because some shells ignore redirections when there is an
28251         error in the command lookup.
28252         Reported by Eric Blake.
28253
28254 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28255
28256         * lib/regex.h: Fix a mention of `regex_compile' (should be
28257         `re_compile_pattern').
28258         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28259         (re_set_registers): Correct name of parameter in comment.
28260
28261         * doc/regex.texi: Add documentation for missing syntax flags.
28262         Remove commented-out documentation of defunct syntax option
28263         RE_NO_EMPTY_ALTS.
28264         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28265         Add documentation of re_set_registers.
28266         Document trick to re-use a pattern buffer by setting fastmap manually.
28267         Update documentation of struct re_pattern_buffer per public members.
28268         Uncomment documentation of equivalence class operators and
28269         collating symbol operators, since they are now implemented,
28270         Explain leftmost-longest matching in relation to alternatives.
28271         Tidy documentation of substring matching.
28272         Remove POSIX documentation, which is done better in
28273         glibc, and refer the reader there. Keep BSD API documentation, as
28274         that is not readily available elsewhere.
28275
28276 2010-09-07  Eric Blake  <eblake@redhat.com>
28277
28278         getopt: handle POSIXLY_CORRECT set but not exported
28279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28280         export state of POSIXLY_CORRECT, due to bash set -o posix.
28281         Reported by Dustin J. Mitchell.
28282
28283 2010-09-05  Bruno Haible  <bruno@clisp.org>
28284
28285         gnulib-tool: Highlight the changed options.
28286         * gnulib-tool (func_usage): Display the --import, --add-import,
28287         --remove-import explanations in bold font.
28288
28289 2010-09-06  Karl Berry  <karl@gnu.org>
28290
28291         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28292
28293 2010-09-05  Bruno Haible  <bruno@clisp.org>
28294
28295         uniwidth/width: Update comment.
28296         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28297         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28298
28299 2010-09-05  Bruno Haible  <bruno@clisp.org>
28300
28301         isinf, isnan: Relax license.
28302         * modules/isinf (License): Change from GPL to LGPL, with consent from
28303         Ben Pfaff.
28304         * modules/isnan (License): Likewise.
28305         Requested by Ludovic Courtès.
28306
28307 2010-09-04  Bruno Haible  <bruno@clisp.org>
28308
28309         gnulib-tool: Help migration from --import to --add-import or --update.
28310         * gnulib-tool: Emit a verbose error message when --import is used
28311         without any module name.
28312
28313 2010-09-04  Bruno Haible  <bruno@clisp.org>
28314
28315         Update doc about gnulib-tool.
28316         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28317         'gnulib-tool --update' in more detail.
28318         Reported by Eric Blake.
28319
28320 2010-09-04  Bruno Haible  <bruno@clisp.org>
28321
28322         gnulib-tool: Change --import. New options --add/remove-import.
28323         * gnulib-tool: New options --add-import, --remove-import.
28324         (func_usage): Document them.
28325         (have_associative): Define always.
28326         (func_import): In import mode, don't merge the specified settings with
28327         the cached settings. Implement remove-import mode.
28328         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28329         Explain when to use them versus --import.
28330         (Simple update): Use --add-import instead of --import.
28331         * NEWS: Mention the change.
28332
28333 2010-09-04  Bruno Haible  <bruno@clisp.org>
28334
28335         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28336         separate gnulib.mk.
28337
28338 2010-09-04  Bruno Haible  <bruno@clisp.org>
28339
28340         gnulib-tool: Don't talk about CVS any more.
28341         * gnulib-tool (func_usage, func_import): Write "version control"
28342         instead of CVS.
28343
28344 2010-09-04  Jim Meyering  <meyering@redhat.com>
28345
28346         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28347         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28348         false positives (whose names may be ill-chosen) when searching
28349         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28350         would cause a false-positive.
28351
28352         avoid coreutils "make distcheck" failure
28353         Coreutils tests with an absolute build directory name that contains
28354         a space.  Not quoting this directory name caused a failure.
28355         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28356         * tests/test-vc-list-files-cvs.sh: Likewise.
28357
28358 2010-09-04  Bruno Haible  <bruno@clisp.org>
28359
28360         gnulib-tool: Avoid error when run in a package without Makefile.am.
28361         * gnulib-tool: When collecting the m4dirs in a package that does not
28362         have a Makefile.am, eliminate those directories that contain no
28363         gnulib-cache.m4. Fix expression that counts these directories.
28364
28365 2010-09-04  Bruno Haible  <bruno@clisp.org>
28366
28367         update-copyright test: Improve output when perl is missing or too old.
28368         * tests/test-update-copyright.sh: Move test of Perl version down after
28369         the test whether Perl exists. Provide an explanation relating Perl's
28370         error message to Automake's SKIP: message.
28371
28372 2010-09-04  Bruno Haible  <bruno@clisp.org>
28373
28374         Don't augment PATH in TESTS_ENVIRONMENT.
28375         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28376         set abs_aux_dir instead of augmenting PATH.
28377         * modules/vc-list-files-tests (Makefile.am): Likewise.
28378         * tests/test-update-copyright.sh: Augment PATH here.
28379         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28380         path_prepend_.
28381         * tests/test-vc-list-files-git.sh: Likewise.
28382
28383 2010-09-04  Jim Meyering  <meyering@redhat.com>
28384
28385         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28386         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28387
28388 2010-09-04  Bruno Haible  <bruno@clisp.org>
28389
28390         strdup: Fix compilation error in C++ mode.
28391         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28392         the macro.
28393
28394 2010-09-04  Bruno Haible  <bruno@clisp.org>
28395
28396         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28397         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28398         macro into a function.
28399         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28400
28401 2010-09-04  Bruno Haible  <bruno@clisp.org>
28402
28403         Set PATH_SEPARATOR the same way autoconf does.
28404         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28405         the value of PATH_SEPARATOR the same way autoconf-generated configure
28406         scripts do.
28407         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28408         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28409
28410 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28411
28412         Set PATH_SEPARATOR the same way autoconf does.
28413         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28414         the same way autoconf-generated configure scripts do.
28415         * posix-modules: Likewise.
28416
28417 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28418
28419         hash: fix safe_hasher const typo
28420         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28421         const; otherwise, there is a type error later.
28422
28423 2010-09-02  Jim Meyering  <meyering@redhat.com>
28424
28425         test-update-copyright.sh: require perl 5.8.0
28426         * tests/test-update-copyright.sh: Require 5.8.0,
28427         which Tom G. Christensen has confirmed is adequate,
28428         while 5.6.1 is not.
28429
28430 2010-09-02  Eric Blake  <eblake@redhat.com>
28431
28432         tests: init.sh improvements for re-exec'ing with zsh
28433         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28434         -vx through shell re-exec.
28435         Reported by Tom G. Christensen.
28436
28437         wctype: fix typo in previous commit
28438         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28439         Reported by Ludovic Courtès.
28440
28441 2010-09-02  Jim Meyering  <meyering@redhat.com>
28442
28443         test-update-copyright.sh: skip test if Perl is too old
28444         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28445         Reported by Tom G. Christensen.
28446
28447 2010-09-02  Bruno Haible  <bruno@clisp.org>
28448
28449         wctype: Avoid compilation error on IRIX 6.5.30.
28450         * lib/wctype.in.h (iswblank): Declare with a replacement if
28451         REPLACE_ISWBLANK is set.
28452         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28453         declared. Set REPLACE_ISWBLANK.
28454         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28455         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28456         * doc/posix-headers/wctype.texi: Likewise.
28457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28458
28459 2010-09-01  Bruno Haible  <bruno@clisp.org>
28460
28461         New module 'socketlib'.
28462         * modules/socketlib: New file.
28463         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28464         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28465         * modules/sockets (Depends-on): Add socketlib.
28466         Suggested by Sam Steingold <sds@gnu.org>.
28467
28468 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28469
28470         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28471
28472         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28473         when one needs search access to a directory but not read access.
28474         On systems where it is available, it works in some cases where
28475         O_RDONLY does not, namely on directories that are searchable but
28476         not readable, and which need only to be searchable.  If O_SEARCH
28477         is not available, fall back to the traditional method of using
28478         O_RDONLY.
28479
28480         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28481         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28482         when opening a directory that needs only to be searchable.
28483         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28484         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28485         * lib/openat-proc.c (openat_proc_name): Likewise.
28486         * lib/openat.c (openat_needs_fchdir): Likewise.
28487         * lib/save-cwd.c (save_cwd): Likewise.
28488         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28489
28490 2010-08-28  Bruno Haible  <bruno@clisp.org>
28491
28492         New module 'host-cpu-c-abi'.
28493         * modules/host-cpu-c-abi: New file.
28494         * m4/host-cpu-c-abi.m4: New file, based on part of
28495         clisp/src/m4/general.m4.
28496         Requested by Sam Steingold <sds@gnu.org>.
28497
28498 2010-08-31  Eric Blake  <eblake@redhat.com>
28499         and Jim Meyering  <meyering@redhat.com>
28500
28501         hash: factor, and guard against misbehaving hasher function
28502         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28503         of table->hasher's return value.  Also protect against a hash value
28504         so large that adding it to table->bucket results in a NULL pointer.
28505         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28506         Use it in place of open-coded check-and-abort.
28507
28508 2010-08-30  Bruno Haible  <bruno@clisp.org>
28509
28510         hash: silence spurious clang warning
28511         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28512         Reported by Eric Blake.
28513
28514 2010-08-30  Eric Blake  <eblake@redhat.com>
28515
28516         strstr, memmem, strcasestr: avoid leaked shell message
28517         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28518         FreeBSD.
28519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28521
28522         tests: silence clang warning
28523         * tests/test-malloca.c (do_allocation): Avoid dead store.
28524
28525 2010-08-29  Bruno Haible  <bruno@clisp.org>
28526
28527         gettext: Fix recent mistake.
28528         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28529
28530 2010-08-29  Bruno Haible  <bruno@clisp.org>
28531
28532         selinux-h: Offer a --without-selinux option.
28533         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28534         --without-selinux was specified, skip all tests and define
28535         HAVE_SELINUX_SELINUX_H to 0.
28536         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28537         set LIB_SELINUX to empty.
28538         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28539         gl_LIBSELINUX. If --without-selinux was specified, replace
28540         selinux/context.h.
28541         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28542
28543 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28544             Bruno Haible  <bruno@clisp.org>
28545
28546         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28547         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28548         of HAVE_REALLOC.
28549         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28550         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28551         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28552         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28553
28554 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28555             Bruno Haible  <bruno@clisp.org>
28556
28557         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28558         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28559         HAVE_CALLOC.
28560         * lib/xmalloc.c: Update accordingly.
28561         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28562         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28563         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28564
28565 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28566             Bruno Haible  <bruno@clisp.org>
28567
28568         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28569         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28570         HAVE_MALLOC.
28571         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28572         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28573         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28574
28575 2010-08-29  Bruno Haible  <bruno@clisp.org>
28576
28577         Update modules list.
28578         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28579         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28580         (String handling <string.h>): Add astrxfrm.
28581         (File system functions): Add readlinkat.
28582
28583 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28584
28585         Tests for module 'realloc-gnu'.
28586         * modules/realloc-gnu-tests: New file.
28587         * tests/test-realloc-gnu.c: New file.
28588
28589         Tests for module 'calloc-gnu'.
28590         * modules/calloc-gnu-tests: New file.
28591         * tests/test-calloc-gnu.c: New file.
28592
28593         Tests for module 'malloc-gnu'.
28594         * modules/malloc-gnu-tests: New file.
28595         * tests/test-malloc-gnu.c: New file.
28596
28597 2010-08-28  Bruno Haible  <bruno@clisp.org>
28598
28599         Rename module 'realloc' -> 'realloc-gnu'.
28600         * modules/realloc-gnu: New file, copied from modules/realloc.
28601         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28602         obsolete.
28603         * modules/mgetgroups (Depends-on): Update.
28604         * doc/posix-functions/realloc.texi: Update.
28605         * NEWS: Mention the change.
28606
28607         Rename module 'calloc' -> 'calloc-gnu'.
28608         * modules/calloc-gnu: New file, copied from modules/calloc.
28609         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28610         obsolete.
28611         * doc/posix-functions/calloc.texi: Update.
28612         * NEWS: Mention the change.
28613
28614         Rename module 'malloc' -> 'malloc-gnu'.
28615         * modules/malloc-gnu: New file, copied from modules/malloc.
28616         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28617         obsolete.
28618         * modules/argp (Depends-on): Update.
28619         * modules/regex (Depends-on): Update.
28620         * doc/posix-functions/malloc.texi: Update.
28621         * NEWS: Mention the change.
28622
28623 2010-08-28  Eric Blake  <eblake@redhat.com>
28624
28625         pread, pwrite: add missing dependency
28626         * modules/pread (Depends-on): Add extensions.
28627         * modules/pwrite (Depends-on): Likewise.
28628
28629 2010-08-28  Bruno Haible  <bruno@clisp.org>
28630
28631         unistr/u*-strchr: Fix tests dependencies.
28632         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28633         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28634         Reported by Ian Beckwith <ianb@erislabs.net>.
28635
28636 2010-08-28  Bruno Haible  <bruno@clisp.org>
28637
28638         read-file: Don't occupy too much unused memory.
28639         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28640
28641 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28642             Eric Blake  <eblake@redhat.com>
28643             Bruno Haible  <bruno@clisp.org>
28644
28645         read-file: Avoid memory reallocations with regular files.
28646         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28647         (fread_file): With regular files, use the remaining length as the
28648         initial buffer size.  Check against overflow.
28649         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28650         sys_stat.
28651
28652 2010-08-28  Bruno Haible  <bruno@clisp.org>
28653
28654         ftello: Relax license.
28655         * modules/ftello (License): Relax to LGPLv2+.
28656         Reported by Eric Blake.
28657
28658 2010-08-28  Bruno Haible  <bruno@clisp.org>
28659
28660         Avoid relocwrapper link errors due to gnulib replacement functions.
28661         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28662         function.
28663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28664
28665 2010-08-28  Bruno Haible  <bruno@clisp.org>
28666
28667         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28668         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28669         defined.
28670         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28671         Suggested by Eric Blake.
28672
28673 2010-08-28  Bruno Haible  <bruno@clisp.org>
28674
28675         sys_socket, netdb: Ensure socklen_t gets defined.
28676         * modules/sys_socket (Depends-on): Add socklen.
28677         * modules/netdb (Depends-on): Likewise.
28678         * modules/getaddrinfo (Depends-on): Remove socklen.
28679         * modules/getsockopt (Depends-on): Likewise.
28680         * modules/setsockopt (Depends-on): Likewise.
28681         * tests/test-sys_socket.c: Check that socklen_t is defined.
28682         * tests/test-netdb.c: Likewise.
28683         * m4/socklen.m4: Update comments.
28684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28685
28686 2010-08-27  Eric Blake  <eblake@redhat.com>
28687
28688         login_tty: add missing dependency
28689         * modules/login_tty (Depends-on): Add pty.
28690
28691 2010-08-26  Eric Blake  <eblake@redhat.com>
28692
28693         lib-symbol-versions: fix m4 quoting
28694         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28695         format for AC_LINK_IFELSE.
28696
28697         glob: fix compile test
28698         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28699
28700         btowc: fix missing file
28701         * modules/btowc (Files): Also ship locale-fr.m4.
28702
28703         lseek: fix link test
28704         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28705         AC_LINK_IFELSE.
28706
28707         include_next: silence autoconf 2.68 warning
28708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28709         AC_COMPILE_IFELSE as special.
28710         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28711         autoconf < 2.68.
28712
28713         acl: fix compilation test
28714         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28715         AC_COMPILE_IFELSE.
28716
28717 2010-08-26  Bruno Haible  <bruno@clisp.org>
28718
28719         Modernize AC_TRY_RUN invocations.
28720         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28721         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28722         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28723         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28724         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28725         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28728         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28729         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28730         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28731         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28732         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28733         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28735         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28736         gl_MBRLEN_NUL_RETVAL): Likewise.
28737         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28738         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28739         Likewise.
28740         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28741         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28742         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28743         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28744         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28745         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28746         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28747         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28748         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28749         Likewise.
28750         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28751         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28753         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28754         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28755         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28756         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28757         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28758         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28760
28761 2010-08-26  Bruno Haible  <bruno@clisp.org>
28762
28763         Modernize AC_TRY_LINK invocations.
28764         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28765         AC_TRY_LINK.
28766         * m4/argp.m4 (gl_ARGP): Likewise.
28767         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28768         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28769         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28770         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28772         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28773         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28774         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28775         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28776         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28777         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28778         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28779         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28780         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28781         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28782         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28783         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28784         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28785         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28786         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28787         Likewise.
28788         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28789         Likewise.
28790         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28791         Likewise.
28792         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28794         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28795         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28796         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28797         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28798         * m4/servent.m4 (gl_SERVENT): Likewise.
28799         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28800         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28801         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28802         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28803         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28804         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28805         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28807         * modules/tsearch-tests (configure.ac): Likewise.
28808
28809 2010-08-26  Bruno Haible  <bruno@clisp.org>
28810
28811         Modernize AC_TRY_COMPILE invocations.
28812         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28813         AC_TRY_COMPILE.
28814         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28815         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28816         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28817         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28818         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28819         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28820         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28821         * m4/lock.m4 (gl_LOCK): Likewise.
28822         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28823         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28824         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28825         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28826         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28827         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28828         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28829         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28830         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28831         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28832         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28833         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28834         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28835         extraneous semicolon.
28836
28837 2010-08-26  Jim Meyering  <meyering@redhat.com>
28838
28839         stat-time: relax license LGPL
28840         * modules/stat-time (License): Change from GPL to LGPL,
28841         with consent from all contributors, for use in libguile.
28842         Requested by Ludovic Courtès.
28843
28844 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28845
28846         poll: return immediately on POLLHUP.
28847         * lib/poll.c (poll): Always set timeout before wait_timeout is
28848         computed.
28849
28850 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28851
28852         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28853         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28854         rmdir ("dir/.//"), unlinkat.
28855
28856 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28857
28858         stdbool: avoid spurious failure with modern xlc
28859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28860
28861 2010-08-24  Bruno Haible  <bruno@clisp.org>
28862
28863         getloadavg: simplify code
28864         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28865         gl_have_func. Update comments.
28866
28867 2010-08-24  Eric Blake  <eblake@redhat.com>
28868
28869         getloadavg: don't define SVR4 on cygwin
28870         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28871         only define SVR4 when -lkvm is required.
28872         Reported by Yaakov Selkowitz.
28873
28874 2010-08-24  Bruno Haible  <bruno@clisp.org>
28875
28876         priv-set: fix comment
28877         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28878
28879 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28880
28881         priv-set: fix comments
28882         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28883         to match code, as suggested by David Bartley in:
28884         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28885
28886 2010-08-23  Eric Blake  <eblake@redhat.com>
28887
28888         stdbool: avoid rejecting clang
28889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28890         * tests/test-stdbool.c: Enable more tests if using the system
28891         <stdbool.h> instead of the gnulib replacement.
28892         (main): Move xlc bug test to a runtime test for all compilers.
28893         Reported by Anders Kaseorg.
28894
28895         argz: fix shell quoting issue
28896         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28897         Reported by Charles Wilson.
28898
28899 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28900             Erik Faye-Lund <kusmabite@gmail.com>
28901
28902         poll, select: handle ERROR_BROKEN_PIPE.
28903         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28904         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28905         * lib/select.c (win32_compute_revents): Do not mark a pipe
28906         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28907
28908 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28909
28910         fts: allow compilation with C++
28911         * lib/fts_.h: Specify extern "C" linkage with C++.
28912
28913 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28914
28915         Fix gnulib-tool sed script de-commentation for AIX sed.
28916         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28917         sed.
28918
28919 2010-08-17  Eric Blake  <eblake@redhat.com>
28920
28921         test-stddef: test for (some) offsetof bugs
28922         * tests/test-stddef.c: Enhance test to ensure correct type of
28923         offsetof.
28924         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28925         that we are not fixing at this time.
28926
28927 2010-08-15  Bruno Haible  <bruno@clisp.org>
28928
28929         stpncpy: Allow stpncpy to be defined as a macro.
28930         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28931         if it's already correctly declared.
28932         * lib/string.in.h (stpncpy): Undefine before redefining.
28933         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28934
28935 2010-08-14  Bruno Haible  <bruno@clisp.org>
28936
28937         Rename module 'memxfrm' to 'amemxfrm'.
28938         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28939         (amemxfrm): Renamed from memxfrm.
28940         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28941         (amemxfrm): Renamed from memxfrm.
28942         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28943         * NEWS: Mention the change.
28944         * MODULES.html.sh (String handling <string.h>): Update.
28945         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28946         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28947         * lib/unicase/u16-casexfrm.c: Likewise.
28948         * lib/unicase/u32-casexfrm.c: Likewise.
28949         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28950         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28951         * lib/uninorm/u16-normxfrm.c: Likewise.
28952         * lib/uninorm/u32-normxfrm.c: Likewise.
28953         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28954         memxfrm.
28955         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28956         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28957         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28958         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28959         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28960         Suggested by Paul Eggert.
28961
28962 2010-08-14  Bruno Haible  <bruno@clisp.org>
28963
28964         Tests for module 'astrxfrm'.
28965         * modules/astrxfrm-tests: New file.
28966         * tests/test-astrxfrm.c: New file.
28967
28968         New module 'astrxfrm'.
28969         * lib/astrxfrm.h: New file.
28970         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28971         * modules/astrxfrm: New file.
28972
28973 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28974
28975         regex: Tweak doc.
28976         * doc/regex.texi (Overview): Don't mention regex.c.
28977         (GNU Regular Expression Compiling): Likewise.
28978         (Match-end-of-line Operator): Mention 'not_eol'.
28979
28980 2010-08-14  Brian Gough  <bjg@gnu.org>
28981             Bruno Haible  <bruno@clisp.org>
28982
28983         git-merge-changelog: add doc relating to use with bzr and hg.
28984         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28985
28986 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28987
28988         pthread: fix pthread.h creation for srcdir != builddir
28989         * modules/pthread (Makefile.am): Fix the rule to work also in a
28990         non-srcdir build.
28991
28992 2010-08-13  Karl Berry  <karl@gnu.org>
28993
28994         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28995         * doc/posix-*/*: force line break before @url of POSIX
28996         specifications.
28997         Suggested by Werner Lemberg.
28998
28999 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29000
29001         strtod: fix const diagnostic
29002         * lib/strtod.c (strtod): Don't assign const char * to char *,
29003         as this elicits a warning from GCC when warnings are enabled.
29004
29005 2010-08-10  Pádraig Brady <P@draigbrady.com>
29006         and Eric Blake  <eblake@redhat.com>
29007
29008         copy-acl: ignore ENOTSUP on HP-UX
29009         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29010         so that it is available for HP-UX.
29011         * lib/copy-acl.c (qcopy_acl): Use it.
29012         Reported by Patrick M. Callahan.
29013
29014 2010-08-10  Eric Blake  <eblake@redhat.com>
29015
29016         open, chown: relax license
29017         * modules/open (License): Change to LGPLv2+, with consent by all
29018         authors, for use in augeas.
29019         * modules/chown (License): Likewise.
29020         * modules/lchown (Likewise): Likewise.
29021         Requested by Adam Stokes.
29022
29023 2010-08-09  Karl Berry  <karl@gnu.org>
29024
29025         * build-aux/ar-lib: new file, import from Automake.
29026         * config/srclist.txt: autocheck for updates.
29027
29028 2010-08-09  Eric Blake  <eblake@redhat.com>
29029
29030         readlinkat: adjust client modules
29031         * modules/areadlinkat (Depends-on): Use readlinkat, not
29032         symlinkat.
29033         * modules/areadlinkat-with-size (Depends-on): Likewise.
29034
29035         mknod: be more vocal about danger of running tests as root
29036         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29037         root, since that is just asking for problems.
29038         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29039
29040         readlinkat: split into its own module
29041         * modules/symlinkat: Split readlinkat...
29042         * modules/readlinkat: ...into separate module.
29043         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29044         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29045         * lib/symlinkat.c (readlinkat): Move...
29046         * lib/readlinkat.c: ...into new file.
29047         * modules/symlinkat-tests: Split readlinkat test...
29048         * modules/readlinkat-tests: ...into separate module.
29049         * tests/test-symlinkat.c: Split...
29050         * tests/test-readlinkat.c: ...into new file.
29051         * NEWS: Document the split.
29052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29053         * lib/unistd.in.h (readlinkat): Likewise.
29054         Suggested by Bruno Haible.
29055
29056 2010-08-08  Bruno Haible  <bruno@clisp.org>
29057
29058         memxfrm: Speed up.
29059         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29060         that usually only one call to strxfrm is necessary for each string
29061         part.
29062         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29063
29064 2010-08-07  Karl Berry  <karl@gnu.org>
29065
29066         * doc/posix-headers/limits.texi,
29067         * doc/posix-functions/malloc.texi,
29068         * doc/posix-functions/strsignal.texi: missing @item.
29069         * doc/ld-version-script.texi: spurious leading i.
29070         * doc/regex.texi (Interval Operators): no commas inside @var.
29071
29072 2010-08-01  Bruno Haible  <bruno@clisp.org>
29073
29074         Integrate the regex documentation.
29075         * doc/gnulib.texi: Define 'cn' index.
29076         (Regular expressions): New a chapter that includes regex.texi and
29077         regexprops-generic.texi.
29078         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29079         syntax.
29080
29081         Whitespace cleanup.
29082         * doc/regex.texi: Remove trailing spaces.
29083
29084         Add regex documentation.
29085         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29086         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29087         Written by Kathy A. Hargreaves and Karl Berry.
29088
29089 2010-08-01  Bruno Haible  <bruno@clisp.org>
29090
29091         link: Update documentation.
29092         * doc/posix-functions/link.texi: Update regarding Solaris.
29093
29094 2010-07-31  Bruno Haible  <bruno@clisp.org>
29095
29096         Update modules list.
29097         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29098         (String handling <string.h>): Add memcmp2, memxfrm.
29099         (Container data structures): Add xlist, xsublist, xoset.
29100         (Core language properties): Add alignof, unused-parameter.
29101         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29102         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29103         (Unibyte characters <ctype.h>): New section.
29104         (String handling <string.h>): New section.
29105         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29106         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29107         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29108         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29109         tan, tanh, tanl, y0, y1, yn.
29110         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29111         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29112         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29113         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29114         unlockpt, vdprintf, vdprintf-posix.
29115         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29116         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29117         xconcat-filename.
29118         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29119         getdtablesize, pipe2, pipe2-safer.
29120         (Security): New section.
29121         (Networking functions): Add accept4.
29122         (Signal handling): Add sigpipe.
29123         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29124         mbmemcasecoll.
29125         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29126         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29127         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29128         pipe-filter-ii.
29129         (Misc): Add argp-version-etc, login_tty, parse-duration.
29130
29131 2010-07-31  Bruno Haible  <bruno@clisp.org>
29132
29133         Improve doc in MODULES.html.
29134         * modules/linkat (Description): Add the word "function".
29135         * modules/mkfifo (Description): Likewise.
29136         * modules/mknod (Description): Likewise.
29137         * modules/remove (Description): Likewise.
29138         * modules/renameat (Description): Likewise.
29139         * modules/stat (Description): Likewise.
29140         * modules/symlink (Description): Likewise.
29141         * modules/unlink (Description): Likewise.
29142
29143 2010-07-31  Bruno Haible  <bruno@clisp.org>
29144
29145         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29146         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29147         option --enable/disable-c++ instead of --enable/disable-cxx.
29148         * NEWS: Mention the change.
29149
29150 2010-07-31  Bruno Haible  <bruno@clisp.org>
29151
29152         readlink, areadlink: Relax test a bit.
29153         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29154         alternative to ENOTDIR.
29155         * tests/test-areadlink.h (test_areadlink): Likewise.
29156         Reported by Rainer Tammer.
29157
29158 2010-07-31  Bruno Haible  <bruno@clisp.org>
29159
29160         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29161         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29162         character, perform the search using U_STRCHR.
29163         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29164         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29165         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29166         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29167         Suggested by Paolo Bonzini.
29168
29169 2010-07-31  Bruno Haible  <bruno@clisp.org>
29170
29171         unistr/u*-strstr: Fix dependencies.
29172         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29173         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29174         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29175
29176 2010-07-31  Bruno Haible  <bruno@clisp.org>
29177
29178         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29179         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29180         the beginning of the loop.
29181         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29182         cases in 'switch' statement.
29183
29184         unistr/u8-strchr: Fix several bugs.
29185         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29186         the string. When not found, return NULL, not a pointer near the end.
29187
29188         More tests for unistr/u8-strchr.
29189         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29190         that the function does not read past the first occurrence of the byte
29191         being searched.
29192         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29193         * tests/unistr/test-u16-strchr.c (main): New function.
29194         * tests/unistr/test-u32-strchr.c (main): New function.
29195
29196 2010-07-31  Bruno Haible  <bruno@clisp.org>
29197
29198         posix-modules: Ignore backup files of documentation files.
29199         * posix-modules: grep only through files named *.texi.
29200
29201 2010-07-31  Bruno Haible  <bruno@clisp.org>
29202
29203         symlinkat: Fix documentation.
29204         * doc/posix-functions/readlinkat.texi: Fix module name.
29205
29206 2010-07-31  Bruno Haible  <bruno@clisp.org>
29207
29208         fchownat: Replace also when chown has the trailing slash bug.
29209         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29210         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29211         introduced on 2010-04-10.
29212         Reported by Rainer Tammer.
29213
29214 2010-07-31  Bruno Haible  <bruno@clisp.org>
29215
29216         linkat: Work around AIX 7.1 bug.
29217         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29218         whether linkat handles trailing slash correctly. If not, replace linkat
29219         and define LINKAT_TRAILING_SLASH_BUG.
29220         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29221         check whether (fd1,file1) points to a directory if file1 or file2 ends
29222         in a slash. Code taken from lib/link.c.
29223         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29224         Reported by Rainer Tammer.
29225
29226 2010-07-31  Bruno Haible  <bruno@clisp.org>
29227
29228         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29229         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29230         This disables an xlc optimization that was causing wrong test results.
29231         Reported by Rainer Tammer.
29232
29233 2010-07-31  Bruno Haible  <bruno@clisp.org>
29234
29235         iconv: Work around AIX 6.1..7.1 bug.
29236         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29237         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29238         cross-compiling, guess no on all versions of AIX.
29239         Reported by Rainer Tammer.
29240
29241 2010-07-31  Bruno Haible  <bruno@clisp.org>
29242
29243         readlink: Relax test a bit.
29244         * tests/test-readlink.h (test_readlink): Allow different errno value
29245         when readlink is called with a file name that ends in / and refers to
29246         a file.
29247         Suggested by Eric Blake.
29248         Reported by Rainer Tammer.
29249
29250 2010-07-31  Bruno Haible  <bruno@clisp.org>
29251
29252         copysign: Does not require -lm on glibc systems.
29253         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29254         gl_COMMON_DOUBLE_MATHFUNC.
29255         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29256
29257 2010-07-31  Bruno Haible  <bruno@clisp.org>
29258
29259         duplocale: Work around AIX 7.1 bug.
29260         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29261         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29262         * lib/duplocale.c (rpl_duplocale): Update comment.
29263         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29264         Reported by Rainer Tammer.
29265
29266 2010-07-30  Bruno Haible  <bruno@clisp.org>
29267
29268         dirfd: Avoid link error on AIX 7.1.
29269         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29270         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29271         exist, set REPLACE_DIRFD.
29272         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29273         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29274         * doc/posix-functions/dirfd.texi: Update.
29275         Reported by Rainer Tammer.
29276
29277 2010-07-30  Eric Blake  <eblake@redhat.com>
29278
29279         strtod: next round of AIX fixes
29280         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29281         exponent.
29282         * tests/test-strtod.c (main): Enhance tests.
29283         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29284         Reported by Rainer Tammer.
29285
29286         futimens: fix configure check
29287         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29288         Reported by Bruno Haible.
29289
29290 2010-07-30  Bruno Haible  <bruno@clisp.org>
29291
29292         getline: Update regarding AIX.
29293         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29294         Reported by Rainer Tammer.
29295
29296 2010-07-30  Bruno Haible  <bruno@clisp.org>
29297
29298         wcwidth: Drop replacement on AIX 7.
29299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29300         AIX 7.
29301         Reported by Rainer Tammer.
29302
29303 2010-07-30  Bruno Haible  <bruno@clisp.org>
29304
29305         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29307         a 'char *'.
29308         Reported by Rainer Tammer.
29309
29310 2010-07-30  Bruno Haible  <bruno@clisp.org>
29311
29312         unlink: Update regarding AIX.
29313         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29314         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29315         Reported by Rainer Tammer.
29316
29317 2010-07-30  Bruno Haible  <bruno@clisp.org>
29318
29319         symlink: Update regarding AIX.
29320         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29321         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29322         Reported by Rainer Tammer.
29323
29324 2010-07-30  Bruno Haible  <bruno@clisp.org>
29325
29326         strndup: Update regarding AIX.
29327         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29328         AIX 7.
29329         Reported by Rainer Tammer.
29330
29331 2010-07-30  Bruno Haible  <bruno@clisp.org>
29332
29333         stat: Update regarding AIX.
29334         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29335         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29336         Reported by Rainer Tammer.
29337
29338 2010-07-30  Bruno Haible  <bruno@clisp.org>
29339
29340         truncl: Fix autoconf test.
29341         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29342         whether truncl works.
29343         Reported by Rainer Tammer.
29344
29345 2010-07-30  Bruno Haible  <bruno@clisp.org>
29346
29347         round: Update regarding AIX.
29348         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29349         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29350         Reported by Rainer Tammer.
29351
29352 2010-07-30  Bruno Haible  <bruno@clisp.org>
29353
29354         rename: Update regarding AIX.
29355         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29356         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29357         Reported by Rainer Tammer.
29358
29359 2010-07-30  Bruno Haible  <bruno@clisp.org>
29360
29361         printf.m4: Update regarding AIX.
29362         * m4/printf.m4: Update comments regarding AIX.
29363         Reported by Rainer Tammer.
29364
29365 2010-07-30  Bruno Haible  <bruno@clisp.org>
29366
29367         iconv: Update regarding AIX.
29368         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29369         AIX 7.
29370         Reported by Rainer Tammer.
29371
29372 2010-07-30  Bruno Haible  <bruno@clisp.org>
29373
29374         getopt: Update regarding AIX.
29375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29376         no on AIX.
29377         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29378         Reported by Rainer Tammer.
29379
29380 2010-07-30  Bruno Haible  <bruno@clisp.org>
29381
29382         ldexpl; Update regarding AIX.
29383         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29384         on AIX 7.
29385         Reported by Rainer Tammer.
29386
29387 2010-07-30  Bruno Haible  <bruno@clisp.org>
29388
29389         frexpl: Update regarding AIX.
29390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29391         on AIX 7.
29392         Reported by Rainer Tammer.
29393
29394 2010-07-30  Bruno Haible  <bruno@clisp.org>
29395
29396         open, fopen: Update regarding AIX.
29397         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29398         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29399         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29400         * doc/posix-functions/fopen.texi: Likewise.
29401         Reported by Rainer Tammer.
29402
29403 2010-07-30  Bruno Haible  <bruno@clisp.org>
29404
29405         chown: Update doc regarding AIX.
29406         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29407         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29408         Reported by Rainer Tammer.
29409
29410 2010-07-30  Eric Blake  <eblake@redhat.com>
29411
29412         strtod: fix bug in replacement function on AIX
29413         * lib/strtod.c (strtod): Special case broken "0x" parse in
29414         underlying strtod.
29415         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29416         * doc/posix-functions/strtod.texi (strtod): Likewise.
29417         Reported by Rainer Tammer.
29418
29419 2010-07-30  Bruno Haible  <bruno@clisp.org>
29420
29421         mbrlen: Fix cross-compilation guess for AIX.
29422         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29423         guess. Leftover from 2008-12-22.
29424
29425 2010-07-30  Bruno Haible  <bruno@clisp.org>
29426
29427         mbrtowc: Fix cross-compilation guess for AIX.
29428         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29429         guess. Leftover from 2008-12-21.
29430
29431 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29432
29433         init.sh: work around trap limitation of some shells
29434         * tests/init.sh (setup_): Move exit trap outside of shell function.
29435
29436 2010-07-29  Eric Blake  <eblake@redhat.com>
29437
29438         strtod: aid debugging
29439         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29440         understanding why strtod is rejected.
29441
29442 2010-07-28  Bruno Haible  <bruno@clisp.org>
29443
29444         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29445         * lib/unistr/u8-chr.c: Include <string.h>.
29446         * tests/unistr/test-u8-chr.c: Likewise.
29447         * tests/unistr/test-u16-chr.c: Likewise.
29448         * tests/unistr/test-u32-chr.c: Likewise.
29449         * tests/unistr/test-u8-strchr.c: Likewise.
29450         * tests/unistr/test-u16-strchr.c: Likewise.
29451         * tests/unistr/test-u32-strchr.c: Likewise.
29452         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29453         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29454         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29455         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29456
29457 2010-07-28  Bruno Haible  <bruno@clisp.org>
29458
29459         Use spaces for indentation, not tabs.
29460         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29461
29462 2010-07-27  Bruno Haible  <bruno@clisp.org>
29463
29464         mbspcasecmp: Fix function specification.
29465         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29466         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29467         Reported by Eric Blake <eblake@redhat.com>.
29468
29469 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29470
29471         timespec: use cast and not conditional, as truncation isn't possible
29472         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29473         instead of a conditional.  Comment about the situation in more detail.
29474         This undoes most of the 2009-10-29 patch.
29475
29476 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29477
29478         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29479         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29480         * lib/unistr/u8-strchr.c: Likewise.
29481         * modules/unistr/u8-chr: Depend on memchr.
29482
29483         unistr/u*-strchr: add tests
29484         * modules/unistr/u8-strchr-tests: New file.
29485         * modules/unistr/u16-strchr-tests: New file.
29486         * modules/unistr/u32-strchr-tests: New file.
29487         * tests/unistr/test-strchr.h: New file.
29488         * tests/unistr/test-u8-strchr.c: New file.
29489         * tests/unistr/test-u16-strchr.c: New file.
29490         * tests/unistr/test-u32-strchr.c: New file.
29491
29492         unistr/u*-chr: test multibyte sequences more
29493         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29494         test vector.
29495         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29496         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29497         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29498
29499         unistr/u*-chr: test multibyte sequences
29500         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29501
29502         unistr/u*-chr: prepare for multibyte tests
29503         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29504         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29505         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29506         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29507         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29508         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29509
29510 2010-07-18  Bruno Haible  <bruno@clisp.org>
29511
29512         unistr/u8-strchr: Optimize non-ASCII argument case.
29513         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29514         because the first byte often matches anyway.
29515         Reported by Pádraig Brady <P@draigbrady.com>.
29516
29517 2010-07-15  Karl Berry  <karl@gnu.org>
29518
29519         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29520
29521 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29522
29523         getcwd: on Solaris, work better if ancestors are inaccessible
29524         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29525         buffer and size, try again with a large buffer.  This works better
29526         on Solaris, since its getcwd succeeds even if the path to the root
29527         is inaccessible, and this is helpful in common cases such as .zfs
29528         hidden directories.  Problem reported by J Chapman Flack in
29529         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29530         Use system getcwd if it's declared, not merely if it's partly
29531         working; use the partly-working test only to avoid needless effort
29532         if the system getcwd fails.
29533         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29534         comment that was already obsolete and is now even more obsolete.
29535         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29536         now might call strdup.
29537
29538 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29539
29540         pthread: Add enough so that coreutils/src/sort.c compiles.
29541         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29542         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29543         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29544         Include <sys/types.h>, in case it defines pthread_t.
29545         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29546         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29547         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29548         (pthread_rwlockattr_t, pthread_spinlock_t):
29549         New typedefs, if HAVE_PTHREAD_T is not defined.
29550         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29551         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29552         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29553         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29554         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29555         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29556         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29557         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29558         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29559         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29560         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29561         New macros.
29562         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29563         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29564         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29565         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29566         (pthread_spin_unlock): New dummy functions.
29567         (pthread_create): Return EAGAIN; don't set errno.
29568         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29569         require AC_C_INLINE.
29570         * modules/pthread (Depends-on): Add sched, time.
29571         (pthread.h): Use AM_V_GEN.
29572
29573 2010-07-13  Bruno Haible  <bruno@clisp.org>
29574
29575         striconveh: Don't malloc memory if the result buffer is sufficient.
29576         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29577         buffer if its size is sufficient.
29578         Reported by Ludovic Courtès <ludo@gnu.org>.
29579
29580 2010-07-13  Bruno Haible  <bruno@clisp.org>
29581
29582         strtod: Add safety check.
29583         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29584
29585 2010-07-12  Bruno Haible  <bruno@clisp.org>
29586
29587         Unify tests that set gl_cv_func_ldexpl_no_libm.
29588         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29589         gl_FUNC_LDEXPL.
29590         (gl_FUNC_LDEXPL): Invoke it.
29591         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29592
29593 2010-07-12  Bruno Haible  <bruno@clisp.org>
29594
29595         Unify tests that set gl_cv_func_ldexp_no_libm.
29596         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29597         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29598         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29599         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29600         * modules/strtod (Files): Add m4/ldexp.m4.
29601
29602 2010-07-12  Bruno Haible  <bruno@clisp.org>
29603
29604         Unify tests that set gl_cv_func_frexpl_no_libm.
29605         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29606         gl_FUNC_FREXPL_NO_LIBM.
29607         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29608         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29609
29610 2010-07-12  Bruno Haible  <bruno@clisp.org>
29611
29612         Unify tests that set gl_cv_func_frexp_no_libm.
29613         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29614         gl_FUNC_FREXP_NO_LIBM.
29615         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29616         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29617
29618 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29619
29620         memcoll: clarify sizes versus lengths, document better, and tweak perf
29621         * lib/memcoll.c (strcoll_loop, memcoll0):
29622         Improve quality of descriptive comments.  Name variables
29623         consistently as to whether they are lengths (which do not include
29624         terminating null) versus sizes (which do).
29625         * lib/xmemcoll.c (xmemcoll0): Likewise.
29626         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29627         returned when s1size == 0; this is easier to compile and saves
29628         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29629
29630 2010-07-12  Bruno Haible  <bruno@clisp.org>
29631
29632         Tests for module '_Exit'.
29633         * modules/_Exit-tests: New file.
29634         * tests/test-_Exit.sh: New file.
29635         * tests/test-_Exit.c: New file.
29636
29637         New module '_Exit'.
29638         * lib/stdlib.in.h (__attribute__): New macro.
29639         (_Exit): New declaration.
29640         * lib/_Exit.c: New file.
29641         * m4/_Exit.m4: New file.
29642         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29643         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29644         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29645         * modules/_Exit: New file.
29646         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29647         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29648
29649 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29650
29651         strtod: make it more-accurate typically, and don't require libm
29652         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29653         Include limits.h.  Don't include string.h.
29654         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29655         (locale_isspace): New function, so that no casts are needed to
29656         check whether *s is a space.
29657         (ldexp): Provide an unused dummy if not available.
29658         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29659         (strtod): Use them.  This implementation prefers to use the
29660         underlying strtod if available, falling back on our own code
29661         only to fix known bugs.  This is more likely to produce an
29662         accurate result.  Also, it avoids the use of libm functions.
29663         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29664         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29665         was absent, but it caused a test failure with coreutils.
29666         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29667         with libm.
29668         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29669         * modules/strtod-tests (Makefile.am): Likewise.
29670
29671 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29672             Bruno Haible  <bruno@clisp.org>
29673
29674         unistr/u8-strchr: Optimize ASCII argument case.
29675         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29676
29677 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29678
29679         (x)memcoll: minor tweaks
29680         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29681         is after the type that it qualifies.
29682         (memcoll0): Likewise.
29683         * lib/memcoll.h (memcoll0): Likewise.
29684         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29685         * lib/xmemcoll.h (xmemcoll0): Likewise.
29686         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29687         differs from memcoll in that the NUL byte is part of the argument.
29688         Omit the abort-checks, as performance is a real issue here.  Plus,
29689         the checks were wrong anyway (an off-by-one error).  Omit local
29690         variable 'diff', as it's a bit clearer that way.
29691         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29692         no longer needed.
29693
29694 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29695
29696         (x)memcoll: speedup when input is known to be NUL delimited
29697         * lib/memcoll.c: Include stdlib.
29698         (memcoll0): New function.
29699         (strcoll_loop): New function, refactored for use in both memcoll
29700         and memcoll0.
29701         * lib/memcoll.h (memcoll0): Add prototype.
29702         * lib/xmemcoll.c (xmemcoll0): New function.
29703         (collate_error): New function, refactored for use in both xmemcoll
29704         and xmemcoll0.
29705         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29706         * m4/memcoll.m4: add inline invocation.
29707
29708 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29709
29710         * build-aux/bootstrap: Remove any local translations
29711         from the translation project synchronization directory,
29712         so that local only translations are not distributed.
29713
29714 2010-07-04  Bruno Haible  <bruno@clisp.org>
29715
29716         fsusage: Clarify which code applies to which platforms.
29717         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29718         platform.
29719         * lib/fsusage.c (get_fs_usage): Likewise.
29720
29721 2010-07-04  Bruno Haible  <bruno@clisp.org>
29722
29723         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29724         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29725         Reported by Martin Lambers <marlam@marlam.de>.
29726
29727 2010-07-04  Jim Meyering  <meyering@redhat.com>
29728
29729         hash: once again explicitly disallow insertion of NULL
29730         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29731         inserting a NULL pointer cannot work with these functions.
29732         Add a comment with details.
29733         This reverts part of the 2010-07-01 commit, 5bef1a35
29734         "hash: extend module to deal with non-pointer keys".
29735
29736 2010-07-01  Bruno Haible  <bruno@clisp.org>
29737
29738         stdbool: Update doc.
29739         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29740         Info from Christian Weisgerber <naddy@mips.inka.de>.
29741
29742 2010-07-01  Jim Meyering  <meyering@redhat.com>
29743
29744         hash: extend module to deal with non-pointer keys
29745         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29746         but that allows insertion of non-pointer entries.
29747         Do not disallow an ENTRY value of NULL.
29748         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29749         * lib/hash.h (hash_insert0): Declare.
29750
29751 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29752
29753         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29754         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29755         not present (i.e. with autoconf 2.59 and when using gettextize, not
29756         gnulib), require AC_GNU_SOURCE instead.
29757
29758 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29759
29760         idpriv-drop: Fix tests.
29761         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29762         not to the test-idpriv-droptemp program.
29763
29764 2010-06-29  Bruno Haible  <bruno@clisp.org>
29765
29766         string: Fix syntax error with g++ 2.96.
29767         * lib/string.in.h (__pure__): Remove definition.
29768         (_GL_ATTRIBUTE_PURE): New macro.
29769         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29770         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29771         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29772
29773 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29774
29775         unitypes: Fix bug introduced on 2010-05-18.
29776         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29777
29778 2010-06-22  Eric Blake  <eblake@redhat.com>
29779
29780         memmem: slight optimization
29781         * lib/str-two-way.h (critical_factorization): Update comments.
29782         Reduce work during factorization phase.
29783         Reported by Carlos Bueno <carlos@bueno.org>.
29784
29785 2010-06-21  Bruno Haible  <bruno@clisp.org>
29786
29787         Fix HAVE_CALLOC_POSIX misnomer.
29788         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29789         !HAVE_CALLOC_POSIX.
29790         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29791         HAVE_CALLOC_POSIX.
29792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29793         instead of HAVE_CALLOC_POSIX.
29794         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29795         HAVE_CALLOC_POSIX.
29796
29797         Use modern idiom for calloc() replacement.
29798         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29799         AC_FUNC_CALLOC.
29800         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29801         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29802         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29803         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29804         (gl_REPLACE_CALLOC): New macro.
29805
29806 2010-06-21  Bruno Haible  <bruno@clisp.org>
29807
29808         Fix HAVE_REALLOC_POSIX misnomer.
29809         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29810         !HAVE_REALLOC_POSIX.
29811         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29812         HAVE_REALLOC_POSIX.
29813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29814         instead of HAVE_REALLOC_POSIX.
29815         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29816         HAVE_REALLOC_POSIX.
29817
29818         Use modern idiom for realloc() replacement.
29819         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29820         AC_FUNC_REALLOC.
29821         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29822         Autoconf's AC_FUNC_REALLOC.
29823         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29824         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29825         (gl_REPLACE_REALLOC): New macro.
29826         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29827
29828 2010-06-21  Bruno Haible  <bruno@clisp.org>
29829
29830         Fix HAVE_MALLOC_POSIX misnomer.
29831         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29832         !HAVE_MALLOC_POSIX.
29833         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29834         HAVE_MALLOC_POSIX.
29835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29836         instead of HAVE_MALLOC_POSIX.
29837         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29838         HAVE_MALLOC_POSIX.
29839
29840         Use modern idiom for malloc() replacement.
29841         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29842         AC_FUNC_MALLOC.
29843         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29844         Autoconf's AC_FUNC_MALLOC.
29845         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29846         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29847         (gl_REPLACE_MALLOC): New macro.
29848         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29849
29850 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29851
29852         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29853         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29854         This macro takes 3 arguments, not 4.
29855
29856 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29857
29858         ipv6: fix detection under mingw
29859         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29860         in6_addr.
29861
29862 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29863
29864         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29865         that strtod() works when cross-compiling to a glibc version known
29866         to work.
29867
29868 2010-06-15  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29871
29872 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29873
29874         select: Correct timeout.
29875         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29876
29877 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29878
29879         git-version-gen: init shell var to avoid env var influence
29880         * build-aux/git-version-gen (v): Init shell var to empty.
29881
29882 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29883
29884         priv-set: Don't assume that priv.h exists merely because getppriv does.
29885         See Jan Andersen's bug report about AIX 5L in
29886         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29887         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29888         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29889         * lib/priv-set.h: Likewise.
29890         * tests/test-priv-set.c: Likewise.
29891
29892 2010-06-13  Bruno Haible  <bruno@clisp.org>
29893
29894         relocatable: Make it easier to test whether to install wrappers.
29895         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29896         RELOCATABLE_VIA_WRAPPER.
29897
29898 2010-06-13  Bruno Haible  <bruno@clisp.org>
29899
29900         gnulib-tool: Display specified modules and dependencies differently.
29901         * gnulib-tool (func_show_module_list): New function.
29902         (func_import, func_create_testdir): Invoke it.
29903         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29904
29905 2010-06-13  Bruno Haible  <bruno@clisp.org>
29906
29907         gnulib-tool: Align code of func_import and func_create_testdir.
29908         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29909         specified_modules.
29910
29911 2010-06-12  Jim Meyering  <meyering@redhat.com>
29912
29913         test-inttostr: avoid spurious failure on Solaris 9
29914         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29915         to accept "%ju".  Reported by Bruno Haible.
29916
29917 2010-06-11  Jim Meyering  <meyering@redhat.com>
29918
29919         test-sys_socket: mark variables as used more readably
29920         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29921         as "used" explicitly via (void) statement casts.  This is more
29922         readable than using them in an artificial return expression.
29923         Suggestion from Bruno Haible.
29924
29925 2010-06-11  Bruno Haible  <bruno@clisp.org>
29926
29927         Avoid some more warnings from "gcc -Wwrite-strings".
29928         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29929         to 'const char *'.
29930         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29931         * tests/test-c-strcasestr.c (main): Likewise.
29932         * tests/test-mbscasestr1.c (main): Likewise.
29933         * tests/test-mbscasestr2.c (main): Likewise.
29934         * tests/test-memmem.c (main): Likewise.
29935         * tests/test-strstr.c (main): Likewise.
29936         * tests/test-strcasestr.c (main): Likewise.
29937
29938 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29939
29940         init.sh: change framework_failure_ to fail with status 99, not 1
29941         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29942         automake's parallel-tests rule that this is an unexpected failure,
29943         even if the test is listed in XFAIL_TESTS.
29944
29945 2010-06-11  Jim Meyering  <meyering@redhat.com>
29946
29947         test-inttostr: avoid warnings about 4-6KB literal strings
29948         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29949         Include "macros.h", for its definition of ASSERT.
29950         (CK): s/assert/ASSERT/
29951         * modules/inttostr-tests (Files): Add macros.h.
29952
29953         init.sh: don't use $ME_ or skip_ before they are defined
29954         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29955         their first uses.  Also hoist their companions: warn_, fail_,
29956         framework_failure_, $stderr_fileno.  Prompted by a patch from
29957         Stefano Lattarini.
29958
29959         test-sys_socket: avoid set-but-not-used warnings from gcc
29960         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29961         avoid warning about set-but-not-used variables.
29962
29963         test-xvasprintf: avoid 'const' discard warnings
29964         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29965         "const" when assigning from literal strings.
29966         (test_xasprintf): Add "void" in function argument list to placate
29967         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29968
29969         tests: avoid compilation warnings in argmatch and exclude tests...
29970         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29971         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29972         Since it always exits, declare with the "noreturn" attribute.
29973         * tests/test-argmatch.c: Likewise.
29974
29975         tests: avoid 'const' discard warnings in mbsstr tests
29976         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29977         * tests/test-mbsstr2.c (main): Likewise.
29978
29979         test-verify: avoid warning from gcc's -Wmissing-declarations
29980         * tests/test-verify.c (function): Declare to be static.
29981
29982         test-inttostr.c: include <string.h> for use of strcmp
29983         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29984
29985         test-linkat: avoid failed assertion on "other" architectures
29986         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29987         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29988         sparc: https://bugs.launchpad.net/bugs/591968
29989
29990 2010-06-11  Jim Meyering  <meyering@redhat.com>
29991
29992         printf.m4: avoid autoconf's "Expanded Before Required" warning
29993         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29994         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29995         autoconf warning.
29996
29997 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29998
29999         Replacement header templates are now named with ".in", not "_".
30000         * doc/gnulib-intro.texi: Correct.
30001
30002 2010-06-10  Jim Meyering  <meyering@redhat.com>
30003
30004         inttostr-tests: depend on snprintf, not snprintf-posix
30005         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30006         snprintf-posix, to avoid this aclocal failure:
30007           missing file gnulib-tests/vasnprintf.c
30008           configure.ac:45: error: expected source file, required through \
30009           AC_LIBSOURCES, not found
30010
30011 2010-06-10  Jim Meyering  <meyering@redhat.com>
30012
30013         inttostr: add a new function, inttostr, and tests
30014         The namesake function was not available.  The existence of the
30015         template file, inttostr.c makes its addition nontrivial.
30016         * lib/anytostr.c: Rename from inttostr.c.
30017         (anytostr): Rename from inttostr.
30018         * lib/inttostr.c: New file.
30019         * modules/inttostr (Files): Add anytostr.c.
30020         (Makefile.am): Set lib_SOURCES instead of ...
30021         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30022         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30023         * lib/offtostr.c: Likewise.
30024         * lib/uinttostr.c: Likewise.
30025         * lib/umaxtostr.c: Likewise.
30026         * modules/inttostr-tests: New file.
30027         * tests/test-inttostr.c: New file.  Test these functions.
30028
30029 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30030             Bruno Haible  <bruno@clisp.org>
30031
30032         Add "Extending Gnulib" chapter to manual.
30033         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30034         chapter.
30035         (Extending Gnulib): New chapter.
30036         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30037         chapter.
30038
30039 2010-06-09  Bruno Haible  <bruno@clisp.org>
30040
30041         Avoid relocwrapper link errors due to gnulib replacement functions.
30042         * lib/areadlink.c: Use the system's malloc, realloc functions.
30043         (areadlink): Set errno to ENOMEM explicitly.
30044         * modules/areadlink (Depends-on): Remove malloc-posix.
30045         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30046
30047 2010-06-09  Bruno Haible  <bruno@clisp.org>
30048
30049         Avoid relocwrapper link errors due to gnulib replacement functions.
30050         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30051         * lib/malloca.c: Likewise.
30052         * lib/relocatable.c: Likewise.
30053         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30054         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30055         * lib/setenv.c: Use the system's malloc, realloc functions.
30056         * lib/strerror.c: Use the system's sprintf function.
30057         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30058
30059 2010-06-04  Bruno Haible  <bruno@clisp.org>
30060
30061         Prefer documented low-level autoconf macro names.
30062         * m4/lib-link.m4: Use m4_translit instead of translit.
30063         * m4/environ.m4: Likewise.
30064         * m4/mathfunc.m4: Likewise.
30065         * m4/onceonly.m4: Likewise.
30066         * m4/stdint.m4: Likewise.
30067         Suggested by Eric Blake.
30068
30069 2010-06-04  Martin Lambers  <marlam@marlam.de>
30070             Bruno Haible  <bruno@clisp.org>
30071
30072         havelib: Allow library names with '+' characters.
30073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30074         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30075
30076 2010-06-09  Bruno Haible  <bruno@clisp.org>
30077
30078         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30079         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30080         realloc failed.
30081
30082 2010-06-08  Peter Simons  <simons@cryp.to>
30083
30084         maint.mk: make the news-check rule more configurable
30085         * top/maint.mk (news-check-lines-spec): New variable.
30086         (news-check): Use "sed -n 1,10p" in place of "head".
30087
30088 2010-06-07  Jim Meyering  <meyering@redhat.com>
30089
30090         do-release-commit-and-tag: fix typo in --help
30091         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30092
30093         regex: avoid new dead-code warning with gcc-4.6.0
30094         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30095         if-block containing a while-loop.  It's been unused for at least
30096         5 years.
30097
30098 2010-06-05  Bruno Haible  <bruno@clisp.org>
30099
30100         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30101         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30102
30103 2010-06-04  Bruno Haible  <bruno@clisp.org>
30104
30105         Update to GNU gettext 0.18.1.
30106         * modules/gettext (configure.ac): Require gettext infrastructure from
30107         version 0.18.1.
30108
30109 2010-06-03  Bruno Haible  <bruno@clisp.org>
30110
30111         Don't use AC_LIBOBJ with file names in subdirectories.
30112         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30113         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30114         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30115         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30116         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30117         gl_LIBUNISTRING_LIBSOURCE.
30118         (Makefile.am): Augment lib_SOURCES here, conditionally.
30119         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30120
30121 2010-06-03  Bruno Haible  <bruno@clisp.org>
30122
30123         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30124         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30125         expansion does not end with a newline.
30126         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30127         unnecessary newline.
30128
30129 2010-06-03  Bruno Haible  <bruno@clisp.org>
30130
30131         Reduce dependencies.
30132         * tests/test-quotearg.h: New file, extracted from
30133         tests/test-quotearg.c.
30134         * tests/test-quotearg-simple.c: New file, extracted from
30135         tests/test-quotearg.c.
30136         * tests/test-quotearg.c: Don't include <ctype.h>.
30137         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30138         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30139         use_quote_double_quotes, use_quotearg_colon): Moved to
30140         tests/test-quotearg.h.
30141         (results_g, flag_results, custom_quotes, custom_results): Moved
30142         to tests/test-quotearg-simple.c.
30143         (main): Moved the part that does not depend on gettext to
30144         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30145         performed.
30146         * modules/quotearg-simple: New file.
30147         * modules/quotearg-simple-tests: New file.
30148         * modules/quotearg (Depends-on): Add quotearg-simple.
30149         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30150         (Files): Add tests/test-quotearg.h.
30151         Reported by Paolo Bonzini.
30152
30153 2010-06-03  Bruno Haible  <bruno@clisp.org>
30154
30155         Reduce dependencies.
30156         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30157
30158 2010-06-03  Bruno Haible  <bruno@clisp.org>
30159
30160         time: Undefine more broken macros.
30161         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30162         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30163         Reported by Eric Blake.
30164
30165 2010-06-03  Bruno Haible  <bruno@clisp.org>
30166
30167         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30168         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30169         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30170         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30171         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30172         Reported by Ludovic Courtès <ludo@gnu.org>.
30173
30174 2010-06-02  Eric Blake  <eblake@redhat.com>
30175
30176         time: work with mingw + pthreads-win32 library
30177         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30178         if timespec is defined only in pthread.h.
30179         * modules/time (Makefile.am): Substitute it.
30180         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30181         <pthread.h>, when needed.
30182         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30183         from the library.
30184
30185 2010-05-31  Bruno Haible  <bruno@clisp.org>
30186
30187         Avoid expanding two macros in the wrong order.
30188         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30189         gl_LIBUNISTRING if it is defined.
30190         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30191         autoconf >= 2.64.
30192         Reported by Ludovic Courtès <ludo@gnu.org>.
30193
30194 2010-05-27  Jim Meyering  <meyering@redhat.com>
30195
30196         maint.mk: also prohibit "#undef" of always-defined symbols
30197         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30198         Allow more than one space before the symbol name.
30199         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30200         the regexp uses alternation.
30201
30202 2010-05-26  Eric Blake  <eblake@redhat.com>
30203
30204         maint.mk: avoid echo -e
30205         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30206         Convert all uses of echo -* to printf.
30207         Reported by Matthias Bolte.
30208
30209 2010-05-25  Bruno Haible  <bruno@clisp.org>
30210
30211         Update to GNU gettext 0.18, part 2.
30212         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30213         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30214
30215 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30216
30217         Add missing include in test-pwrite.c.
30218         * tests/test-pwrite.c: Include string.h, for strcmp.
30219
30220 2010-05-24  Bruno Haible  <bruno@clisp.org>
30221
30222         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30223
30224 2010-05-24  Bruno Haible  <bruno@clisp.org>
30225
30226         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30227         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30228         iconveh_error argument.
30229         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30230         U_STRCONV_TO_LOCALE.
30231         * lib/unistr/u16-strcoll.c: Likewise.
30232         * lib/unistr/u32-strcoll.c: Likewise.
30233         * modules/unistr/u8-strcoll (Depends-on): Add
30234         uniconv/u8-strconv-to-enc, localcharset. Remove
30235         uniconv/u8-strconv-to-locale.
30236         (configure.ac): Bump version number.
30237         * modules/unistr/u16-strcoll (Depends-on): Add
30238         uniconv/u16-strconv-to-enc, localcharset. Remove
30239         uniconv/u16-strconv-to-locale.
30240         (configure.ac): Bump version number.
30241         * modules/unistr/u32-strcoll (Depends-on): Add
30242         uniconv/u32-strconv-to-enc, localcharset. Remove
30243         uniconv/u32-strconv-to-locale.
30244         (configure.ac): Bump version number.
30245
30246 2010-05-24  Bruno Haible  <bruno@clisp.org>
30247
30248         Avoid a test failure on NetBSD 5.0.
30249         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30250         an iconv() bug.
30251
30252 2010-05-24  Bruno Haible  <bruno@clisp.org>
30253
30254         Adjust #include directive style.
30255         * modules/regex (Includes): Recommend to write <regex.h>.
30256
30257 2010-05-24  Bruno Haible  <bruno@clisp.org>
30258
30259         regex: Don't require alloca.
30260         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30261         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30262         only inside if (0).
30263
30264 2010-05-23  Jim Meyering  <meyering@redhat.com>
30265
30266         test-renameat.c: include <sys/stat.h>
30267         * tests/test-renameat.c: Include <sys/stat.h>; required for
30268         definition of S_IS* macros.
30269
30270 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30271
30272         Update maintainer documentation for 'relocatable-prog' module.
30273         * doc/relocatable-maint.texi: Update.
30274         Comments by Bruno Haible.
30275
30276 2010-05-23  Bruno Haible  <bruno@clisp.org>
30277
30278         git-merge-changelog: Enable --split-merged-entry by default.
30279         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30280         (usage): Don't mention this option any more.
30281         Reported by Ralf Wildenhues.
30282
30283 2010-05-23  Jim Meyering  <meyering@redhat.com>
30284
30285         test-pwrite: do not leave behind a test file named "out"
30286         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30287         The trivial-looking use of init.sh is really necessary.
30288         It ensures that the temporary file, "out", is created in
30289         a temporary directory, and removed upon termination.
30290         * tests/test-pwrite.sh: Re-add file.
30291         * modules/pwrite-tests: Reference it.
30292
30293 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30294
30295         Fix output redirection buglet in init.sh.
30296         * tests/init.sh: Fix redirection of stderr.
30297
30298 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30299
30300         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30301
30302 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30303
30304         * modules/valgrind-tests: New file.
30305         * m4/valgrind-tests.m4: New file.
30306         * doc/valgrind-tests.texi: New file.
30307         * doc/gnulib.texi (Running self-tests under valgrind): New
30308         section.
30309
30310 2010-05-19  Bruno Haible  <bruno@clisp.org>
30311
30312         Clean up dead code in recent commit.
30313         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30314         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30315         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30316         Suggested by Paolo Bonzini.
30317
30318 2010-05-19  Bruno Haible  <bruno@clisp.org>
30319
30320         Avoid valgrind error reports from libunistring.
30321         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30322         * modules/libunistring (Files): Add it.
30323         * modules/libunistring-optional (Files): Likewise.
30324
30325 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30326             Bruno Haible  <bruno@clisp.org>
30327
30328         New module 'libunistring-optional'.
30329         * modules/libunistring-optional: New file.
30330         * m4/libunistring-base.m4: New file.
30331         * m4/libunistring-optional.m4: New file.
30332         * lib/unicase.in.h: Renamed from lib/unicase.h.
30333         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30334         * lib/unictype.in.h: Renamed from lib/unictype.h.
30335         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30336         * lib/uniname.in.h: Renamed from lib/uniname.h.
30337         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30338         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30339         * lib/unistr.in.h: Renamed from lib/unistr.h.
30340         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30341         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30342         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30343         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30344         gl_LIBUNISTRING. If the library was found, determine the installed
30345         version and set LIBUNISTRING_VERSION.
30346         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30347         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30348         handle a configuration option --with-included-libunistring.
30349         * modules/libunistring (Files): Add m4/absolute-header.m4.
30350         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30351         Add m4/libunistring-base.m4.
30352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30353         (Makefile.am): Build unicase.h from unicase.in.h.
30354         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30355         Add m4/libunistring-base.m4.
30356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30357         (Makefile.am): Build uniconv.h from uniconv.in.h.
30358         * modules/unictype/base (Files): Use unictype.in.h instead of
30359         unictype.h. Add m4/libunistring-base.m4.
30360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30361         (Makefile.am): Build unictype.h from unictype.in.h.
30362         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30363         Add m4/libunistring-base.m4.
30364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30365         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30366         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30367         Add m4/libunistring-base.m4.
30368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30369         (Makefile.am): Build uniname.h from uniname.in.h.
30370         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30371         Add m4/libunistring-base.m4.
30372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30373         (Makefile.am): Build uninorm.h from uninorm.in.h.
30374         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30375         unistdio.h. Add m4/libunistring-base.m4.
30376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30377         (Makefile.am): Build unistdio.h from unistdio.in.h.
30378         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30379         Add m4/libunistring-base.m4.
30380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30381         (Makefile.am): Build unistr.h from unistr.in.h.
30382         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30383         Add m4/libunistring-base.m4.
30384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30385         (Makefile.am): Build unitypes.h from unitypes.in.h.
30386         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30387         Add m4/libunistring-base.m4.
30388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30389         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30390         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30391         uniwidth.h. Add m4/libunistring-base.m4.
30392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30393         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30394         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30395         instead of augmenting lib_SOURCES.
30396         * modules/unicase/empty-suffix-context: Likewise.
30397         * modules/unicase/locale-language: Likewise.
30398         * modules/unicase/tolower: Likewise.
30399         * modules/unicase/totitle: Likewise.
30400         * modules/unicase/toupper: Likewise.
30401         * modules/unicase/u8-casecmp: Likewise.
30402         * modules/unicase/u8-casecoll: Likewise.
30403         * modules/unicase/u8-casefold: Likewise.
30404         * modules/unicase/u8-casexfrm: Likewise.
30405         * modules/unicase/u8-ct-casefold: Likewise.
30406         * modules/unicase/u8-ct-tolower: Likewise.
30407         * modules/unicase/u8-ct-totitle: Likewise.
30408         * modules/unicase/u8-ct-toupper: Likewise.
30409         * modules/unicase/u8-is-cased: Likewise.
30410         * modules/unicase/u8-is-casefolded: Likewise.
30411         * modules/unicase/u8-is-lowercase: Likewise.
30412         * modules/unicase/u8-is-titlecase: Likewise.
30413         * modules/unicase/u8-is-uppercase: Likewise.
30414         * modules/unicase/u8-prefix-context: Likewise.
30415         * modules/unicase/u8-suffix-context: Likewise.
30416         * modules/unicase/u8-tolower: Likewise.
30417         * modules/unicase/u8-totitle: Likewise.
30418         * modules/unicase/u8-toupper: Likewise.
30419         * modules/unicase/u16-casecmp: Likewise.
30420         * modules/unicase/u16-casecoll: Likewise.
30421         * modules/unicase/u16-casefold: Likewise.
30422         * modules/unicase/u16-casexfrm: Likewise.
30423         * modules/unicase/u16-ct-casefold: Likewise.
30424         * modules/unicase/u16-ct-tolower: Likewise.
30425         * modules/unicase/u16-ct-totitle: Likewise.
30426         * modules/unicase/u16-ct-toupper: Likewise.
30427         * modules/unicase/u16-is-cased: Likewise.
30428         * modules/unicase/u16-is-casefolded: Likewise.
30429         * modules/unicase/u16-is-lowercase: Likewise.
30430         * modules/unicase/u16-is-titlecase: Likewise.
30431         * modules/unicase/u16-is-uppercase: Likewise.
30432         * modules/unicase/u16-prefix-context: Likewise.
30433         * modules/unicase/u16-suffix-context: Likewise.
30434         * modules/unicase/u16-tolower: Likewise.
30435         * modules/unicase/u16-totitle: Likewise.
30436         * modules/unicase/u16-toupper: Likewise.
30437         * modules/unicase/u32-casecmp: Likewise.
30438         * modules/unicase/u32-casecoll: Likewise.
30439         * modules/unicase/u32-casefold: Likewise.
30440         * modules/unicase/u32-casexfrm: Likewise.
30441         * modules/unicase/u32-ct-casefold: Likewise.
30442         * modules/unicase/u32-ct-tolower: Likewise.
30443         * modules/unicase/u32-ct-totitle: Likewise.
30444         * modules/unicase/u32-ct-toupper: Likewise.
30445         * modules/unicase/u32-is-cased: Likewise.
30446         * modules/unicase/u32-is-casefolded: Likewise.
30447         * modules/unicase/u32-is-lowercase: Likewise.
30448         * modules/unicase/u32-is-titlecase: Likewise.
30449         * modules/unicase/u32-is-uppercase: Likewise.
30450         * modules/unicase/u32-prefix-context: Likewise.
30451         * modules/unicase/u32-suffix-context: Likewise.
30452         * modules/unicase/u32-tolower: Likewise.
30453         * modules/unicase/u32-totitle: Likewise.
30454         * modules/unicase/u32-toupper: Likewise.
30455         * modules/unicase/ulc-casecmp: Likewise.
30456         * modules/unicase/ulc-casecoll: Likewise.
30457         * modules/unicase/ulc-casexfrm: Likewise.
30458         * modules/uniconv/u8-conv-from-enc: Likewise.
30459         * modules/uniconv/u8-conv-to-enc: Likewise.
30460         * modules/uniconv/u8-strconv-from-enc: Likewise.
30461         * modules/uniconv/u8-strconv-from-locale: Likewise.
30462         * modules/uniconv/u8-strconv-to-enc: Likewise.
30463         * modules/uniconv/u8-strconv-to-locale: Likewise.
30464         * modules/uniconv/u16-conv-from-enc: Likewise.
30465         * modules/uniconv/u16-conv-to-enc: Likewise.
30466         * modules/uniconv/u16-strconv-from-enc: Likewise.
30467         * modules/uniconv/u16-strconv-from-locale: Likewise.
30468         * modules/uniconv/u16-strconv-to-enc: Likewise.
30469         * modules/uniconv/u16-strconv-to-locale: Likewise.
30470         * modules/uniconv/u32-conv-from-enc: Likewise.
30471         * modules/uniconv/u32-conv-to-enc: Likewise.
30472         * modules/uniconv/u32-strconv-from-enc: Likewise.
30473         * modules/uniconv/u32-strconv-from-locale: Likewise.
30474         * modules/uniconv/u32-strconv-to-enc: Likewise.
30475         * modules/uniconv/u32-strconv-to-locale: Likewise.
30476         * modules/unictype/bidicategory-byname: Likewise.
30477         * modules/unictype/bidicategory-name: Likewise.
30478         * modules/unictype/bidicategory-of: Likewise.
30479         * modules/unictype/bidicategory-test: Likewise.
30480         * modules/unictype/block-list: Likewise.
30481         * modules/unictype/block-test: Likewise.
30482         * modules/unictype/category-C: Likewise.
30483         * modules/unictype/category-Cc: Likewise.
30484         * modules/unictype/category-Cf: Likewise.
30485         * modules/unictype/category-Cn: Likewise.
30486         * modules/unictype/category-Co: Likewise.
30487         * modules/unictype/category-Cs: Likewise.
30488         * modules/unictype/category-L: Likewise.
30489         * modules/unictype/category-Ll: Likewise.
30490         * modules/unictype/category-Lm: Likewise.
30491         * modules/unictype/category-Lo: Likewise.
30492         * modules/unictype/category-Lt: Likewise.
30493         * modules/unictype/category-Lu: Likewise.
30494         * modules/unictype/category-M: Likewise.
30495         * modules/unictype/category-Mc: Likewise.
30496         * modules/unictype/category-Me: Likewise.
30497         * modules/unictype/category-Mn: Likewise.
30498         * modules/unictype/category-N: Likewise.
30499         * modules/unictype/category-Nd: Likewise.
30500         * modules/unictype/category-Nl: Likewise.
30501         * modules/unictype/category-No: Likewise.
30502         * modules/unictype/category-P: Likewise.
30503         * modules/unictype/category-Pc: Likewise.
30504         * modules/unictype/category-Pd: Likewise.
30505         * modules/unictype/category-Pe: Likewise.
30506         * modules/unictype/category-Pf: Likewise.
30507         * modules/unictype/category-Pi: Likewise.
30508         * modules/unictype/category-Po: Likewise.
30509         * modules/unictype/category-Ps: Likewise.
30510         * modules/unictype/category-S: Likewise.
30511         * modules/unictype/category-Sc: Likewise.
30512         * modules/unictype/category-Sk: Likewise.
30513         * modules/unictype/category-Sm: Likewise.
30514         * modules/unictype/category-So: Likewise.
30515         * modules/unictype/category-Z: Likewise.
30516         * modules/unictype/category-Zl: Likewise.
30517         * modules/unictype/category-Zp: Likewise.
30518         * modules/unictype/category-Zs: Likewise.
30519         * modules/unictype/category-and: Likewise.
30520         * modules/unictype/category-and-not: Likewise.
30521         * modules/unictype/category-byname: Likewise.
30522         * modules/unictype/category-name: Likewise.
30523         * modules/unictype/category-none: Likewise.
30524         * modules/unictype/category-of: Likewise.
30525         * modules/unictype/category-or: Likewise.
30526         * modules/unictype/category-test: Likewise.
30527         * modules/unictype/combining-class: Likewise.
30528         * modules/unictype/ctype-alnum: Likewise.
30529         * modules/unictype/ctype-alpha: Likewise.
30530         * modules/unictype/ctype-blank: Likewise.
30531         * modules/unictype/ctype-cntrl: Likewise.
30532         * modules/unictype/ctype-digit: Likewise.
30533         * modules/unictype/ctype-graph: Likewise.
30534         * modules/unictype/ctype-lower: Likewise.
30535         * modules/unictype/ctype-print: Likewise.
30536         * modules/unictype/ctype-punct: Likewise.
30537         * modules/unictype/ctype-space: Likewise.
30538         * modules/unictype/ctype-upper: Likewise.
30539         * modules/unictype/ctype-xdigit: Likewise.
30540         * modules/unictype/decimal-digit: Likewise.
30541         * modules/unictype/digit: Likewise.
30542         * modules/unictype/mirror: Likewise.
30543         * modules/unictype/numeric: Likewise.
30544         * modules/unictype/property-alphabetic: Likewise.
30545         * modules/unictype/property-ascii-hex-digit: Likewise.
30546         * modules/unictype/property-bidi-arabic-digit: Likewise.
30547         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30548         * modules/unictype/property-bidi-block-separator: Likewise.
30549         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30550         * modules/unictype/property-bidi-common-separator: Likewise.
30551         * modules/unictype/property-bidi-control: Likewise.
30552         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30553         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30554         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30555         * modules/unictype/property-bidi-european-digit: Likewise.
30556         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30557         * modules/unictype/property-bidi-left-to-right: Likewise.
30558         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30559         * modules/unictype/property-bidi-other-neutral: Likewise.
30560         * modules/unictype/property-bidi-pdf: Likewise.
30561         * modules/unictype/property-bidi-segment-separator: Likewise.
30562         * modules/unictype/property-bidi-whitespace: Likewise.
30563         * modules/unictype/property-byname: Likewise.
30564         * modules/unictype/property-combining: Likewise.
30565         * modules/unictype/property-composite: Likewise.
30566         * modules/unictype/property-currency-symbol: Likewise.
30567         * modules/unictype/property-dash: Likewise.
30568         * modules/unictype/property-decimal-digit: Likewise.
30569         * modules/unictype/property-default-ignorable-code-point: Likewise.
30570         * modules/unictype/property-deprecated: Likewise.
30571         * modules/unictype/property-diacritic: Likewise.
30572         * modules/unictype/property-extender: Likewise.
30573         * modules/unictype/property-format-control: Likewise.
30574         * modules/unictype/property-grapheme-base: Likewise.
30575         * modules/unictype/property-grapheme-extend: Likewise.
30576         * modules/unictype/property-grapheme-link: Likewise.
30577         * modules/unictype/property-hex-digit: Likewise.
30578         * modules/unictype/property-hyphen: Likewise.
30579         * modules/unictype/property-id-continue: Likewise.
30580         * modules/unictype/property-id-start: Likewise.
30581         * modules/unictype/property-ideographic: Likewise.
30582         * modules/unictype/property-ids-binary-operator: Likewise.
30583         * modules/unictype/property-ids-trinary-operator: Likewise.
30584         * modules/unictype/property-ignorable-control: Likewise.
30585         * modules/unictype/property-iso-control: Likewise.
30586         * modules/unictype/property-join-control: Likewise.
30587         * modules/unictype/property-left-of-pair: Likewise.
30588         * modules/unictype/property-line-separator: Likewise.
30589         * modules/unictype/property-logical-order-exception: Likewise.
30590         * modules/unictype/property-lowercase: Likewise.
30591         * modules/unictype/property-math: Likewise.
30592         * modules/unictype/property-non-break: Likewise.
30593         * modules/unictype/property-not-a-character: Likewise.
30594         * modules/unictype/property-numeric: Likewise.
30595         * modules/unictype/property-other-alphabetic: Likewise.
30596         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30597         * modules/unictype/property-other-grapheme-extend: Likewise.
30598         * modules/unictype/property-other-id-continue: Likewise.
30599         * modules/unictype/property-other-id-start: Likewise.
30600         * modules/unictype/property-other-lowercase: Likewise.
30601         * modules/unictype/property-other-math: Likewise.
30602         * modules/unictype/property-other-uppercase: Likewise.
30603         * modules/unictype/property-paired-punctuation: Likewise.
30604         * modules/unictype/property-paragraph-separator: Likewise.
30605         * modules/unictype/property-pattern-syntax: Likewise.
30606         * modules/unictype/property-pattern-white-space: Likewise.
30607         * modules/unictype/property-private-use: Likewise.
30608         * modules/unictype/property-punctuation: Likewise.
30609         * modules/unictype/property-quotation-mark: Likewise.
30610         * modules/unictype/property-radical: Likewise.
30611         * modules/unictype/property-sentence-terminal: Likewise.
30612         * modules/unictype/property-soft-dotted: Likewise.
30613         * modules/unictype/property-space: Likewise.
30614         * modules/unictype/property-terminal-punctuation: Likewise.
30615         * modules/unictype/property-test: Likewise.
30616         * modules/unictype/property-titlecase: Likewise.
30617         * modules/unictype/property-unassigned-code-value: Likewise.
30618         * modules/unictype/property-unified-ideograph: Likewise.
30619         * modules/unictype/property-uppercase: Likewise.
30620         * modules/unictype/property-variation-selector: Likewise.
30621         * modules/unictype/property-white-space: Likewise.
30622         * modules/unictype/property-xid-continue: Likewise.
30623         * modules/unictype/property-xid-start: Likewise.
30624         * modules/unictype/property-zero-width: Likewise.
30625         * modules/unictype/scripts: Likewise.
30626         * modules/unictype/syntax-c-ident: Likewise.
30627         * modules/unictype/syntax-c-whitespace: Likewise.
30628         * modules/unictype/syntax-java-ident: Likewise.
30629         * modules/unictype/syntax-java-whitespace: Likewise.
30630         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30631         * modules/unilbrk/u8-width-linebreaks: Likewise.
30632         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30633         * modules/unilbrk/u16-width-linebreaks: Likewise.
30634         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30635         * modules/unilbrk/u32-width-linebreaks: Likewise.
30636         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30637         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30638         * modules/uniname/uniname: Likewise.
30639         * modules/uninorm/canonical-decomposition: Likewise.
30640         * modules/uninorm/composition: Likewise.
30641         * modules/uninorm/decomposing-form: Likewise.
30642         * modules/uninorm/decomposition: Likewise.
30643         * modules/uninorm/filter: Likewise.
30644         * modules/uninorm/nfc: Likewise.
30645         * modules/uninorm/nfd: Likewise.
30646         * modules/uninorm/nfkc: Likewise.
30647         * modules/uninorm/nfkd: Likewise.
30648         * modules/uninorm/u8-normalize: Likewise.
30649         * modules/uninorm/u8-normcmp: Likewise.
30650         * modules/uninorm/u8-normcoll: Likewise.
30651         * modules/uninorm/u8-normxfrm: Likewise.
30652         * modules/uninorm/u16-normalize: Likewise.
30653         * modules/uninorm/u16-normcmp: Likewise.
30654         * modules/uninorm/u16-normcoll: Likewise.
30655         * modules/uninorm/u16-normxfrm: Likewise.
30656         * modules/uninorm/u32-normalize: Likewise.
30657         * modules/uninorm/u32-normcmp: Likewise.
30658         * modules/uninorm/u32-normcoll: Likewise.
30659         * modules/uninorm/u32-normxfrm: Likewise.
30660         * modules/unistdio/u8-asnprintf: Likewise.
30661         * modules/unistdio/u8-asprintf: Likewise.
30662         * modules/unistdio/u8-snprintf: Likewise.
30663         * modules/unistdio/u8-sprintf: Likewise.
30664         * modules/unistdio/u8-u8-asnprintf: Likewise.
30665         * modules/unistdio/u8-u8-asprintf: Likewise.
30666         * modules/unistdio/u8-u8-snprintf: Likewise.
30667         * modules/unistdio/u8-u8-sprintf: Likewise.
30668         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30669         * modules/unistdio/u8-u8-vasprintf: Likewise.
30670         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30671         * modules/unistdio/u8-u8-vsprintf: Likewise.
30672         * modules/unistdio/u8-vasnprintf: Likewise.
30673         * modules/unistdio/u8-vasprintf: Likewise.
30674         * modules/unistdio/u8-vsnprintf: Likewise.
30675         * modules/unistdio/u8-vsprintf: Likewise.
30676         * modules/unistdio/u16-asnprintf: Likewise.
30677         * modules/unistdio/u16-asprintf: Likewise.
30678         * modules/unistdio/u16-snprintf: Likewise.
30679         * modules/unistdio/u16-sprintf: Likewise.
30680         * modules/unistdio/u16-u16-asnprintf: Likewise.
30681         * modules/unistdio/u16-u16-asprintf: Likewise.
30682         * modules/unistdio/u16-u16-snprintf: Likewise.
30683         * modules/unistdio/u16-u16-sprintf: Likewise.
30684         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30685         * modules/unistdio/u16-u16-vasprintf: Likewise.
30686         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30687         * modules/unistdio/u16-u16-vsprintf: Likewise.
30688         * modules/unistdio/u16-vasnprintf: Likewise.
30689         * modules/unistdio/u16-vasprintf: Likewise.
30690         * modules/unistdio/u16-vsnprintf: Likewise.
30691         * modules/unistdio/u16-vsprintf: Likewise.
30692         * modules/unistdio/u32-asnprintf: Likewise.
30693         * modules/unistdio/u32-asprintf: Likewise.
30694         * modules/unistdio/u32-snprintf: Likewise.
30695         * modules/unistdio/u32-sprintf: Likewise.
30696         * modules/unistdio/u32-u32-asnprintf: Likewise.
30697         * modules/unistdio/u32-u32-asprintf: Likewise.
30698         * modules/unistdio/u32-u32-snprintf: Likewise.
30699         * modules/unistdio/u32-u32-sprintf: Likewise.
30700         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30701         * modules/unistdio/u32-u32-vasprintf: Likewise.
30702         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30703         * modules/unistdio/u32-u32-vsprintf: Likewise.
30704         * modules/unistdio/u32-vasnprintf: Likewise.
30705         * modules/unistdio/u32-vasprintf: Likewise.
30706         * modules/unistdio/u32-vsnprintf: Likewise.
30707         * modules/unistdio/u32-vsprintf: Likewise.
30708         * modules/unistdio/ulc-asnprintf: Likewise.
30709         * modules/unistdio/ulc-asprintf: Likewise.
30710         * modules/unistdio/ulc-fprintf: Likewise.
30711         * modules/unistdio/ulc-snprintf: Likewise.
30712         * modules/unistdio/ulc-sprintf: Likewise.
30713         * modules/unistdio/ulc-vasnprintf: Likewise.
30714         * modules/unistdio/ulc-vasprintf: Likewise.
30715         * modules/unistdio/ulc-vfprintf: Likewise.
30716         * modules/unistdio/ulc-vsnprintf: Likewise.
30717         * modules/unistdio/ulc-vsprintf: Likewise.
30718         * modules/unistr/u8-check: Likewise.
30719         * modules/unistr/u8-chr: Likewise.
30720         * modules/unistr/u8-cmp: Likewise.
30721         * modules/unistr/u8-cmp2: Likewise.
30722         * modules/unistr/u8-cpy: Likewise.
30723         * modules/unistr/u8-cpy-alloc: Likewise.
30724         * modules/unistr/u8-endswith: Likewise.
30725         * modules/unistr/u8-mblen: Likewise.
30726         * modules/unistr/u8-mbsnlen: Likewise.
30727         * modules/unistr/u8-mbtouc: Likewise.
30728         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30729         * modules/unistr/u8-mbtoucr: Likewise.
30730         * modules/unistr/u8-move: Likewise.
30731         * modules/unistr/u8-next: Likewise.
30732         * modules/unistr/u8-prev: Likewise.
30733         * modules/unistr/u8-set: Likewise.
30734         * modules/unistr/u8-startswith: Likewise.
30735         * modules/unistr/u8-stpcpy: Likewise.
30736         * modules/unistr/u8-stpncpy: Likewise.
30737         * modules/unistr/u8-strcat: Likewise.
30738         * modules/unistr/u8-strchr: Likewise.
30739         * modules/unistr/u8-strcmp: Likewise.
30740         * modules/unistr/u8-strcoll: Likewise.
30741         * modules/unistr/u8-strcpy: Likewise.
30742         * modules/unistr/u8-strcspn: Likewise.
30743         * modules/unistr/u8-strdup: Likewise.
30744         * modules/unistr/u8-strlen: Likewise.
30745         * modules/unistr/u8-strmblen: Likewise.
30746         * modules/unistr/u8-strmbtouc: Likewise.
30747         * modules/unistr/u8-strncat: Likewise.
30748         * modules/unistr/u8-strncmp: Likewise.
30749         * modules/unistr/u8-strncpy: Likewise.
30750         * modules/unistr/u8-strnlen: Likewise.
30751         * modules/unistr/u8-strpbrk: Likewise.
30752         * modules/unistr/u8-strrchr: Likewise.
30753         * modules/unistr/u8-strspn: Likewise.
30754         * modules/unistr/u8-strstr: Likewise.
30755         * modules/unistr/u8-strtok: Likewise.
30756         * modules/unistr/u8-to-u16: Likewise.
30757         * modules/unistr/u8-to-u32: Likewise.
30758         * modules/unistr/u8-uctomb: Likewise.
30759         * modules/unistr/u16-check: Likewise.
30760         * modules/unistr/u16-chr: Likewise.
30761         * modules/unistr/u16-cmp: Likewise.
30762         * modules/unistr/u16-cmp2: Likewise.
30763         * modules/unistr/u16-cpy: Likewise.
30764         * modules/unistr/u16-cpy-alloc: Likewise.
30765         * modules/unistr/u16-endswith: Likewise.
30766         * modules/unistr/u16-mblen: Likewise.
30767         * modules/unistr/u16-mbsnlen: Likewise.
30768         * modules/unistr/u16-mbtouc: Likewise.
30769         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30770         * modules/unistr/u16-mbtoucr: Likewise.
30771         * modules/unistr/u16-move: Likewise.
30772         * modules/unistr/u16-next: Likewise.
30773         * modules/unistr/u16-prev: Likewise.
30774         * modules/unistr/u16-set: Likewise.
30775         * modules/unistr/u16-startswith: Likewise.
30776         * modules/unistr/u16-stpcpy: Likewise.
30777         * modules/unistr/u16-stpncpy: Likewise.
30778         * modules/unistr/u16-strcat: Likewise.
30779         * modules/unistr/u16-strchr: Likewise.
30780         * modules/unistr/u16-strcmp: Likewise.
30781         * modules/unistr/u16-strcoll: Likewise.
30782         * modules/unistr/u16-strcpy: Likewise.
30783         * modules/unistr/u16-strcspn: Likewise.
30784         * modules/unistr/u16-strdup: Likewise.
30785         * modules/unistr/u16-strlen: Likewise.
30786         * modules/unistr/u16-strmblen: Likewise.
30787         * modules/unistr/u16-strmbtouc: Likewise.
30788         * modules/unistr/u16-strncat: Likewise.
30789         * modules/unistr/u16-strncmp: Likewise.
30790         * modules/unistr/u16-strncpy: Likewise.
30791         * modules/unistr/u16-strnlen: Likewise.
30792         * modules/unistr/u16-strpbrk: Likewise.
30793         * modules/unistr/u16-strrchr: Likewise.
30794         * modules/unistr/u16-strspn: Likewise.
30795         * modules/unistr/u16-strstr: Likewise.
30796         * modules/unistr/u16-strtok: Likewise.
30797         * modules/unistr/u16-to-u32: Likewise.
30798         * modules/unistr/u16-to-u8: Likewise.
30799         * modules/unistr/u16-uctomb: Likewise.
30800         * modules/unistr/u32-check: Likewise.
30801         * modules/unistr/u32-chr: Likewise.
30802         * modules/unistr/u32-cmp: Likewise.
30803         * modules/unistr/u32-cmp2: Likewise.
30804         * modules/unistr/u32-cpy: Likewise.
30805         * modules/unistr/u32-cpy-alloc: Likewise.
30806         * modules/unistr/u32-endswith: Likewise.
30807         * modules/unistr/u32-mblen: Likewise.
30808         * modules/unistr/u32-mbsnlen: Likewise.
30809         * modules/unistr/u32-mbtouc: Likewise.
30810         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30811         * modules/unistr/u32-mbtoucr: Likewise.
30812         * modules/unistr/u32-move: Likewise.
30813         * modules/unistr/u32-next: Likewise.
30814         * modules/unistr/u32-prev: Likewise.
30815         * modules/unistr/u32-set: Likewise.
30816         * modules/unistr/u32-startswith: Likewise.
30817         * modules/unistr/u32-stpcpy: Likewise.
30818         * modules/unistr/u32-stpncpy: Likewise.
30819         * modules/unistr/u32-strcat: Likewise.
30820         * modules/unistr/u32-strchr: Likewise.
30821         * modules/unistr/u32-strcmp: Likewise.
30822         * modules/unistr/u32-strcoll: Likewise.
30823         * modules/unistr/u32-strcpy: Likewise.
30824         * modules/unistr/u32-strcspn: Likewise.
30825         * modules/unistr/u32-strdup: Likewise.
30826         * modules/unistr/u32-strlen: Likewise.
30827         * modules/unistr/u32-strmblen: Likewise.
30828         * modules/unistr/u32-strmbtouc: Likewise.
30829         * modules/unistr/u32-strncat: Likewise.
30830         * modules/unistr/u32-strncmp: Likewise.
30831         * modules/unistr/u32-strncpy: Likewise.
30832         * modules/unistr/u32-strnlen: Likewise.
30833         * modules/unistr/u32-strpbrk: Likewise.
30834         * modules/unistr/u32-strrchr: Likewise.
30835         * modules/unistr/u32-strspn: Likewise.
30836         * modules/unistr/u32-strstr: Likewise.
30837         * modules/unistr/u32-strtok: Likewise.
30838         * modules/unistr/u32-to-u16: Likewise.
30839         * modules/unistr/u32-to-u8: Likewise.
30840         * modules/unistr/u32-uctomb: Likewise.
30841         * modules/uniwbrk/u8-wordbreaks: Likewise.
30842         * modules/uniwbrk/u16-wordbreaks: Likewise.
30843         * modules/uniwbrk/u32-wordbreaks: Likewise.
30844         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30845         * modules/uniwbrk/wordbreak-property: Likewise.
30846         * modules/uniwidth/u8-strwidth: Likewise.
30847         * modules/uniwidth/u8-width: Likewise.
30848         * modules/uniwidth/u16-strwidth: Likewise.
30849         * modules/uniwidth/u16-width: Likewise.
30850         * modules/uniwidth/u32-strwidth: Likewise.
30851         * modules/uniwidth/u32-width: Likewise.
30852         * modules/uniwidth/width: Likewise.
30853         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30854         with $(LIBUNISTRING).
30855         * modules/unicase/ignorable-tests: Likewise.
30856         * modules/unicase/locale-language-tests: Likewise.
30857         * modules/unicase/tolower-tests: Likewise.
30858         * modules/unicase/totitle-tests: Likewise.
30859         * modules/unicase/toupper-tests: Likewise.
30860         * modules/unicase/u8-casecmp-tests: Likewise.
30861         * modules/unicase/u8-casecoll-tests: Likewise.
30862         * modules/unicase/u8-casefold-tests: Likewise.
30863         * modules/unicase/u8-is-cased-tests: Likewise.
30864         * modules/unicase/u8-is-casefolded-tests: Likewise.
30865         * modules/unicase/u8-is-lowercase-tests: Likewise.
30866         * modules/unicase/u8-is-titlecase-tests: Likewise.
30867         * modules/unicase/u8-is-uppercase-tests: Likewise.
30868         * modules/unicase/u8-tolower-tests: Likewise.
30869         * modules/unicase/u8-totitle-tests: Likewise.
30870         * modules/unicase/u8-toupper-tests: Likewise.
30871         * modules/unicase/u16-casecmp-tests: Likewise.
30872         * modules/unicase/u16-casecoll-tests: Likewise.
30873         * modules/unicase/u16-casefold-tests: Likewise.
30874         * modules/unicase/u16-is-cased-tests: Likewise.
30875         * modules/unicase/u16-is-casefolded-tests: Likewise.
30876         * modules/unicase/u16-is-lowercase-tests: Likewise.
30877         * modules/unicase/u16-is-titlecase-tests: Likewise.
30878         * modules/unicase/u16-is-uppercase-tests: Likewise.
30879         * modules/unicase/u16-tolower-tests: Likewise.
30880         * modules/unicase/u16-totitle-tests: Likewise.
30881         * modules/unicase/u16-toupper-tests: Likewise.
30882         * modules/unicase/u32-casecmp-tests: Likewise.
30883         * modules/unicase/u32-casecoll-tests: Likewise.
30884         * modules/unicase/u32-casefold-tests: Likewise.
30885         * modules/unicase/u32-is-cased-tests: Likewise.
30886         * modules/unicase/u32-is-casefolded-tests: Likewise.
30887         * modules/unicase/u32-is-lowercase-tests: Likewise.
30888         * modules/unicase/u32-is-titlecase-tests: Likewise.
30889         * modules/unicase/u32-is-uppercase-tests: Likewise.
30890         * modules/unicase/u32-tolower-tests: Likewise.
30891         * modules/unicase/u32-totitle-tests: Likewise.
30892         * modules/unicase/u32-toupper-tests: Likewise.
30893         * modules/unicase/ulc-casecmp-tests: Likewise.
30894         * modules/unicase/ulc-casecoll-tests: Likewise.
30895         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30896         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30897         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30898         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30899         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30900         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30901         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30902         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30903         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30904         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30905         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30906         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30907         * modules/unictype/bidicategory-byname-tests: Likewise.
30908         * modules/unictype/bidicategory-name-tests: Likewise.
30909         * modules/unictype/bidicategory-of-tests: Likewise.
30910         * modules/unictype/bidicategory-test-tests: Likewise.
30911         * modules/unictype/block-list-tests: Likewise.
30912         * modules/unictype/block-of-tests: Likewise.
30913         * modules/unictype/block-test-tests: Likewise.
30914         * modules/unictype/category-C-tests: Likewise.
30915         * modules/unictype/category-Cc-tests: Likewise.
30916         * modules/unictype/category-Cf-tests: Likewise.
30917         * modules/unictype/category-Cn-tests: Likewise.
30918         * modules/unictype/category-Co-tests: Likewise.
30919         * modules/unictype/category-Cs-tests: Likewise.
30920         * modules/unictype/category-L-tests: Likewise.
30921         * modules/unictype/category-Ll-tests: Likewise.
30922         * modules/unictype/category-Lm-tests: Likewise.
30923         * modules/unictype/category-Lo-tests: Likewise.
30924         * modules/unictype/category-Lt-tests: Likewise.
30925         * modules/unictype/category-Lu-tests: Likewise.
30926         * modules/unictype/category-M-tests: Likewise.
30927         * modules/unictype/category-Mc-tests: Likewise.
30928         * modules/unictype/category-Me-tests: Likewise.
30929         * modules/unictype/category-Mn-tests: Likewise.
30930         * modules/unictype/category-N-tests: Likewise.
30931         * modules/unictype/category-Nd-tests: Likewise.
30932         * modules/unictype/category-Nl-tests: Likewise.
30933         * modules/unictype/category-No-tests: Likewise.
30934         * modules/unictype/category-P-tests: Likewise.
30935         * modules/unictype/category-Pc-tests: Likewise.
30936         * modules/unictype/category-Pd-tests: Likewise.
30937         * modules/unictype/category-Pe-tests: Likewise.
30938         * modules/unictype/category-Pf-tests: Likewise.
30939         * modules/unictype/category-Pi-tests: Likewise.
30940         * modules/unictype/category-Po-tests: Likewise.
30941         * modules/unictype/category-Ps-tests: Likewise.
30942         * modules/unictype/category-S-tests: Likewise.
30943         * modules/unictype/category-Sc-tests: Likewise.
30944         * modules/unictype/category-Sk-tests: Likewise.
30945         * modules/unictype/category-Sm-tests: Likewise.
30946         * modules/unictype/category-So-tests: Likewise.
30947         * modules/unictype/category-Z-tests: Likewise.
30948         * modules/unictype/category-Zl-tests: Likewise.
30949         * modules/unictype/category-Zp-tests: Likewise.
30950         * modules/unictype/category-Zs-tests: Likewise.
30951         * modules/unictype/category-and-not-tests: Likewise.
30952         * modules/unictype/category-and-tests: Likewise.
30953         * modules/unictype/category-byname-tests: Likewise.
30954         * modules/unictype/category-name-tests: Likewise.
30955         * modules/unictype/category-none-tests: Likewise.
30956         * modules/unictype/category-of-tests: Likewise.
30957         * modules/unictype/category-or-tests: Likewise.
30958         * modules/unictype/category-test-withtable-tests: Likewise.
30959         * modules/unictype/combining-class-tests: Likewise.
30960         * modules/unictype/ctype-alnum-tests: Likewise.
30961         * modules/unictype/ctype-alpha-tests: Likewise.
30962         * modules/unictype/ctype-blank-tests: Likewise.
30963         * modules/unictype/ctype-cntrl-tests: Likewise.
30964         * modules/unictype/ctype-digit-tests: Likewise.
30965         * modules/unictype/ctype-graph-tests: Likewise.
30966         * modules/unictype/ctype-lower-tests: Likewise.
30967         * modules/unictype/ctype-print-tests: Likewise.
30968         * modules/unictype/ctype-punct-tests: Likewise.
30969         * modules/unictype/ctype-space-tests: Likewise.
30970         * modules/unictype/ctype-upper-tests: Likewise.
30971         * modules/unictype/ctype-xdigit-tests: Likewise.
30972         * modules/unictype/decimal-digit-tests: Likewise.
30973         * modules/unictype/digit-tests: Likewise.
30974         * modules/unictype/mirror-tests: Likewise.
30975         * modules/unictype/numeric-tests: Likewise.
30976         * modules/unictype/property-alphabetic-tests: Likewise.
30977         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30978         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30979         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30980         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30981         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30982         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30983         * modules/unictype/property-bidi-control-tests: Likewise.
30984         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30985         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30986         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30987         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30988         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30989         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30990         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30991         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30992         * modules/unictype/property-bidi-pdf-tests: Likewise.
30993         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30994         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30995         * modules/unictype/property-byname-tests: Likewise.
30996         * modules/unictype/property-combining-tests: Likewise.
30997         * modules/unictype/property-composite-tests: Likewise.
30998         * modules/unictype/property-currency-symbol-tests: Likewise.
30999         * modules/unictype/property-dash-tests: Likewise.
31000         * modules/unictype/property-decimal-digit-tests: Likewise.
31001         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31002         * modules/unictype/property-deprecated-tests: Likewise.
31003         * modules/unictype/property-diacritic-tests: Likewise.
31004         * modules/unictype/property-extender-tests: Likewise.
31005         * modules/unictype/property-format-control-tests: Likewise.
31006         * modules/unictype/property-grapheme-base-tests: Likewise.
31007         * modules/unictype/property-grapheme-extend-tests: Likewise.
31008         * modules/unictype/property-grapheme-link-tests: Likewise.
31009         * modules/unictype/property-hex-digit-tests: Likewise.
31010         * modules/unictype/property-hyphen-tests: Likewise.
31011         * modules/unictype/property-id-continue-tests: Likewise.
31012         * modules/unictype/property-id-start-tests: Likewise.
31013         * modules/unictype/property-ideographic-tests: Likewise.
31014         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31015         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31016         * modules/unictype/property-ignorable-control-tests: Likewise.
31017         * modules/unictype/property-iso-control-tests: Likewise.
31018         * modules/unictype/property-join-control-tests: Likewise.
31019         * modules/unictype/property-left-of-pair-tests: Likewise.
31020         * modules/unictype/property-line-separator-tests: Likewise.
31021         * modules/unictype/property-logical-order-exception-tests: Likewise.
31022         * modules/unictype/property-lowercase-tests: Likewise.
31023         * modules/unictype/property-math-tests: Likewise.
31024         * modules/unictype/property-non-break-tests: Likewise.
31025         * modules/unictype/property-not-a-character-tests: Likewise.
31026         * modules/unictype/property-numeric-tests: Likewise.
31027         * modules/unictype/property-other-alphabetic-tests: Likewise.
31028         * modules/unictype/property-other-default-ignorable-code-point-tests:
31029         Likewise.
31030         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31031         * modules/unictype/property-other-id-continue-tests: Likewise.
31032         * modules/unictype/property-other-id-start-tests: Likewise.
31033         * modules/unictype/property-other-lowercase-tests: Likewise.
31034         * modules/unictype/property-other-math-tests: Likewise.
31035         * modules/unictype/property-other-uppercase-tests: Likewise.
31036         * modules/unictype/property-paired-punctuation-tests: Likewise.
31037         * modules/unictype/property-paragraph-separator-tests: Likewise.
31038         * modules/unictype/property-pattern-syntax-tests: Likewise.
31039         * modules/unictype/property-pattern-white-space-tests: Likewise.
31040         * modules/unictype/property-private-use-tests: Likewise.
31041         * modules/unictype/property-punctuation-tests: Likewise.
31042         * modules/unictype/property-quotation-mark-tests: Likewise.
31043         * modules/unictype/property-radical-tests: Likewise.
31044         * modules/unictype/property-sentence-terminal-tests: Likewise.
31045         * modules/unictype/property-soft-dotted-tests: Likewise.
31046         * modules/unictype/property-space-tests: Likewise.
31047         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31048         * modules/unictype/property-test-tests: Likewise.
31049         * modules/unictype/property-titlecase-tests: Likewise.
31050         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31051         * modules/unictype/property-unified-ideograph-tests: Likewise.
31052         * modules/unictype/property-uppercase-tests: Likewise.
31053         * modules/unictype/property-variation-selector-tests: Likewise.
31054         * modules/unictype/property-white-space-tests: Likewise.
31055         * modules/unictype/property-xid-continue-tests: Likewise.
31056         * modules/unictype/property-xid-start-tests: Likewise.
31057         * modules/unictype/property-zero-width-tests: Likewise.
31058         * modules/unictype/scripts-tests: Likewise.
31059         * modules/unictype/syntax-c-ident-tests: Likewise.
31060         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31061         * modules/unictype/syntax-java-ident-tests: Likewise.
31062         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31063         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31064         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31065         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31066         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31067         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31068         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31069         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31070         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31071         * modules/uniname/uniname-tests: Likewise.
31072         * modules/uninorm/canonical-decomposition-tests: Likewise.
31073         * modules/uninorm/compat-decomposition-tests: Likewise.
31074         * modules/uninorm/composition-tests: Likewise.
31075         * modules/uninorm/decomposing-form-tests: Likewise.
31076         * modules/uninorm/decomposition-tests: Likewise.
31077         * modules/uninorm/filter-tests: Likewise.
31078         * modules/uninorm/nfc-tests: Likewise.
31079         * modules/uninorm/nfd-tests: Likewise.
31080         * modules/uninorm/nfkc-tests: Likewise.
31081         * modules/uninorm/nfkd-tests: Likewise.
31082         * modules/uninorm/u8-normcmp-tests: Likewise.
31083         * modules/uninorm/u8-normcoll-tests: Likewise.
31084         * modules/uninorm/u16-normcmp-tests: Likewise.
31085         * modules/uninorm/u16-normcoll-tests: Likewise.
31086         * modules/uninorm/u32-normcmp-tests: Likewise.
31087         * modules/uninorm/u32-normcoll-tests: Likewise.
31088         * modules/unistdio/u8-asnprintf-tests: Likewise.
31089         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31090         * modules/unistdio/u8-vasprintf-tests: Likewise.
31091         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31092         * modules/unistdio/u8-vsprintf-tests: Likewise.
31093         * modules/unistdio/u16-asnprintf-tests: Likewise.
31094         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31095         * modules/unistdio/u16-vasprintf-tests: Likewise.
31096         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31097         * modules/unistdio/u16-vsprintf-tests: Likewise.
31098         * modules/unistdio/u32-asnprintf-tests: Likewise.
31099         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31100         * modules/unistdio/u32-vasprintf-tests: Likewise.
31101         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31102         * modules/unistdio/u32-vsprintf-tests: Likewise.
31103         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31104         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31105         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31106         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31107         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31108         * modules/unistr/u8-check-tests: Likewise.
31109         * modules/unistr/u8-chr-tests: Likewise.
31110         * modules/unistr/u8-cmp-tests: Likewise.
31111         * modules/unistr/u8-cmp2-tests: Likewise.
31112         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31113         * modules/unistr/u8-cpy-tests: Likewise.
31114         * modules/unistr/u8-mblen-tests: Likewise.
31115         * modules/unistr/u8-mbsnlen-tests: Likewise.
31116         * modules/unistr/u8-mbtouc-tests: Likewise.
31117         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31118         * modules/unistr/u8-mbtoucr-tests: Likewise.
31119         * modules/unistr/u8-move-tests: Likewise.
31120         * modules/unistr/u8-next-tests: Likewise.
31121         * modules/unistr/u8-prev-tests: Likewise.
31122         * modules/unistr/u8-set-tests: Likewise.
31123         * modules/unistr/u8-stpcpy-tests: Likewise.
31124         * modules/unistr/u8-stpncpy-tests: Likewise.
31125         * modules/unistr/u8-strcat-tests: Likewise.
31126         * modules/unistr/u8-strcmp-tests: Likewise.
31127         * modules/unistr/u8-strcoll-tests: Likewise.
31128         * modules/unistr/u8-strcpy-tests: Likewise.
31129         * modules/unistr/u8-strdup-tests: Likewise.
31130         * modules/unistr/u8-strlen-tests: Likewise.
31131         * modules/unistr/u8-strmblen-tests: Likewise.
31132         * modules/unistr/u8-strmbtouc-tests: Likewise.
31133         * modules/unistr/u8-strncat-tests: Likewise.
31134         * modules/unistr/u8-strncmp-tests: Likewise.
31135         * modules/unistr/u8-strncpy-tests: Likewise.
31136         * modules/unistr/u8-strnlen-tests: Likewise.
31137         * modules/unistr/u8-to-u16-tests: Likewise.
31138         * modules/unistr/u8-to-u32-tests: Likewise.
31139         * modules/unistr/u8-uctomb-tests: Likewise.
31140         * modules/unistr/u16-check-tests: Likewise.
31141         * modules/unistr/u16-chr-tests: Likewise.
31142         * modules/unistr/u16-cmp-tests: Likewise.
31143         * modules/unistr/u16-cmp2-tests: Likewise.
31144         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31145         * modules/unistr/u16-cpy-tests: Likewise.
31146         * modules/unistr/u16-mblen-tests: Likewise.
31147         * modules/unistr/u16-mbsnlen-tests: Likewise.
31148         * modules/unistr/u16-mbtouc-tests: Likewise.
31149         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31150         * modules/unistr/u16-mbtoucr-tests: Likewise.
31151         * modules/unistr/u16-move-tests: Likewise.
31152         * modules/unistr/u16-next-tests: Likewise.
31153         * modules/unistr/u16-prev-tests: Likewise.
31154         * modules/unistr/u16-set-tests: Likewise.
31155         * modules/unistr/u16-stpcpy-tests: Likewise.
31156         * modules/unistr/u16-stpncpy-tests: Likewise.
31157         * modules/unistr/u16-strcat-tests: Likewise.
31158         * modules/unistr/u16-strcmp-tests: Likewise.
31159         * modules/unistr/u16-strcoll-tests: Likewise.
31160         * modules/unistr/u16-strcpy-tests: Likewise.
31161         * modules/unistr/u16-strdup-tests: Likewise.
31162         * modules/unistr/u16-strlen-tests: Likewise.
31163         * modules/unistr/u16-strmblen-tests: Likewise.
31164         * modules/unistr/u16-strmbtouc-tests: Likewise.
31165         * modules/unistr/u16-strncat-tests: Likewise.
31166         * modules/unistr/u16-strncmp-tests: Likewise.
31167         * modules/unistr/u16-strncpy-tests: Likewise.
31168         * modules/unistr/u16-strnlen-tests: Likewise.
31169         * modules/unistr/u16-to-u32-tests: Likewise.
31170         * modules/unistr/u16-to-u8-tests: Likewise.
31171         * modules/unistr/u16-uctomb-tests: Likewise.
31172         * modules/unistr/u32-check-tests: Likewise.
31173         * modules/unistr/u32-chr-tests: Likewise.
31174         * modules/unistr/u32-cmp-tests: Likewise.
31175         * modules/unistr/u32-cmp2-tests: Likewise.
31176         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31177         * modules/unistr/u32-cpy-tests: Likewise.
31178         * modules/unistr/u32-mblen-tests: Likewise.
31179         * modules/unistr/u32-mbsnlen-tests: Likewise.
31180         * modules/unistr/u32-mbtouc-tests: Likewise.
31181         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31182         * modules/unistr/u32-mbtoucr-tests: Likewise.
31183         * modules/unistr/u32-move-tests: Likewise.
31184         * modules/unistr/u32-next-tests: Likewise.
31185         * modules/unistr/u32-prev-tests: Likewise.
31186         * modules/unistr/u32-set-tests: Likewise.
31187         * modules/unistr/u32-stpcpy-tests: Likewise.
31188         * modules/unistr/u32-stpncpy-tests: Likewise.
31189         * modules/unistr/u32-strcat-tests: Likewise.
31190         * modules/unistr/u32-strcmp-tests: Likewise.
31191         * modules/unistr/u32-strcoll-tests: Likewise.
31192         * modules/unistr/u32-strcpy-tests: Likewise.
31193         * modules/unistr/u32-strdup-tests: Likewise.
31194         * modules/unistr/u32-strlen-tests: Likewise.
31195         * modules/unistr/u32-strmblen-tests: Likewise.
31196         * modules/unistr/u32-strmbtouc-tests: Likewise.
31197         * modules/unistr/u32-strncat-tests: Likewise.
31198         * modules/unistr/u32-strncmp-tests: Likewise.
31199         * modules/unistr/u32-strncpy-tests: Likewise.
31200         * modules/unistr/u32-strnlen-tests: Likewise.
31201         * modules/unistr/u32-to-u16-tests: Likewise.
31202         * modules/unistr/u32-to-u8-tests: Likewise.
31203         * modules/unistr/u32-uctomb-tests: Likewise.
31204         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31205         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31206         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31207         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31208         * modules/uniwidth/u8-strwidth-tests: Likewise.
31209         * modules/uniwidth/u8-width-tests: Likewise.
31210         * modules/uniwidth/u16-strwidth-tests: Likewise.
31211         * modules/uniwidth/u16-width-tests: Likewise.
31212         * modules/uniwidth/u32-strwidth-tests: Likewise.
31213         * modules/uniwidth/u32-width-tests: Likewise.
31214         * modules/uniwidth/width-tests: Likewise.
31215
31216 2010-05-18  Richard Jones  <rjones@redhat.com>
31217
31218         doc: users.txt: list hivex
31219         * users.txt: Add hivex.
31220
31221 2010-05-18  Richard Jones  <rjones@redhat.com>
31222
31223         doc: users.txt: list febootstrap
31224         * users.txt: Add febootstrap.
31225
31226 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31227
31228         bootstrap: fix an error when gnulib is not used as a git submodule
31229         * build-aux/bootstrap (gnulib_path): If its length is zero then
31230         assign "gnulib" to it.
31231         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31232
31233 2010-05-16  Bruno Haible  <bruno@clisp.org>
31234
31235         Avoid autoconf warnings about AM_ICONV.
31236         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31237         2.64.
31238
31239 2010-05-16  Bruno Haible  <bruno@clisp.org>
31240
31241         absolute-header: Make the macro usable in more situations.
31242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31243         from gl_ABSOLUTE_HEADER.
31244         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31245
31246 2010-05-16  James Youngman  <jay@gnu.org>
31247
31248         doc: update users.txt
31249         * users.txt: Add CSSC.
31250
31251 2010-05-16  Jim Meyering  <meyering@redhat.com>
31252
31253         init.sh: fix an error in the previous change; add more comments
31254         * tests/init.sh: Compare exit code in loop against 9, not 2.
31255         Patch by Bruno Haible.
31256         Make the two tests more similar by adding an empty "then" clause.
31257         Add comments.
31258
31259         init.sh: avoid unnecessary shell re-exec
31260         * tests/init.sh: Improve the re-exec-required check to first test the
31261         current shell.  If it passes the test, do not search for a shell that
31262         does pass, and do not re-exec.  This test is particularly contorted to
31263         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31264         of $(...) evokes a syntax error and causes immediate shell exit with
31265         status 2.  Bruno Haible reported that the re-exec made it impossible
31266         to single-step through any init.sh-using script.
31267
31268 2010-05-16  Bruno Haible  <bruno@clisp.org>
31269
31270         Fix collision between gnulib's and libintl's printf replacements.
31271         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31272         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31273         (printf): When using GNU C, map the __printf__ function to rpl_printf
31274         via __asm__. When not using GNU C, define rpl_printf instead of
31275         __printf__.
31276         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31277         commit.
31278         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31279         commit.
31280         * m4/asm-underscore.m4: New file.
31281         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31282         * modules/stdio (Files): Add m4/asm-underscore.m4.
31283         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31284         Reported by Ben Pfaff.
31285
31286 2010-05-16  Bruno Haible  <bruno@clisp.org>
31287
31288         verify: Avoid skipping the test on openSUSE 11.0.
31289         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31290
31291 2010-05-13  Bruno Haible  <bruno@clisp.org>
31292
31293         Avoid useless warnings from G++.
31294         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31295         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31296         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31297
31298 2010-05-11  Jim Meyering  <meyering@redhat.com>
31299
31300         maint.mk: tweak preceding change
31301         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31302         regexps tighter by anchoring at EOL, and make the new group "shy"
31303         for slightly decreased overhead.
31304
31305 2010-05-11  Eric Blake  <eblake@redhat.com>
31306
31307         maint.mk: gnulib doesn't guarantee NSIG
31308         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31309
31310 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31311
31312         test-pwrite.c: Remove unused variable declaration.
31313         * tests/test-pwrite.c (main): Remove read_buf declaration.
31314
31315         Remove useless test-pwrite.sh file.
31316         * tests/test-pwrite.sh: Delete file.
31317         * modules/pwrite-tests: Remove references.
31318         Reported by Bruno Haible.
31319
31320 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31321
31322         init.sh: fix a typo
31323         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31324
31325 2010-05-10  Jim Meyering  <meyering@redhat.com>
31326
31327         maint.mk: avoid using a temporary file in the always-defined-macros check
31328         * top/maint.mk (.re-defmac): Remove rule.
31329         (gl_trap_): Remove definition.
31330         (sc_prohibit_always-defined_macros): Rewrite not to create and
31331         depend on a temporary file.  Instead, depend on GNU grep's ability
31332         to read a list of regular expressions from stdin when given "-f -".
31333
31334 2010-05-09  Bruno Haible  <bruno@clisp.org>
31335
31336         Update to GNU gettext 0.18, part 1.
31337         * m4/gettext.m4: Update to GNU gettext 0.18.
31338         * m4/intl.m4: Likewise.
31339         * m4/po.m4: Likewise.
31340         * modules/gettext (Files): Add m4/fcntl-o.m4.
31341         (configure.ac): Require gettext infrastructure from version 0.18.
31342
31343 2010-05-09  Jim Meyering  <meyering@redhat.com>
31344
31345         init.sh: enable MALLOC_PERTURB_
31346         * tests/init.sh: Enable glibc's malloc-perturbing option.
31347
31348         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31349         With my recent change in init.sh from the two-line form:
31350             -#   : ${srcdir=.}
31351             -#   . "$srcdir/init.sh"; path_prepend_ .
31352             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31353         I noticed that using the one-line form would cause this test
31354         to fail with a false-positive, or to stop working altogether,
31355         depending on whether help-version changed or all the tests did.
31356         * top/maint.mk (_hv_regex): Remove this definition.
31357         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31358         (_hv_regex_strong): Use a stronger regex to check for conformance.
31359         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31360         Give a separate diagnostic for lack of conforming use.
31361
31362         maint.mk: prohibit definition of symbols defined by gnulib
31363         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31364         definition of symbols defined by gnulib.
31365
31366 2010-05-09  Bruno Haible  <bruno@clisp.org>
31367
31368         acl: Avoid test failure on Cygwin-hosted mingw.
31369         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31370
31371 2010-05-09  Bruno Haible  <bruno@clisp.org>
31372
31373         error: Use system's fcntl function.
31374         * lib/error.c (fcntl): Undefine.
31375
31376 2010-05-09  Jim Meyering  <meyering@redhat.com>
31377
31378         verify: adjust formatting to be more consistent
31379         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31380         argument-list '('s, and after one comma.
31381
31382 2010-05-09  Bruno Haible  <bruno@clisp.org>
31383
31384         error: More reliable output on mingw.
31385         * lib/error.c: Include <windows.h>.
31386         (is_open): New function.
31387         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31388         defined.
31389
31390 2010-05-09  Bruno Haible  <bruno@clisp.org>
31391
31392         vasnprintf: Fix syntax errors in libintl build on mingw.
31393         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31394         pad_ourselves and prec_ourselves after use.
31395
31396 2010-05-08  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/config.charset: Update comments for Cygwin 1.7.
31399         * lib/localcharset.c: Likewise.
31400
31401 2010-05-07  Jim Meyering  <meyering@redhat.com>
31402
31403         init.sh: improve comments
31404         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31405         . "${srcdir=.}/init.sh"; path_prepend_ .
31406         Add a note about path_prepend_ and the alternative of using
31407         TESTS_ENVIRONMENT.
31408
31409 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31410
31411         exclude: Unescape hashed patterns in wildcard mode.
31412         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31413         to the hash list.
31414         * tests/test-exclude8.sh: New test case.
31415         * modules/exclude-tests: Add new test.
31416
31417 2010-05-05  Eric Blake  <eblake@redhat.com>
31418
31419         verify: automate tests
31420         * modules/verify-tests: New module.
31421         * tests/test-verify.sh: New file.
31422         * tests/test-verify.c: Guard each negative test with a unique id.
31423         Also avoid warning about unused left hand of comma expressions.
31424
31425 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         Further improvements to verify.h, suggested by Eric Blake.
31428         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31429         the GL_* versions, to avoid collision with OpenGL.
31430         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31431         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31432         than testing merely whether it's defined.
31433
31434         Modify verify.h to pacify gcc -Wredundant_decls.
31435         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31436         These use the prefix "GL_" since they're likely to be useful elsewhere.
31437         We may need to break them out into a different .h file.
31438         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31439         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31440         of verify_function__.
31441
31442 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31443
31444         Tests for module pwrite.
31445         * modules/pwrite-tests: New file.
31446         * tests/test-pwrite.sh: New file.
31447         * tests/test-pwrite.c: New file.
31448
31449         New module pwrite.
31450         * lib/unistd.in.h (pwrite): New declaration.
31451         * lib/pwrite.c: New file, from glibc with modifications.
31452         * m4/pwrite.m4: New file.
31453         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31454         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31455         REPLACE_PWRITE.
31456         * modules/pwrite: New file.
31457         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31458         REPLACE_PWRITE.
31459         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31460         * doc/posix-functions/pwrite.texi: Mention the new module.
31461
31462 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31463
31464         pread: Update documentation.
31465         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31466
31467 2010-05-04  Eric Blake  <eblake@redhat.com>
31468
31469         docs: update cygwin progress
31470         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31471         this bug.
31472         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31473         Added in cygwin 1.7.2.
31474         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31475         Likewise.
31476         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31477         Likewise.
31478         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31479         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31480         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31481         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31482         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31483         Mention nproc module.
31484         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31485         bug in cygwin 1.7.5 addition.
31486         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31487         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31488         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31489         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31490         1.7.5.
31491         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31492         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31493         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31494         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31495         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31496         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31497         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31498         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31499         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31500         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31501         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31502         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31503         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31504         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31505         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31506         Likewise.
31507         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31508         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31509         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31510         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31511         Likewise.
31512         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31513         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31514         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31515         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31516         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31517         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31518         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31519         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31520         Likewise.
31521         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31522         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31523         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31524         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31525         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31526         Likewise.
31527         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31528         Likewise.
31529         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31530         Likewise.
31531         * doc/glibc-functions/xdrrec_endofrecord.texi
31532         (xdrrec_endofrecord): Likewise.
31533         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31534         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31535         Likewise.
31536         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31537         Likewise.
31538
31539 2010-05-04  Jim Meyering  <meyering@redhat.com>
31540
31541         gendocs.sh: make its "-s FILE" option more useful
31542         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31543         $PACKAGE to reflect the probably-different basename of "FILE".
31544
31545 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31546
31547         bootstrap: don't ignore download_po_files failure
31548         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31549         failure.
31550
31551 2010-05-03  Jim Meyering  <meyering@redhat.com>
31552
31553         maint.mk: allow to pass options to gendocs.sh
31554         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31555         (gendocs_options_): New overridable variable.
31556
31557         gnu-web-doc-update: don't ignore configure or build failure
31558         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31559
31560         announce-gen: backslash-escape '@'s in --help output
31561         * build-aux/announce-gen: Fix syntax errors.
31562
31563         maint.mk, announce-gen: allow project-specific announcement mail headers
31564         * top/maint.mk (translation_project_): Define default.
31565         (announcement_Cc_, announcement_mail_headers_): Likewise.
31566         (announcement): Invoke announce-gen with new --mail-headers option.
31567         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31568
31569         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31570         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31571         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31572         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31573         line in the "err2" output file when running "make check" in verbose
31574         mode (i.e., with set -x enabled).
31575
31576 2010-05-03  Bruno Haible  <bruno@clisp.org>
31577
31578         wctob: Fix for weird platforms.
31579         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31580         argument value.
31581
31582 2010-05-03  Jim Meyering  <meyering@redhat.com>
31583
31584         maint.mk: prohibit unwarranted use of <strings.h>
31585         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31586         strings.h in a file that does not also use strcasecmp, strncasecmp,
31587         ffs or ffsll.
31588
31589         maint.mk: remove obsolete comments
31590         * top/maint.mk: Remove stale, commented-out rules.
31591
31592 2010-05-02  Bruno Haible  <bruno@clisp.org>
31593
31594         wcwidth: Declare also when it's aliased.
31595         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31596         macro.
31597
31598 2010-05-02  Bruno Haible  <bruno@clisp.org>
31599
31600         Fix regression from 2010-04-25.
31601         * gnulib-tool (func_modules_transitive_closure): Check the status of
31602         all modules, not only of the tests that are of the form foo-tests where
31603         foo is a module.
31604
31605 2010-05-02  Bruno Haible  <bruno@clisp.org>
31606
31607         wctob: Work around nasty Cygwin 1.7.2 bug.
31608         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31609         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31610
31611 2010-05-01  Bruno Haible  <bruno@clisp.org>
31612
31613         fpurge: Sharper test.
31614         * tests/test-fpurge.c (main): Add one more ftell check.
31615         * modules/fpurge-tests (Depends-on): Add ftell.
31616         Suggested by Eric Blake.
31617
31618 2010-05-01  Bruno Haible  <bruno@clisp.org>
31619
31620         ftello: Another test.
31621         * tests/test-ftello3.c: New file.
31622         * modules/ftello-tests (Files): Add it.
31623         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31624         MOSTLYCLEANFILES.
31625
31626         ftell: Another test.
31627         * tests/test-ftell3.c: New file.
31628         * modules/ftell-tests (Files): Add it.
31629         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31630         MOSTLYCLEANFILES.
31631
31632 2010-05-01  Bruno Haible  <bruno@clisp.org>
31633
31634         ftell, ftello: Work around Solaris bug.
31635         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31636         * lib/ftello.c: Include stdio-impl.h.
31637         (ftello): On Solaris, when _IOWRT is set, compute the result without
31638         looking at _IOREAD.
31639         * modules/ftello (Files): Add lib/stdio-impl.h.
31640         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31641         * doc/posix-functions/ftello.texi: Likewise.
31642         Reported by Eric Blake.
31643
31644 2010-05-01  Bruno Haible  <bruno@clisp.org>
31645
31646         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31647         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31648         the _IOWRT flag is also set.
31649
31650 2010-05-01  Bruno Haible  <bruno@clisp.org>
31651
31652         Fix doc about a HP-UX stdio bug.
31653         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31654         * doc/posix-functions/ftello.texi: Likewise.
31655
31656 2010-05-01  Bruno Haible  <bruno@clisp.org>
31657
31658         lseek test: Fix failure on Solaris.
31659         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31660         output.
31661
31662 2010-04-30  Jim Meyering  <meyering@redhat.com>
31663
31664         bootstrap: don't ignore failure to generate po*/Makevars
31665         * build-aux/bootstrap (with_gettext): Don't ignore failure
31666         to create po/Makevars or runtime-po/Makevars.
31667
31668 2010-04-29  Eric Blake  <eblake@redhat.com>
31669
31670         headers: relax license to LGPLv2+
31671         * modules/fcntl-h (License): Relax license.
31672         * modules/getopt-posix (License): Likewise.
31673         * modules/locale (License): Likewise.
31674         * modules/math (License): Likewise.
31675         * modules/pty (License): Likewise.
31676         * modules/sched (License): Likewise.
31677         * modules/search (License): Likewise.
31678         * modules/spawn (License): Likewise.
31679         * modules/stdarg (License): Likewise.
31680         * modules/sysexits (License): Likewise.
31681
31682 2010-04-29  Jim Meyering  <meyering@redhat.com>
31683
31684         inttypes: relax license to LGPLv2+
31685         * modules/inttypes (License): Relax license.
31686
31687 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31688
31689         * top/maint.mk (indent): Run twice to produce idempotent results.
31690
31691 2010-04-28  Bruno Haible  <bruno@clisp.org>
31692
31693         getdate: Generate getdate.c in the source directory.
31694         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31695         MOSTLYCLEANFILES.
31696         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31697
31698 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31699
31700         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31701         is not declared as a const *; avoid warnings in that case.
31702
31703 2010-04-28  Eric Blake  <eblake@redhat.com>
31704
31705         canonicalize-lgpl: avoid compiler warning
31706         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31707         declaration' / 'extraneous semicolon' warning with some compilers.
31708         Reported by Andreas Gruenbacher.
31709
31710 2010-04-28  Jim Meyering  <meyering@redhat.com>
31711
31712         init.sh: ensure a more reliable exit status when exiting via trap
31713         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31714         Inspired by patches from Dmitry V. Levin.
31715         Also trap on signal 3 (SIGQUIT).
31716
31717 2010-04-27  Bruno Haible  <bruno@clisp.org>
31718
31719         Update doc about utimes().
31720         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31721         'utimens' module.
31722         Reported by Andreas Gruenbacher <agruen@suse.de>.
31723
31724 2010-04-27  Eric Blake  <eblake@redhat.com>
31725
31726         full-read, full-write: relax license
31727         * modules/full-read (License): Drop to LGPLv2+.
31728         * modules/full-write (License): Likewise.
31729         * modules/safe-read (License): Likewise.
31730         * modules/safe-write (License): Likewise.
31731
31732         pthread: mention library for linking
31733         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31734
31735 2010-04-27  Jim Meyering  <meyering@redhat.com>
31736
31737         maint.mk: fix a bug introduced in last change
31738         * top/maint.mk (gl_assured_headers_): Now that all names are on
31739         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31740         is not anchored to end of word, it should be adequate.
31741
31742         maint.mk: avoid side-effect in latest syntax-check
31743         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31744         to run commands via $(shell...), and hence to incur cost only when
31745         the new rule is actually run.
31746
31747         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31748         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31749         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31750         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31751         (gl_assured_headers_, az_, AZ_): Define.
31752         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31753
31754 2010-04-26  Jim Meyering  <jim@meyering.net>
31755             Bruno Haible  <bruno@clisp.org>
31756
31757         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31758         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31759         Prompted by an exchange with Gilles Espinasse.
31760
31761 2010-04-26  Jim Meyering  <meyering@redhat.com>
31762
31763         git-version-gen: aesthetic tweak
31764         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31765         so that the command remains on a single line.
31766
31767 2010-04-26  Eric Blake  <eblake@redhat.com>
31768
31769         git-version-gen: allow use on EBCDIC hosts
31770         * build-aux/git-version-gen (dirty): Use literal rather than tying
31771         ourselves to ascii.
31772         Reported by Steve Goetze.
31773
31774 2010-04-25  Bruno Haible  <bruno@clisp.org>
31775
31776         netdb: Add support for GNULIB_POSIXCHECK.
31777         * lib/netdb.in.h: Include warn-on-use.h.
31778         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31779         functions are used when GNULIB_POSIXCHECK is defined and the
31780         getaddrinfo module is not in use.
31781         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31782         freeaddrinfo, gai_strerror, getnameinfo are declared.
31783         * modules/netdb (Depends-on): Add warn-on-use.
31784         (Makefile.am): Include warn-on-use.h in netdb.h.
31785
31786 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31787
31788         build: avoid "make check" failure without .git/ directory
31789         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31790         there is no .git/ directory.
31791
31792 2010-04-25  Bruno Haible  <bruno@clisp.org>
31793
31794         ptsname: Fix misuse of ttyname_r.
31795         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31796         of errno.
31797
31798 2010-04-25  Bruno Haible  <bruno@clisp.org>
31799
31800         ttyname_r: Make it work on Solaris 10.
31801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31802         if the system function has the POSIX declaration. Test whether the
31803         function fails if the buffer is less than 128 bytes large.
31804         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31805         system's ttyname_r function. Provide a reasonably large buffer.
31806         * modules/ttyname_r (Depends-on): Add extensions.
31807         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31808
31809 2010-04-25  Bruno Haible  <bruno@clisp.org>
31810
31811         Use the 'extensions' module for some more functions on Solaris.
31812         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31813         module.
31814         * doc/posix-functions/ctime_r.texi: Likewise.
31815         * doc/posix-functions/getgrgid_r.texi: Likewise.
31816         * doc/posix-functions/getgrnam_r.texi: Likewise.
31817         * doc/posix-functions/getpwnam_r.texi: Likewise.
31818         * doc/posix-functions/getpwuid_r.texi: Likewise.
31819         * doc/posix-functions/readdir_r.texi: Likewise.
31820         * doc/posix-functions/sigwait.texi: Likewise.
31821         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31822         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31823
31824 2010-04-25  Bruno Haible  <bruno@clisp.org>
31825
31826         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31827         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31828         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31829         * lib/ttyname_r.c: Include <limits.h>.
31830         (ttyname_r): Define using the system's ttyname_r function, if it exists
31831         and not on Solaris.
31832         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31833         set.
31834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31835         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31836         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31837         Reported by Simon Josefsson.
31838
31839 2010-04-25  Bruno Haible  <bruno@clisp.org>
31840
31841         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31842         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31843         * doc/posix-functions/ctime_r.texi: Likewise.
31844         * doc/posix-functions/getgrgid_r.texi: Likewise.
31845         * doc/posix-functions/getgrnam_r.texi: Likewise.
31846         * doc/posix-functions/getlogin_r.texi: Likewise.
31847         * doc/posix-functions/getpwnam_r.texi: Likewise.
31848         * doc/posix-functions/getpwuid_r.texi: Likewise.
31849         * doc/posix-functions/readdir_r.texi: Likewise.
31850         * doc/posix-functions/sigwait.texi: Likewise.
31851         * doc/posix-functions/ttyname_r.texi: Likewise.
31852         Reported by Simon Josefsson.
31853
31854 2010-04-25  Bruno Haible  <bruno@clisp.org>
31855
31856         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31857         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31858         also to --create-testdir.
31859         (func_acceptable): Don't consider the status of *-tests modules here.
31860         (func_modules_transitive_closure): Consider it here, before including a
31861         test module.
31862         (func_import, func_create_testdir): Set inc_all_direct_tests,
31863         inc_all_indirect_tests.
31864         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31865         --create-testdir and --create-megatestdir.
31866
31867 2010-04-25  Bruno Haible  <bruno@clisp.org>
31868
31869         gnulib-tool: Add --without-*-tests options.
31870         * gnulib-tool (func_usage): Document the --without-*-tests options.
31871         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31872         excl_unportable_tests): New variables.
31873         Fail if they are specified with --import or --update.
31874         (func_acceptable): Respect the excl_*_tests variables.
31875         (func_import): Set the excl_*_tests variables to empty.
31876
31877 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31878             Bruno Haible  <bruno@clisp.org>
31879
31880         Work around a MacOS X 10.4 bug with openpty.
31881         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31882         * tests/test-openpty.c (main): Close the master side explicitly.
31883
31884 2010-04-25  Bruno Haible  <bruno@clisp.org>
31885
31886         strnlen: Fix a C++ test error on MacOS X and Solaris.
31887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31888         the function is not declared.
31889         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31890         Simon Josefsson.
31891
31892 2010-04-24  Bruno Haible  <bruno@clisp.org>
31893
31894         Avoid a gcc warning.
31895         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31896         of correct type for %08lx directive.
31897         Reported by Eric Blake.
31898
31899 2010-04-24  Bruno Haible  <bruno@clisp.org>
31900
31901         vasnprintf: Correct errno value in case of out-of-memory.
31902         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31903         or sprintf. Use the errno value from SNPRINTF or sprintf.
31904         Reported by Ian Beckwith <ianb@erislabs.net>.
31905
31906 2010-04-24  Bruno Haible  <bruno@clisp.org>
31907
31908         ansi-c++-opt: Find correct compiler when cross-compiling.
31909         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31910         AC_CHECK_PROGS.
31911         Reported by Simon Josefsson.
31912
31913 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31914
31915         vc-list-files: Add support for subversion
31916         * build-aux/vc-list-files: Use "svn list" to generate the list of
31917         files controlled by subversion.
31918
31919 2010-04-23  Jim Meyering  <meyering@redhat.com>
31920
31921         vc-list-files tests: convert to use init.sh
31922         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31923         path_prepend_.
31924         Use Exit, not exit.
31925         Use skip_ rather than open coding it.
31926         Remove trap set-up and compare definitions.
31927         * tests/test-vc-list-files-git.sh: Likewise.
31928         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31929
31930 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31931
31932         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31933         backup files.
31934
31935 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31936
31937         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31938
31939 2010-04-20  Eric Blake  <eblake@redhat.com>
31940
31941         tests: be robust to ignored SIGPIPE
31942         * tests/test-select-in.sh: Consume all output.
31943         * tests/test-lseek.sh: Check correct exit status, while avoiding
31944         EPIPE.
31945
31946 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31947             Bruno Haible  <bruno@clisp.org>
31948
31949         visibility: Don't use -fvisibility if it leads to a warning.
31950         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31951         yes, don't pretend that visibility works if it leads to a warning.
31952         Reported by Mike Gran <spk121@yahoo.com>.
31953
31954 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31955
31956         * build-aux/bootstrap: Use "git -h" for testing for supported options
31957         instead of "git --help".  The short-form option only shows a summary,
31958         and doesn't layout the full man page.  Grep for the full option name
31959         in the summary, too.
31960
31961 2010-04-19  Bruno Haible  <bruno@clisp.org>
31962
31963         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31964         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31965         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31966         mention of RELOCATABLE_STRIP.
31967         Reported by Sylvain Beucler <beuc@beuc.net>.
31968
31969 2010-04-19  Bruno Haible  <bruno@clisp.org>
31970
31971         * lib/diffseq.h: Fix typo in comment.
31972         Reported by Eric Blake.
31973
31974 2010-04-19  Bruno Haible  <bruno@clisp.org>
31975
31976         ioctl: Move autoconf macro to a .m4 file.
31977         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31978         * modules/ioctl (Files): Add it.
31979         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31980         Reported by Ian Beckwith <ianb@erislabs.net>.
31981
31982 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31983             Bruno Haible  <bruno@clisp.org>
31984
31985         diffseq: Accommodate use-case with abstract arrays.
31986         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31987         is not defined.
31988         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31989         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31990
31991 2010-04-18  Bruno Haible  <bruno@clisp.org>
31992
31993         * doc/posix-headers/stdbool.texi: More precise wording.
31994
31995 2010-04-17  Jim Meyering  <meyering@redhat.com>
31996
31997         maint.mk: use gnu-style indentation in an embedded perl script
31998         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31999         Rename variable: s/two/last_two_bytes/
32000
32001 2010-04-16  Eric Blake  <eblake@redhat.com>
32002
32003         test-stdbool: skip test that fails with Solaris CC
32004         * tests/test-stdbool.c (f): Skip test that causes compilation
32005         error under buggy C++ compiler.
32006         * lib/stdbool.in.h: Document the limitation.
32007         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32008
32009         setenv: allow compilation with C++
32010         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32011         register keyword.
32012
32013         stdint: allow test to pass with C++
32014         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32015
32016         getopt: allow compilation with C++
32017         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32018         struct.
32019         * lib/getopt.c (_getopt_internal_r): Use correct type.
32020         Reported by Dagobert Michelson, via Joel E. Denny.
32021
32022 2010-04-16  Bruno Haible  <bruno@clisp.org>
32023
32024         Override netdb.h always.
32025         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32026         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32027         Reported by Ludovic Courtès <ludo@gnu.org>.
32028
32029 2010-04-15  Bruno Haible  <bruno@clisp.org>
32030
32031         openpty: Fix mistake from 2010-03-21.
32032         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32033         Reported by Simon Josefsson.
32034
32035 2010-04-15  Eric Blake  <eblake@redhat.com>
32036
32037         test-forkpty: fix expected signature
32038         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32039         Reported by Simon Josefsson.
32040
32041 2010-04-15  Jim Meyering  <meyering@redhat.com>
32042
32043         maint.mk: texinfo_suffix_re_: correct the default regexp
32044         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32045
32046         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32047         make it configurable via texinfo_suffix_re_.
32048
32049 2010-04-14  Eric Blake  <eblake@redhat.com>
32050
32051         strtok_r: relax license to LGPLv2+
32052         * modules/strtok_r (License): Relax license.
32053         Reported by Matthias Bolte.
32054
32055 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32056
32057         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32058         version 1.4.4 by default instead of requiring the libgcrypt
32059         version used during build.  This makes it possible to use the
32060         application with older but still binary compatible libgcrypt
32061         versions.
32062
32063 2010-04-13  Eric Blake  <eblake@redhat.com>
32064
32065         getopt-gnu: match recent glibc fixes and posix ruling
32066         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32067         '+' handling, when requesting extensions.
32068         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32069         'W;' handling.
32070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32071         * doc/posix-functions/getopt.texi (getopt): Document this.
32072         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32073         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32074         Likewise.
32075
32076         getopt: merge bug fixes from glibc
32077         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32078         diagnostics.  Honor '+:' correctly.  Reject ';'.
32079
32080         getopt-posix: detect MacOS bug
32081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32082         optind when missing a required argument.
32083         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32084         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32085         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32086         Likewise.
32087
32088         getopt-posix: avoid spurious failure on Solaris
32089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32090         an indicator that setting optind=1 is sufficient for reset.
32091
32092         getopt-posix: avoid spurious failure on FreeBSD
32093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32094         in POSIX mode, since the m4 test uses it.
32095
32096         gnulib-tool: silence warning on BSD sh
32097         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32098
32099 2010-04-13  Jim Meyering  <meyering@redhat.com>
32100
32101         doc: users.txt: GNU patch now uses gnulib
32102         * users.txt: Add patch.
32103
32104 2010-04-12  Jim Meyering  <meyering@redhat.com>
32105
32106         maint.mk: generate more concise timing data for syntax-check rules
32107         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32108         " done" from each line that reports a syntax-check test duration.
32109
32110 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32111
32112         git-version-gen: use "git update-index..." rather than "git status"
32113         * build-aux/git-version-gen: Use git update-index --refresh, not
32114         "git status".  With some versions of git, "git status" would fail
32115         to update the index and result in an unwarranted "-dirty" suffix.
32116
32117 2010-04-11  Jim Meyering  <meyering@redhat.com>
32118
32119         openat: correct formatting (no semantic change)
32120         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32121         Suggested by Bruno Haible.
32122
32123 2010-04-11  Bruno Haible  <bruno@clisp.org>
32124
32125         Stricter declaration checking in testdirs.
32126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32127         If for_tests is true, augment AM_CPPFLAGS to define
32128         GNULIB_STRICT_CHECKING.
32129         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32130         GNULIB_STRICT_CHECKING is defined, verify that the function is
32131         declared.
32132
32133 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32134             Bruno Haible  <bruno@clisp.org>
32135
32136         libunistring: Improve configure output.
32137         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32138         Don't say "consider installing GNU libunistring" when checking again
32139         with libiconv.
32140
32141 2010-04-11  Bruno Haible  <bruno@clisp.org>
32142
32143         libunistring: Correct value of $LTLIBUNISTRING.
32144         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32145         correct the value of $LTLIBUNISTRING.
32146
32147 2010-04-11  Bruno Haible  <bruno@clisp.org>
32148
32149         havelib: Add static libraries to LIBS in the right order.
32150         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32151         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32152
32153 2010-04-11  Bruno Haible  <bruno@clisp.org>
32154
32155         libunistring: Detect libunistring also when it depends on libiconv.
32156         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32157         the second AC_LIB_HAVE_LINKFLAGS invocation.
32158
32159 2010-04-11  James Youngman  <jay@gnu.org>
32160
32161         close-stream: declare local scalars to be "const"
32162         * lib/close-stream.c (close_stream): Make boolean variables const
32163         to document the fact that we set but do not change them.
32164
32165 2010-04-11  Bruno Haible  <bruno@clisp.org>
32166
32167         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32168
32169 2010-04-11  Jim Meyering  <meyering@redhat.com>
32170
32171         maint.mk: don't include dist-check.mk
32172         * top/maint.mk: Remove bogus include directive.
32173
32174         maint.mk: improve empty-line-at-EOF check
32175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32176         solution, rather than tail+Perl-based one.  The latter would read
32177         a few kilobytes from the end of each file, and did not handle empty
32178         files properly.
32179
32180         maint.mk: print the elapsed time for each syntax-check rule
32181         * top/maint.mk (sc_m_rules_): Save start time in a file.
32182         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32183         (local-check): Interpose the .z rules
32184
32185 2010-04-11  Jim Meyering  <meyering@redhat.com>
32186
32187         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32188         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32189         empty file with one that ends in an empty line.
32190
32191 2010-04-10  Bruno Haible  <bruno@clisp.org>
32192
32193         mkdir: Make it work on mingw64.
32194         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32195         * lib/mkdir.c: Update comment.
32196         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
32197
32198 2010-04-10  Bruno Haible  <bruno@clisp.org>
32199
32200         Don't override improved macro from newer autoconf.
32201         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32202         autoconf >= 2.62.
32203         Reported by Joel E. Denny <jdenny@clemson.edu>.
32204
32205 2010-04-10  Jim Meyering  <meyering@redhat.com>
32206
32207         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32208         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32209
32210         maint.mk: correct a diagnostic
32211         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32212         in diagnostic; now use $prohibit.
32213
32214 2010-04-10  Bruno Haible  <address@hidden>
32215
32216         fchownat: Fix a C++ test error on Solaris 8.
32217         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32218         the function does not exist.
32219
32220 2010-04-10  Bruno Haible  <bruno@clisp.org>
32221
32222         vasnprintf: Add more tests.
32223         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32224         (test_function): Test converting an invalid wide string.
32225
32226         vasnprintf: Correct handling of unconvertible wide string arguments.
32227         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32228         VASNPRINTF.
32229         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32230         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32231         smaller than the expected maximum need for the directive. Set errno to
32232         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32233         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32235         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32236         * modules/vasnprintf (Files): Add m4/printf.m4.
32237         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32238
32239 2010-04-10  Bruno Haible  <bruno@clisp.org>
32240
32241         vasnprintf: Fix crash in %ls directive.
32242         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32243         string is passed as argument to %ls, with no precision and no width.
32244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32245
32246 2010-04-10  Bruno Haible  <bruno@clisp.org>
32247
32248         vasnprintf: Fix multiple test failures on mingw.
32249         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32250         _snprintf, or snwprintf, not _snwprintf.
32251
32252 2010-04-10  Bruno Haible  <bruno@clisp.org>
32253
32254         write: Fix a C++ test error on mingw.
32255         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32256
32257 2010-04-10  Bruno Haible  <bruno@clisp.org>
32258
32259         vasnprintf test: Reduce code duplication.
32260         * tests/test-vasnprintf.c (test_function): New function, extracted from
32261         test_vasnprintf.
32262         (test_vasnprintf, test_asnprintf): Invoke it.
32263
32264 2010-04-10  Bruno Haible  <bruno@clisp.org>
32265
32266         strnlen: Fix warning in C++ mode on MacOS X.
32267         * lib/string.in.h (strnlen): Use the modern idiom.
32268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32269         defining strnlen as a macro already in <config.h>.
32270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32271         REPLACE_STRNLEN.
32272         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32274
32275 2010-04-08  James Youngman  <jay@gnu.org>
32276
32277         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32278         the example.
32279
32280 2010-04-09  Jim Meyering  <meyering@redhat.com>
32281
32282         maint.mk: print better diagnostic when there is no $(_hv_file)
32283         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32284         announce that when $(_hv_file) (aka help-version) does not exist.
32285
32286         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32287         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32288         not try to interpret its random input bytes.  Jarno Rajahalme reported
32289         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32290         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32291         (mktempd_): Likewise, just in case.
32292
32293         ftruncate: add two years to projected module removal date: 2012
32294         * m4/ftruncate.m4: Adjust comments.
32295
32296         ftruncate: mark module as obsolete; even MinGW provides it, now
32297         * modules/ftruncate (Status): Obsolete.
32298         (Notice): Say that.
32299         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32300         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32301
32302 2010-04-08  Bruno Haible  <bruno@clisp.org>
32303
32304         Fix side effects from tests-related modules.
32305         * modules/dprintf-posix (Comment): New section.
32306         * modules/fprintf-posix (Comment): Likewise.
32307         * modules/obstack-printf-posix (Comment): Likewise.
32308         * modules/printf-posix (Comment): Likewise.
32309         * modules/snprintf-posix (Comment): Likewise.
32310         * modules/sprintf-posix (Comment): Likewise.
32311         * modules/vasnprintf-posix (Comment): Likewise.
32312         * modules/vasprintf-posix (Comment): Likewise.
32313         * modules/vdprintf-posix (Comment): Likewise.
32314         * modules/vfprintf-posix (Comment): Likewise.
32315         * modules/vprintf-posix (Comment): Likewise.
32316         * modules/vsnprintf-posix (Comment): Likewise.
32317         * modules/vsprintf-posix (Comment): Likewise.
32318         * modules/xprintf-posix (Comment): Likewise.
32319         * modules/xvasprintf-posix (Comment): Likewise.
32320         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32321         * modules/floorf-tests (Depends-on): Likewise.
32322         * modules/round-tests (Depends-on): Likewise.
32323         * modules/roundf-tests (Depends-on): Likewise.
32324         * modules/trunc-tests (Depends-on): Likewise.
32325         * modules/truncf-tests (Depends-on): Likewise.
32326         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32327         'fprintf-posix' module is not present.
32328         * tests/test-floorf2.c (check): Likewise.
32329         * tests/test-trunc2.c (check): Likewise.
32330         * tests/test-truncf2.c (check): Likewise.
32331         * tests/test-round2.c (equal): Likewise.
32332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32333
32334 2010-04-07  Karl Berry  <karl@gnu.org>
32335
32336         * config/srclist.txt,
32337         * config/srclistvars.sh,
32338         * config/srclist-update: doc fixes.
32339
32340 2010-04-07  Jim Meyering  <meyering@redhat.com>
32341
32342         maint.mk: add a PATH crosschecking syntax-check rule
32343         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32344         Useful if you use a test like the one in help-version (coreutils,
32345         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32346         printed by prog --version.
32347
32348 2010-04-06  Bruno Haible  <bruno@clisp.org>
32349
32350         Fix link error on mingw.
32351         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32352         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32353
32354 2010-04-06  Bruno Haible  <bruno@clisp.org>
32355
32356         Assume rmdir exists.
32357         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32358
32359 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32360
32361         doc: update users.txt
32362         * users.txt: Add gcal.
32363
32364 2010-04-06  Jim Meyering  <meyering@redhat.com>
32365
32366         init.sh: simply unset TMPDIR rather than risking env -i
32367         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32368         although it probably works fine on all Unix-based systems, some
32369         systems (Cygwin?) cannot tolerate a totally cleared environment.
32370         Suggestion from Eric Blake.
32371
32372 2010-04-06  Jim Meyering  <meyering@redhat.com>
32373
32374         init.sh: portability fix: use env's POSIX-specified -i option not -u
32375         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32376         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32377
32378 2010-04-05  Bruno Haible  <bruno@clisp.org>
32379
32380         btowc: Work around Cygwin 1.7.2 bug.
32381         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32382         does not map NUL to 0.
32383         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32384
32385 2010-04-05  Bruno Haible  <bruno@clisp.org>
32386
32387         Make the multithread modules work on Cygwin 1.7.2.
32388         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32389         imported symbols can be declared weak, so that it returns "no" on
32390         Cygwin 1.7.2.
32391
32392 2010-04-05  Bruno Haible  <bruno@clisp.org>
32393
32394         Use the module 'strncat'.
32395         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32396
32397         Tests for module 'strncat'.
32398         * modules/strncat-tests: New file.
32399         * tests/test-strncat.c: New file.
32400
32401         New module 'strncat'.
32402         * lib/string.in.h (strncat): New declaration.
32403         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32404         * m4/strncat.m4: New file, based on m4/memchr.m4.
32405         * modules/strncat: New file.
32406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32407         is declared.
32408         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32409         REPLACE_STRNCAT.
32410         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32411         REPLACE_STRNCAT.
32412         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32413         module.
32414         * tests/test-string-c++.cc: Check signature of strncat.
32415
32416 2010-04-05  Jim Meyering  <meyering@redhat.com>
32417
32418         xstrtoumax-tests: convert to use init.sh
32419         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32420         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32421         Use Exit, not exit.
32422         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32423
32424         xstrtoimax-tests: convert to use init.sh
32425         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32426         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32427         Use Exit, not exit.
32428         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32429
32430 2010-04-05  Bruno Haible  <bruno@clisp.org>
32431
32432         sys_socket: Avoid #define replacements in C++ mode.
32433         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32434         warning to the function if possible, rather than #defining the symbol
32435         to a dysfunctional alias.
32436
32437 2010-04-05  Bruno Haible  <bruno@clisp.org>
32438
32439         fseeko: Fix C++ test error on mingw.
32440         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32441         gl_FUNC_FSEEKO.
32442         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32443         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32444         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32445         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32446
32447 2010-04-05  Bruno Haible  <bruno@clisp.org>
32448
32449         duplocale: Improve test output.
32450         * tests/test-duplocale.c (main): Print reason for skipped test.
32451
32452 2010-04-05  Bruno Haible  <bruno@clisp.org>
32453
32454         Assume rmdir exists.
32455         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32456         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32457
32458 2010-04-05  Bruno Haible  <bruno@clisp.org>
32459
32460         Fix link error on Solaris 8 with cc.
32461         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32462
32463 2010-04-05  Bruno Haible  <bruno@clisp.org>
32464
32465         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32466         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32467
32468 2010-04-05  Bruno Haible  <bruno@clisp.org>
32469
32470         vasprintf: Update documentation.
32471         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32472
32473 2010-04-05  Bruno Haible  <bruno@clisp.org>
32474
32475         ptsname: Improve test.
32476         * tests/test-ptsname.c (main): Also try the various master names of BSD
32477         systems.
32478
32479 2010-04-05  Bruno Haible  <bruno@clisp.org>
32480
32481         memchr: Avoid a possible C++ test error.
32482         * lib/string.in.h (memchr): Provide declaration if function is missing.
32483         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32484         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32486         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32487
32488 2010-04-05  Bruno Haible  <bruno@clisp.org>
32489
32490         strtok_r: Improve idiom.
32491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32492         AC_LIBOBJ is used.
32493
32494 2010-04-05  Bruno Haible  <bruno@clisp.org>
32495
32496         strdup: Improve idiom.
32497         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32498         AC_LIBOBJ is used.
32499         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32500         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32501         when AC_LIBOBJ is used.
32502
32503 2010-04-05  Bruno Haible  <bruno@clisp.org>
32504
32505         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32506         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32507         don't set REPLACE_MBSINIT to 1.
32508         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32509         don't set REPLACE_MBRTOWC to 1.
32510         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32511         exist, don't set REPLACE_MBSRTOWCS to 1.
32512         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32513         exist, don't set REPLACE_MBSNRTOWCS to 1.
32514         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32515         don't set REPLACE_WCRTOMB to 1.
32516         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32517         exist, don't set REPLACE_WCSRTOMBS to 1.
32518         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32519         exist, don't set REPLACE_WCSNRTOMBS to 1.
32520
32521 2010-04-05  Bruno Haible  <bruno@clisp.org>
32522
32523         ldexpl: Improve idiom.
32524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32525         make sure to set HAVE_DECL_LDEXPL to 0.
32526
32527 2010-04-05  Jim Meyering  <meyering@redhat.com>
32528
32529         xstrtol-tests: convert to use init.sh
32530         * modules/xstrtol-tests (Files): Add tests/init.sh.
32531         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32532         Use Exit, not exit.
32533         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32534
32535         atexit-tests: convert to use init.sh
32536         * modules/atexit-tests (Files): Add tests/init.sh.
32537         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32538         Use Exit, not exit.
32539         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32540
32541         init.sh: fix typo
32542         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32543
32544         init.sh: make it easier for a test script to write to the tty, ...
32545         when using automake's parallel-tests mode.
32546         * tests/init.sh (stderr_fileno_): Define overridable variable.
32547         (warn_): New function, to use it.
32548         (fail_, skip_, framework_failure_): Use warn_.
32549
32550 2010-04-04  Bruno Haible  <bruno@clisp.org>
32551
32552         btowc: Avoid warning.
32553         * lib/btowc.c: Include <stdlib.h>.
32554         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32555
32556 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32557             Bruno Haible  <bruno@clisp.org>
32558
32559         wchar: Port to NetBSD 1.5.
32560         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32561         * lib/wctype.in.h (WEOF): Likewise.
32562
32563 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32564             Bruno Haible  <bruno@clisp.org>
32565
32566         Port extended stdio to NetBSD 1.5.
32567         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32568         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32569         older.
32570
32571 2010-04-04  Bruno Haible  <bruno@clisp.org>
32572
32573         string: Remove unused substitution.
32574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32575         HAVE_DECL_STRERROR.
32576         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32577
32578 2010-04-04  Bruno Haible  <bruno@clisp.org>
32579
32580         strtod: Avoid a possible C++ test error.
32581         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32582         set REPLACE_STRTOD.
32583
32584 2010-04-04  Bruno Haible  <bruno@clisp.org>
32585
32586         strerror: Update documentation.
32587         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32588
32589 2010-04-04  Bruno Haible  <bruno@clisp.org>
32590
32591         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32592         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32593         _GL_CXXALIAS_SYS_CAST.
32594
32595 2010-04-04  Bruno Haible  <bruno@clisp.org>
32596
32597         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32598         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32599         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32600         REPLACE_FREXPL to 1.
32601         * doc/posix-functions/frexpl.texi: Update documentation.
32602
32603 2010-04-04  Bruno Haible  <bruno@clisp.org>
32604
32605         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32606         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32607
32608 2010-04-04  Bruno Haible  <bruno@clisp.org>
32609
32610         Implement nanosleep for native Windows.
32611         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32612
32613 2010-04-04  Bruno Haible  <bruno@clisp.org>
32614
32615         math: Fix some C++ test errors on Solaris 8.
32616         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32617
32618 2010-04-04  Bruno Haible  <bruno@clisp.org>
32619
32620         math: Fix some C++ test errors on Cygwin.
32621         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32622         truncl): Provide declaration if the system does not have it.
32623         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32624         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32625         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32626         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32627         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32628         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32629         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32630         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32631         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32632         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32633         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32634         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32635         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32636         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32637         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32638         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32640         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32641         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32642         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32643         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32644         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32645
32646 2010-04-04  Bruno Haible  <bruno@clisp.org>
32647
32648         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32649         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32650         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32651         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32652         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32653         * m4/isinf.m4 (gl_ISINF): Likewise.
32654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32655
32656 2010-04-04  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32659         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32660
32661 2010-04-04  Bruno Haible  <bruno@clisp.org>
32662
32663         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32664         * modules/tmpfile (configure.ac): Update.
32665
32666         tmpfile: Fix C++ test error on mingw.
32667         * lib/stdio.in.h (tmpfile): New declaration.
32668         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32669         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32670         * modules/tmpfile (Depends-on): Add stdio.
32671         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32672         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32673         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32674         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32675         REPLACE_TMPFILE.
32676         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32677
32678 2010-04-04  Bruno Haible  <bruno@clisp.org>
32679
32680         ioctl: Fix C++ test error on mingw.
32681         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32682         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32683         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32684
32685 2010-04-03  Bruno Haible  <bruno@clisp.org>
32686
32687         wcwidth: Fix C++ test error on mingw.
32688         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32690         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32691
32692 2010-04-03  Bruno Haible  <bruno@clisp.org>
32693
32694         nanosleep: Fix C++ test error on mingw.
32695         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32696         * lib/time.in.h (nanosleep): Use modern idiom.
32697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32698         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32699         REPLACE_NANOSLEEP to 1.
32700         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32701         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32702
32703 2010-04-03  Bruno Haible  <bruno@clisp.org>
32704
32705         strptime: Fix C++ test error on mingw.
32706         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32707         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32708         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32709         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32711         not REPLACE_STRPTIME.
32712         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32713         REPLACE_STRPTIME.
32714
32715 2010-04-03  Bruno Haible  <bruno@clisp.org>
32716
32717         timegm: Fix C++ test error on mingw.
32718         * lib/time.in.h (timegm): Use modern idiom.
32719         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32720         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32721         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32722         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32723
32724 2010-04-03  Bruno Haible  <bruno@clisp.org>
32725
32726         timegm: Assume declaration if function exists.
32727         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32728         if it exists. Don't clobber ac_cv_func_timegm.
32729
32730 2010-04-03  Bruno Haible  <bruno@clisp.org>
32731
32732         time_r: Fix C++ test error on mingw.
32733         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32734         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32735         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32737         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32738
32739 2010-04-03  Bruno Haible  <bruno@clisp.org>
32740
32741         time_r: Minor updates.
32742         * modules/time_r (Description): Mention the provided functions.
32743         * lib/time_r.c: Don't include <string.h>.
32744         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32745         * doc/posix-functions/localtime_r.texi: Likewise.
32746
32747 2010-04-03  Bruno Haible  <bruno@clisp.org>
32748
32749         time: Fix regression introduced on 2010-03-08.
32750         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32751         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32752
32753 2010-04-03  Jim Meyering  <meyering@redhat.com>
32754
32755         maint.mk: don't silently disable project-specific syntax-check rules
32756         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32757         that they need to convert their project-specific syntax-check rules
32758         to use the new _sc_search_regexp.
32759
32760 2010-04-03  Bruno Haible  <bruno@clisp.org>
32761
32762         fchdir: Fix regression introduced on 2010-03-08.
32763         * lib/unistd.in.h (fchdir): Fix declaration.
32764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32766         REPLACE_FCHDIR.
32767         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32768         REPLACE_FCHDIR.
32769
32770 2010-04-03  Bruno Haible  <bruno@clisp.org>
32771
32772         getpagesize: Fix C++ test error on mingw.
32773         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32774         system does not declare the function.
32775         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32776         declared.
32777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32778         HAVE_DECL_GETPAGESIZE.
32779         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32780
32781 2010-04-03  Bruno Haible  <bruno@clisp.org>
32782
32783         stdio: Make C++ tests work on mingw.
32784         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32785         does not declare the function.
32786
32787 2010-04-03  Bruno Haible  <bruno@clisp.org>
32788
32789         ftello: Fix C++ test error on mingw.
32790         * lib/stdio.in.h (ftello): Use modern idiom.
32791         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32792         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32793         is missing and that it needs to be replaced.
32794         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32796         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32797
32798 2010-04-03  Bruno Haible  <bruno@clisp.org>
32799
32800         fseeko: Fix C++ test error on mingw.
32801         * lib/stdio.in.h (fseeko): Use modern idiom.
32802         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32804         is missing and that it needs to be replaced.
32805         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32807         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32808
32809 2010-04-03  Bruno Haible  <bruno@clisp.org>
32810
32811         mkstemp: Fix C++ test error on mingw.
32812         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32814         function is missing and that it needs to be replaced.
32815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32816         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32817
32818 2010-04-03  Bruno Haible  <bruno@clisp.org>
32819
32820         stpncpy: Fix C++ test error on mingw.
32821         * lib/string.in.h (stpncpy): Use modern idiom.
32822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32823         function is missing and that it needs to be replaced.
32824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32825         REPLACE_STPNCPY.
32826         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32827
32828 2010-04-03  Bruno Haible  <bruno@clisp.org>
32829
32830         sys_stat: Fix C++ test error on mingw.
32831         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32832         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32833
32834 2010-04-03  Bruno Haible  <bruno@clisp.org>
32835
32836         pty: Update doc.
32837         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32838
32839 2010-04-03  Bruno Haible  <bruno@clisp.org>
32840
32841         unistd: Fix C++ test error on mingw.
32842         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32843
32844 2010-04-03  Bruno Haible  <bruno@clisp.org>
32845
32846         Update doc regarding mingw.
32847         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32848         * doc/glibc-functions/login_tty.texi: Likewise.
32849         * doc/glibc-functions/forkpty.texi: Likewise.
32850
32851 2010-04-03  Bruno Haible  <bruno@clisp.org>
32852
32853         stdlib: Avoid compilation failure of c-strtold on mingw.
32854         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32855
32856 2010-04-03  Bruno Haible  <bruno@clisp.org>
32857
32858         locale: Make C++ tests work on Cygwin and mingw.
32859         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32860         cannot provide the function.
32861         Reported by Simon Josefsson.
32862
32863 2010-04-03  Bruno Haible  <bruno@clisp.org>
32864
32865         localename: Port to MacOS X 10.6.
32866         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32867         memory layout of the locales in MacOS X 10.6 as well.
32868         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32869
32870 2010-04-02  Bruno Haible  <bruno@clisp.org>
32871
32872         gnulib-tool: Ensure that long-running tests are executed last.
32873         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32874         running tests after the one for the other tests.
32875
32876 2010-04-02  Bruno Haible  <bruno@clisp.org>
32877
32878         gnulib-tool: Ensure the tests in the main directory are executed first.
32879         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32880         start with the current directory.
32881
32882 2010-04-02  Bruno Haible  <bruno@clisp.org>
32883
32884         Tests for module 'havelib', moved here from GNU gettext.
32885         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32886         modifications.
32887         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32888         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32889         with modifications.
32890         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32891         modifications.
32892         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32893         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32894         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32895         with modifications.
32896         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32897         with modifications.
32898         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32899         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32900         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32901         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32902         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32903         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32904         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32905         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32906         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32907         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32908         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32909         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32910         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32911         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32912         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32913         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32914         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32915         with modifications.
32916         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32917         with modifications.
32918         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32919         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32920         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32921         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32922         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32923         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32924         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32925         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32926         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32927         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32928         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32929         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32930         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32931         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32932         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32933         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32934         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32935         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32936         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32937         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32938         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32939         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32940         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32941         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32942         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32943         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32944         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32945         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32946         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32947         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32948         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32949         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32950         * tests/havelib/rpathx/rpathx.c: New file, from
32951         gettext/autoconf-lib-link.
32952         * tests/havelib/rpathx/Makefile.am: New file, from
32953         gettext/autoconf-lib-link.
32954         * tests/havelib/rpathx/configure.ac: New file, from
32955         gettext/autoconf-lib-link with modifications.
32956         * tests/havelib/rpathy/rpathy.c: New file, from
32957         gettext/autoconf-lib-link.
32958         * tests/havelib/rpathy/Makefile.am: New file, from
32959         gettext/autoconf-lib-link.
32960         * tests/havelib/rpathy/configure.ac: New file, from
32961         gettext/autoconf-lib-link with modifications.
32962         * tests/havelib/rpathz/rpathz.c: New file, from
32963         gettext/autoconf-lib-link.
32964         * tests/havelib/rpathz/Makefile.am: New file, from
32965         gettext/autoconf-lib-link.
32966         * tests/havelib/rpathz/configure.ac: New file, from
32967         gettext/autoconf-lib-link with modifications.
32968         * tests/havelib/rpathlx/usex.c: New file, from
32969         gettext/autoconf-lib-link.
32970         * tests/havelib/rpathlx/Makefile.am: New file, from
32971         gettext/autoconf-lib-link.
32972         * tests/havelib/rpathlx/configure.ac: New file, from
32973         gettext/autoconf-lib-link with modifications.
32974         * tests/havelib/rpathly/usey.c: New file, from
32975         gettext/autoconf-lib-link.
32976         * tests/havelib/rpathly/Makefile.am: New file, from
32977         gettext/autoconf-lib-link.
32978         * tests/havelib/rpathly/configure.ac: New file, from
32979         gettext/autoconf-lib-link with modifications.
32980         * tests/havelib/rpathlz/usez.c: New file, from
32981         gettext/autoconf-lib-link.
32982         * tests/havelib/rpathlz/Makefile.am: New file, from
32983         gettext/autoconf-lib-link.
32984         * tests/havelib/rpathlz/configure.ac: New file, from
32985         gettext/autoconf-lib-link with modifications.
32986         * tests/havelib/rpathlyx/usey.c: New file, from
32987         gettext/autoconf-lib-link.
32988         * tests/havelib/rpathlyx/Makefile.am: New file, from
32989         gettext/autoconf-lib-link.
32990         * tests/havelib/rpathlyx/configure.ac: New file, from
32991         gettext/autoconf-lib-link with modifications.
32992         * tests/havelib/rpathlzyx/usez.c: New file, from
32993         gettext/autoconf-lib-link.
32994         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32995         gettext/autoconf-lib-link.
32996         * tests/havelib/rpathlzyx/configure.ac: New file, from
32997         gettext/autoconf-lib-link with modifications.
32998         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32999         with modifications.
33000
33001 2010-04-02  Bruno Haible  <bruno@clisp.org>
33002
33003         gnulib-tool: Create distributed built sources also for the tests.
33004         * gnulib-tool (func_create_testdir): Also generate distributed built
33005         sources in the tests directory.
33006
33007 2010-04-02  Bruno Haible  <bruno@clisp.org>
33008
33009         gnulib-tool: Obey user's environment variables.
33010         * gnulib-tool (func_create_testdir): When creating built sources,
33011         respect the environment variables for autoconf, automake, etc. given by
33012         the user.
33013
33014 2010-04-02  Bruno Haible  <bruno@clisp.org>
33015
33016         gnulib-tool: Provide the value of --m4-base to modules.
33017         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33018         of gl_m4_base.
33019
33020 2010-04-02  Eric Blake  <eblake@redhat.com>
33021
33022         maint.mk: fix some fallout
33023         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33024         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33025
33026 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33027
33028         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33029         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33030         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33031         (sc_cast_of_x_alloc_return_value): Likewise.
33032         (sc_cast_of_alloca_return_value): Likewise.
33033         (sc_space_tab): Likewise.
33034         (sc_prohibit_atoi_atof): Likewise.
33035         (sc_prohibit_magic_number_exit): Likewise.
33036         (sc_error_exit_success): Likewise.
33037         (sc_file_system): Likewise.
33038         (sc_prohibit_have_config_h): Likewise.
33039         (sc_require_config_h): Likewise.
33040         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33041         (sc_obsolete_symbols): Likewise.
33042         (sc_changelog): Likewise.
33043         (sc_program_name): Likewise.
33044         (sc_the_the): Likewise.
33045         (sc_trailing_blank): Likewise.
33046         (sc_two_space_separator_in_usage): Likewise.
33047         (sc_useless_cpp_parens): Likewise.
33048         (sc_GPL_version): Likewise.
33049         (sc_GFDL_version): Likewise.
33050         (sc_texinfo_acronym): Likewise.
33051         (sc_prohibit_cvs_keyword): Likewise.
33052         (sc_prohibit_stat_st_blocks): Likewise.
33053         (sc_prohibit_S_IS_definition): Likewise.
33054         (sc_redundant_const): Likewise.
33055         (sc_makefile_TAB_only_indentation): Likewise.
33056         (sc_m4_quote_check): Likewise.
33057         (sc_makefile_path_separator_check): Likewise.
33058         (sc_copyright_check): Likewise.
33059         (sc_Wundef_boolean): Likewise.
33060         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33061
33062         maint.mk: match 0 or more whitespace-before-function-call '('
33063         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33064         that have zero or two-and-more spaces between the function name
33065         and the open parenthesis.
33066         (sc_error_message_warn_fatal): Likewise.
33067         (sc_error_message_uppercase): Likewise.
33068         (sc_error_message_period): Likewise.
33069
33070 2010-03-31  Eric Blake  <eblake@redhat.com>
33071
33072         maint.mk: check for [ as well as test
33073         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33074         Based on a libvirt report by Matthias Bolte.
33075
33076         gnumakefile: don't squelch _version output
33077         * top/GNUmakefile (_version): Create one-shot dependency rather
33078         than using $(shell) when version must be regenerated.
33079         (_autoreconf): Run verbosely, by default.
33080
33081         sys_time: avoid compiler warnings
33082         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33083         unconditional, fixing regression from 2010-03-29.
33084         Reported by Simon Josefsson.
33085
33086 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33087
33088         maint.mk: s/_header_without_use/_sc_header_without_use/
33089         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33090         (sc_prohibit_assert_without_use): Use the new name.
33091         (sc_prohibit_close_stream_without_use): Likewise.
33092         (sc_prohibit_getopt_without_use): Likewise.
33093         (sc_prohibit_quotearg_without_use): Likewise.
33094         (sc_prohibit_quote_without_use): Likewise.
33095         (sc_prohibit_long_options_without_use): Likewise.
33096         (sc_prohibit_inttostr_without_use): Likewise.
33097         (sc_prohibit_ignore_value_without_use): Likewise.
33098         (sc_prohibit_error_without_use): Likewise.
33099         (sc_prohibit_xalloc_without_use): Likewise.
33100         (sc_prohibit_hash_without_use): Likewise.
33101         (sc_prohibit_hash_pjw_without_use): Likewise.
33102         (sc_prohibit_safe_read_without_use): Likewise.
33103         (sc_prohibit_argmatch_without_use): Likewise.
33104         (sc_prohibit_canonicalize_without_use): Likewise.
33105         (sc_prohibit_root_dev_ino_without_use): Likewise.
33106         (sc_prohibit_openat_without_use): Likewise.
33107         (sc_prohibit_c_ctype_without_use): Likewise.
33108         (sc_prohibit_signal_without_use): Likewise.
33109         (sc_prohibit_intprops_without_use): Likewise.
33110
33111 2010-03-30  Eric Blake  <eblake@redhat.com>
33112
33113         maint: improve module indicators
33114         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33115         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33116         columns, and avoid extra macro expansion.
33117
33118         fdopendir: work around FreeBSD bug
33119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33121         * modules/dirent (Makefile.am): Substitute it.
33122         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33123         declaration.
33124         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33125         fix.
33126         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33127
33128 2010-03-29  Bruno Haible  <bruno@clisp.org>
33129
33130         Emit #pragma system_header after the inclusion guard, not before.
33131         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33132         guard that spans the entire file, not before. This enables an
33133         optimization in GCC's preprocessor.
33134         * lib/ctype.in.h: Likewise.
33135         * lib/dirent.in.h: Likewise.
33136         * lib/errno.in.h: Likewise.
33137         * lib/float.in.h: Likewise.
33138         * lib/getopt.in.h: Likewise.
33139         * lib/iconv.in.h: Likewise.
33140         * lib/langinfo.in.h: Likewise.
33141         * lib/locale.in.h: Likewise.
33142         * lib/math.in.h: Likewise.
33143         * lib/netdb.in.h: Likewise.
33144         * lib/netinet_in.in.h: Likewise.
33145         * lib/pty.in.h: Likewise.
33146         * lib/sched.in.h: Likewise.
33147         * lib/se-selinux.in.h: Likewise.
33148         * lib/search.in.h: Likewise.
33149         * lib/spawn.in.h: Likewise.
33150         * lib/stdarg.in.h: Likewise.
33151         * lib/stdint.in.h: Likewise.
33152         * lib/string.in.h: Likewise.
33153         * lib/strings.in.h: Likewise.
33154         * lib/sys_file.in.h: Likewise.
33155         * lib/sys_ioctl.in.h: Likewise.
33156         * lib/sys_time.in.h: Likewise.
33157         * lib/sys_times.in.h: Likewise.
33158         * lib/sys_utsname.in.h: Likewise.
33159         * lib/sys_wait.in.h: Likewise.
33160         * lib/sysexits.in.h: Likewise.
33161         * lib/wctype.in.h: Likewise.
33162
33163 2010-03-28  James Youngman  <jay@gnu.org>
33164
33165         save-cwd: don't leak a file descriptor when the caller execs.
33166         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33167         saved file descriptor.
33168         * modules/save-cwd (Depends-on): Depend on cloexec.
33169
33170 2010-03-29  Bruno Haible  <bruno@clisp.org>
33171
33172         Remove vestiges of fts-lgpl module.
33173         * lib/fts_.h: Assume GNULIB_FTS is 1.
33174         * lib/fts.c: Likewise.
33175         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33176
33177 2010-03-28  Bruno Haible  <bruno@clisp.org>
33178
33179         Fix definition of tests witness macro.
33180         * gnulib-tool (func_import): Fix definition of witness macro.
33181
33182 2010-03-28  Bruno Haible  <bruno@clisp.org>
33183
33184         Fix ioctl's protoype on glibc systems.
33185         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33186         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33187         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33188         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33189         signature. If not, arrange to replace the ioctl function.
33190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33191         REPLACE_IOCTL.
33192         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33193         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33194         Reported by Ludovic Courtès <ludo@gnu.org>.
33195
33196 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33197
33198         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33199         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33200         made it so grep -r --include=GLOB* ... did not work.
33201
33202 2010-03-26  Jim Meyering  <meyering@redhat.com>
33203             Eric Blake  <eblake@redhat.com>
33204
33205         maint.mk: prohibit use of test's -o and -a operators
33206         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33207
33208 2010-03-28  Bruno Haible  <bruno@clisp.org>
33209
33210         Remove unused GNULIB_XYZ macro definitions.
33211         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33212         invocation.
33213
33214 2010-03-28  Bruno Haible  <bruno@clisp.org>
33215
33216         Mark privileged tests modules.
33217         * modules/idpriv-drop-tests (Status): New section.
33218         * modules/idpriv-droptemp-tests (Status): New section.
33219
33220 2010-03-28  Bruno Haible  <bruno@clisp.org>
33221
33222         Split C++ tests into separate tests modules.
33223         * modules/dirent-c++-tests: New file, extracted from
33224         modules/dirent-tests.
33225         * modules/dirent-tests: Depend on it.
33226         * modules/fcntl-h-c++-tests: New file, extracted from
33227         modules/fcntl-h-tests.
33228         * modules/fcntl-h-tests: Depend on it.
33229         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33230         * modules/glob-tests: Depend on it.
33231         * modules/iconv-h-c++-tests: New file, extracted from
33232         modules/iconv-h-tests.
33233         * modules/iconv-h-tests: Depend on it.
33234         * modules/langinfo-c++-tests: New file, extracted from
33235         modules/langinfo-tests.
33236         * modules/langinfo-tests: Depend on it.
33237         * modules/locale-c++-tests: New file, extracted from
33238         modules/locale-tests.
33239         * modules/locale-tests: Depend on it.
33240         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33241         * modules/math-tests: Depend on it.
33242         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33243         * modules/pty-tests: Depend on it.
33244         * modules/search-c++-tests: New file, extracted from
33245         modules/search-tests.
33246         * modules/search-tests: Depend on it.
33247         * modules/signal-c++-tests: New file, extracted from
33248         modules/signal-tests.
33249         * modules/signal-tests: Depend on it.
33250         * modules/spawn-c++-tests: New file, extracted from
33251         modules/spawn-tests.
33252         * modules/spawn-tests: Depend on it.
33253         * modules/stdio-c++-tests: New file, extracted from
33254         modules/stdio-tests.
33255         * modules/stdio-tests: Depend on it.
33256         * modules/stdlib-c++-tests: New file, extracted from
33257         modules/stdlib-tests.
33258         * modules/stdlib-tests: Depend on it.
33259         * modules/string-c++-tests: New file, extracted from
33260         modules/string-tests.
33261         * modules/string-tests: Depend on it.
33262         * modules/sys_ioctl-c++-tests: New file, extracted from
33263         modules/sys_ioctl-tests.
33264         * modules/sys_ioctl-tests: Depend on it.
33265         * modules/sys_select-c++-tests: New file, extracted from
33266         modules/sys_select-tests.
33267         * modules/sys_select-tests: Depend on it.
33268         * modules/sys_socket-c++-tests: New file, extracted from
33269         modules/sys_socket-tests.
33270         * modules/sys_socket-tests: Depend on it.
33271         * modules/sys_stat-c++-tests: New file, extracted from
33272         modules/sys_stat-tests.
33273         * modules/sys_stat-tests: Depend on it.
33274         * modules/sys_time-c++-tests: New file, extracted from
33275         modules/sys_time-tests.
33276         * modules/sys_time-tests: Depend on it.
33277         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33278         * modules/time-tests: Depend on it.
33279         * modules/unistd-c++-tests: New file, extracted from
33280         modules/unistd-tests.
33281         * modules/unistd-tests: Depend on it.
33282         * modules/wchar-c++-tests: New file, extracted from
33283         modules/wchar-tests.
33284         * modules/wchar-tests: Depend on it.
33285         * modules/wctype-c++-tests: New file, extracted from
33286         modules/wctype-tests.
33287         * modules/wctype-tests: Depend on it.
33288         Reported by Simon Josefsson.
33289
33290 2010-03-28  Bruno Haible  <bruno@clisp.org>
33291
33292         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33293         * gnulib-tool (func_exists_module): New function, extracted from
33294         func_verify_module.
33295         (func_verify_module): Use it.
33296         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33297         'foo' only if 'foo' exists.
33298         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33299         module.
33300
33301 2010-03-28  Bruno Haible  <bruno@clisp.org>
33302
33303         gnulib-tool: Add support for special categories of tests.
33304         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33305         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33306         (func_usage): Document them.
33307         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33308         inc_unportable_tests, inc_all_tests): New variables.
33309         (func_acceptable): Consider these variables.
33310         (func_modules_transitive_closure): Make it work when the 'Status' field
33311         consists of multiple words.
33312         (func_import): Store and restore the values of inc_cxx_tests,
33313         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33314         inc_all_tests in gnulib-comp.m4.
33315         (func_create_testdir): Set inc_all_tests to true.
33316         * doc/gnulib.texi (Extra tests modules): New section.
33317         Suggested by Jim Meyering.
33318
33319 2010-03-28  Bruno Haible  <bruno@clisp.org>
33320
33321         ansi-c++-opt: Allow turning off the C++ build by default.
33322         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33323         gl_CXX_CHOICE_DEFAULT_NO is defined.
33324         Requested by Eric Blake.
33325
33326 2010-03-28  Bruno Haible  <bruno@clisp.org>
33327
33328         unistd: Avoid #define replacements in C++ mode.
33329         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33330         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33331         setsockopt, shutdown, select): In C++, attach a warning to the function
33332         if possible, rather than #defining the symbol to a dysfunctional alias.
33333         Reported by John W. Eaton <jwe@gnu.org>.
33334
33335 2010-03-28  Bruno Haible  <bruno@clisp.org>
33336
33337         Fix link errors on mingw.
33338         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33339         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33340         $(LIBSOCKET).
33341         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33342         $(LIBSOCKET).
33343
33344 2010-03-28  Bruno Haible  <bruno@clisp.org>
33345             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33346
33347         lib-ignore: Determine different options for different compilers.
33348         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33349         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33350         Add comments.
33351         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33352         * NEWS: Mention the change.
33353
33354 2010-03-27  Bruno Haible  <bruno@clisp.org>
33355
33356         Remove unused GNULIB_XYZ macro definitions.
33357         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33358         * modules/fseek (configure.ac): Likewise.
33359         * modules/ioctl (configure.ac): Likewise.
33360         * modules/open (configure.ac): Likewise.
33361         * modules/stdlib-safer (configure.ac): Likewise.
33362
33363 2010-03-27  Bruno Haible  <bruno@clisp.org>
33364
33365         Add a remark about certain modules.
33366         * modules/malloc (Comment): New section.
33367         * modules/realloc (Comment): Likewise.
33368         * modules/sigpipe (Comment): Likewise.
33369
33370 2010-03-27  Bruno Haible  <bruno@clisp.org>
33371
33372         Resolve conflict between the two kinds of module indicators.
33373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33374         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33375         * modules/canonicalize (configure.ac): Invoke
33376         gl_MODULE_INDICATOR_FOR_TESTS.
33377         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33378         GNULIB_XYZ.
33379         * tests/test-dirent-c++.cc: Likewise.
33380         * tests/test-dirent-safer.c: Likewise.
33381         * tests/test-dup2.c: Likewise.
33382         * tests/test-fchdir.c: Likewise.
33383         * tests/test-fcntl-h-c++.cc: Likewise.
33384         * tests/test-getopt.c: Likewise.
33385         * tests/test-getopt.h: Likewise.
33386         * tests/test-langinfo-c++.cc: Likewise.
33387         * tests/test-locale-c++.cc: Likewise.
33388         * tests/test-math-c++.cc: Likewise.
33389         * tests/test-pty-c++.cc: Likewise.
33390         * tests/test-search-c++.cc: Likewise.
33391         * tests/test-signal-c++.cc: Likewise.
33392         * tests/test-spawn-c++.cc: Likewise.
33393         * tests/test-stdio-c++.cc: Likewise.
33394         * tests/test-stdlib-c++.cc: Likewise.
33395         * tests/test-string-c++.cc: Likewise.
33396         * tests/test-sys_ioctl-c++.cc: Likewise.
33397         * tests/test-sys_select-c++.cc: Likewise.
33398         * tests/test-sys_socket-c++.cc: Likewise.
33399         * tests/test-sys_stat-c++.cc: Likewise.
33400         * tests/test-sys_time-c++.cc: Likewise.
33401         * tests/test-time-c++.cc: Likewise.
33402         * tests/test-unistd-c++.cc: Likewise.
33403         * tests/test-wchar-c++.cc: Likewise.
33404         * tests/uninorm/test-u8-nfc.c: Likewise.
33405         * tests/uninorm/test-u8-nfd.c: Likewise.
33406         * tests/uninorm/test-u8-nfkc.c: Likewise.
33407         * tests/uninorm/test-u8-nfkd.c: Likewise.
33408         * tests/uninorm/test-u16-nfc.c: Likewise.
33409         * tests/uninorm/test-u16-nfd.c: Likewise.
33410         * tests/uninorm/test-u16-nfkc.c: Likewise.
33411         * tests/uninorm/test-u16-nfkd.c: Likewise.
33412         * tests/uninorm/test-u32-nfc.c: Likewise.
33413         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33414         * tests/uninorm/test-u32-nfd.c: Likewise.
33415         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33416         * tests/uninorm/test-u32-nfkc.c: Likewise.
33417         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33418         * tests/uninorm/test-u32-nfkd.c: Likewise.
33419         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33420         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33421
33422 2010-03-27  Bruno Haible  <bruno@clisp.org>
33423
33424         Distinguish two kinds of module indicators.
33425         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33426         gl_MODULE_INDICATOR.
33427         (gl_MODULE_INDICATOR): New macro.
33428         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33429         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33430         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33431         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33432         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33433         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33434         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33436         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33437         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33438         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33439         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33442         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33443         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33445         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33446         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33447         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33448         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33449         * modules/cloexec (configure.ac): Likewise.
33450         * modules/getopt-gnu (configure.ac): Likewise.
33451         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33452         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33453         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33454         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33455
33456 2010-03-27  Bruno Haible  <bruno@clisp.org>
33457
33458         New module description field 'Comment'.
33459         * gnulib-tool: New option --extract-comment.
33460         (func_usage): Document it.
33461         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33462         (func_get_comment): New function.
33463         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33464
33465 2010-03-27  Bruno Haible  <bruno@clisp.org>
33466
33467         Addendum to 2010-02-07 commit.
33468         * gnulib-tool (func_usage): Document --extract-applicability option.
33469
33470 2010-03-27  Bruno Haible  <bruno@clisp.org>
33471
33472         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33473         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33474         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33475         rather than link errors.
33476
33477 2010-03-27  Bruno Haible  <bruno@clisp.org>
33478
33479         Avoid side effects from tests-related modules on the compilation of lib.
33480         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33481         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33482         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33483         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33484         macro.
33485         (func_import): Define a witness macro. Assign it a value that depends
33486         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33487         tests-related modules.
33488         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33489         Reported by Jim Meyering.
33490
33491 2010-03-27  Bruno Haible  <bruno@clisp.org>
33492
33493         Factorize common .m4 code.
33494         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33495         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33496         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33497         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33498         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33499         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33500         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33501         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33502         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33504         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33505         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33506         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33507         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33508         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33509         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33510         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33511         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33513         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33514         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_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/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33522         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33523         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33524         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33525         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33526
33527 2010-03-27  Bruno Haible  <bruno@clisp.org>
33528
33529         Fix a compilation error on Cygwin with g++ >= 4.3.
33530         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33531         if it is undefined or if we alias it to chmod.
33532         (lstat): Don't warn about the use of this function if it is undefined
33533         or if we alias it to stat.
33534         Reported by Simon Josefsson.
33535
33536 2010-03-27  Bruno Haible  <bruno@clisp.org>
33537
33538         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33539         * modules/getlogin (configure.ac): Update.
33540
33541         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33542         * modules/getlogin_r (configure.ac): Update.
33543
33544         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33546         * modules/inet_ntop (configure.ac): Update.
33547
33548         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33549         * modules/inet_pton (configure.ac): Update.
33550
33551         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33552         * modules/mbslen (configure.ac): Update.
33553
33554         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33555         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33556         * modules/forkpty (configure.ac): Update.
33557         * modules/openpty (configure.ac): Update.
33558
33559 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33560
33561         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33562         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33563
33564 2010-03-25  Eric Blake  <eblake@redhat.com>
33565
33566         maint: use pragma consistently across replacement headers
33567         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33568         * lib/dirent.in.h (system_header): Likewise.
33569         * lib/errno.in.h (system_header): Likewise.
33570         * lib/float.in.h (system_header): Likewise.
33571         * lib/getopt.in.h (system_header): Likewise.
33572         * lib/iconv.in.h (system_header): Likewise.
33573         * lib/inttypes.in.h (system_header): Likewise.
33574         * lib/langinfo.in.h (system_header): Likewise.
33575         * lib/locale.in.h (system_header): Likewise.
33576         * lib/math.in.h (system_header): Likewise.
33577         * lib/netdb.in.h (system_header): Likewise.
33578         * lib/netinet_in.in.h (system_header): Likewise.
33579         * lib/pty.in.h (system_header): Likewise.
33580         * lib/sched.in.h (system_header): Likewise.
33581         * lib/se-selinux.in.h (system_header): Likewise.
33582         * lib/search.in.h (system_header): Likewise.
33583         * lib/spawn.in.h (system_header): Likewise.
33584         * lib/stdarg.in.h (system_header): Likewise.
33585         * lib/stdint.in.h (system_header): Likewise.
33586         * lib/string.in.h (system_header): Likewise.
33587         * lib/strings.in.h (system_header): Likewise.
33588         * lib/sys_file.in.h (system_header): Likewise.
33589         * lib/sys_ioctl.in.h (system_header): Likewise.
33590         * lib/sys_socket.in.h (system_header): Likewise.
33591         * lib/sys_times.in.h (system_header): Likewise.
33592         * lib/sys_utsname.in.h (system_header): Likewise.
33593         * lib/sys_wait.in.h (system_header): Likewise.
33594         * lib/sysexits.in.h (system_header): Likewise.
33595         * lib/unistd.in.h (system_header): Likewise.
33596         * lib/wctype.in.h (system_header): Likewise.
33597
33598         arpa/inet: fix mingw compilation warning
33599         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33600         Reported by Matthew Bolte.
33601
33602 2010-03-25  Bruno Haible  <bruno@clisp.org>
33603
33604         Avoid collision between gnulib wrapper and libintl wrapper.
33605         * lib/printf.c (printf): Don't define if a printf wrapper is already
33606         defined in intl/printf.c.
33607         Reported by Michel Boaventura <michel@michelboaventura.com>.
33608
33609 2010-03-25  Bruno Haible  <bruno@clisp.org>
33610
33611         Use ANSI C.
33612         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33613
33614 2010-03-25  Bruno Haible  <bruno@clisp.org>
33615
33616         Minor formatting changes.
33617         * lib/acosl.c: Insert space before function argument list.
33618         * lib/argz.c: Likewise.
33619         * lib/asinl.c: Likewise.
33620         * lib/expl.c: Likewise.
33621         * lib/gen-uni-tables.c: Likewise.
33622         * lib/gettext.h: Likewise.
33623         * lib/glthread/lock.h: Likewise.
33624         * lib/tanl.c: Likewise.
33625         * lib/uniname/uniname.c: Likewise.
33626         * tests/test-idpriv-drop.c: Likewise.
33627         * tests/test-idpriv-droptemp.c: Likewise.
33628         * tests/test-lock.c: Likewise.
33629         * tests/test-tls.c: Likewise.
33630         * lib/argp-help.c: Insert space before function-like macro argument
33631         list.
33632         * lib/memcmp.c: Likewise.
33633         * tests/test-base64.c: Likewise.
33634         * lib/localename.c: Insert space before sizeof's argument list.
33635         * lib/safe-alloc.h: Likewise.
33636         * lib/file-set.h: Insert space before macro argument list.
33637         * tests/test-argp.c: Likewise.
33638         * lib/argp-namefrob.h: Insert space before function parameter list.
33639         * lib/getaddrinfo.c: Likewise.
33640         * lib/netdb.in.h: Likewise.
33641         * lib/parse-duration.h: Likewise.
33642         * lib/parse-duration.c: Likewise.
33643         * lib/poll.c: Likewise.
33644         * lib/select.c: Likewise.
33645         * lib/trim.h: Likewise.
33646         * tests/test-usleep.c: Likewise.
33647         * lib/ldexpl.c: Insert space before function parameter list and before
33648         function argument list.
33649         * lib/logl.c: Likewise.
33650         * lib/sqrtl.c: Likewise.
33651         * lib/trim.c: Likewise.
33652         * lib/cosl.c: Use GNU style indentation. Insert space before function
33653         argument list.
33654         * lib/sinl.c: Likewise.
33655         * lib/tsearch.c: Insert space after 'for'.
33656         Reported by Jim Meyering.
33657
33658 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33659
33660         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33661         config header before grepping, as it's not present before
33662         autoreconf/configure are run.  Reported by Simon Josefsson.
33663
33664 2010-03-23  Bruno Haible  <bruno@clisp.org>
33665
33666         pt_chown: Make it work with automake < 1.11.
33667         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33668         Reported by Simon Josefsson.
33669
33670 2010-03-23  Bruno Haible  <bruno@clisp.org>
33671
33672         pt_chown: Don't depend on GPLed modules.
33673         * lib/pt_chown.c: Don't include idpriv.h.
33674         (main): Don't drop privileges.
33675         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33676         Reported by Simon Josefsson.
33677
33678 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33679
33680         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33681         suggestions from karl@freefriends.org (Karl Berry).
33682
33683 2010-03-22  Eric Blake  <eblake@redhat.com>
33684
33685         gethostname: further tweaks
33686         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33687         are overriding gethostname.
33688         Suggested by Bruno Haible.
33689
33690 2010-03-21  Bruno Haible  <bruno@clisp.org>
33691
33692         Fix comments.
33693         * lib/forkpty.c (rpl_forkpty): Fix comment.
33694         * lib/openpty.c (rpl_openpty): Likewise.
33695         Reported by Eric Blake.
33696
33697 2010-03-22  Eric Blake  <eblake@redhat.com>
33698
33699         gethostname: fix build on mingw
33700         * lib/unistd.in.h (includes): Work around fact that mingw
33701         <winsock2.h> re-includes <unistd.h>, by avoiding any
33702         redeclarations if we are being included by <winsock2.h>.
33703         Reported by Matthias Bolte.
33704
33705 2010-03-21  Bruno Haible  <bruno@clisp.org>
33706
33707         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33708         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33709         modifications.
33710         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33711         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33712         provide the replacement.
33713         * modules/forkpty (Depends-on): Add openpty, login_tty.
33714         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33715         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33716         * doc/glibc-functions/forkpty.texi: More supported platforms.
33717         * config/srclist.txt: Add forkpty.c (commented).
33718
33719 2010-03-21  Bruno Haible  <bruno@clisp.org>
33720
33721         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33722         (Makefile.am): Verify that PTY_LIB is defined.
33723
33724         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33725
33726 2010-03-21  Bruno Haible  <bruno@clisp.org>
33727
33728         Tests for module 'login_tty'.
33729         * modules/login_tty-tests: New file.
33730         * tests/test-login_tty.c: New file.
33731
33732         New module 'login_tty'.
33733         * lib/login_tty.c: New file.
33734         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33735         * modules/login_tty: New file.
33736         * doc/glibc-functions/login_tty.texi: Mention the new module.
33737
33738 2010-03-21  Bruno Haible  <bruno@clisp.org>
33739
33740         login_tty: Documentation.
33741         * doc/glibc-functions/login_tty.texi: New file.
33742         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33743
33744 2010-03-21  Bruno Haible  <bruno@clisp.org>
33745
33746         pty: Consistent macro naming.
33747         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33748         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33749         * modules/pty (configure.ac): Update.
33750
33751 2010-03-21  Bruno Haible  <bruno@clisp.org>
33752
33753         Tests for openpty: Make stricter.
33754         * tests/test-openpty.c (main): Add test of canonical processing and
33755         erase.
33756         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33757
33758         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33759         * lib/openpty.c (openpty): New replacement function.
33760         * lib/pty.in.h: Include <termios.h>.
33761         (openpty): Update declaration. Add comments.
33762         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33763         is not declared, arrange to provide the replacement. Check for _getpty
33764         and posix_openpt.
33765         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33766         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33767         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33768         * modules/pty-tests (test_pty_c___LDADD): New variable.
33769         * doc/glibc-functions/openpty.texi: More supported platforms.
33770
33771 2010-03-21  Bruno Haible  <bruno@clisp.org>
33772
33773         setenv: Tweaks.
33774         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33775         the test program.
33776         * doc/posix-functions/setenv.texi: Update platforms list.
33777
33778 2010-03-21  Bruno Haible  <bruno@clisp.org>
33779
33780         New module 'unlockpt'.
33781         * lib/unlockpt.c: New file, from glibc with modifications.
33782         * m4/unlockpt.m4: New file.
33783         * modules/unlockpt: New file.
33784         * lib/stdlib.in.h (unlockpt): New declaration.
33785         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33786         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33787         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33788         HAVE_UNLOCKPT.
33789         * doc/posix-functions/unlockpt.texi: Mention the new module.
33790         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33791         * config/srclist.txt: Add unlockpt.c (commented).
33792
33793 2010-03-21  Jim Meyering  <meyering@redhat.com>
33794
33795         maint.mk: prohibit inclusion of "intprops.h" without use
33796         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33797
33798 2010-03-21  Bruno Haible  <bruno@clisp.org>
33799
33800         New module 'grantpt'.
33801         * lib/grantpt.c: New file, from glibc with modifications.
33802         * m4/grantpt.m4: New file.
33803         * modules/grantpt: New file.
33804         * lib/stdlib.in.h (grantpt): New declaration.
33805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33807         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33808         HAVE_GRANTPT.
33809         * doc/posix-functions/grantpt.texi: Mention the new module.
33810         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33811         * config/srclist.txt: Add grantpt.c (commented).
33812
33813 2010-03-21  Bruno Haible  <bruno@clisp.org>
33814
33815         New module 'pt_chown'.
33816         * lib/pt_chown.c: New file, from glibc with modifications.
33817         * lib/pty-private.h: New file, from glibc with modifications.
33818         * modules/pt_chown: New file.
33819         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33820
33821 2010-03-21  Bruno Haible  <bruno@clisp.org>
33822
33823         Tests for module 'ptsname'.
33824         * modules/ptsname-tests: New file.
33825         * tests/test-ptsname.c: New file.
33826
33827         New module 'ptsname'.
33828         * lib/ptsname.c: New file, from glibc with modifications.
33829         * m4/ptsname.m4: New file.
33830         * modules/ptsname: New file.
33831         * lib/stdlib.in.h (ptsname): New declaration.
33832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33834         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33835         HAVE_PTSNAME.
33836         * doc/posix-functions/ptsname.texi: Mention the new module.
33837         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33838         * config/srclist.txt: Add ptsname.c (commented).
33839
33840 2010-03-21  Bruno Haible  <bruno@clisp.org>
33841
33842         Tests for module 'ttyname_r'.
33843         * modules/ttyname_r-tests: New file.
33844         * tests/test-ttyname_r.c: New file.
33845
33846         New module 'ttyname_r'.
33847         * lib/ttyname_r.c: New file.
33848         * m4/ttyname_r.m4: New file.
33849         * modules/ttyname_r: New file.
33850         * lib/unistd.in.h (ttyname_r): New declaration.
33851         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33852         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33853         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33854         HAVE_TTYNAME_R.
33855         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33856         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33857
33858 2010-03-20  Bruno Haible  <bruno@clisp.org>
33859
33860         signal: Undefine macro definitions in C++ mode.
33861         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33862         sigfillset): Undefine macro definitions from the system header in C++
33863         mode.
33864         Reported by John W. Eaton <jwe@gnu.org>.
33865
33866 2010-03-20  Bruno Haible  <bruno@clisp.org>
33867
33868         Ensure no #include statements inside extern "C" { ... }.
33869         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33870         contain #include statements.
33871         * lib/time.in.h: Likewise.
33872
33873 2010-03-20  Bruno Haible  <bruno@clisp.org>
33874
33875         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33876         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33877         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33878         Reported by John W. Eaton <jwe@gnu.org>.
33879
33880 2010-03-20  Bruno Haible  <bruno@clisp.org>
33881
33882         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33883         Reported by Jim Meyering.
33884
33885 2010-03-20  Bruno Haible  <bruno@clisp.org>
33886
33887         pipe: Set errno upon failure.
33888         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33889         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33890         errno value in error message.
33891
33892 2010-03-20  Bruno Haible  <bruno@clisp.org>
33893             Jim Meyering  <meyering@redhat.com>
33894
33895         lchown: Avoid "unused variable" warning.
33896         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33897
33898 2010-03-20  Bruno Haible  <bruno@clisp.org>
33899
33900         Work around unlink() bug on MacOS X 10.5.6.
33901         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33902         attempting to unlink a parent directory.
33903         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33904         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33905         activate for the replacement function.
33906         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33907
33908 2010-03-20  Bruno Haible  <bruno@clisp.org>
33909
33910         Fix link errors on Solaris 8.
33911         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33912         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33913
33914 2010-03-19  Jim Meyering  <meyering@redhat.com>
33915
33916         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33917         The _LIBC implementation of build_range_exp correctly honors the
33918         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33919         However, the non-_LIBC implementation would ignore that syntax-bit
33920         flag and return REG_ERANGE unconditionally.
33921         This change makes it honor that flag.
33922         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33923         Make two pointer parameters "const".
33924         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33925         (parse_bracket_exp): Update caller.
33926
33927         regex.m4: correct the reversed range endpoint ([b-a]) test
33928         * m4/regex.m4: When requiring that [b-a] evoke failure,
33929         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33930         test pass once again for x86-based systems.
33931
33932 2010-03-19  Bruno Haible  <bruno@clisp.org>
33933
33934         scandir: Fix link error on Solaris 8.
33935         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33936         macros.
33937
33938 2010-03-19  Bruno Haible  <bruno@clisp.org>
33939
33940         getusershell: Fix documentation.
33941         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33942         module.
33943         * doc/glibc-functions/setusershell.texi: Likewise.
33944
33945         getusershell: Provide declaration, missing on Solaris 9.
33946         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33947         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33948         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33949         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33951         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33952         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33953         HAVE_GETUSERSHELL.
33954         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33955
33956 2010-03-19  Bruno Haible  <bruno@clisp.org>
33957
33958         wctype: Provide iswblank function.
33959         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33960         exists and is fine.
33961         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33962         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33963         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33964         * doc/posix-functions/iswblank.texi: Update.
33965
33966 2010-03-19  Bruno Haible  <bruno@clisp.org>
33967
33968         Tests of module 'pty' in C++ mode.
33969         * modules/pty-tests: New file.
33970         * tests/test-pty-c++.cc: New file.
33971         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33972
33973 2010-03-19  Eric Blake  <eblake@redhat.com>
33974
33975         logb: fix documentation
33976         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33977         1.5 declaration bug.
33978
33979         forkpty, openpty: prefer glibc's const-safe prototype
33980         * lib/forkpty.c (rpl_forkpty): New file.
33981         * lib/openpty.c (rpl_openpty): Likewise.
33982         * modules/forkpty (Files): Distribute it.
33983         * modules/openpty (Files): Likewise.
33984         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33985         check...
33986         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33987         replacement for for non-const BSD signature.
33988         * modules/pty (Makefile.am): Substitute witnesses.
33989         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33990         * tests/test-forkpty.c: Update signature check.
33991         * tests/test-openpty.c: Likewise.
33992         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33993         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33994
33995         forkpty, openpty: split functions into new modules
33996         * modules/pty (Makefile.am): Substitute new witnesses.
33997         (Libraries): Move library detection...
33998         * modules/forkpty: ...into new module.
33999         * modules/openpty: Another new module.
34000         * modules/pty-tests: Rename and split...
34001         * modules/forkpty-tests: ...to this...
34002         * modules/openpty-tests: ...and this.
34003         * tests/test-pty.c: Rename and split...
34004         * tests/test-forkpty.c: ...to this...
34005         * tests/test-openpty.c: ...and this.
34006         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34007         (gl_PTY): Split library searching...
34008         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34009         (gl_FORKPTY, gl_OPENPTY): New macros.
34010         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34011         * NEWS: Mention the split.
34012         * MODULES.html.sh (Misc): Document the modules.
34013         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34014         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34015
34016         pty: improve replacement header
34017         * lib/pty.in.h: New file.
34018         * modules/pty (Files): Ship it.
34019         (Makefile.am): Always build replacement.
34020         * m4/pty.m4: Rename...
34021         * m4/pty_h.m4: ...to this.
34022         (gl_PTY): Modernize setting of witness macros; update check of
34023         forkpty to take proper advantage of cache.
34024         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34025
34026         getopt: avoid compiler warning
34027         * lib/getopt.c (attribute_hidden): Remove unused macro.
34028
34029 2010-03-18  Bruno Haible  <bruno@clisp.org>
34030
34031         Fix link errors on Solaris 8.
34032         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34033         * modules/search-tests (test_search_c___LDADD): Likewise.
34034         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34035         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34036         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34037         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34038         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34039         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34040         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34041
34042 2010-03-18  Bruno Haible  <bruno@clisp.org>
34043
34044         Fix bug introduced on 2010-03-14.
34045         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34046         (gl_SPAWN_H): Require it.
34047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34048         Reported by Simon Josefsson.
34049
34050 2010-03-18  Bruno Haible  <bruno@clisp.org>
34051
34052         Fix typo introduced on 2009-12-31.
34053         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34054         posix_spawn_file_actions_adddup2.
34055
34056 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34057         and Eric Blake  <eblake@redhat.com>
34058
34059         test-vc-list-files-git: make more robust
34060         * tests/test-vc-list-files-git.sh: Unset problematic environment
34061         variables.  Chain commands together.
34062
34063 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34064
34065         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34066         `AC_CHECK_DECL' invocation.
34067
34068 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34069
34070         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34071         appears before executable statements. Suggested by Petr Sumbera
34072         <Petr.Sumbera@Sun.COM>.
34073
34074 2010-03-14  Bruno Haible  <bruno@clisp.org>
34075
34076         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34077         portability problems. Instead use a simpler test.
34078         (main): Check that invalid arguments are rejected only on Linux.
34079
34080 2010-03-14  Bruno Haible  <bruno@clisp.org>
34081
34082         Fix bug introduced on 2009-12-31.
34083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34084         gl_PREREQ_SYS_H_WINSOCK2 always.
34085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34086         SYS_SOCKET_H variable.
34087         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34088         Update comments.
34089         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34090         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34091         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34093         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34094
34095 2010-03-14  Bruno Haible  <bruno@clisp.org>
34096
34097         Fix values returned by sinl, cosl.
34098         * lib/trigl.h: Add specification comments.
34099         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34100         that combines the values from the precomputed table with the values of
34101         the Chebyshev polynomials.
34102
34103 2010-03-14  Bruno Haible  <bruno@clisp.org>
34104
34105         Fix compilation error when modules 'posix_spawn[p]' are not used.
34106         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34108
34109 2010-03-14  Bruno Haible  <bruno@clisp.org>
34110
34111         Fix compilation error on mingw when module 'time_r' is not used.
34112         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34113         is 1.
34114         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34115         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34116         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34117         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34118
34119 2010-03-14  Bruno Haible  <bruno@clisp.org>
34120
34121         Fix compilation error with Sun C.
34122         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34123         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34124         instead of GCC specific ULONG_LONG_MAX.
34125         * lib/xstrtoll.c: Likewise.
34126         * lib/xstrtoull.c: Likewise.
34127
34128 2010-03-13  Bruno Haible  <bruno@clisp.org>
34129
34130         Allow the user to disable C++ code and tests.
34131         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34132         (gl_PROG_ANSI_CXX): Require it.
34133
34134 2010-03-13  Bruno Haible  <bruno@clisp.org>
34135
34136         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34137         cases.
34138
34139 2010-03-13  Bruno Haible  <bruno@clisp.org>
34140
34141         Test that gnulib does not break the standard C++ headers.
34142         * tests/test-locale-c++2.cc: New file.
34143         * modules/locale-tests (Files): Add it.
34144         (Makefile.am): Compile it for test-locale-c++.
34145         * tests/test-math-c++2.cc: New file.
34146         * modules/math-tests (Files): Add it.
34147         (Makefile.am): Compile it for test-math-c++.
34148         * tests/test-signal-c++2.cc: New file.
34149         * modules/signal-tests (Files): Add it.
34150         (Makefile.am): Compile it for test-signal-c++.
34151         * tests/test-stdio-c++2.cc: New file.
34152         * modules/stdio-tests (Files): Add it.
34153         (Makefile.am): Compile it for test-stdio-c++.
34154         * tests/test-stdlib-c++2.cc: New file.
34155         * modules/stdlib-tests (Files): Add it.
34156         (Makefile.am): Compile it for test-stdlib-c++.
34157         * tests/test-string-c++2.cc: New file.
34158         * modules/string-tests (Files): Add it.
34159         (Makefile.am): Compile it for test-string-c++.
34160         * tests/test-time-c++2.cc: New file.
34161         * modules/time-tests (Files): Add it.
34162         (Makefile.am): Compile it for test-time-c++.
34163         Reported by John W. Eaton <jwe@gnu.org>.
34164
34165 2010-03-13  Bruno Haible  <bruno@clisp.org>
34166
34167         * gnulib-tool (func_usage): Clarify which options are available for
34168         --create-testdir and --create-megatestdir.
34169
34170 2010-03-13  Bruno Haible  <bruno@clisp.org>
34171
34172         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34173         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34174         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34175         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34176         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34177         when appropriate.
34178         Reported by Jim Meyering.
34179
34180 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34181
34182         * gnulib-tool (func_import): Explain origin of code.
34183
34184 2010-03-12  Bruno Haible  <bruno@clisp.org>
34185
34186         Fix problem with automake's definition of CXXLINK.
34187         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34188         Reported by Simon Josefsson and Ludovic Courtès.
34189
34190 2010-03-12  Bruno Haible  <bruno@clisp.org>
34191
34192         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34193         stable releases.
34194
34195 2010-03-11  Bruno Haible  <bruno@clisp.org>
34196
34197         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34198         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34199         whether the system provides one variant or multiple variants of the
34200         function.
34201         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34202         C++ compilers.
34203         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34204         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34205         Reported by Jim Meyering.
34206
34207 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34208
34209         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34210
34211 2010-03-08  Bruno Haible  <bruno@clisp.org>
34212
34213         gnulib-tool: Add support for --libtool in --create-testdir.
34214         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34215         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34216
34217 2010-03-08  Eric Blake  <eblake@redhat.com>
34218
34219         gnulib-tool.texi: mention possibility of git submodule
34220         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34221         submodules.
34222         * doc/.gitignore: Ignore another generated file.
34223
34224 2010-03-08  Karl Berry  <karl@gnu.org>
34225
34226         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34227         of committing gnulib files while skipping others.
34228
34229 2010-03-07  Bruno Haible  <bruno@clisp.org>
34230
34231         Tests of module 'wctype' in C++ mode.
34232         * tests/test-wctype-c++.cc: New file.
34233         * modules/wctype-tests (Files): Add it and tests/signature.h.
34234         (Depends-on): Add ansi-c++-opt.
34235         (Makefile.am): Arrange to compile and run test-wctype-c++.
34236
34237         Tests of module 'wchar' in C++ mode.
34238         * tests/test-wchar-c++.cc: New file.
34239         * modules/wchar-tests (Files): Add it and tests/signature.h.
34240         (Depends-on): Add ansi-c++-opt.
34241         (Makefile.am): Arrange to compile and run test-wchar-c++.
34242         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34243         gl_MODULE_INDICATOR.
34244
34245         Tests of module 'unistd' in C++ mode.
34246         * tests/test-unistd-c++.cc: New file.
34247         * modules/unistd-tests (Files): Add it and tests/signature.h.
34248         (Depends-on): Add ansi-c++-opt.
34249         (Makefile.am): Arrange to compile and run test-unistd-c++.
34250         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34251         gl_MODULE_INDICATOR.
34252
34253         Tests of module 'time' in C++ mode.
34254         * tests/test-time-c++.cc: New file.
34255         * modules/time-tests (Files): Add it and tests/signature.h.
34256         (Depends-on): Add ansi-c++-opt.
34257         (Makefile.am): Arrange to compile and run test-time-c++.
34258         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34259
34260         Tests of module 'sys_time' in C++ mode.
34261         * tests/test-sys_time-c++.cc: New file.
34262         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34263         (Depends-on): Add ansi-c++-opt.
34264         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34265         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34266         gl_MODULE_INDICATOR.
34267
34268         Tests of module 'sys_stat' in C++ mode.
34269         * tests/test-sys_stat-c++.cc: New file.
34270         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34271         (Depends-on): Add ansi-c++-opt.
34272         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34273         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34274         gl_MODULE_INDICATOR.
34275
34276         Tests of module 'sys_socket' in C++ mode.
34277         * tests/test-sys_socket-c++.cc: New file.
34278         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34279         (Depends-on): Add ansi-c++-opt.
34280         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34281         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34282         gl_MODULE_INDICATOR.
34283
34284         Tests of module 'sys_select' in C++ mode.
34285         * tests/test-sys_select-c++.cc: New file.
34286         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34287         (Depends-on): Add ansi-c++-opt.
34288         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34289         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34290         gl_MODULE_INDICATOR.
34291
34292         Tests of module 'sys_ioctl' in C++ mode.
34293         * tests/test-sys_ioctl-c++.cc: New file.
34294         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34295         (Depends-on): Add ansi-c++-opt.
34296         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34298         gl_MODULE_INDICATOR.
34299
34300         Tests of module 'string' in C++ mode.
34301         * tests/test-string-c++.cc: New file.
34302         * modules/string-tests (Files): Add it and tests/signature.h.
34303         (Depends-on): Add ansi-c++-opt.
34304         (Makefile.am): Arrange to compile and run test-string-c++.
34305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34306         gl_MODULE_INDICATOR.
34307
34308         Tests of module 'stdlib' in C++ mode.
34309         * tests/test-stdlib-c++.cc: New file.
34310         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34311         (Depends-on): Add ansi-c++-opt.
34312         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34313         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34314         gl_MODULE_INDICATOR.
34315
34316         Tests of module 'stdio' in C++ mode.
34317         * tests/test-stdio-c++.cc: New file.
34318         * modules/stdio-tests (Files): Add it and tests/signature.h.
34319         (Depends-on): Add ansi-c++-opt.
34320         (Makefile.am): Arrange to compile and run test-stdio-c++.
34321         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34322         gl_MODULE_INDICATOR.
34323
34324         Tests of module 'spawn' in C++ mode.
34325         * tests/test-spawn-c++.cc: New file.
34326         * modules/spawn-tests (Files): Add it and tests/signature.h.
34327         (Depends-on): Add ansi-c++-opt.
34328         (Makefile.am): Arrange to compile and run test-spawn-c++.
34329         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34330         gl_MODULE_INDICATOR.
34331
34332         Tests of module 'signal' in C++ mode.
34333         * tests/test-signal-c++.cc: New file.
34334         * modules/signal-tests (Files): Add it and tests/signature.h.
34335         (Depends-on): Add ansi-c++-opt.
34336         (Makefile.am): Arrange to compile and run test-signal-c++.
34337         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34338         gl_MODULE_INDICATOR.
34339
34340         Tests of module 'search' in C++ mode.
34341         * tests/test-search-c++.cc: New file.
34342         * modules/search-tests (Files): Add it and tests/signature.h.
34343         (Depends-on): Add ansi-c++-opt.
34344         (Makefile.am): Arrange to compile and run test-search-c++.
34345         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34346         gl_MODULE_INDICATOR.
34347
34348         Tests of module 'math' in C++ mode.
34349         * tests/test-math-c++.cc: New file.
34350         * modules/math-tests (Files): Add it and tests/signature.h.
34351         (Depends-on): Add ansi-c++-opt.
34352         (Makefile.am): Arrange to compile and run test-math-c++.
34353         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34354
34355         Tests of module 'locale' in C++ mode.
34356         * tests/test-locale-c++.cc: New file.
34357         * modules/locale-tests (Files): Add it and tests/signature.h.
34358         (Depends-on): Add ansi-c++-opt.
34359         (Makefile.am): Arrange to compile and run test-locale-c++.
34360         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34361         gl_MODULE_INDICATOR.
34362
34363         Tests of module 'langinfo' in C++ mode.
34364         * tests/test-langinfo-c++.cc: New file.
34365         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34366         (Depends-on): Add ansi-c++-opt.
34367         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34368         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34369         gl_MODULE_INDICATOR.
34370
34371         Tests of module 'iconv-h' in C++ mode.
34372         * tests/test-iconv-h-c++.cc: New file.
34373         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34374         (Depends-on): Add ansi-c++-opt.
34375         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34376
34377         Tests of module 'glob' in C++ mode.
34378         * tests/test-glob-c++.cc: New file.
34379         * modules/glob-tests (Files): Add it.
34380         (Depends-on): Add ansi-c++-opt.
34381         (Makefile.am): Arrange to compile and run test-glob-c++.
34382
34383         Tests of module 'fcntl-h' in C++ mode.
34384         * tests/test-fcntl-h-c++.cc: New file.
34385         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34386         (Depends-on): Add ansi-c++-opt.
34387         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34388         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34389         gl_MODULE_INDICATOR.
34390
34391         Tests of module 'dirent' in C++ mode.
34392         * tests/test-dirent-c++.cc: New file.
34393         * modules/dirent-tests (Files): Add it and tests/signature.h.
34394         (Depends-on): Add ansi-c++-opt.
34395         (Makefile.am): Arrange to compile and run test-dirent-c++.
34396         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34397         gl_MODULE_INDICATOR.
34398
34399         New module 'ansi-c++-opt'.
34400         * modules/ansi-c++-opt: New file.
34401         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34402
34403         Document C++ namespace mode.
34404         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34405
34406         wctype: Avoid #define replacements in C++ mode.
34407         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34408         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34409         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34410         In C++, define a namespaced alias symbol.
34411         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34412         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34413         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34414         rule.
34415
34416         wchar: Avoid #define replacements in C++ mode.
34417         * lib/wchar.in.h: Include c++defs.h.
34418         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34419         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34420         symbol.
34421         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34422         * modules/wchar (Depends-on): Add c++defs.
34423         (Makefile.am): Update wchar.h rule.
34424
34425         unistd: Avoid #define replacements in C++ mode.
34426         * lib/unistd.in.h: Include c++defs.h.
34427         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34428         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34429         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34430         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34431         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34432         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34433         symbol.
34434         (environ): Update.
34435         * modules/unistd (Depends-on): Add c++defs.
34436         (Makefile.am): Update unistd.h rule.
34437
34438         time: Avoid #define replacements in C++ mode.
34439         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34440         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34441         define a namespaced alias symbol.
34442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34443         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34444         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34445         * modules/time (Depends-on): Add c++defs, warn-on-use.
34446         (Makefile.am): Update time.h rule.
34447         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34448         * modules/nanosleep (configure.ac): Likewise.
34449         * modules/strptime (configure.ac): Likewise.
34450         * modules/timegm (configure.ac): Likewise.
34451
34452         sys_time: Avoid #define replacements in C++ mode.
34453         * lib/sys_time.in.h: Include c++defs.h.
34454         (gettimeofday): In C++, define a namespaced alias symbol.
34455         * modules/sys_time (Depends-on): Add c++defs.
34456         (Makefile.am): Update sys/time.h rule.
34457
34458         sys_stat: Avoid #define replacements in C++ mode.
34459         * lib/sys_stat.in.h: Include c++defs.h.
34460         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34461         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34462         namespaced alias symbol.
34463         In C++, define a namespaced alias symbol.
34464         * modules/sys_stat (Depends-on): Add c++defs.
34465         (Makefile.am): Update sys/stat.h rule.
34466
34467         sys_socket: Avoid #define replacements in C++ mode.
34468         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34469         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34470         definitions also when the system has a <sys/socket.h>.
34471         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34472         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34473         In C++, define a namespaced alias symbol.
34474         * modules/sys_socket (Depends-on): Add c++defs.
34475         (Makefile.am): Update sys/socket.h rule.
34476
34477         sys_select: Avoid #define replacements in C++ mode.
34478         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34479         definitions also when the system has a <sys/select.h>.
34480         (select): In C++, define a namespaced alias symbol.
34481         * modules/sys_select (Depends-on): Add c++defs.
34482         (Makefile.am): Update sys/select.h rule.
34483
34484         sys_ioctl: Avoid #define replacements in C++ mode.
34485         * lib/sys_ioctl.in.h: Include c++defs.h.
34486         (ioctl): In C++, define a namespaced alias symbol.
34487         * modules/sys_ioctl (Depends-on): Add c++defs.
34488         (Makefile.am): Update sys/ioctl.h rule.
34489
34490         string: Avoid #define replacements in C++ mode.
34491         * lib/string.in.h: Include c++defs.h.
34492         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34493         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34494         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34495         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34496         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34497         * modules/string (Depends-on): Add c++defs.
34498         (Makefile.am): Update string.h rule.
34499
34500         stdlib: Avoid #define replacements in C++ mode.
34501         * lib/stdlib.in.h: Include c++defs.h.
34502         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34503         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34504         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34505         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34506         symbol.
34507         * modules/stdlib (Depends-on): Add c++defs.
34508         (Makefile.am): Update stdlib.h rule.
34509
34510         stdio: Avoid #define replacements in C++ mode.
34511         * lib/stdio.in.h: Include c++defs.h.
34512         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34513         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34514         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34515         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34516         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34517         namespaced alias symbol.
34518         * modules/stdio (Depends-on): Add c++defs.
34519         (Makefile.am): Update stdio.h rule.
34520
34521         spawn: Avoid #define replacements in C++ mode.
34522         * lib/spawn.in.h: Include c++defs.h.
34523         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34524         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34525         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34526         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34527         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34528         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34529         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34530         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34531         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34532         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34533         In C++, define a namespaced alias symbol.
34534         * modules/spawn (Depends-on): Add c++defs.
34535         (Makefile.am): Update spawn.h rule.
34536
34537         signal: Avoid #define replacements in C++ mode.
34538         * lib/signal.in.h: Include c++defs.h.
34539         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34540         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34541         namespaced alias symbol.
34542         * modules/signal (Depends-on): Add c++defs.
34543         (Makefile.am): Update signal.h rule.
34544
34545         search: Avoid #define replacements in C++ mode.
34546         * lib/search.in.h: Include c++defs.h.
34547         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34548         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34549         symbol.
34550         * modules/search (Depends-on): Add c++defs.
34551         (Makefile.am): Update search.h rule.
34552
34553         math: Avoid #define replacements in C++ mode.
34554         * lib/math.in.h: Include c++defs.h.
34555         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34556         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34557         trunc, truncl): In C++, define a namespaced alias symbol.
34558         * modules/math (Depends-on): Add c++defs.
34559         (Makefile.am): Update math.h rule.
34560
34561         locale: Avoid #define replacements in C++ mode.
34562         * lib/locale.in.h: Include c++defs.h.
34563         (duplocale): In C++, define a namespaced alias symbol.
34564         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34565         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34566         * modules/locale (Depends-on): Add c++defs.
34567         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34568
34569         langinfo: Avoid #define replacements in C++ mode.
34570         * lib/langinfo.in.h: Include c++defs.h.
34571         (nl_langinfo): In C++, define a namespaced alias symbol.
34572         * modules/langinfo (Depends-on): Add c++defs.
34573         (Makefile.am): Update langinfo.h rule.
34574
34575         iconv-h: Avoid #define replacements in C++ mode.
34576         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34577         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34578         symbol.
34579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34580         whenever iconv is present.
34581         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34582         (Makefile.am): Update iconv.h rule.
34583
34584         glob: Avoid #define replacements in C++ mode.
34585         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34586         (_gl_glob_errfunc_fn): New type.
34587         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34588         symbol.
34589         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34590         (Makefile.am): Update glob.h rule.
34591
34592         fcntl-h: Avoid #define replacements in C++ mode.
34593         * lib/fcntl.in.h: Include c++defs.h.
34594         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34595         * modules/fcntl-h (Depends-on): Add c++defs.
34596         (Makefile.am): Update fcntl.h rule.
34597
34598         dirent: Avoid #define replacements in C++ mode.
34599         * lib/dirent.in.h: Include c++defs.h.
34600         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34601         namespaced alias symbol.
34602         (dirfd): Update declaration.
34603         * modules/dirent (Depends-on): Add c++defs.
34604         (Makefile.am): Update dirent.h rule.
34605
34606         ctype: Make it usable in C++ code.
34607         * lib/ctype.in.h: Include c++defs.h.
34608         (isblank): Declare as extern "C".
34609         * modules/ctype (Depends-on): Add c++defs.
34610         (Makefile.am): Update ctype.h rule.
34611
34612         New module 'c++defs'.
34613         * modules/c++defs: New file.
34614         * build-aux/c++defs.h: New file.
34615         Reported by John W. Eaton <jwe@gnu.org>.
34616
34617 2010-03-07  Bruno Haible  <bruno@clisp.org>
34618
34619         logb: Provide missing declaration for Cygwin.
34620         * lib/math.in.h (logb): New declaration.
34621         * m4/logb.m4: New file.
34622         * modules/logb (Files): Add m4/logb.m4.
34623         (Depends-on): Add math.
34624         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34625         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34627         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34628         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34629
34630 2010-03-07  Bruno Haible  <bruno@clisp.org>
34631
34632         Fix test-cond link error.
34633         * tests/test-cond.c: Include <stdio.h>.
34634
34635 2010-03-07  Bruno Haible  <bruno@clisp.org>
34636
34637         Fix test-dirent-safer link error.
34638         * modules/dirent-safer-tests (Makefile.am): Define
34639         test_dirent_safer_LDADD.
34640
34641 2010-03-07  Bruno Haible  <bruno@clisp.org>
34642
34643         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34644         among default module list.
34645
34646 2010-03-07  Bruno Haible  <bruno@clisp.org>
34647
34648         Fix link error on platforms with GNU libiconv.
34649         * modules/unistr/u8-strcoll-tests (Makefile): Define
34650         test_u8_strcoll_LDADD.
34651         * modules/unistr/u16-strcoll-tests (Makefile): Define
34652         test_u16_strcoll_LDADD.
34653         * modules/unistr/u32-strcoll-tests (Makefile): Define
34654         test_u32_strcoll_LDADD.
34655
34656 2010-03-07  Bruno Haible  <bruno@clisp.org>
34657
34658         Use POSIX declarations for socket functions.
34659         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34660         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34661         rpl_sendto): Change declaration to match POSIX.
34662         * lib/connect.c (rpl_connect): Likewise.
34663         * lib/accept.c (rpl_accept): Likewise.
34664         * lib/bind.c (rpl_bind): Likewise.
34665         * lib/getpeername.c (rpl_getpeername): Likewise.
34666         * lib/getsockname.c (rpl_getsockname): Likewise.
34667         * lib/recv.c (rpl_recv): Likewise.
34668         * lib/send.c (rpl_send): Likewise.
34669         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34670         * lib/sendto.c (rpl_sendto): Likewise.
34671
34672 2010-03-06  Bruno Haible  <bruno@clisp.org>
34673
34674         Clarify access, euidaccess, faccessat.
34675         * doc/posix-functions/faccessat.texi: Mention security problem under
34676         "Other problems", not "Portability problems".
34677         * doc/posix-functions/access.texi: Likewise. Mention a related security
34678         problem.
34679         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34680         * lib/euidaccess.c: Add comments about platforms.
34681         * lib/unistd.in.h (access, euidaccess): Add warnings.
34682
34683 2010-03-07  Bruno Haible  <bruno@clisp.org>
34684
34685         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34686         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34687         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34688         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34689         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34690         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34691         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34692         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34693         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34694         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34695         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34696         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34697         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34698         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34699         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34700         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34701         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34702         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34703         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34704         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34705         Likewise.
34706         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34707         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34708         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34709         Likewise.
34710         * tests/test-spawn.c (main): Make it work when
34711         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34712
34713 2010-03-07  Bruno Haible  <bruno@clisp.org>
34714
34715         Fix incorrect Makefile.am generation in German locale.
34716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34717         Execute sed command with character range in C locale.
34718
34719 2010-03-06  Bruno Haible  <bruno@clisp.org>
34720
34721         Tests for module 'iconv-h'.
34722         * modules/iconv-h-tests: New file.
34723         * tests/test-iconv-h.c: New file.
34724
34725         New module 'iconv-h'.
34726         * modules/iconv-h: New file.
34727         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34728         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34729         (configure.ac): Remove gl_ICONV_H.
34730         (Makefile.am): Remove rule for iconv.h.
34731
34732 2010-03-06  Bruno Haible  <bruno@clisp.org>
34733
34734         More consistent naming of *.m4 files.
34735         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34736         * modules/wctype (Files): Update.
34737
34738         More consistent naming of *.m4 files.
34739         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34740         * modules/wchar (Files): Update.
34741
34742 2010-03-06  Jim Meyering  <meyering@redhat.com>
34743
34744         euidaccess: relax license to LGPLv2+
34745         * modules/euidaccess (License): Relax to LGPLv2+.
34746
34747 2010-03-06  Bruno Haible  <bruno@clisp.org>
34748
34749         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34750         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34751         (Makefile.am): Augment lib_SOURCES instead.
34752
34753 2010-03-04  Jim Meyering  <meyering@redhat.com>
34754
34755         utime: remove obsolete module
34756         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34757         unnecessary for years, and has been marked as obsolete for 10 months.
34758         * modules/utime: Remove file.
34759         * lib/utime.c: Remove file.
34760         * m4/utime.m4: Remove file.
34761         * m4/utimes-null.m4: Remove file.
34762         * doc/posix-functions/utime.texi (utime): Remove reference to
34763         the module.  Move the sole "fixed by gnulib" item into the
34764         "problems not fixed by Gnulib" list.
34765         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34766
34767 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34768
34769         * modules/exit (License): Relax license to LGPLv2+.
34770         (Status): Mark as obsolete.
34771         * NEWS: Mention deprecated 'exit' module.
34772         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34773         of now obsolete 'exit'.
34774
34775 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34776
34777         fts-lgpl: remove unused module
34778         * modules/fts-lgpl: Remove.
34779         * MODULES.html.sh (func_all_modules): Adjust.
34780         * check-module (find_included_lib_files): Adjust.
34781         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34782
34783 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34784
34785         copy-acl: enhance Solaris ACL error handling
34786         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34787         * lib/set-mode-acl.c (qset_acl): Likewise.
34788
34789 2010-03-02  Bruno Haible  <bruno@clisp.org>
34790
34791         spawn: Don't override the system defined values on FreeBSD 8.
34792         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34793         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34794         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34795         if HAVE_POSIX_SPAWN is 1.
34796         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34797
34798 2010-03-01  Bruno Haible  <bruno@clisp.org>
34799
34800         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34801         regarding Automake.
34802
34803 2010-02-25  Bruno Haible  <bruno@clisp.org>
34804
34805         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34806         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34807         setting, not afterwards.
34808         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34809
34810 2010-02-24  Eric Blake  <eblake@redhat.com>
34811
34812         bootstrap, git-version-gen: use timestamp
34813         * build-aux/git-version-gen (scriptversion): Force UTC.
34814         * build-aux/bootstrap (scriptversion): New variable.
34815
34816         bootstrap: allow older git
34817         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34818         older than 1.6.4.  Requested by the libvirt project.
34819
34820 2010-02-23  Eric Blake  <eblake@redhat.com>
34821
34822         warn-on-use: work with old autoconf
34823         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34824         AS_VAR semantics of autoconf 2.60.
34825         Reported by Bruno Haible.
34826
34827         bootstrap: improve some comments
34828         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34829         clarification comments.
34830
34831         gettimeofday: provide correct function
34832         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34833         when replacement is declared, otherwise provide gettimeofday.
34834         Reported by Michael Goffioul.
34835
34836 2010-02-23  Jim Meyering  <meyering@redhat.com>
34837
34838         lib-ignore: relax license to "unlimited", not LGPLv2+
34839         * modules/lib-ignore (License): Relax to "unlimited".
34840
34841 2010-02-23  Jim Meyering  <meyering@redhat.com>
34842
34843         lib-ignore: relax license to LGPLv2+
34844         * modules/lib-ignore (License): Relax to LGPLv2+.
34845
34846 2010-02-22  Eric Blake  <eblake@redhat.com>
34847
34848         lseek: avoid bash 3.2 broken pipe bug
34849         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34850         warning from bash 3.2.
34851         Reported by Ben Pfaff, with analysis from Bruno Haible.
34852
34853         bootstrap: support non-FSF copyright holder
34854         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34855         bootstrap.conf override of COPYRIGHT_HOLDER.
34856         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34857
34858         bootstrap: interoperate with gettext 0.14.1
34859         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34860
34861         bootstrap: allow for alternate submodule location
34862         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34863         hardcoding submodule location.
34864         (gnulib_mk): Allow direct use of Makefile.am.
34865
34866         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34867         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34868         rather than reconfiguring where the submodule points.
34869
34870         gettimeofday: restore support for platforms that lack function
34871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34872         replacement if function is missing.
34873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34874         * modules/sys_time (Makefile.am): Substitute it.
34875         * lib/sys_time.in.h (gettimeofday): Check it.
34876         Reported by Michael Goffioul.
34877
34878 2010-02-21  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/stdio.in.h (obstack_printf): Fix typo.
34881
34882 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34883
34884         vc-list-files: use bzr ls's -R option
34885         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34886         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34887
34888 2010-02-21  Jim Meyering  <meyering@redhat.com>
34889
34890         init.sh: fix EXEEXT shims to work also for names like test-prog
34891         * tests/init.sh: Re-exec a better shell, when needed.
34892         If the current shell lacks support for posix $(...), an init.sh-using
34893         test will now try to find a shell that supports that.  If EXEEXT is
34894         nonempty, we also require support for hyphen-in-alias-name and shell
34895         substitutions like ${var#glob}.  Failure to find such a shell results
34896         in a skipped test.
34897
34898 2010-02-21  Bruno Haible  <bruno@clisp.org>
34899
34900         Really work around around "broken pipe" error message from bash 3.2.
34901         * gnulib-tool (func_reset_sigpipe): Remove function.
34902         (echo): In bash 3.2, define to a function that uses printf.
34903         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34904
34905 2010-02-20  Bruno Haible  <bruno@clisp.org>
34906
34907         Restore support for automake 1.9.6 with autoconf 2.61.
34908         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34909         Reported by James Youngman <jay@gnu.org>.
34910
34911 2010-02-20  Bruno Haible  <bruno@clisp.org>
34912
34913         Improve *printf warning condition.
34914         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34915         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34916         and the function is overridden due to SIGPIPE emulation.
34917
34918 2010-02-20  Bruno Haible  <bruno@clisp.org>
34919
34920         * lib/stdio.in.h: Tweak comments.
34921
34922 2010-02-19  Bruno Haible  <bruno@clisp.org>
34923
34924         Make it easier to find modules. New gnulib-tool option '--find'.
34925         * gnulib-tool: New option --find.
34926         (func_usage): Document it.
34927         (func_sanitize_modulelist): New function, extracted from
34928         func_all_modules.
34929         (func_all_modules): Invoke it.
34930         * doc/gnulib-tool.texi (Which modules?): New node.
34931
34932 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34933
34934         * lib/sys_select.in.h: Provide select replacement even if
34935         sys/select.h exists on a system, for Interix.
34936
34937 2010-02-18  Jim Meyering  <meyering@redhat.com>
34938
34939         init.sh: don't use $(...) just yet
34940         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34941         to accommodate e.g., Solaris' /bin/sh.
34942
34943 2010-02-17  Bruno Haible  <bruno@clisp.org>
34944
34945         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34946         Reported by Ludovic Courtès <ludo@gnu.org>.
34947
34948 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34949
34950         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34951         linking with -lintl.
34952
34953 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34954
34955         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34956         if not provided by the system's netdb.h.  Reported by
34957         ludo@gnu.org (Ludovic Courtès).
34958
34959 2010-02-15  Jim Meyering  <meyering@redhat.com>
34960
34961         init.sh: improve portability and efficiency
34962         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34963         "dummy" in a for loop.
34964         Use '!', not '^' to select the complement of a character set used
34965         in a "case" statement.
34966         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34967         Suggestions from Eric Blake.
34968
34969         init.sh: automatically accommodate programs with the .exe suffix
34970         Automatically arrange for an invocation of "prog" to execute the
34971         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34972         may use the simpler "prog", yet still work when built on a system
34973         that requires specifying the added suffix.
34974         Do this by constructing a function named "prog" that invokes
34975         "prog.exe" for each .exe file in selected directories.
34976         * tests/init.sh (find_exe_basenames_): New function.
34977         (create_exe_shim_functions_): New function.
34978         (path_prepend_): Use it.
34979
34980         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34981         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34982         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34983
34984 2010-02-14  Jim Meyering  <meyering@redhat.com>
34985
34986         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34987         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34988         (sc_prohibit_hash_pjw_without_use): New rule.
34989
34990         maint.mk: allow the default upload destination dir to be overridden
34991         * top/maint.mk (upload_dest_dir_): Define with a default that
34992         preserves the status quo.
34993         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34994         Reported by Peter Simons.
34995
34996         maint.mk: prohibit inclusion of "hash.h" without_use
34997         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34998
34999 2010-02-10  Jim Meyering  <meyering@redhat.com>
35000
35001         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35002         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35003
35004 2010-02-09  Eric Blake  <ebb9@byu.net>
35005         and Bruno Haible  <bruno@clisp.org>
35006
35007         obstack-printf-posix: ensure declaration
35008         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35009         extracted from gl_FUNC_OBSTACK_PRINTF.
35010         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35011         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35012         Likewise.
35013         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35014         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35015         0.
35016
35017 2010-02-08  Bruno Haible  <bruno@clisp.org>
35018
35019         gnulib-tool: Fix typo in 2010-02-07 commit.
35020         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35021         Reported by Eric Blake.
35022
35023 2010-02-07  Bruno Haible  <bruno@clisp.org>
35024
35025         gnulib-tool: Fix up caching patches.
35026         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35027         option --no-cache. Use associative arrays when supported by the shell.
35028         (sed_comments): New variable.
35029         (modcache): Renamed from do_cache.
35030         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35031         abbreviate unnecessarily.
35032         (have_associative): New variable.
35033         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35034         way also for ksh and zsh.
35035         (func_init_sed_convert_to_cache_statements): New function, extracted
35036         from func_cache_lookup_module. Add support for associative arrays.
35037         Don't set the c_MODULE_cached variable here. Ignore all lines before
35038         the first field header. Remove only the final newline, not all trailing
35039         newlines. Support empty fields correctly. Limit the use of 'eval' to
35040         assignments.
35041         (func_get_description, func_get_status, func_get_notice,
35042         func_get_applicability, func_get_filelist, func_get_dependencies,
35043         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35044         func_get_automake_snippet, func_get_include_directive,
35045         func_get_link_directive, func_get_license, func_get_maintainer):
35046         Update documentation. List the unoptimized code first. Add support for
35047         associative arrays. Limit the use of 'eval' to assignments.
35048         (func_get_applicability): Undo stylistic pessimisations.
35049         (func_get_automake_snippet, func_get_include_directive): Reduce code
35050         duplication.
35051         (func_modules_transitive_closure, func_modules_add_dummy,
35052         func_modules_notice, func_modules_to_filelist, func_add_file,
35053         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35054         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35055         func_create_testdir, func_create_megatestdir): Update documentation.
35056
35057 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35058
35059         * gnulib-tool (func_cache_lookup_module): Store the module name
35060         belonging to the cache variable; error out if two different
35061         module names map to the same cache variable name.
35062
35063 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35064
35065         gnulib-tool: Make caching optional.
35066         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35067         Update matching short versions of --no-changelog.
35068         (func_usage): Update.
35069         (sed_extract_cache_prog): Renamed from ...
35070         (sed_extract_prog): ... this; revert to old extraction script.
35071         (func_get_description, func_get_status)
35072         (func_get_notice, func_get_applicability, func_get_filelist)
35073         (func_get_dependencies, func_get_autoconf_early_snippet)
35074         (func_get_autoconf_snippet, func_get_automake_snippet)
35075         (func_get_include_directive, func_get_link_directive)
35076         (func_get_license, func_get_maintainer): If $do_cache is false,
35077         use old, non-caching extraction scripts.
35078         Suggestion by Bruno Haible.
35079
35080 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35081
35082         gnulib-tool: cache module metainformation.
35083         * gnulib-tool (sed_extract_prog): Match newline before each
35084         header, and rewrite header to a shell variable suffix.
35085         (func_cache_var, func_cache_lookup_module): New functions,
35086         to turn a module name into a cache variable prefix, and to
35087         look up and cache module metainformation.
35088         (func_get_description, func_get_status)
35089         (func_get_notice, func_get_applicability, func_get_filelist)
35090         (func_get_dependencies, func_get_autoconf_early_snippet)
35091         (func_get_autoconf_snippet, func_get_automake_snippet)
35092         (func_get_include_directive, func_get_link_directive)
35093         (func_get_license, func_get_maintainer): Use
35094         func_cache_lookup_module.
35095
35096 2010-02-07  Bruno Haible  <bruno@clisp.org>
35097
35098         fnctl: Fix missing dependency.
35099         * modules/fcntl (Depends-on): Add getdtablesize.
35100         Reported by John W. Eaton <jwe@gnu.org>.
35101
35102 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35103
35104         Argp: fix recognition of short alias options.
35105
35106         * lib/argp-parse.c (convert_options): Fix improper use of
35107         `|' between character values.
35108         * tests/test-argp.c (group1_option): New alias option
35109         --read (-r).
35110         (group1_parser): Special handling for 'r'.
35111         (test15): New test case.
35112         (test_fun): Add test15.
35113         * tests/test-argp-2.sh: Update expected --help and --usage
35114         outputs.
35115
35116 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35117
35118         * tests/test-argp.c: Fix indentation.
35119
35120 2010-02-04  Eric Blake  <ebb9@byu.net>
35121
35122         gettimeofday: expose type of second argument
35123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35124         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35125         * tests/test-gettimeofday.c: Use it to silence warning.
35126         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35127         the issue.
35128
35129 2010-02-03  Jim Meyering  <meyering@redhat.com>
35130
35131         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35132         * lib/regcomp.c (TYPE_SIGNED): Define.
35133         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35134
35135         regcomp.c: avoid a new -Wshadow warning
35136         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35137
35138 2010-02-01  Jim Meyering  <meyering@redhat.com>
35139
35140         removing useless parentheses in cpp #define directives
35141         For motivation, see commit c0221df4, "define STREQ(a,b)
35142         consistently, removing useless parentheses"
35143         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35144         * lib/mountlist.c (MNT_IGNORE): Likewise.
35145         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35146
35147 2010-02-01  Eric Blake  <ebb9@byu.net>
35148
35149         sys_time: use link-warning
35150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35151         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35152         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35153         * modules/sys_time (Depends-on): Add warn-on-use.
35154         (Makefile.am): Always build replacement.
35155         (configure.ac): Update substitutions.
35156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35157         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35158         bother with SYS_TIME_H.
35159         * modules/gettimeofday (configure.ac): Declare indicator.
35160         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35161         in use.
35162
35163         closein-tests: silence compiler warning
35164         * tests/test-closein.c (main): Ignore fread result.
35165         * modules/closein-tests (Depends-on): Add ignore-value.
35166
35167         tests: silence warning about system return
35168         * tests/test-areadlink-with-size.c (main): Ignore system result.
35169         * tests/test-areadlink.c (main): Likewise.
35170         * tests/test-areadlinkat-with-size.c (main): Likewise.
35171         * tests/test-areadlinkat.c (main): Likewise.
35172         * tests/test-canonicalize-lgpl.c (main): Likewise.
35173         * tests/test-canonicalize.c (main): Likewise.
35174         * tests/test-chown.c (main): Likewise.
35175         * tests/test-fchownat.c (main): Likewise.
35176         * tests/test-fdutimensat.c (main): Likewise.
35177         * tests/test-fstatat.c (main): Likewise.
35178         * tests/test-futimens.c (main): Likewise.
35179         * tests/test-lchown.c (main): Likewise.
35180         * tests/test-link.c (main): Likewise.
35181         * tests/test-linkat.c (main): Likewise.
35182         * tests/test-lstat.c (main): Likewise.
35183         * tests/test-mkdir.c (main): Likewise.
35184         * tests/test-mkdirat.c (main): Likewise.
35185         * tests/test-mkfifo.c (main): Likewise.
35186         * tests/test-mkfifoat.c (main): Likewise.
35187         * tests/test-mknod.c (main): Likewise.
35188         * tests/test-readlink.c (main): Likewise.
35189         * tests/test-remove.c (main): Likewise.
35190         * tests/test-rename.c (main): Likewise.
35191         * tests/test-renameat.c (main): Likewise.
35192         * tests/test-rmdir.c (main): Likewise.
35193         * tests/test-symlink.c (main): Likewise.
35194         * tests/test-symlinkat.c (main): Likewise.
35195         * tests/test-unlink.c (main): Likewise.
35196         * tests/test-unlinkat.c (main): Likewise.
35197         * tests/test-utimens.c (main): Likewise.
35198         * tests/test-utimensat.c (main): Likewise.
35199         * modules/areadlink-tests (Depends-on): Add ignore-value.
35200         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35201         * modules/areadlinkat-tests (Depends-on): Likewise.
35202         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35203         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35204         * modules/canonicalize-tests (Depends-on): Likewise.
35205         * modules/chown-tests (Depends-on): Likewise.
35206         * modules/fdutimensat-tests (Depends-on): Likewise.
35207         * modules/futimens-tests (Depends-on): Likewise.
35208         * modules/lchown-tests (Depends-on): Likewise.
35209         * modules/link-tests (Depends-on): Likewise.
35210         * modules/linkat-tests (Depends-on): Likewise.
35211         * modules/lstat-tests (Depends-on): Likewise.
35212         * modules/mkdir-tests (Depends-on): Likewise.
35213         * modules/mkfifo-tests (Depends-on): Likewise.
35214         * modules/mkfifoat-tests (Depends-on): Likewise.
35215         * modules/mknod-tests (Depends-on): Likewise.
35216         * modules/openat-tests (Depends-on): Likewise.
35217         * modules/readlink-tests (Depends-on): Likewise.
35218         * modules/remove-tests (Depends-on): Likewise.
35219         * modules/rename-tests (Depends-on): Likewise.
35220         * modules/renameat-tests (Depends-on): Likewise.
35221         * modules/rmdir-tests (Depends-on): Likewise.
35222         * modules/symlink-tests (Depends-on): Likewise.
35223         * modules/symlinkat-tests (Depends-on): Likewise.
35224         * modules/unlink-tests (Depends-on): Likewise.
35225         * modules/utimens-tests (Depends-on): Likewise.
35226         * modules/utimensat-tests (Depends-on): Likewise.
35227
35228 2010-01-31  Bruno Haible  <bruno@clisp.org>
35229
35230         Perform the same test for many <math.h> functions.
35231         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35232         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35233         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35234         of gl_MATHFUNC.
35235         * modules/acos (configure.ac): Likewise.
35236         * modules/asin (configure.ac): Likewise.
35237         * modules/atan (configure.ac): Likewise.
35238         * modules/atan2 (configure.ac): Likewise.
35239         * modules/cbrt (configure.ac): Likewise.
35240         * modules/copysign (configure.ac): Likewise.
35241         * modules/cos (configure.ac): Likewise.
35242         * modules/cosh (configure.ac): Likewise.
35243         * modules/erf (configure.ac): Likewise.
35244         * modules/erfc (configure.ac): Likewise.
35245         * modules/exp (configure.ac): Likewise.
35246         * modules/fmod (configure.ac): Likewise.
35247         * modules/hypot (configure.ac): Likewise.
35248         * modules/j0 (configure.ac): Likewise.
35249         * modules/j1 (configure.ac): Likewise.
35250         * modules/jn (configure.ac): Likewise.
35251         * modules/lgamma (configure.ac): Likewise.
35252         * modules/log (configure.ac): Likewise.
35253         * modules/log10 (configure.ac): Likewise.
35254         * modules/log1p (configure.ac): Likewise.
35255         * modules/pow (configure.ac): Likewise.
35256         * modules/remainder (configure.ac): Likewise.
35257         * modules/sin (configure.ac): Likewise.
35258         * modules/sinh (configure.ac): Likewise.
35259         * modules/tan (configure.ac): Likewise.
35260         * modules/tanh (configure.ac): Likewise.
35261         * modules/y0 (configure.ac): Likewise.
35262         * modules/y1 (configure.ac): Likewise.
35263         * modules/yn (configure.ac): Likewise.
35264         Suggested by Paolo Bonzini.
35265
35266 2010-01-31  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35269
35270 2010-01-31  Bruno Haible  <bruno@clisp.org>
35271
35272         Work around getdelim() bug on FreeBSD 8.0.
35273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35274         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35275         not work.
35276         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35277         is 1.
35278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35279         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35280         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35281         a non-zero size.
35282         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35283
35284 2010-01-31  Bruno Haible  <bruno@clisp.org>
35285
35286         Work around getline() bug on FreeBSD 8.0.
35287         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35288         and a non-zero size.
35289         * tests/test-getline.c (main): Likewise.
35290         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35291         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35292
35293 2010-01-28  Eric Blake  <ebb9@byu.net>
35294
35295         regex: fix build failure
35296         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35297         platforms.
35298
35299 2010-01-28  Jim Meyering  <meyering@redhat.com>
35300
35301         regex: do not ignore memory allocation failure
35302         * lib/regex_internal.c (create_cd_newstate): Detect
35303         re_node_set_init_copy failure.   Extracted from glibc commit
35304         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35305
35306         regex: sync more white-space changes from libc
35307         * lib/regex_internal.c: White-space only changes.
35308         * lib/regexec.c: Likewise.
35309
35310         regex: add many uses of __attribute_warn_unused_result__
35311         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35312         * lib/regexec.c: Likewise.
35313         Extracted from a messy glibc commit.
35314
35315         regcomp.c: spelling and merge-artifact from glibc
35316         * lib/regcomp.c: Merge remainder of glibc's
35317         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35318
35319         regcomp.c: sync white-space changes from glibc
35320         * lib/regcomp.c: Merge to accommodate white space
35321         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35322
35323         regcomp.c: do not ignore internal return values
35324         * lib/regcomp.c: Do not ignore internal return values.
35325         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35326         but without its white-space changes and spelling fixes.
35327
35328         regex_internal.h: define __attribute_warn_unused_result__
35329         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35330
35331         maint: add a syntax-check rule to check for vulnerable Makefile.in
35332         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35333
35334 2010-01-27  Jim Meyering  <meyering@redhat.com>
35335
35336         ncftpput-ftp: clean up spaces
35337         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35338         Remove trailing blanks.
35339
35340 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35341
35342         * build-aux/git-version-gen: Fix copyright statement.
35343         * build-aux/gnupload: Likewise.
35344         * tests/test-arcfour.c: Likewise.
35345         * tests/test-arctwo.c: Likewise.
35346         * tests/test-count-one-bits.c: Likewise.
35347         * tests/test-crc.c: Likewise.
35348         * tests/test-des.c: Likewise.
35349         * tests/test-gc-arcfour.c: Likewise.
35350         * tests/test-gc-arctwo.c: Likewise.
35351         * tests/test-gc-des.c: Likewise.
35352         * tests/test-gc-hmac-md5.c: Likewise.
35353         * tests/test-gc-hmac-sha1.c: Likewise.
35354         * tests/test-gc-md2.c: Likewise.
35355         * tests/test-gc-md4.c: Likewise.
35356         * tests/test-gc-md5.c: Likewise.
35357         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35358         * tests/test-gc-rijndael.c: Likewise.
35359         * tests/test-gc-sha1.c: Likewise.
35360         * tests/test-gc.c: Likewise.
35361         * tests/test-gethostname.c: Likewise.
35362         * tests/test-gettimeofday.c: Likewise.
35363         * tests/test-hash.c: Likewise.
35364         * tests/test-hmac-md5.c: Likewise.
35365         * tests/test-hmac-sha1.c: Likewise.
35366         * tests/test-md2.c: Likewise.
35367         * tests/test-md4.c: Likewise.
35368         * tests/test-md5.c: Likewise.
35369         * tests/test-memchr.c: Likewise.
35370         * tests/test-memchr2.c: Likewise.
35371         * tests/test-memcmp.c: Likewise.
35372         * tests/test-memmem.c: Likewise.
35373         * tests/test-memrchr.c: Likewise.
35374         * tests/test-rawmemchr.c: Likewise.
35375         * tests/test-read-file.c: Likewise.
35376         * tests/test-rijndael.c: Likewise.
35377         * tests/test-sockets.c: Likewise.
35378         * tests/test-strchrnul.c: Likewise.
35379         * tests/test-strstr.c: Likewise.
35380         * tests/test-strtod.c: Likewise.
35381         * build-aux/ncftpput-ftp: Likewise.
35382
35383 2010-01-26  Eric Blake  <ebb9@byu.net>
35384
35385         ignore-value: update recommended header name
35386         * modules/ignore-value (Include): Only use <> for headers that
35387         exist in glibc.
35388
35389 2010-01-26  Jim Meyering  <meyering@redhat.com>
35390
35391         test-userspec.c: avoid compiler warnings
35392         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35393         and "initialization discards qualifiers..." warnings.
35394         Put the first "uid" in its own scope, and make char* members "const".
35395
35396 2010-01-25  Bruno Haible  <bruno@clisp.org>
35397
35398         gnulib-tool: Make warning diagnostics consistent.
35399         * gnulib-tool (func_warning): New function.
35400         Use it everywhere where gnulib-tool produces output to stderr and it is
35401         not a fatal error.
35402
35403 2010-01-25  Bruno Haible  <bruno@clisp.org>
35404
35405         Fix test dependencies.
35406         * modules/xstrtol-tests (Depends-on): Add inttypes.
35407         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35408
35409 2010-01-25 Pádraig Brady <P@draigBrady.com>
35410
35411         syntax-check: detect incorrect boolean macro values in config.h
35412         * modules/maintainer-makefile (configure.ac): Parameterize the location
35413         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35414         The logic is from Eric Blake and the location indicated by Jim Meyering.
35415         Note the more natural CONFIG_HEADER name is prohibited by automake
35416         for backwards compatibility reasons.
35417         * top/maint.mk (sc_Wundef_boolean): New rule.
35418
35419 2010-01-25  Jim Meyering  <meyering@redhat.com>
35420
35421         bootstrap: detect MacOS 10.6's shasum, too
35422         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35423         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35424
35425 2010-01-23  Jim Meyering  <meyering@redhat.com>
35426
35427         xstrtoll: new module
35428         * modules/xstrtoll: New file.
35429         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35430         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35431         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35432         ./configure fails if you use this module and lack "long long".
35433         * modules/xstrtoll-tests: New module.
35434         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35435         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35436         new init.sh-based test framework.
35437
35438 2010-01-24  Bruno Haible  <bruno@clisp.org>
35439
35440         Tests for module 'yn'.
35441         * modules/yn-tests: New file.
35442         * tests/test-yn.c: New file.
35443
35444         Tests for module 'y1'.
35445         * modules/y1-tests: New file.
35446         * tests/test-y1.c: New file.
35447
35448         Tests for module 'y0'.
35449         * modules/y0-tests: New file.
35450         * tests/test-y0.c: New file.
35451
35452         Tests for module 'tanh'.
35453         * modules/tanh-tests: New file.
35454         * tests/test-tanh.c: New file.
35455
35456         Tests for module 'tan'.
35457         * modules/tan-tests: New file.
35458         * tests/test-tan.c: New file.
35459
35460         Tests for module 'sqrt'.
35461         * modules/sqrt-tests: New file.
35462         * tests/test-sqrt.c: New file.
35463
35464         Tests for module 'sinh'.
35465         * modules/sinh-tests: New file.
35466         * tests/test-sinh.c: New file.
35467
35468         Tests for module 'sin'.
35469         * modules/sin-tests: New file.
35470         * tests/test-sin.c: New file.
35471
35472         Tests for module 'rint'.
35473         * modules/rint-tests: New file.
35474         * tests/test-rint.c: New file.
35475
35476         Tests for module 'remainder'.
35477         * modules/remainder-tests: New file.
35478         * tests/test-remainder.c: New file.
35479
35480         Tests for module 'pow'.
35481         * modules/pow-tests: New file.
35482         * tests/test-pow.c: New file.
35483
35484         Tests for module 'nextafter'.
35485         * modules/nextafter-tests: New file.
35486         * tests/test-nextafter.c: New file.
35487
35488         Tests for module 'modf'.
35489         * modules/modf-tests: New file.
35490         * tests/test-modf.c: New file.
35491
35492         Tests for module 'logb'.
35493         * modules/logb-tests: New file.
35494         * tests/test-logb.c: New file.
35495
35496         Tests for module 'log1p'.
35497         * modules/log1p-tests: New file.
35498         * tests/test-log1p.c: New file.
35499
35500         Tests for module 'log10'.
35501         * modules/log10-tests: New file.
35502         * tests/test-log10.c: New file.
35503
35504         Tests for module 'log'.
35505         * modules/log-tests: New file.
35506         * tests/test-log.c: New file.
35507
35508         Tests for module 'lgamma'.
35509         * modules/lgamma-tests: New file.
35510         * tests/test-lgamma.c: New file.
35511
35512         Tests for module 'ldexp'.
35513         * modules/ldexp-tests: New file.
35514         * tests/test-ldexp.c: New file.
35515
35516         Tests for module 'jn'.
35517         * modules/jn-tests: New file.
35518         * tests/test-jn.c: New file.
35519
35520         Tests for module 'j1'.
35521         * modules/j1-tests: New file.
35522         * tests/test-j1.c: New file.
35523
35524         Tests for module 'j0'.
35525         * modules/j0-tests: New file.
35526         * tests/test-j0.c: New file.
35527
35528         Tests for module 'hypot'.
35529         * modules/hypot-tests: New file.
35530         * tests/test-hypot.c: New file.
35531
35532         Tests for module 'fmod'.
35533         * modules/fmod-tests: New file.
35534         * tests/test-fmod.c: New file.
35535
35536         Tests for module 'fabs'.
35537         * modules/fabs-tests: New file.
35538         * tests/test-fabs.c: New file.
35539
35540         Tests for module 'exp'.
35541         * modules/exp-tests: New file.
35542         * tests/test-exp.c: New file.
35543
35544         Tests for module 'erfc'.
35545         * modules/erfc-tests: New file.
35546         * tests/test-erfc.c: New file.
35547
35548         Tests for module 'erf'.
35549         * modules/erf-tests: New file.
35550         * tests/test-erf.c: New file.
35551
35552         Tests for module 'cosh'.
35553         * modules/cosh-tests: New file.
35554         * tests/test-cosh.c: New file.
35555
35556         Tests for module 'cos'.
35557         * modules/cos-tests: New file.
35558         * tests/test-cos.c: New file.
35559
35560         Tests for module 'copysign'.
35561         * modules/copysign-tests: New file.
35562         * tests/test-copysign.c: New file.
35563
35564         Tests for module 'cbrt'.
35565         * modules/cbrt-tests: New file.
35566         * tests/test-cbrt.c: New file.
35567
35568         Tests for module 'atan2'.
35569         * modules/atan2-tests: New file.
35570         * tests/test-atan2.c: New file.
35571
35572         Tests for module 'atan'.
35573         * modules/atan-tests: New file.
35574         * tests/test-atan.c: New file.
35575
35576         Tests for module 'asin'.
35577         * modules/asin-tests: New file.
35578         * tests/test-asin.c: New file.
35579
35580         Tests for module 'acos'.
35581         * modules/acos-tests: New file.
35582         * tests/test-acos.c: New file.
35583
35584 2010-01-24  Bruno Haible  <bruno@clisp.org>
35585
35586         Fix tests for common <math.h> functions.
35587         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35588         code snippet that references the function pointer, rather than merely
35589         calling the function. Substitute the FUNC_LIBM variable.
35590         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35591         * modules/acos (configure.ac): Likewise.
35592         * modules/asin (configure.ac): Likewise.
35593         * modules/atan (configure.ac): Likewise.
35594         * modules/atan2 (configure.ac): Likewise.
35595         * modules/cbrt (configure.ac): Likewise.
35596         * modules/copysign (configure.ac): Likewise.
35597         * modules/cos (configure.ac): Likewise.
35598         * modules/cosh (configure.ac): Likewise.
35599         * modules/erf (configure.ac): Likewise.
35600         * modules/erfc (configure.ac): Likewise.
35601         * modules/exp (configure.ac): Likewise.
35602         * modules/fabs (configure.ac): Likewise.
35603         * modules/fmod (configure.ac): Likewise.
35604         * modules/hypot (configure.ac): Likewise.
35605         * modules/j0 (configure.ac): Likewise.
35606         * modules/j1 (configure.ac): Likewise.
35607         * modules/jn (configure.ac): Likewise.
35608         * modules/ldexp (configure.ac): Likewise.
35609         * modules/lgamma (configure.ac): Likewise.
35610         * modules/log (configure.ac): Likewise.
35611         * modules/log10 (configure.ac): Likewise.
35612         * modules/log1p (configure.ac): Likewise.
35613         * modules/logb (configure.ac): Likewise.
35614         * modules/modf (configure.ac): Likewise.
35615         * modules/nextafter (configure.ac): Likewise.
35616         * modules/pow (configure.ac): Likewise.
35617         * modules/remainder (configure.ac): Likewise.
35618         * modules/rint (configure.ac): Likewise.
35619         * modules/sin (configure.ac): Likewise.
35620         * modules/sinh (configure.ac): Likewise.
35621         * modules/tan (configure.ac): Likewise.
35622         * modules/tanh (configure.ac): Likewise.
35623         * modules/y0 (configure.ac): Likewise.
35624         * modules/y1 (configure.ac): Likewise.
35625         * modules/yn (configure.ac): Likewise.
35626
35627 2010-01-24  Bruno Haible  <bruno@clisp.org>
35628
35629         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35630         * tests/test-acosl.c (x): New variable.
35631         (main): Store argument in x and fetch it from x.
35632         * tests/test-asinl.c (x): New variable.
35633         (main): Store argument in x and fetch it from x.
35634         * tests/test-atanl.c (x): New variable.
35635         (main): Store argument in x and fetch it from x.
35636         * tests/test-cosl.c (x): New variable.
35637         (main): Store argument in x and fetch it from x.
35638         * tests/test-expl.c (x): New variable.
35639         (main): Store argument in x and fetch it from x.
35640         * tests/test-logl.c (x): New variable.
35641         (main): Store argument in x and fetch it from x.
35642         * tests/test-sinl.c (x): New variable.
35643         (main): Store argument in x and fetch it from x.
35644         * tests/test-sqrtl.c (x): New variable.
35645         (main): Store argument in x and fetch it from x.
35646         * tests/test-tanl.c (x): New variable.
35647         (main): Store argument in x and fetch it from x.
35648
35649 2010-01-24  Bruno Haible  <bruno@clisp.org>
35650
35651         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35652         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35653         assignments to the initial TESTS_ENVIRONMENT.
35654         * doc/gnulib.texi (Unit test modules): Document it.
35655         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35656         TESTS_ENVIRONMENT.
35657         * modules/btowc-tests (Makefile.am): Likewise.
35658         * modules/c-stack-tests (Makefile.am): Likewise.
35659         * modules/c-strcase-tests (Makefile.am): Likewise.
35660         * modules/copy-file-tests (Makefile.am): Likewise.
35661         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35662         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35663         * modules/mbrtowc-tests (Makefile.am): Likewise.
35664         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35665         * modules/mbscasestr-tests (Makefile.am): Likewise.
35666         * modules/mbschr-tests (Makefile.am): Likewise.
35667         * modules/mbscspn-tests (Makefile.am): Likewise.
35668         * modules/mbsinit-tests (Makefile.am): Likewise.
35669         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35670         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35671         * modules/mbspbrk-tests (Makefile.am): Likewise.
35672         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35673         * modules/mbsrchr-tests (Makefile.am): Likewise.
35674         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35675         * modules/mbsspn-tests (Makefile.am): Likewise.
35676         * modules/mbsstr-tests (Makefile.am): Likewise.
35677         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35678         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35679         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35680         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35681         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35682         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35683         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35684         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35685         * modules/wcrtomb-tests (Makefile.am): Likewise.
35686         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35687         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35688         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35689         assignments from TESTS_ENVIRONMENT.
35690         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35691         augmentation.
35692         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35693         * modules/atexit-tests (Makefile.am): Likewise.
35694         * modules/binary-io-tests (Makefile.am): Likewise.
35695         * modules/closein-tests (Makefile.am): Likewise.
35696         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35697         * modules/exclude-tests (Makefile.am): Likewise.
35698         * modules/fflush-tests (Makefile.am): Likewise.
35699         * modules/fpending-tests (Makefile.am): Likewise.
35700         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35701         * modules/freadahead-tests (Makefile.am): Likewise.
35702         * modules/freadptr-tests (Makefile.am): Likewise.
35703         * modules/freadseek-tests (Makefile.am): Likewise.
35704         * modules/fseek-tests (Makefile.am): Likewise.
35705         * modules/fseeko-tests (Makefile.am): Likewise.
35706         * modules/ftell-tests (Makefile.am): Likewise.
35707         * modules/ftello-tests (Makefile.am): Likewise.
35708         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35709         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35710         * modules/lseek-tests (Makefile.am): Likewise.
35711         * modules/parse-duration-tests (Makefile.am): Likewise.
35712         * modules/perror-tests (Makefile.am): Likewise.
35713         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35714         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35715         * modules/pipe-tests (Makefile.am): Likewise.
35716         * modules/pread-tests (Makefile.am): Likewise.
35717         * modules/printf-posix-tests (Makefile.am): Likewise.
35718         * modules/select-tests (Makefile.am): Likewise.
35719         * modules/sigpipe-tests (Makefile.am): Likewise.
35720         * modules/tsearch-tests (Makefile.am): Likewise.
35721         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35722         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35723         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35724         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35725         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35726         * modules/version-etc-tests (Makefile.am): Likewise.
35727         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35728         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35729         * modules/xalloc-die-tests (Makefile.am): Likewise.
35730         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35731         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35732         * modules/xstrtol-tests (Makefile.am): Likewise.
35733         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35734         * modules/yesno-tests (Makefile.am): Likewise.
35735         Suggested by Jim Meyering.
35736
35737 2010-01-24  Bruno Haible  <bruno@clisp.org>
35738
35739         More documentation.
35740         * doc/gnulib.texi (Writing modules): New chapter.
35741         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35742         the new chapter.
35743
35744 2010-01-24  Jim Meyering  <meyering@redhat.com>
35745
35746         maint.mk: do not prepend "./" after filtering
35747         * top/maint.mk (_prepend_srcdir_prefix): New variable
35748         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35749         "./" when $(srcdir) is ".".
35750
35751         define STREQ(a,b) consistently, removing useless parentheses
35752         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35753         since the only risk is that "a" or "b" contains an unparenthesized
35754         comma, but if either did that, STREQ would have 3 or more arguments.
35755         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35756         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35757         * lib/hash-triple.c (STREQ): Likewise.
35758         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35759         * lib/getugroups.c (STREQ): Likewise.
35760
35761 2010-01-23  Jim Meyering  <meyering@redhat.com>
35762
35763         maint.mk: fix syntax-check in a non-srcdir build directory
35764         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35765         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35766
35767 2010-01-22  Jim Meyering  <meyering@redhat.com>
35768
35769         userspec: add unit tests
35770         * tests/test-userspec.c: New file.
35771         * modules/userspec-tests: Likewise.
35772
35773 2010-01-21  Jim Meyering  <meyering@redhat.com>
35774
35775         maint.mk: handle source file names containing "." robustly
35776         * top/maint.mk (_dot_escaped_srcdir): Define.
35777         (VC_LIST): Use it in LHS of sed substitution.
35778
35779 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35780
35781         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35782         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35783         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35784         from a non-srcdir build.
35785
35786 2010-01-20  Eric Blake  <ebb9@byu.net>
35787
35788         warn-on-use: use instead of link-warning
35789         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35790         * modules/unistd (Depends-on, Makefile.am): Likewise.
35791         * modules/arpa_inet (Depends-on): Replace link-warning with
35792         warn-on-use.
35793         (Makefile.am): Update rules accordingly.
35794         * modules/ctype (Depends-on, Makefile.am): Likewise.
35795         * modules/dirent (Depends-on, Makefile.am): Likewise.
35796         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35797         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35798         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35799         * modules/locale (Depends-on, Makefile.am): Likewise.
35800         * modules/math (Depends-on, Makefile.am): Likewise.
35801         * modules/search (Depends-on, Makefile.am): Likewise.
35802         * modules/signal (Depends-on, Makefile.am): Likewise.
35803         * modules/spawn (Depends-on, Makefile.am): Likewise.
35804         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35805         * modules/string (Depends-on, Makefile.am): Likewise.
35806         * modules/strings (Depends-on, Makefile.am): Likewise.
35807         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35808         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35809         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35810         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35811         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35812         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35813         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35814         * modules/wchar (Depends-on, Makefile.am): Likewise.
35815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35816         should be poisoned.
35817         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35818         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35819         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35820         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35821         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35822         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35823         * m4/math_h.m4 (gl_MATH_H): Likewise.
35824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35825         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35826         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35827         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35828         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35829         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35830         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35831         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35832         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35838         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35840         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35841         GL_LINK_WARNING.
35842         * lib/ctype.in.h: Likewise.
35843         * lib/dirent.in.h: Likewise.
35844         * lib/fcntl.in.h: Likewise.
35845         * lib/inttypes.in.h: Likewise.
35846         * lib/langinfo.in.h: Likewise.
35847         * lib/locale.in.h: Likewise.
35848         * lib/math.in.h: Likewise.
35849         * lib/search.in.h: Likewise.
35850         * lib/signal.in.h: Likewise.
35851         * lib/spawn.in.h: Likewise.
35852         * lib/stdio.in.h: Likewise.
35853         * lib/stdlib.in.h: Likewise.
35854         * lib/string.in.h: Likewise.
35855         * lib/strings.in.h: Likewise.
35856         * lib/sys_file.in.h: Likewise.
35857         * lib/sys_ioctl.in.h: Likewise.
35858         * lib/sys_select.in.h: Likewise.
35859         * lib/sys_socket.in.h: Likewise.
35860         * lib/sys_stat.in.h: Likewise.
35861         * lib/sys_times.in.h: Likewise.
35862         * lib/sys_utsname.in.h: Likewise.
35863         * lib/unistd.in.h: Likewise.
35864         * lib/wchar.in.h: Likewise.
35865
35866 2010-01-20  Bruno Haible  <bruno@clisp.org>
35867
35868         Avoid duplicate -lm.
35869         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35870         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35872         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35873         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35874         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35875         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35876         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35877         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35878         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35879         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35880         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35881         Reported by Paolo Bonzini.
35882
35883 2010-01-19  Bruno Haible  <bruno@clisp.org>
35884
35885         langinfo, nl_langinfo: Relicense under LGPLv2+.
35886         * modules/langinfo (License): Change to LGPLv2+.
35887         * modules/nl_langinfo (License): Likewise.
35888         Patch by David Lutterkort <lutter@redhat.com>.
35889
35890 2010-01-19  Bruno Haible  <bruno@clisp.org>
35891
35892         Avoid compilation error with cc on OSF/1 5.1.
35893         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35894         statement, not before.
35895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35896
35897 2010-01-18  Bruno Haible  <bruno@clisp.org>
35898
35899         Avoid a link error due to the __printf__ symbol.
35900         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35901         and 2.6.x.
35902         (__format__, __printf__): Remove definitions.
35903         * lib/argp-fmtstream.h: Likewise.
35904         * lib/argp.h: Likewise.
35905         * lib/error.h: Likewise.
35906         * lib/vasnprintf.h: Likewise.
35907         * lib/xprintf.h: Likewise.
35908         * lib/xvasprintf.h: Likewise.
35909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35910
35911 2010-01-18  Bruno Haible  <bruno@clisp.org>
35912
35913         Tests for module 'tanl'.
35914         * modules/tanl-tests: New file.
35915         * tests/test-tanl.c: New file.
35916
35917         Tests for module 'sqrtl'.
35918         * modules/sqrtl-tests: New file.
35919         * tests/test-sqrtl.c: New file.
35920
35921         Tests for module 'sinl'.
35922         * modules/sinl-tests: New file.
35923         * tests/test-sinl.c: New file.
35924
35925         Tests for module 'logl'.
35926         * modules/logl-tests: New file.
35927         * tests/test-logl.c: New file.
35928
35929         Tests for module 'expl'.
35930         * modules/expl-tests: New file.
35931         * tests/test-expl.c: New file.
35932
35933         Tests for module 'cosl'.
35934         * modules/cosl-tests: New file.
35935         * tests/test-cosl.c: New file.
35936
35937         Tests for module 'atanl'.
35938         * modules/atanl-tests: New file.
35939         * tests/test-atanl.c: New file.
35940
35941         Tests for module 'asinl'.
35942         * modules/asinl-tests: New file.
35943         * tests/test-asinl.c: New file.
35944
35945         Tests for module 'acosl'.
35946         * modules/acosl-tests: New file.
35947         * tests/test-acosl.c: New file.
35948
35949         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35950         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35951         tanl): Use the standard gnulib idiom.
35952         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35953         * lib/sinl.c: Likewise.
35954         * lib/tanl.c: Don't include trigl.c.
35955         (kernel_tanl): Make static.
35956         * lib/sincosl.c: Include trigl.h first.
35957         * lib/trigl.c: Likewise.
35958         * m4/acosl.m4: New file.
35959         * m4/asinl.m4: New file.
35960         * m4/atanl.m4: New file.
35961         * m4/cosl.m4: New file.
35962         * m4/expl.m4: New file.
35963         * m4/logl.m4: New file.
35964         * m4/sinl.m4: New file.
35965         * m4/sqrtl.m4: New file.
35966         * m4/tanl.m4: New file.
35967         * m4/mathl.m4: Remove file.
35968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35969         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35970         Don't initialize GNULIB_MATHL.
35971         * modules/acosl: New file.
35972         * modules/asinl: New file.
35973         * modules/atanl: New file.
35974         * modules/cosl: New file.
35975         * modules/expl: New file.
35976         * modules/logl: New file.
35977         * modules/sinl: New file.
35978         * modules/sqrtl: New file.
35979         * modules/tanl: New file.
35980         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35981         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35982         substitute GNULIB_MATHL.
35983         * modules/mathl: Rewritten.
35984         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35985         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35986         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35987         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35988         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35989         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35990         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35991         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35992         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35993
35994 2010-01-18  Bruno Haible  <bruno@clisp.org>
35995
35996         sqrt: Make gl_FUNC_SQRT requirable.
35997         * m4/sqrt.m4: New file.
35998         * modules/sqrt (Files): Add it.
35999         (configure.ac): Invoke gl_FUNC_SQRT.
36000
36001 2010-01-18  Bruno Haible  <bruno@clisp.org>
36002
36003         New modules for common <math.h> functions.
36004         * m4/mathfunc.m4: New file.
36005         * modules/acos: New file.
36006         * modules/asin: New file.
36007         * modules/atan: New file.
36008         * modules/atan2: New file.
36009         * modules/cbrt: New file.
36010         * modules/copysign: New file.
36011         * modules/cos: New file.
36012         * modules/cosh: New file.
36013         * modules/erf: New file.
36014         * modules/erfc: New file.
36015         * modules/exp: New file.
36016         * modules/fabs: New file.
36017         * modules/fmod: New file.
36018         * modules/hypot: New file.
36019         * modules/j0: New file.
36020         * modules/j1: New file.
36021         * modules/jn: New file.
36022         * modules/ldexp: New file.
36023         * modules/lgamma: New file.
36024         * modules/log: New file.
36025         * modules/log10: New file.
36026         * modules/log1p: New file.
36027         * modules/logb: New file.
36028         * modules/modf: New file.
36029         * modules/nextafter: New file.
36030         * modules/pow: New file.
36031         * modules/remainder: New file.
36032         * modules/rint: New file.
36033         * modules/sin: New file.
36034         * modules/sinh: New file.
36035         * modules/sqrt: New file.
36036         * modules/tan: New file.
36037         * modules/tanh: New file.
36038         * modules/y0: New file.
36039         * modules/y1: New file.
36040         * modules/yn: New file.
36041         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36042         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36043         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36044         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36045         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36046         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36047         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36048         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36049         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36050         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36051         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36052         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36053         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36054         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36055         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36056         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36057         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36058         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36059         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36060         * doc/posix-functions/log.texi: Mention the 'log' module.
36061         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36062         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36063         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36064         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36065         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36066         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36067         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36068         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36069         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36070         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36071         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36072         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36073         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36074         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36075         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36076         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36077
36078 2010-01-18  Jim Meyering  <meyering@redhat.com>
36079
36080         ignore-value: relax license to LGPLv2+
36081         * modules/ignore-value (License): Relax to LGPLv2+.
36082
36083         getdate: don't leak when TZ contains two or more '"'s
36084         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36085         double quote in TZ after the first one.
36086
36087         readtokens: do not leak internal token_lengths buffer
36088         * lib/readtokens.c (readtokens): Free the local, lengths,
36089         when the supplied "token_lengths" parameter is NULL.
36090
36091 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36092
36093         Fix a couple of missing LIBTHREAD link failures on AIX.
36094         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36095         $(LIBTHREAD).
36096         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36097
36098         Link test-poll against INET_PTON_LIB.
36099         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36100         for inet_pton on Solaris 10.
36101
36102 2010-01-17  Bruno Haible  <bruno@clisp.org>
36103
36104         unistdio/*-sprintf: Fix typo in module description.
36105         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36106         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36107         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36108         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36109         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36110         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36111         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36113
36114 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36115
36116         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36117         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36118         variables in shell case patterns, for AIX and HP-UX ksh.
36119
36120         Split large sed scripts, for HP-UX sed.
36121         * modules/stdio: Split sed scripts around 50 sed commands,
36122         to avoid HP-UX limit of 99 commands, in the near future.
36123         * modules/string: Likewise.
36124         * modules/unistd: Likewise.
36125
36126         gnulib-tool: avoid writing in the current directory.
36127         * gnulib-tool (func_emit_lib_Makefile_am)
36128         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36129         not in the current directory, so concurrent gnulib-tool
36130         instances do not interfere.
36131
36132 2010-01-16  Jim Meyering  <meyering@redhat.com>
36133
36134         doc: update users.txt
36135         * users.txt: Add grep.
36136         (diffutils, gzip): Update URLs.
36137
36138 2010-01-12  Bruno Haible  <bruno@clisp.org>
36139
36140         posix_spawn: Avoid test failure on Cygwin.
36141         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36142         characters.
36143         Reported by Simon Josefsson.
36144
36145 2010-01-12  Bruno Haible  <bruno@clisp.org>
36146
36147         * tests/test-cond.c (main): When skipping the test, show the reason.
36148
36149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36150
36151         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36152
36153 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36154
36155         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36156         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36157
36158 2010-01-12  Eric Blake  <ebb9@byu.net>
36159
36160         build: guarantee AS_VAR_IF
36161         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36162         (gl_AS_VAR_IF): Move...
36163         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36164         Reported by Simon Josefsson.
36165
36166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36167
36168         * lib/stdio.in.h: Fix typo.
36169
36170 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36171
36172         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36173         libgpg-error.
36174
36175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36176
36177         * tests/test-xalloc-die.sh: Use $EXEEXT.
36178
36179 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36180             Bruno Haible  <bruno@clisp.org>
36181
36182         getlogin, getlogin_r: Avoid test failure.
36183         * tests/test-getlogin.c: Include <stdio.h>.
36184         (main): Skip the test when the function fails because stdin is not a
36185         tty.
36186         * tests/test-getlogin_r.c: Include <stdio.h>.
36187         (main): Skip the test when the function fails because stdin is not a
36188         tty.
36189
36190 2010-01-11  Eric Blake  <ebb9@byu.net>
36191
36192         tests: avoid more large file warnings
36193         * tests/test-fflush.c: Avoid warning about ftell use.
36194         * tests/test-fseek.c: Avoid warning about fseek use.
36195
36196 2010-01-10  Bruno Haible  <bruno@clisp.org>
36197
36198         nproc: Work better on Linux when /proc and /sys are not mounted.
36199         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36200         as lower bound when, on glibc/Linux systems,
36201         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36202         Suggested by Pádraig Brady <P@draigbrady.com>.
36203         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36204
36205         nproc: Refactor.
36206         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36207         extracted from num_processors.
36208         (num_processors): Call it.
36209
36210 2010-01-11  Jim Meyering  <meyering@redhat.com>
36211
36212         utimecmp: avoid new warning from upcoming gcc-4.5.0
36213         * lib/utimecmp.c (BILLION): Define using #define rather than an
36214         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36215
36216 2010-01-11  Eric Blake  <ebb9@byu.net>
36217
36218         math: add portability warnings for classification macros
36219         * modules/math (Depends-on): Add warn-on-use.
36220         (Makefile.am): Provide new substitutions.
36221         * m4/math_h.m4 (gl_MATH_H): Require inline.
36222         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36223         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36224         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36225         implement warnings.
36226
36227         unistd: warn on use of environ without module
36228         * modules/unistd (Depends-on): Add warn-on-use.
36229         (Makefile.am): Provide new substitutions.
36230         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36231         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36232
36233         stdio: warn on suspicious uses
36234         * modules/stdio (Depends-on): Add warn-on-use.
36235         (Makefile.am): Provide new substitutions.
36236         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36237         fseeko.
36238         * lib/stdio.in.h (gets): Always warn on use.
36239         (fseek, ftell): Adjust when warnings are issued, and honor
36240         _GL_NO_LARGE_FILES as a way to silence the warning.
36241         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36242         any warning about large file offsets.
36243         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36244         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36245         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36246         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36247         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36248         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36249         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36250         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36251
36252         warn-on-use: new module
36253         * modules/warn-on-use: New file.
36254         * build-aux/warn-on-use.h: Likewise.
36255         * m4/warn-on-use.m4: Likewise.
36256         * MODULES.html.sh (Support for building): Mention it.
36257
36258 2010-01-10  Bruno Haible  <bruno@clisp.org>
36259
36260         Tests for module 'unistr/u32-strdup'.
36261         * modules/unistr/u32-strdup-tests: New file.
36262         * tests/unistr/test-u32-strdup.c: New file.
36263
36264         Tests for module 'unistr/u16-strdup'.
36265         * modules/unistr/u16-strdup-tests: New file.
36266         * tests/unistr/test-u16-strdup.c: New file.
36267
36268         Tests for module 'unistr/u8-strdup'.
36269         * modules/unistr/u8-strdup-tests: New file.
36270         * tests/unistr/test-u8-strdup.c: New file.
36271         * tests/unistr/test-strdup.h: New file.
36272
36273         Tests for module 'unistr/u32-strncmp'.
36274         * modules/unistr/u32-strncmp-tests: New file.
36275         * tests/unistr/test-u32-strncmp.c: New file.
36276
36277         Tests for module 'unistr/u16-strncmp'.
36278         * modules/unistr/u16-strncmp-tests: New file.
36279         * tests/unistr/test-u16-strncmp.c: New file.
36280
36281         Tests for module 'unistr/u8-strncmp'.
36282         * modules/unistr/u8-strncmp-tests: New file.
36283         * tests/unistr/test-u8-strncmp.c: New file.
36284         * tests/unistr/test-strncmp.h: New file.
36285
36286         Tests for module 'unistr/u32-strcoll'.
36287         * modules/unistr/u32-strcoll-tests: New file.
36288         * tests/unistr/test-u32-strcoll.c: New file.
36289
36290         Tests for module 'unistr/u16-strcoll'.
36291         * modules/unistr/u16-strcoll-tests: New file.
36292         * tests/unistr/test-u16-strcoll.c: New file.
36293
36294         Tests for module 'unistr/u8-strcoll'.
36295         * modules/unistr/u8-strcoll-tests: New file.
36296         * tests/unistr/test-u8-strcoll.c: New file.
36297
36298         Tests for module 'unistr/u32-strcmp'.
36299         * modules/unistr/u32-strcmp-tests: New file.
36300         * tests/unistr/test-u32-strcmp.c: New file.
36301         * tests/unistr/test-u32-strcmp.h: New file.
36302
36303         Tests for module 'unistr/u16-strcmp'.
36304         * modules/unistr/u16-strcmp-tests: New file.
36305         * tests/unistr/test-u16-strcmp.c: New file.
36306         * tests/unistr/test-u16-strcmp.h: New file.
36307
36308         Tests for module 'unistr/u8-strcmp'.
36309         * modules/unistr/u8-strcmp-tests: New file.
36310         * tests/unistr/test-u8-strcmp.c: New file.
36311         * tests/unistr/test-u8-strcmp.h: New file.
36312         * tests/unistr/test-strcmp.h: New file.
36313
36314         Tests for module 'unistr/u32-strncat'.
36315         * modules/unistr/u32-strncat-tests: New file.
36316         * tests/unistr/test-u32-strncat.c: New file.
36317
36318         Tests for module 'unistr/u16-strncat'.
36319         * modules/unistr/u16-strncat-tests: New file.
36320         * tests/unistr/test-u16-strncat.c: New file.
36321
36322         Tests for module 'unistr/u8-strncat'.
36323         * modules/unistr/u8-strncat-tests: New file.
36324         * tests/unistr/test-u8-strncat.c: New file.
36325         * tests/unistr/test-strncat.h: New file.
36326
36327         Tests for module 'unistr/u32-strcat'.
36328         * modules/unistr/u32-strcat-tests: New file.
36329         * tests/unistr/test-u32-strcat.c: New file.
36330
36331         Tests for module 'unistr/u16-strcat'.
36332         * modules/unistr/u16-strcat-tests: New file.
36333         * tests/unistr/test-u16-strcat.c: New file.
36334
36335         Tests for module 'unistr/u8-strcat'.
36336         * modules/unistr/u8-strcat-tests: New file.
36337         * tests/unistr/test-u8-strcat.c: New file.
36338         * tests/unistr/test-strcat.h: New file.
36339
36340         Tests for module 'unistr/u32-stpncpy'.
36341         * modules/unistr/u32-stpncpy-tests: New file.
36342         * tests/unistr/test-u32-stpncpy.c: New file.
36343
36344         Tests for module 'unistr/u16-stpncpy'.
36345         * modules/unistr/u16-stpncpy-tests: New file.
36346         * tests/unistr/test-u16-stpncpy.c: New file.
36347
36348         Tests for module 'unistr/u8-stpncpy'.
36349         * modules/unistr/u8-stpncpy-tests: New file.
36350         * tests/unistr/test-u8-stpncpy.c: New file.
36351         * tests/unistr/test-stpncpy.h: New file.
36352
36353         Tests for module 'unistr/u32-strncpy'.
36354         * modules/unistr/u32-strncpy-tests: New file.
36355         * tests/unistr/test-u32-strncpy.c: New file.
36356
36357         Tests for module 'unistr/u16-strncpy'.
36358         * modules/unistr/u16-strncpy-tests: New file.
36359         * tests/unistr/test-u16-strncpy.c: New file.
36360
36361         Tests for module 'unistr/u8-strncpy'.
36362         * modules/unistr/u8-strncpy-tests: New file.
36363         * tests/unistr/test-u8-strncpy.c: New file.
36364         * tests/unistr/test-strncpy.h: New file.
36365
36366         Tests for module 'unistr/u32-stpcpy'.
36367         * modules/unistr/u32-stpcpy-tests: New file.
36368         * tests/unistr/test-u32-stpcpy.c: New file.
36369
36370         Tests for module 'unistr/u16-stpcpy'.
36371         * modules/unistr/u16-stpcpy-tests: New file.
36372         * tests/unistr/test-u16-stpcpy.c: New file.
36373
36374         Tests for module 'unistr/u8-stpcpy'.
36375         * modules/unistr/u8-stpcpy-tests: New file.
36376         * tests/unistr/test-u8-stpcpy.c: New file.
36377         * tests/unistr/test-stpcpy.h: New file.
36378
36379         Tests for module 'unistr/u32-strcpy'.
36380         * modules/unistr/u32-strcpy-tests: New file.
36381         * tests/unistr/test-u32-strcpy.c: New file.
36382
36383         Tests for module 'unistr/u16-strcpy'.
36384         * modules/unistr/u16-strcpy-tests: New file.
36385         * tests/unistr/test-u16-strcpy.c: New file.
36386
36387         Tests for module 'unistr/u8-strcpy'.
36388         * modules/unistr/u8-strcpy-tests: New file.
36389         * tests/unistr/test-u8-strcpy.c: New file.
36390         * tests/unistr/test-strcpy.h: New file.
36391
36392         Tests for module 'unistr/u32-strnlen'.
36393         * modules/unistr/u32-strnlen-tests: New file.
36394         * tests/unistr/test-u32-strnlen.c: New file.
36395
36396         Tests for module 'unistr/u16-strnlen'.
36397         * modules/unistr/u16-strnlen-tests: New file.
36398         * tests/unistr/test-u16-strnlen.c: New file.
36399
36400         Tests for module 'unistr/u8-strnlen'.
36401         * modules/unistr/u8-strnlen-tests: New file.
36402         * tests/unistr/test-u8-strnlen.c: New file.
36403         * tests/unistr/test-strnlen.h: New file.
36404
36405         Tests for module 'unistr/u32-strlen'.
36406         * modules/unistr/u32-strlen-tests: New file.
36407         * tests/unistr/test-u32-strlen.c: New file.
36408
36409         Tests for module 'unistr/u16-strlen'.
36410         * modules/unistr/u16-strlen-tests: New file.
36411         * tests/unistr/test-u16-strlen.c: New file.
36412
36413         Tests for module 'unistr/u8-strlen'.
36414         * modules/unistr/u8-strlen-tests: New file.
36415         * tests/unistr/test-u8-strlen.c: New file.
36416
36417         Tests for module 'unistr/u32-prev'.
36418         * modules/unistr/u32-prev-tests: New file.
36419         * tests/unistr/test-u32-prev.c: New file.
36420
36421         Tests for module 'unistr/u16-prev'.
36422         * modules/unistr/u16-prev-tests: New file.
36423         * tests/unistr/test-u16-prev.c: New file.
36424
36425         Tests for module 'unistr/u8-prev'.
36426         * modules/unistr/u8-prev-tests: New file.
36427         * tests/unistr/test-u8-prev.c: New file.
36428
36429         Tests for module 'unistr/u32-next'.
36430         * modules/unistr/u32-next-tests: New file.
36431         * tests/unistr/test-u32-next.c: New file.
36432
36433         Tests for module 'unistr/u16-next'.
36434         * modules/unistr/u16-next-tests: New file.
36435         * tests/unistr/test-u16-next.c: New file.
36436
36437         Tests for module 'unistr/u8-next'.
36438         * modules/unistr/u8-next-tests: New file.
36439         * tests/unistr/test-u8-next.c: New file.
36440
36441         Tests for module 'unistr/u32-strmbtouc'.
36442         * modules/unistr/u32-strmbtouc-tests: New file.
36443         * tests/unistr/test-u32-strmbtouc.c: New file.
36444
36445         Tests for module 'unistr/u16-strmbtouc'.
36446         * modules/unistr/u16-strmbtouc-tests: New file.
36447         * tests/unistr/test-u16-strmbtouc.c: New file.
36448
36449         Tests for module 'unistr/u8-strmbtouc'.
36450         * modules/unistr/u8-strmbtouc-tests: New file.
36451         * tests/unistr/test-u8-strmbtouc.c: New file.
36452
36453         Tests for module 'unistr/u32-strmblen'.
36454         * modules/unistr/u32-strmblen-tests: New file.
36455         * tests/unistr/test-u32-strmblen.c: New file.
36456
36457         Tests for module 'unistr/u16-strmblen'.
36458         * modules/unistr/u16-strmblen-tests: New file.
36459         * tests/unistr/test-u16-strmblen.c: New file.
36460
36461         Tests for module 'unistr/u8-strmblen'.
36462         * modules/unistr/u8-strmblen-tests: New file.
36463         * tests/unistr/test-u8-strmblen.c: New file.
36464
36465         Tests for module 'unistr/u32-cpy-alloc'.
36466         * modules/unistr/u32-cpy-alloc-tests: New file.
36467         * tests/unistr/test-u32-cpy-alloc.c: New file.
36468
36469         Tests for module 'unistr/u16-cpy-alloc'.
36470         * modules/unistr/u16-cpy-alloc-tests: New file.
36471         * tests/unistr/test-u16-cpy-alloc.c: New file.
36472
36473         Tests for module 'unistr/u8-cpy-alloc'.
36474         * modules/unistr/u8-cpy-alloc-tests: New file.
36475         * tests/unistr/test-u8-cpy-alloc.c: New file.
36476         * tests/unistr/test-cpy-alloc.h: New file.
36477
36478         Tests for module 'unistr/u32-mbsnlen'.
36479         * modules/unistr/u32-mbsnlen-tests: New file.
36480         * tests/unistr/test-u32-mbsnlen.c: New file.
36481
36482         Tests for module 'unistr/u16-mbsnlen'.
36483         * modules/unistr/u16-mbsnlen-tests: New file.
36484         * tests/unistr/test-u16-mbsnlen.c: New file.
36485
36486         Tests for module 'unistr/u8-mbsnlen'.
36487         * modules/unistr/u8-mbsnlen-tests: New file.
36488         * tests/unistr/test-u8-mbsnlen.c: New file.
36489
36490         Tests for module 'unistr/u32-chr'.
36491         * modules/unistr/u32-chr-tests: New file.
36492         * tests/unistr/test-u32-chr.c: New file.
36493
36494         Tests for module 'unistr/u16-chr'.
36495         * modules/unistr/u16-chr-tests: New file.
36496         * tests/unistr/test-u16-chr.c: New file.
36497
36498         Tests for module 'unistr/u8-chr'.
36499         * modules/unistr/u8-chr-tests: New file.
36500         * tests/unistr/test-u8-chr.c: New file.
36501         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36502
36503         Tests for module 'unistr/u32-cmp2'.
36504         * modules/unistr/u32-cmp2-tests: New file.
36505         * tests/unistr/test-u32-cmp2.c: New file.
36506
36507         Tests for module 'unistr/u16-cmp2'.
36508         * modules/unistr/u16-cmp2-tests: New file.
36509         * tests/unistr/test-u16-cmp2.c: New file.
36510
36511         Tests for module 'unistr/u8-cmp2'.
36512         * modules/unistr/u8-cmp2-tests: New file.
36513         * tests/unistr/test-u8-cmp2.c: New file.
36514         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36515
36516         Tests for module 'unistr/u32-cmp'.
36517         * modules/unistr/u32-cmp-tests: New file.
36518         * tests/unistr/test-u32-cmp.c: New file.
36519
36520         Tests for module 'unistr/u16-cmp'.
36521         * modules/unistr/u16-cmp-tests: New file.
36522         * tests/unistr/test-u16-cmp.c: New file.
36523
36524         Tests for module 'unistr/u8-cmp'.
36525         * modules/unistr/u8-cmp-tests: New file.
36526         * tests/unistr/test-u8-cmp.c: New file.
36527         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36528
36529         Tests for module 'unistr/u32-set'.
36530         * modules/unistr/u32-set-tests: New file.
36531         * tests/unistr/test-u32-set.c: New file.
36532
36533         Tests for module 'unistr/u16-set'.
36534         * modules/unistr/u16-set-tests: New file.
36535         * tests/unistr/test-u16-set.c: New file.
36536
36537         Tests for module 'unistr/u8-set'.
36538         * modules/unistr/u8-set-tests: New file.
36539         * tests/unistr/test-u8-set.c: New file.
36540         * tests/unistr/test-set.h: New file.
36541
36542         Tests for module 'unistr/u32-move'.
36543         * modules/unistr/u32-move-tests: New file.
36544         * tests/unistr/test-u32-move.c: New file.
36545
36546         Tests for module 'unistr/u16-move'.
36547         * modules/unistr/u16-move-tests: New file.
36548         * tests/unistr/test-u16-move.c: New file.
36549
36550         Tests for module 'unistr/u8-move'.
36551         * modules/unistr/u8-move-tests: New file.
36552         * tests/unistr/test-u8-move.c: New file.
36553         * tests/unistr/test-move.h: New file.
36554
36555         Tests for module 'unistr/u32-cpy'.
36556         * modules/unistr/u32-cpy-tests: New file.
36557         * tests/unistr/test-u32-cpy.c: New file.
36558
36559         Tests for module 'unistr/u16-cpy'.
36560         * modules/unistr/u16-cpy-tests: New file.
36561         * tests/unistr/test-u16-cpy.c: New file.
36562
36563         Tests for module 'unistr/u8-cpy'.
36564         * modules/unistr/u8-cpy-tests: New file.
36565         * tests/unistr/test-u8-cpy.c: New file.
36566         * tests/unistr/test-cpy.h: New file.
36567
36568 2010-01-09  Bruno Haible  <bruno@clisp.org>
36569
36570         Tests for module 'unistr/u32-uctomb'.
36571         * modules/unistr/u32-uctomb-tests: New file.
36572         * tests/unistr/test-u32-uctomb.c: New file.
36573
36574         Tests for module 'unistr/u16-uctomb'.
36575         * modules/unistr/u16-uctomb-tests: New file.
36576         * tests/unistr/test-u16-uctomb.c: New file.
36577
36578         Tests for module 'unistr/u8-uctomb'.
36579         * modules/unistr/u8-uctomb-tests: New file.
36580         * tests/unistr/test-u8-uctomb.c: New file.
36581
36582         Tests for module 'unistr/u32-mbtoucr'.
36583         * modules/unistr/u32-mbtoucr-tests: New file.
36584         * tests/unistr/test-u32-mbtoucr.c: New file.
36585
36586         Tests for module 'unistr/u16-mbtoucr'.
36587         * modules/unistr/u16-mbtoucr-tests: New file.
36588         * tests/unistr/test-u16-mbtoucr.c: New file.
36589
36590         Tests for module 'unistr/u8-mbtoucr'.
36591         * modules/unistr/u8-mbtoucr-tests: New file.
36592         * tests/unistr/test-u8-mbtoucr.c: New file.
36593
36594         Tests for module 'unistr/u32-mbtouc'.
36595         * modules/unistr/u32-mbtouc-tests: New file.
36596         * tests/unistr/test-u32-mbtouc.c: New file.
36597
36598         Tests for module 'unistr/u16-mbtouc'.
36599         * modules/unistr/u16-mbtouc-tests: New file.
36600         * tests/unistr/test-u16-mbtouc.c: New file.
36601
36602         Tests for module 'unistr/u8-mbtouc'.
36603         * modules/unistr/u8-mbtouc-tests: New file.
36604         * tests/unistr/test-u8-mbtouc.c: New file.
36605
36606         Tests for module 'unistr/u32-mbtouc-unsafe'.
36607         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36608         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36609         * tests/unistr/test-u32-mbtouc.h: New file.
36610
36611         Tests for module 'unistr/u16-mbtouc-unsafe'.
36612         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36613         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36614         * tests/unistr/test-u16-mbtouc.h: New file.
36615
36616         Tests for module 'unistr/u8-mbtouc-unsafe'.
36617         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36618         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36619         * tests/unistr/test-u8-mbtouc.h: New file.
36620
36621         Tests for module 'unistr/u32-mblen'.
36622         * modules/unistr/u32-mblen-tests: New file.
36623         * tests/unistr/test-u32-mblen.c: New file.
36624
36625         Tests for module 'unistr/u16-mblen'.
36626         * modules/unistr/u16-mblen-tests: New file.
36627         * tests/unistr/test-u16-mblen.c: New file.
36628
36629         Tests for module 'unistr/u8-mblen'.
36630         * modules/unistr/u8-mblen-tests: New file.
36631         * tests/unistr/test-u8-mblen.c: New file.
36632
36633         Tests for module 'unistr/u32-to-u16'.
36634         * modules/unistr/u32-to-u16-tests: New file.
36635         * tests/unistr/test-u32-to-u16.c: New file.
36636
36637         Tests for module 'unistr/u32-to-u8'.
36638         * modules/unistr/u32-to-u8-tests: New file.
36639         * tests/unistr/test-u32-to-u8.c: New file.
36640
36641         Tests for module 'unistr/u16-to-u32'.
36642         * modules/unistr/u16-to-u32-tests: New file.
36643         * tests/unistr/test-u16-to-u32.c: New file.
36644
36645         Tests for module 'unistr/u16-to-u8'.
36646         * modules/unistr/u16-to-u8-tests: New file.
36647         * tests/unistr/test-u16-to-u8.c: New file.
36648
36649         Tests for module 'unistr/u8-to-u32'.
36650         * modules/unistr/u8-to-u32-tests: New file.
36651         * tests/unistr/test-u8-to-u32.c: New file.
36652
36653         Tests for module 'unistr/u8-to-u16'.
36654         * modules/unistr/u8-to-u16-tests: New file.
36655         * tests/unistr/test-u8-to-u16.c: New file.
36656
36657         Tests for module 'unistr/u32-check'.
36658         * modules/unistr/u32-check-tests: New file.
36659         * tests/unistr/test-u32-check.c: New file.
36660
36661         Tests for module 'unistr/u16-check'.
36662         * modules/unistr/u16-check-tests: New file.
36663         * tests/unistr/test-u16-check.c: New file.
36664
36665         Tests for module 'unistr/u8-check'.
36666         * modules/unistr/u8-check-tests: New file.
36667         * tests/unistr/test-u8-check.c: New file.
36668
36669         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36670         (category_equals): New function.
36671         (main): Add more tests.
36672         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36673
36674         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36675
36676 2010-01-10  Bruno Haible  <bruno@clisp.org>
36677
36678         unistr/u*-strcoll: Try harder to distinguish different strings.
36679         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36680         compare s1 and s2 to see if they are different.
36681
36682 2010-01-10  Bruno Haible  <bruno@clisp.org>
36683
36684         unistr/u*-stpncpy: Fix the return value.
36685         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36686         description of the return value consistent with stpncpy in glibc.
36687         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36688         written non-NUL unit.
36689
36690 2010-01-10  Bruno Haible  <bruno@clisp.org>
36691
36692         unistr/u*-next: Add missing dependencies.
36693         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36694         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36695         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36696
36697 2010-01-10  Bruno Haible  <bruno@clisp.org>
36698
36699         unistr/u8-mbsnlen: Fix return value for incomplete character.
36700         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36701         u8_mblen.
36702         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36703         Remove unistr/u8-mblen.
36704         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36705         u16_mblen.
36706         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36707         Remove unistr/u16-mblen.
36708
36709 2010-01-10  Bruno Haible  <bruno@clisp.org>
36710
36711         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36712         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36713         Reported by Brian Gough <bjg@gnu.org> and
36714         Chris Clayton <chris2553@googlemail.com> via
36715         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36716
36717 2010-01-09  Bruno Haible  <bruno@clisp.org>
36718
36719         unistr/u16-to-u32: Reject invalid input.
36720         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36721         u16_mbtouc.
36722         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36723         Remove unistr/u16-mbtouc.
36724
36725         unistr/u16-to-u8: Reject invalid input.
36726         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36727         u16_mbtouc.
36728         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36729         Remove unistr/u16-mbtouc.
36730
36731         unistr/u8-to-u32: Reject invalid input.
36732         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36733         u8_mbtouc.
36734         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36735         Remove unistr/u8-mbtouc.
36736
36737         unistr/u8-to-u16: Reject invalid input.
36738         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36739         u8_mbtouc.
36740         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36741         Remove unistr/u8-mbtouc.
36742
36743 2010-01-09  Bruno Haible  <bruno@clisp.org>
36744
36745         Tests for module 'getlogin'.
36746         * modules/getlogin-tests: New file.
36747         * tests/test-getlogin.c: New file.
36748
36749         New module 'getlogin'.
36750         * lib/unistd.in.h (getlogin): New declaration.
36751         * lib/getlogin.c: New file.
36752         * m4/getlogin.m4: New file.
36753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36754         HAVE_GETLOGIN.
36755         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36756         HAVE_GETLOGIN.
36757         * modules/getlogin: New file.
36758         * doc/posix-functions/getlogin.texi: Mention the new module.
36759         Reported by John W. Eaton <jwe@gnu.org>.
36760
36761 2010-01-09  Bruno Haible  <bruno@clisp.org>
36762
36763         getlogin_r: Support for native Windows.
36764         * lib/getlogin_r.c: Include <windows.h>
36765         (getlogin_r): Implement for native Windows.
36766         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36767         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36768         via John W. Eaton <jwe@gnu.org>.
36769
36770 2010-01-09  Bruno Haible  <bruno@clisp.org>
36771
36772         getlogin_r: Small fixes.
36773         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36774         succeeds.
36775         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36776         before testing whether getlogin_r is declared. No need to set
36777         HAVE_DECL_GETLOGIN_R to 1.
36778         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36779
36780 2010-01-09  Bruno Haible  <bruno@clisp.org>
36781
36782         * lib/unistd.in.h (getlogin_r): Add comment.
36783
36784 2010-01-09  Bruno Haible  <bruno@clisp.org>
36785
36786         Tests for module 'getlogin_r'.
36787         * modules/getlogin_r-tests: New file.
36788         * tests/test-getlogin_r.c: New file.
36789
36790 2010-01-09  Jim Meyering  <meyering@redhat.com>
36791
36792         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36793         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36794         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36795
36796 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36797
36798         * lib/dup2.c (rpl_dup2): Improve comment.
36799
36800 2010-01-08  Eric Blake  <ebb9@byu.net>
36801
36802         maint.mk: allow packages to add makefile @@ exceptions
36803         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36804         (sc_makefile_check): Rename...
36805         (sc_makefile_at_at_check): ...to this, and use hook.
36806
36807         dup2: work around mingw bug
36808         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36809         Reported by Simon Josefsson.
36810
36811 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36812
36813         glob: Fix C++ compilation.
36814         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36815         C++.
36816
36817 2010-01-07  Bruno Haible  <bruno@clisp.org>
36818
36819         Fix indentation of wctype.in.h, broken since 2007-01-06.
36820         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36821
36822 2010-01-07  Bruno Haible  <bruno@clisp.org>
36823
36824         mbslen: Avoid collision with system function.
36825         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36826         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36827         * m4/mbslen.m4: New file.
36828         * modules/mbslen (Files): Add it.
36829         (configure.ac): Invoke gl_MBSLEN.
36830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36831         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36832         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36833         via Ian Beckwith <ianb@erislabs.net>.
36834
36835 2010-01-07  Bruno Haible  <bruno@clisp.org>
36836
36837         dirent: Document the last fix.
36838         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36839
36840 2010-01-07  Bruno Haible  <bruno@clisp.org>
36841
36842         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36843         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36844         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36845         va_list are defined.
36846         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36847         Reported by Eric Blake.
36848
36849 2010-01-07  Bruno Haible  <bruno@clisp.org>
36850
36851         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36852         * modules/xlist (Depends-on): Add 'list',
36853         * modules/xoset (Depends-on): Add 'oset'.
36854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36855
36856 2010-01-07  Bruno Haible  <bruno@clisp.org>
36857
36858         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36859         * doc/posix-functions/strncasecmp.texi: Likewise.
36860
36861 2010-01-07  Bruno Haible  <bruno@clisp.org>
36862
36863         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36864
36865 2010-01-07  John W. Eaton  <jwe@octave.org>
36866
36867         wctype: allow C++ use
36868         * lib/wctype.in.h: Add extern "C" block for C++.
36869
36870 2010-01-06  Eric Blake  <ebb9@byu.net>
36871
36872         maint.mk: detect incorrect GFDL usage
36873         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36874
36875 2010-01-06  Jim Meyering  <meyering@redhat.com>
36876         and Eric Blake  <ebb9@byu.net>
36877
36878         maint.mk: ignore multi-line copyright in NEWS
36879         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36880
36881 2010-01-06  Eric Blake  <ebb9@byu.net>
36882
36883         select: add missing dependency
36884         * modules/select-tests (Depends-on): Move sockets dependency...
36885         * modules/select (Depends-on): ...here.
36886         Reported by Ian Beckwith.
36887
36888         doc: regenerate INSTALL
36889         * doc/INSTALL: Reflect recent autoconf update.
36890         * doc/INSTALL.ISO: Likewise.
36891         * doc/INSTALL.UTF-8: Likewise.
36892
36893         pread: fix compilation on glibc
36894         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36895         Reported by Ralf Wildenhues.
36896
36897         dirent: fix test failure
36898         * lib/dirent.in.h (includes): Guarantee ino_t.
36899         Reported by Ralf Wildenhues.
36900
36901 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36902
36903         linkat, renameat: avoid bad free
36904         * lib/at-func2.c (at_func2): Fix typo.
36905         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36906
36907 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36908
36909         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36910         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36911         to avoid failure of symlink test later.
36912
36913 2010-01-06  Eric Blake  <ebb9@byu.net>
36914
36915         stdio, unistd: guarantee ssize_t
36916         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36917         2008 are exposed when needed.
36918         * lib/stdio.in.h (includes): Likewise.
36919         Reported by Ralf Wildenhues.
36920
36921 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36922
36923         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36924         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36925         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36926
36927 2010-01-06  Jim Meyering  <meyering@redhat.com>
36928
36929         readtokens: this module *does* require xalloc.h
36930         It uses only functions that were omitted by the old syntax-check rule.
36931         * lib/readtokens.c: Include "xalloc.h" once again.
36932         * modules/readtokens (Depends-on): Add xalloc.
36933         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36934
36935 2010-01-05  Eric Blake  <ebb9@byu.net>
36936
36937         maint: support 'make announcement' from a VPATH build
36938         * top/maint.mk (announcement): Look for correct NEWS file.
36939
36940 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36941
36942         utimens (fdutimens): ignore a negative FD, per contract
36943         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36944         when we have a valid file descriptor.  Otherwise, using a brand
36945         new glibc (with just-patched futimens that now fails with EBADF)
36946         would cause this function to fail with ENOSYS.
36947         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36948         See also http://bugzilla.redhat.com/552320.
36949
36950 2010-01-05  Eric Blake  <ebb9@byu.net>
36951
36952         strcase: document what it provides
36953         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36954         gnulib module.
36955         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36956         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36957
36958 2010-01-05  Jim Meyering  <meyering@redhat.com>
36959
36960         maint: remove useless inclusions of "xalloc.h"
36961         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36962         * lib/readtokens.c: Likewise.
36963         * lib/same.c: Likewise.
36964         * modules/getloadavg (Depends-on): Remove xalloc.
36965         * modules/readtokens: Likewise.
36966         * modules/same: Likewise.
36967
36968         maint.mk: include 4 more function names in alloca.h-checking regexp
36969         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36970         regexp.  Before, we would give a false-positive (saying alloca.h
36971         is included unnecessarily) when the only uses involved omitted symbols.
36972
36973         xalloc.h: use consistent formatting
36974         * lib/xalloc.h: Move declarations to start in the first column.
36975
36976 2010-01-05  Eric Blake  <ebb9@byu.net>
36977
36978         mkdir: avoid xalloc
36979         * lib/mkdir.c (includes): Drop unused header.
36980         Reported by John W. Eaton.
36981
36982 2010-01-04  Jim Meyering  <meyering@redhat.com>
36983
36984         nl_langinfo: avoid configure-time syntax error
36985         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36986         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36987         the empty string.  Don't let that provoke a shell syntax error.
36988
36989         regcomp, regexec, fnmatch: avoid array bounds read error
36990         * lib/regcomp.c (build_equiv_class): From glibc:
36991         Use only the low 24 bits of a findidx return value as an index
36992         into the weights array.  Patch by Ulrich Drepper:
36993         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36994         * lib/regexec.c (check_node_accept_bytes): Likewise.
36995         * lib/fnmatch_loop.c (FCT): Likewise.
36996
36997         regcomp: skip collseq lookup when there are no rules
36998         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36999         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37000
37001         regcomp: recognize ill-formed { } expressions
37002         * lib/regcomp.c (parse_dup_op): From glibc:
37003         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37004
37005         regcomp: fix typo in comment
37006         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37007         s/satisfy/satisfies/.
37008
37009         regcomp: sync from glibc: remove dead store
37010         * lib/regcomp.c (duplicate_node_closure): Remove useless
37011         search_duplicated_node call and dead store.
37012
37013         regcomp: sync from glibc; always use nl_langinfo
37014         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37015         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37016         * modules/regex (Depends-on): Add nl_langinfo.
37017
37018 2010-01-04  Eric Blake  <ebb9@byu.net>
37019
37020         fdopendir: fix configure test
37021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37022
37023 2010-01-01  Bruno Haible  <bruno@clisp.org>
37024
37025         wchar: Remove unused configure check.
37026         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37027
37028 2010-01-01  Eric Blake  <ebb9@byu.net>
37029
37030         headers: make check of system header explicit
37031         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37032         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37033         ourselves.
37034         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37036         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37038         internals.
37039         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37040         missing.
37041         Suggested by Bruno Haible.
37042
37043 2010-01-01  Jim Meyering  <meyering@redhat.com>
37044
37045         ChangeLog: tweak to eliminate unnecessary copyright line
37046         * ChangeLog: Remove a copyright line that was mistakenly updated
37047         by today's update-copyright run.  Reported by Eric Blake.
37048
37049         test-update-copyright: don't let envvar setting cause test failure
37050         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37051
37052 2010-01-01  Bruno Haible  <bruno@clisp.org>
37053
37054         localename: Avoid gcc warning.
37055         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37056         function if it is not used.
37057
37058 2010-01-01  Jim Meyering  <meyering@redhat.com>
37059
37060         update nearly all FSF copyright year lists to include 2010
37061         Use the same procedure as for 2009, outlined in
37062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37063
37064         version-etc: set COPYRIGHT_YEAR to 2010
37065         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37066
37067 2009-12-31  Eric Blake  <ebb9@byu.net>
37068
37069         doc: correct availability of cygwin 1.5.x getopt
37070         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37071         variables.
37072         * doc/posix-functions/opterr.texi (opterr): Likewise.
37073         * doc/posix-functions/optind.texi (optind): Likewise.
37074         * doc/posix-functions/optopt.texi (optopt): Likewise.
37075         * doc/posix-functions/tzname.texi (tzname): Likewise.
37076
37077         openat: update maintainer
37078         * modules/openat (Maintainer): Add myself.
37079
37080         utimens: avoid shadowing warning
37081         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37082         buffers into one, to avoid shadowing, as well as avoiding a
37083         redundant stat.
37084         Reported by Jim Meyering.
37085
37086         test-dup2: avoid compiler warning
37087         * tests/test-dup2.c (is_inheritable): Only define if used.
37088
37089 2010-01-01  Bruno Haible  <bruno@clisp.org>
37090
37091         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37092         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37093         defined, use wctomb instead of wcrtomb.
37094
37095 2010-01-01  Bruno Haible  <bruno@clisp.org>
37096
37097         iconv: Reject native Solaris iconv.
37098         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37099         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37100
37101 2009-12-31  Bruno Haible  <bruno@clisp.org>
37102
37103         * tests/test-signal.c (main): Remove test of 'SIG'.
37104
37105 2009-12-31  Bruno Haible  <bruno@clisp.org>
37106
37107         spawn: Fix incomplete fix.
37108         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37109         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37110         warnings for GNULIB_POSIXCHECK again.
37111         Reported by Eric Blake.
37112
37113 2009-12-31  Bruno Haible  <bruno@clisp.org>
37114
37115         Avoid namespace pollution on glibc systems.
37116         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37117         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37118         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37119         glibc systems.
37120
37121 2009-12-31  Bruno Haible  <bruno@clisp.org>
37122
37123         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37124         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37126         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37127         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37129         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37130
37131 2009-12-31  Bruno Haible  <bruno@clisp.org>
37132
37133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37134         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37135         afterwards.
37136
37137 2009-12-31  Bruno Haible  <bruno@clisp.org>
37138
37139         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37140         SYS_UTSNAME_H.
37141
37142 2009-12-31  Bruno Haible  <bruno@clisp.org>
37143
37144         spawn: Fix misapplied patch.
37145         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37146         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37147         warnings for GNULIB_POSIXCHECK.
37148
37149 2009-12-31  Bruno Haible  <bruno@clisp.org>
37150
37151         times: Update after sys_times changed.
37152         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37153         * modules/times (Files): Add it.
37154         (configure.ac): Invoke gl_FUNC_TIMES.
37155
37156 2009-12-31  Bruno Haible  <bruno@clisp.org>
37157
37158         Use AC_C_INLINE where necessary.
37159         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37162         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37163         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37164         * m4/mbiter.m4 (gl_MBITER): Likewise.
37165         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37166         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37167         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37168         * modules/u64 (configure.ac): Likewise.
37169
37170 2009-12-31  Bruno Haible  <bruno@clisp.org>
37171
37172         Use AC_C_INLINE instead of module 'inline' where possible.
37173         * modules/inline (Description): Clarify purpose.
37174         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37175         * modules/count-one-bits (Depends-on): Remove inline.
37176         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37177         * modules/openat (Depends-on): Remove inline.
37178         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37179         instead of depending on module 'inline'.
37180         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37181         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37182         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37183         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37184         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37185         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37186         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37187         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37188         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37189         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37190         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37191         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37192         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37193         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37194         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37195         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37196         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37197         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37198         Likewise.
37199         * modules/unictype/property-ascii-hex-digit (Depends-on,
37200         configure.ac): Likewise.
37201         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37202         configure.ac): Likewise.
37203         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37204         configure.ac): Likewise.
37205         * modules/unictype/property-bidi-block-separator (Depends-on,
37206         configure.ac): Likewise.
37207         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37208         configure.ac): Likewise.
37209         * modules/unictype/property-bidi-common-separator (Depends-on,
37210         configure.ac): Likewise.
37211         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37212         Likewise.
37213         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37214         configure.ac): Likewise.
37215         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37216         configure.ac): Likewise.
37217         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37218         configure.ac): Likewise.
37219         * modules/unictype/property-bidi-european-digit (Depends-on,
37220         configure.ac): Likewise.
37221         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37222         configure.ac): Likewise.
37223         * modules/unictype/property-bidi-left-to-right (Depends-on,
37224         configure.ac): Likewise.
37225         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37226         configure.ac): Likewise.
37227         * modules/unictype/property-bidi-other-neutral (Depends-on,
37228         configure.ac): Likewise.
37229         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37230         Likewise.
37231         * modules/unictype/property-bidi-segment-separator (Depends-on,
37232         configure.ac): Likewise.
37233         * modules/unictype/property-bidi-whitespace (Depends-on,
37234         configure.ac): Likewise.
37235         * modules/unictype/property-combining (Depends-on, configure.ac):
37236         Likewise.
37237         * modules/unictype/property-composite (Depends-on, configure.ac):
37238         Likewise.
37239         * modules/unictype/property-currency-symbol (Depends-on,
37240         configure.ac): Likewise.
37241         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37242         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37243         Likewise.
37244         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37245         configure.ac): Likewise.
37246         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37247         Likewise.
37248         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37249         Likewise.
37250         * modules/unictype/property-extender (Depends-on, configure.ac):
37251         Likewise.
37252         * modules/unictype/property-format-control (Depends-on, configure.ac):
37253         Likewise.
37254         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37255         Likewise.
37256         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37257         Likewise.
37258         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37259         Likewise.
37260         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37261         Likewise.
37262         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37263         Likewise.
37264         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37265         Likewise.
37266         * modules/unictype/property-id-start (Depends-on, configure.ac):
37267         Likewise.
37268         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37269         Likewise.
37270         * modules/unictype/property-ids-binary-operator (Depends-on,
37271         configure.ac): Likewise.
37272         * modules/unictype/property-ids-trinary-operator (Depends-on,
37273         configure.ac): Likewise.
37274         * modules/unictype/property-ignorable-control (Depends-on,
37275         configure.ac): Likewise.
37276         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37277         Likewise.
37278         * modules/unictype/property-join-control (Depends-on, configure.ac):
37279         Likewise.
37280         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37281         Likewise.
37282         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37283         Likewise.
37284         * modules/unictype/property-logical-order-exception (Depends-on,
37285         configure.ac): Likewise.
37286         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37287         Likewise.
37288         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37289         * modules/unictype/property-non-break (Depends-on, configure.ac):
37290         Likewise.
37291         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37292         Likewise.
37293         * modules/unictype/property-numeric (Depends-on, configure.ac):
37294         Likewise.
37295         * modules/unictype/property-other-alphabetic (Depends-on,
37296         configure.ac): Likewise.
37297         * modules/unictype/property-other-default-ignorable-code-point
37298         (Depends-on, configure.ac): Likewise.
37299         * modules/unictype/property-other-grapheme-extend (Depends-on,
37300         configure.ac): Likewise.
37301         * modules/unictype/property-other-id-continue (Depends-on,
37302         configure.ac): Likewise.
37303         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37304         Likewise.
37305         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37306         Likewise.
37307         * modules/unictype/property-other-math (Depends-on, configure.ac):
37308         Likewise.
37309         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37310         Likewise.
37311         * modules/unictype/property-paired-punctuation (Depends-on,
37312         configure.ac): Likewise.
37313         * modules/unictype/property-paragraph-separator (Depends-on,
37314         configure.ac): Likewise.
37315         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37316         Likewise.
37317         * modules/unictype/property-pattern-white-space (Depends-on,
37318         configure.ac): Likewise.
37319         * modules/unictype/property-private-use (Depends-on, configure.ac):
37320         Likewise.
37321         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37322         Likewise.
37323         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37324         Likewise.
37325         * modules/unictype/property-radical (Depends-on, configure.ac):
37326         Likewise.
37327         * modules/unictype/property-sentence-terminal (Depends-on,
37328         configure.ac): Likewise.
37329         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37330         Likewise.
37331         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37332         * modules/unictype/property-terminal-punctuation (Depends-on,
37333         configure.ac): Likewise.
37334         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37335         Likewise.
37336         * modules/unictype/property-unassigned-code-value (Depends-on,
37337         configure.ac): Likewise.
37338         * modules/unictype/property-unified-ideograph (Depends-on,
37339         configure.ac): Likewise.
37340         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37341         Likewise.
37342         * modules/unictype/property-variation-selector (Depends-on,
37343         configure.ac): Likewise.
37344         * modules/unictype/property-white-space (Depends-on, configure.ac):
37345         Likewise.
37346         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37347         Likewise.
37348         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37349         Likewise.
37350         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37351         Likewise.
37352         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37353         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37354         Likewise.
37355
37356 2009-12-31  Bruno Haible  <bruno@clisp.org>
37357
37358         Remove unnecessary AC_C_INLINE invocation.
37359         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37360         since 2009-08-21.
37361
37362 2009-12-31  Jim Meyering  <meyering@redhat.com>
37363
37364         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37365         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37366         With this change, we can all remove the gpg_key_ID = ... definition
37367         from our respective cfg.mk files.
37368
37369         maint.mk: create announcement template in ~/, not in /tmp
37370         * top/maint.mk (emit_upload_commands): Adjust.
37371         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37372         Remove temporary file, .ci-msg.
37373
37374 2009-12-31  Eric Blake  <ebb9@byu.net>
37375
37376         link-warning: always build headers with link warnings
37377         * modules/arpa_inet (Makefile.am): Always build replacement
37378         header.
37379         * modules/ctype (Makefile.am): Likewise.
37380         * modules/dirent (Makefile.am): Likewise.
37381         * modules/inttypes (Makefile.am): Likewise.
37382         * modules/langinfo (Makefile.am): Likewise.
37383         * modules/locale (Makefile.am): Likewise.
37384         * modules/spawn (Makefile.am): Likewise.
37385         * modules/sys_file (Makefile.am): Likewise.
37386         * modules/sys_ioctl (Makefile.am): Likewise.
37387         * modules/sys_select (Makefile.am): Likewise.
37388         * modules/sys_socket (Makefile.am): Likewise.
37389         * modules/sys_times (Makefile.am): Likewise.
37390         * modules/sys_utsname (Makefile.am): Likewise.
37391         * modules/sys_wait (Makefile.am): Likewise.
37392         * modules/wchar (Makefile.am): Likewise.
37393         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37394         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37395         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37396         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37397         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37398         Likewise.
37399         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37401         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37402         Likewise.
37403         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37404         Likewise.
37405         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37406         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37407         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37411         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37412         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37413         (gl_WCHAR_H_DEFAULTS): Likewise.
37414
37415 2009-12-31  Eric Blake  <ebb9@byu.net>
37416
37417         signal, spawn: use link warnings
37418         * lib/signal.in.h (sigset_t): Make unconditional.
37419         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37420         (sigpending, sigprocmask, sigaction): Add link warnings.
37421         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37422         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37423         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37424         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37425         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37426         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37427         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37428         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37429         (posix_spawn_file_actions_destroy)
37430         (posix_spawn_file_actions_addopen)
37431         (posix_spawn_file_actions_addclose)
37432         (posix_spawn_file_actions_adddup2): Likewise.
37433         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37434         * tests/test-signal.c (main): Enhance test.
37435
37436         spawn: improve wrapper support
37437         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37438         (gl_SPAWN_H_DEFAULTS): New defaults.
37439         * modules/spawn (Makefile.am): Substitute them.
37440         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37441         Only declare if missing or broken.
37442
37443         sys_times, sys_utsname: use include_next
37444         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37445         header.
37446         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37447         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37448         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37449         * modules/sys_times (Depends-on): Add include_next.
37450         (Makefile.am): Substitute additional values.
37451         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37452         * lib/sys_times.in.h (includes): Include native header, if
37453         available.
37454         * lib/sys_utsname.in.h (includes): Likewise.
37455         * tests/test-sys_times.c (main): Enhance test.
37456
37457         fdutimensat: revert prior patch
37458         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37459         utimens.h.
37460         Reported by Bruno Haible.
37461
37462 2009-12-30  Eric Blake  <ebb9@byu.net>
37463
37464         sys_wait: drop link-warning dependency
37465         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37466         link-warning efforts.
37467         * lib/sys_wait.in.h: Likewise.
37468
37469         fdutimensat: remove bogus dependency
37470         * modules/fdutimensat (Depends-on): Drop inline.
37471
37472         unistd: fix typo
37473         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37474
37475 2009-12-30  Bruno Haible  <bruno@clisp.org>
37476
37477         Fix compilation error with Solaris cc.
37478         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37479         * lib/unicase/u16-is-invariant.c: Likewise.
37480         * lib/unicase/u32-is-invariant.c: Likewise.
37481         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37482
37483 2009-12-30  Bruno Haible  <bruno@clisp.org>
37484
37485         Fix test crash.
37486         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37487         locales.
37488         Reported by Simon Josefsson <simon@josefsson.org>.
37489
37490 2009-12-30  Bruno Haible  <bruno@clisp.org>
37491
37492         Fix compilation error on most platforms.
37493         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37494         Reported by Simon Josefsson <simon@josefsson.org>
37495         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37496
37497 2009-12-30  Eric Blake  <ebb9@byu.net>
37498
37499         futimens, utimensat: work around ntfs-3g bug
37500         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37501         a ctime bug is present, and expand workaround to cover ntfs-3g.
37502         * lib/utimens.c (fdutimens, lutimens): Likewise.
37503         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37504         (validate_timespec): Adjust return value.
37505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37506         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37507         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37508
37509 2009-12-29  Eric Blake  <ebb9@byu.net>
37510
37511         link-warning: make usage consistent
37512         * modules/ctype (Depends-on): Add link-warning.
37513         (Makefile.am): Update rules accordingly.
37514         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37515         * modules/locale (Depends-on, Makefile.am): Likewise.
37516         * modules/sys_file (Makefile.am): Likewise.
37517         * modules/getopt-posix (Makefile.am): Delete unused link warning
37518         efforts.
37519         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37520         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37521         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37522         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37523
37524         stdio: remove unused variables
37525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37527         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37528
37529         tests: test more substitute headers
37530         * modules/ctype-tests: New file.
37531         * modules/dirent-tests: Likewise.
37532         * modules/spawn-tests: Likewise.
37533         * modules/sys_file-tests: Likewise.
37534         * modules/sys_ioctl-tests: Likewise.
37535         * modules/sys_wait-tests: Likewise.
37536         * tests/test-ctype.c: Likewise.
37537         * tests/test-dirent.c: Likewise.
37538         * tests/test-spawn.c: Likewise.
37539         * tests/test-sys_file.c: Likewise.
37540         * tests/test-sys_ioctl.c: Likewise.
37541         * tests/test-sys_wait.c: Likewise.
37542         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37543         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37544         whether or not flock is in use.
37545
37546         tests: remove License section from module
37547         * modules/arpa_inet-tests: Remove unneeded section.
37548         * modules/byteswap-tests: Likewise.
37549         * modules/ceilf-tests: Likewise.
37550         * modules/ceill-tests: Likewise.
37551         * modules/crypto/des-tests: Likewise.
37552         * modules/crypto/gc-arcfour-tests: Likewise.
37553         * modules/crypto/gc-arctwo-tests: Likewise.
37554         * modules/crypto/gc-des-tests: Likewise.
37555         * modules/crypto/gc-hmac-md5-tests: Likewise.
37556         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37557         * modules/crypto/gc-md2-tests: Likewise.
37558         * modules/crypto/gc-md4-tests: Likewise.
37559         * modules/crypto/gc-md5-tests: Likewise.
37560         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37561         * modules/crypto/gc-rijndael-tests: Likewise.
37562         * modules/crypto/gc-sha1-tests: Likewise.
37563         * modules/crypto/gc-tests: Likewise.
37564         * modules/crypto/md2-tests: Likewise.
37565         * modules/crypto/md4-tests: Likewise.
37566         * modules/fcntl-h-tests: Likewise.
37567         * modules/floorf-tests: Likewise.
37568         * modules/floorl-tests: Likewise.
37569         * modules/frexp-nolibm-tests: Likewise.
37570         * modules/frexp-tests: Likewise.
37571         * modules/frexpl-nolibm-tests: Likewise.
37572         * modules/frexpl-tests: Likewise.
37573         * modules/getaddrinfo-tests: Likewise.
37574         * modules/inttypes-tests: Likewise.
37575         * modules/isfinite-tests: Likewise.
37576         * modules/isinf-tests: Likewise.
37577         * modules/ldexpl-tests: Likewise.
37578         * modules/locale-tests: Likewise.
37579         * modules/math-tests: Likewise.
37580         * modules/netdb-tests: Likewise.
37581         * modules/netinet_in-tests: Likewise.
37582         * modules/printf-frexp-tests: Likewise.
37583         * modules/printf-frexpl-tests: Likewise.
37584         * modules/priv-set-tests: Likewise.
37585         * modules/random_r-tests: Likewise.
37586         * modules/round-tests: Likewise.
37587         * modules/roundf-tests: Likewise.
37588         * modules/roundl-tests: Likewise.
37589         * modules/search-tests: Likewise.
37590         * modules/select-tests: Likewise.
37591         * modules/signal-tests: Likewise.
37592         * modules/stdbool-tests: Likewise.
37593         * modules/stddef-tests: Likewise.
37594         * modules/stdint-tests: Likewise.
37595         * modules/stdio-tests: Likewise.
37596         * modules/stdlib-tests: Likewise.
37597         * modules/string-tests: Likewise.
37598         * modules/strings-tests: Likewise.
37599         * modules/sys_select-tests: Likewise.
37600         * modules/sys_socket-tests: Likewise.
37601         * modules/sys_stat-tests: Likewise.
37602         * modules/sys_time-tests: Likewise.
37603         * modules/sys_utsname-tests: Likewise.
37604         * modules/sysexits-tests: Likewise.
37605         * modules/time-tests: Likewise.
37606         * modules/trunc-tests: Likewise.
37607         * modules/truncf-tests: Likewise.
37608         * modules/truncl-tests: Likewise.
37609         * modules/tsearch-tests: Likewise.
37610         * modules/unistd-tests: Likewise.
37611         * modules/wchar-tests: Likewise.
37612         * modules/wctype-tests: Likewise.
37613
37614         tests: fix license on several tests
37615         * tests/test-des.c: Update to GPLv3+.
37616         * tests/test-flock.c: Likewise.
37617         * tests/test-fsync.c: Likewise.
37618         * tests/test-futimens.h: Likewise.
37619         * tests/test-gc-arcfour.c: Likewise.
37620         * tests/test-gc-arctwo.c: Likewise.
37621         * tests/test-gc-des.c: Likewise.
37622         * tests/test-gc-hmac-md5.c: Likewise.
37623         * tests/test-gc-hmac-sha1.c: Likewise.
37624         * tests/test-gc-md2.c: Likewise.
37625         * tests/test-gc-md4.c: Likewise.
37626         * tests/test-gc-md5.c: Likewise.
37627         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37628         * tests/test-gc-rijndael.c: Likewise.
37629         * tests/test-gc-sha1.c: Likewise.
37630         * tests/test-gc.c: Likewise.
37631         * tests/test-getcwd.c: Likewise.
37632         * tests/test-link.c: Likewise.
37633         * tests/test-link.h: Likewise.
37634         * tests/test-lutimens.h: Likewise.
37635         * tests/test-md2.c: Likewise.
37636         * tests/test-md4.c: Likewise.
37637         * tests/test-mkdir.h: Likewise.
37638         * tests/test-rename.c: Likewise.
37639         * tests/test-rename.h: Likewise.
37640         * tests/test-safe-alloc.c: Likewise.
37641         * tests/test-utimens-common.h: Likewise.
37642         * tests/test-utimens.h: Likewise.
37643
37644         maint: sync license texts
37645         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37646         * doc/gpl-3.0.texi: Revert copyright year update.
37647         * doc/lgpl-3.0.texi: Likewise.
37648
37649 2009-12-29  Jim Meyering  <meyering@redhat.com>
37650
37651         update nearly all FSF copyright year lists to include 2009
37652         The files named by the following are exempted:
37653             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37654               test -f "$dst" && { echo "$dst"; continue; }
37655               test -d "$dst" || continue
37656               echo "$dst"/$(basename "$src")
37657             done > exempt
37658             git ls-files tests/unictype >> exempt
37659         In the remaining files, convert to all-interval notation if
37660         - there is already at least one year interval like 2000-2003
37661         - the file is maintained by me
37662         - the file is in lib/uni*/, where that style already prevails
37663         Otherwise, use update-copyright's default.
37664
37665 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37666         and Eric Blake  <ebb9@byu.net>
37667
37668         tests: don't require debug system() to pass
37669         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37670         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37671         * tests/test-unlink.h (test_unlink_func): Likewise.
37672         * tests/test-fstatat.c (main): ...into callers.
37673         * tests/test-lstat.c (main): Likewise.
37674         * tests/test-rmdir.c (main): Likewise.
37675         * tests/test-unlink.c (main): Likewise.
37676         * tests/test-unlinkat.c (main): Likewise.
37677         * tests/test-areadlink-with-size.c (main): Don't require a
37678         debug-only system call to pass, aiding cross-testing to mingw.
37679         * tests/test-areadlink.c (main): Likewise.
37680         * tests/test-areadlinkat-with-size.c (main): Likewise.
37681         * tests/test-areadlinkat.c (main): Likewise.
37682         * tests/test-canonicalize-lgpl.c (main): Likewise.
37683         * tests/test-canonicalize.c (main): Likewise.
37684         * tests/test-chown.c (main): Likewise.
37685         * tests/test-fchownat.c (main): Likewise.
37686         * tests/test-lchown.c (main): Likewise.
37687         * tests/test-fdutimensat.c (main): Likewise.
37688         * tests/test-futimens.c (main): Likewise.
37689         * tests/test-link.c (main): Likewise.
37690         * tests/test-linkat.c (main): Likewise.
37691         * tests/test-mkdir.c (main): Likewise.
37692         * tests/test-mkdirat.c (main): Likewise.
37693         * tests/test-mkfifo.c (main): Likewise.
37694         * tests/test-mkfifoat.c (main): Likewise.
37695         * tests/test-mknod.c (main): Likewise.
37696         * tests/test-readlink.c (main): Likewise.
37697         * tests/test-remove.c (main): Likewise.
37698         * tests/test-rename.c (main): Likewise.
37699         * tests/test-renameat.c (main): Likewise.
37700         * tests/test-symlink.c (main): Likewise.
37701         * tests/test-symlinkat.c (main): Likewise.
37702         * tests/test-utimens.c (main): Likewise.
37703         * tests/test-utimensat.c (main): Likewise.
37704
37705 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37706
37707         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37708         on $(UNUSED_PARAMETER_H) to avoid build failure.
37709
37710 2009-12-28  Jim Meyering  <meyering@redhat.com>
37711
37712         update-copyright: you may specify a max. line length other than 72
37713         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37714
37715         maint: use consistent FSF copyright line syntax
37716         * lib/posixtm.c: Add missing comma in FSF copyright line.
37717         * lib/posixtm.h: Likewise.
37718         * lib/getugroups.c: Add missing ", Inc.".
37719
37720         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37721         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37722         FSF copyright line.  Remove trailing blanks.
37723
37724 2009-12-28  Eric Blake  <ebb9@byu.net>
37725
37726         test-dup2: reduce dependencies
37727         * modules/cloexec (Configure.ac): Set witness.
37728         * modules/dup2-tests (Depends-on): Drop cloexec.
37729         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37730         not present.
37731         Suggested by Bruno Haible.
37732
37733 2009-12-26  Bruno Haible  <bruno@clisp.org>
37734
37735         Remove an unneeded dependency.
37736         * modules/fseterr (Depends-on): Remove dup2.
37737
37738 2009-12-26  Eric Blake  <ebb9@byu.net>
37739
37740         tests: use macros.h in more places
37741         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37742         (ASSERT_STREAM): Provide default of stderr.
37743         * tests/test-dirent-safer.c: Include macros.h, using alternate
37744         stream for assertions.
37745         * tests/test-dup-safer.c: Likewise.
37746         * tests/test-freopen-safer.c: Likewise.
37747         * tests/test-getopt.c: Likewise.
37748         * tests/test-openat-safer.c: Likewise.
37749         * tests/test-pipe.c: Likewise.
37750         * tests/test-popen-safer.c: Likewise.
37751         * modules/dirent-safer-tests (Files): Include macros.h.
37752         * modules/unistd-safer-tests (Files): Likewise.
37753         * modules/freopen-safer-tests (Files): Likewise.
37754         * modules/getopt-posix-tests (Files): Likewise.
37755         * modules/openat-safer-tests (Files): Likewise.
37756         * modules/pipe-tests (Files): Likewise.
37757
37758 2009-12-26  Bruno Haible  <bruno@clisp.org>
37759
37760         javacomp: Portability fix.
37761         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37762         that it also works on Solaris.
37763
37764 2009-12-26  Bruno Haible  <bruno@clisp.org>
37765
37766         localename: Fix storage allocation of gl_locale_name_thread's result.
37767         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37768         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37769         all platforms that have 'uselocale'.
37770         (gl_locale_name_thread_unsafe): New function, extracted from
37771         gl_locale_name_thread.
37772         (gl_locale_name_thread): Call struniq on all platforms that have
37773         'uselocale'.
37774         * tests/test-localename.c (test_locale_name_thread): Check that the
37775         resulting strings are permanently allocated.
37776         * modules/localename-tests (Depends-on): Add strdup.
37777
37778 2009-12-26  Bruno Haible  <bruno@clisp.org>
37779
37780         * tests/test-localename.c (categories): Fill in the strings.
37781
37782 2009-12-26  Jim Meyering  <meyering@redhat.com>
37783
37784         isdir: complete the removal of m4/isdir.m4
37785         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37786
37787         isdir: clean up, since at least grep still uses it
37788         * lib/isdir.c: Include "isdir.h".
37789         (S_ISDIR): Remove now-unneeded definition.
37790         * modules/isdir (Files): Add lib/isdir.h.
37791         * lib/isdir.h: New file, with declaration.
37792         * m4/isdir.m4: Remove file -- unneeded.
37793
37794 2009-12-25  Bruno Haible  <bruno@clisp.org>
37795
37796         selinux-h: Make generated .h files standalone.
37797         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37798         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37799         * lib/se-selinux.in.h: Likewise.
37800         * modules/selinux-h (Depends-on): Add unused-parameter.
37801         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37802         selinux/selinux.h and selinux/context.h.
37803         Suggested by Eric Blake.
37804
37805 2009-12-25  Bruno Haible  <bruno@clisp.org>
37806
37807         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37808         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37809         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37810         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37811         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37812
37813 2009-12-24  Bruno Haible  <bruno@clisp.org>
37814
37815         openat: Fix warning.
37816         * lib/openat-proc.c: Include <unistd.h>.
37817
37818 2009-12-24  Bruno Haible  <bruno@clisp.org>
37819
37820         New module 'unused-parameter'.
37821         * build-aux/unused-parameter.h: New file, extracted from earlier
37822         gnulib-common.m4.
37823         * modules/unused-parameter: New file.
37824         * lib/unistr.h: Include unused-parameter.h.
37825         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37826         _GL_UNUSED.
37827         * modules/unistr/base (Depends-on): Add unused-parameter.
37828
37829 2009-12-24  Bruno Haible  <bruno@clisp.org>
37830
37831         Add missing dependencies to 'extensions' module.
37832         * m4/extensions.m4: Add comment.
37833         * modules/accept4 (Depends-on): Add extensions.
37834         * modules/dup3 (Depends-on): Likewise.
37835         * modules/fcntl (Depends-on): Likewise.
37836         * modules/futimens (Depends-on): Likewise.
37837         * modules/mknod (Depends-on): Likewise.
37838         * modules/pipe2 (Depends-on): Likewise.
37839         * modules/stat-time (Depends-on): Likewise.
37840         * modules/strcasestr-simple (Depends-on): Likewise.
37841         * modules/strsignal (Depends-on): Likewise.
37842         * modules/utimensat (Depends-on): Likewise.
37843         * modules/localcharset (Depends-on): Likewise. Needed because of
37844         gl_FCNTL_O_FLAGS.
37845         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37846         AC_TYPE_MBSTATE_T.
37847         * modules/wcsnrtombs (Depends-on): Likewise.
37848         * modules/wcsrtombs (Depends-on): Likewise.
37849
37850 2009-12-24  Bruno Haible  <bruno@clisp.org>
37851
37852         binary-io: Avoid gcc warning due to SET_BINARY.
37853         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37854         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37855
37856 2009-12-24  Bruno Haible  <bruno@clisp.org>
37857
37858         Avoid future namespace pollution on glibc systems.
37859         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37860         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37861         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37862         glibc systems.
37863
37864 2009-12-24  Bruno Haible  <bruno@clisp.org>
37865
37866         Refactor common macros used in tests.
37867         * tests/macros.h: New file.
37868         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37869         and/or <stdlib.h>, if appropriate.
37870         (ASSERT, SIZEOF): Remove macros.
37871         * tests/test-areadlink-with-size.c: Likewise.
37872         * tests/test-areadlinkat.c: Likewise.
37873         * tests/test-areadlinkat-with-size.c: Likewise.
37874         * tests/test-argmatch.c: Likewise.
37875         * tests/test-argv-iter.c: Likewise.
37876         * tests/test-array-mergesort.c: Likewise.
37877         * tests/test-array_list.c: Likewise.
37878         * tests/test-array_oset.c: Likewise.
37879         * tests/test-avltree_list.c: Likewise.
37880         * tests/test-avltree_oset.c: Likewise.
37881         * tests/test-avltreehash_list.c: Likewise.
37882         * tests/test-base64.c: Likewise.
37883         * tests/test-binary-io.c: Likewise.
37884         * tests/test-bitrotate.c: Likewise.
37885         * tests/test-btowc.c: Likewise.
37886         * tests/test-byteswap.c: Likewise.
37887         * tests/test-c-ctype.c: Likewise.
37888         * tests/test-c-stack.c: Likewise.
37889         * tests/test-c-strcasecmp.c: Likewise.
37890         * tests/test-c-strcasestr.c: Likewise.
37891         * tests/test-c-strncasecmp.c: Likewise.
37892         * tests/test-c-strstr.c: Likewise.
37893         * tests/test-canonicalize-lgpl.c: Likewise.
37894         * tests/test-canonicalize.c: Likewise.
37895         * tests/test-carray_list.c: Likewise.
37896         * tests/test-ceilf1.c: Likewise.
37897         * tests/test-ceilf2.c: Likewise.
37898         * tests/test-ceill.c: Likewise.
37899         * tests/test-chown.c: Likewise.
37900         * tests/test-cloexec.c: Likewise.
37901         * tests/test-copy-acl.c: Likewise.
37902         * tests/test-copy-file.c: Likewise.
37903         * tests/test-count-one-bits.c: Likewise.
37904         * tests/test-dprintf-posix.c: Likewise.
37905         * tests/test-dup2.c: Likewise.
37906         * tests/test-dup3.c: Likewise.
37907         * tests/test-duplocale.c: Likewise.
37908         * tests/test-fbufmode.c: Likewise.
37909         * tests/test-fchdir.c: Likewise.
37910         * tests/test-fchownat.c: Likewise.
37911         * tests/test-fcntl-safer.c: Likewise.
37912         * tests/test-fcntl.c: Likewise.
37913         * tests/test-fdopendir.c: Likewise.
37914         * tests/test-fdutimensat.c: Likewise.
37915         * tests/test-fflush2.c: Likewise.
37916         * tests/test-file-has-acl.c: Likewise.
37917         * tests/test-filevercmp.c: Likewise.
37918         * tests/test-flock.c: Likewise.
37919         * tests/test-floorf1.c: Likewise.
37920         * tests/test-floorf2.c: Likewise.
37921         * tests/test-floorl.c: Likewise.
37922         * tests/test-fnmatch.c: Likewise.
37923         * tests/test-fopen.h: Likewise.
37924         * tests/test-fpending.c: Likewise.
37925         * tests/test-fprintf-posix.c: Likewise.
37926         * tests/test-fpurge.c: Likewise.
37927         * tests/test-freadable.c: Likewise.
37928         * tests/test-freadahead.c: Likewise.
37929         * tests/test-freading.c: Likewise.
37930         * tests/test-freadptr.c: Likewise.
37931         * tests/test-freadptr2.c: Likewise.
37932         * tests/test-freadseek.c: Likewise.
37933         * tests/test-freopen.c: Likewise.
37934         * tests/test-frexp.c: Likewise.
37935         * tests/test-frexpl.c: Likewise.
37936         * tests/test-fseek.c: Likewise.
37937         * tests/test-fseeko.c: Likewise.
37938         * tests/test-fstatat.c: Likewise.
37939         * tests/test-fstrcmp.c: Likewise.
37940         * tests/test-fsync.c: Likewise.
37941         * tests/test-ftell.c: Likewise.
37942         * tests/test-ftello.c: Likewise.
37943         * tests/test-func.c: Likewise.
37944         * tests/test-futimens.c: Likewise.
37945         * tests/test-fwritable.c: Likewise.
37946         * tests/test-fwriting.c: Likewise.
37947         * tests/test-getcwd.c: Likewise.
37948         * tests/test-getdate.c: Likewise.
37949         * tests/test-getdelim.c: Likewise.
37950         * tests/test-getdtablesize.c: Likewise.
37951         * tests/test-getgroups.c: Likewise.
37952         * tests/test-getline.c: Likewise.
37953         * tests/test-getndelim2.c: Likewise.
37954         * tests/test-glob.c: Likewise.
37955         * tests/test-hash.c: Likewise.
37956         * tests/test-i-ring.c: Likewise.
37957         * tests/test-iconv-utf.c: Likewise.
37958         * tests/test-iconv.c: Likewise.
37959         * tests/test-idpriv-drop.c: Likewise.
37960         * tests/test-idpriv-droptemp.c: Likewise.
37961         * tests/test-inet_ntop.c: Likewise.
37962         * tests/test-inet_pton.c: Likewise.
37963         * tests/test-isblank.c: Likewise.
37964         * tests/test-isfinite.c: Likewise.
37965         * tests/test-isinf.c: Likewise.
37966         * tests/test-isnan.c: Likewise.
37967         * tests/test-isnand.h: Likewise.
37968         * tests/test-isnanf.h: Likewise.
37969         * tests/test-isnanl.h: Likewise.
37970         * tests/test-lchown.c: Likewise.
37971         * tests/test-ldexpl.c: Likewise.
37972         * tests/test-link.c: Likewise.
37973         * tests/test-linkat.c: Likewise.
37974         * tests/test-linked_list.c: Likewise.
37975         * tests/test-linkedhash_list.c: Likewise.
37976         * tests/test-localename.c: Likewise.
37977         * tests/test-lseek.c: Likewise.
37978         * tests/test-lstat.c: Likewise.
37979         * tests/test-mbmemcasecmp.c: Likewise.
37980         * tests/test-mbmemcasecoll.c: Likewise.
37981         * tests/test-mbrtowc.c: Likewise.
37982         * tests/test-mbscasecmp.c: Likewise.
37983         * tests/test-mbscasestr1.c: Likewise.
37984         * tests/test-mbscasestr2.c: Likewise.
37985         * tests/test-mbscasestr3.c: Likewise.
37986         * tests/test-mbscasestr4.c: Likewise.
37987         * tests/test-mbschr.c: Likewise.
37988         * tests/test-mbscspn.c: Likewise.
37989         * tests/test-mbsinit.c: Likewise.
37990         * tests/test-mbsncasecmp.c: Likewise.
37991         * tests/test-mbsnrtowcs.c: Likewise.
37992         * tests/test-mbspbrk.c: Likewise.
37993         * tests/test-mbspcasecmp.c: Likewise.
37994         * tests/test-mbsrchr.c: Likewise.
37995         * tests/test-mbsrtowcs.c: Likewise.
37996         * tests/test-mbsspn.c: Likewise.
37997         * tests/test-mbsstr1.c: Likewise.
37998         * tests/test-mbsstr2.c: Likewise.
37999         * tests/test-mbsstr3.c: Likewise.
38000         * tests/test-memchr.c: Likewise.
38001         * tests/test-memchr2.c: Likewise.
38002         * tests/test-memcmp.c: Likewise.
38003         * tests/test-memmem.c: Likewise.
38004         * tests/test-memrchr.c: Likewise.
38005         * tests/test-mkdir.c: Likewise.
38006         * tests/test-mkdirat.c: Likewise.
38007         * tests/test-mkfifo.c: Likewise.
38008         * tests/test-mkfifoat.c: Likewise.
38009         * tests/test-mknod.c: Likewise.
38010         * tests/test-nanosleep.c: Likewise.
38011         * tests/test-nl_langinfo.c: Likewise.
38012         * tests/test-obstack-printf.c: Likewise.
38013         * tests/test-open.c: Likewise.
38014         * tests/test-openat.c: Likewise.
38015         * tests/test-pipe-filter-gi1.c: Likewise.
38016         * tests/test-pipe-filter-gi2-main.c: Likewise.
38017         * tests/test-pipe-filter-ii1.c: Likewise.
38018         * tests/test-pipe-filter-ii2-main.c: Likewise.
38019         * tests/test-pipe2.c: Likewise.
38020         * tests/test-popen.h: Likewise.
38021         * tests/test-posixtm.c: Likewise.
38022         * tests/test-pread.c: Likewise.
38023         * tests/test-printf-frexp.c: Likewise.
38024         * tests/test-printf-frexpl.c: Likewise.
38025         * tests/test-printf-posix.c: Likewise.
38026         * tests/test-priv-set.c: Likewise.
38027         * tests/test-quotearg.c: Likewise.
38028         * tests/test-random_r.c: Likewise.
38029         * tests/test-rawmemchr.c: Likewise.
38030         * tests/test-rbtree_list.c: Likewise.
38031         * tests/test-rbtree_oset.c: Likewise.
38032         * tests/test-rbtreehash_list.c: Likewise.
38033         * tests/test-readlink.c: Likewise.
38034         * tests/test-remove.c: Likewise.
38035         * tests/test-rename.c: Likewise.
38036         * tests/test-renameat.c: Likewise.
38037         * tests/test-rmdir.c: Likewise.
38038         * tests/test-round1.c: Likewise.
38039         * tests/test-roundf1.c: Likewise.
38040         * tests/test-roundl.c: Likewise.
38041         * tests/test-safe-alloc.c: Likewise.
38042         * tests/test-sameacls.c: Likewise.
38043         * tests/test-set-mode-acl.c: Likewise.
38044         * tests/test-setenv.c: Likewise.
38045         * tests/test-sigaction.c: Likewise.
38046         * tests/test-signbit.c: Likewise.
38047         * tests/test-sleep.c: Likewise.
38048         * tests/test-snprintf-posix.c: Likewise.
38049         * tests/test-snprintf.c: Likewise.
38050         * tests/test-sprintf-posix.c: Likewise.
38051         * tests/test-stat-time.c: Likewise.
38052         * tests/test-stat.c: Likewise.
38053         * tests/test-strcasestr.c: Likewise.
38054         * tests/test-strchrnul.c: Likewise.
38055         * tests/test-strerror.c: Likewise.
38056         * tests/test-striconv.c: Likewise.
38057         * tests/test-striconveh.c: Likewise.
38058         * tests/test-striconveha.c: Likewise.
38059         * tests/test-strsignal.c: Likewise.
38060         * tests/test-strstr.c: Likewise.
38061         * tests/test-strtod.c: Likewise.
38062         * tests/test-strverscmp.c: Likewise.
38063         * tests/test-symlink.c: Likewise.
38064         * tests/test-symlinkat.c: Likewise.
38065         * tests/test-trunc1.c: Likewise.
38066         * tests/test-trunc2.c: Likewise.
38067         * tests/test-truncf1.c: Likewise.
38068         * tests/test-truncf2.c: Likewise.
38069         * tests/test-truncl.c: Likewise.
38070         * tests/test-uname.c: Likewise.
38071         * tests/test-unlink.c: Likewise.
38072         * tests/test-unlinkat.c: Likewise.
38073         * tests/test-unsetenv.c: Likewise.
38074         * tests/test-usleep.c: Likewise.
38075         * tests/test-utimens.c: Likewise.
38076         * tests/test-utimensat.c: Likewise.
38077         * tests/test-vasnprintf-posix.c: Likewise.
38078         * tests/test-vasnprintf-posix2.c: Likewise.
38079         * tests/test-vasnprintf.c: Likewise.
38080         * tests/test-vasprintf-posix.c: Likewise.
38081         * tests/test-vasprintf.c: Likewise.
38082         * tests/test-vdprintf-posix.c: Likewise.
38083         * tests/test-vfprintf-posix.c: Likewise.
38084         * tests/test-vprintf-posix.c: Likewise.
38085         * tests/test-vsnprintf-posix.c: Likewise.
38086         * tests/test-vsnprintf.c: Likewise.
38087         * tests/test-vsprintf-posix.c: Likewise.
38088         * tests/test-wcrtomb.c: Likewise.
38089         * tests/test-wcsnrtombs.c: Likewise.
38090         * tests/test-wcsrtombs.c: Likewise.
38091         * tests/test-wctype.c: Likewise.
38092         * tests/test-wcwidth.c: Likewise.
38093         * tests/test-xfprintf-posix.c: Likewise.
38094         * tests/test-xmemdup0.c: Likewise.
38095         * tests/test-xprintf-posix.c: Likewise.
38096         * tests/test-xvasprintf.c: Likewise.
38097         * tests/unicase/test-locale-language.c: Likewise.
38098         * tests/unicase/test-mapping-part1.h: Likewise.
38099         * tests/unicase/test-predicate-part1.h: Likewise.
38100         * tests/unicase/test-u8-casecmp.c: Likewise.
38101         * tests/unicase/test-u8-casecoll.c: Likewise.
38102         * tests/unicase/test-u8-casefold.c: Likewise.
38103         * tests/unicase/test-u8-is-cased.c: Likewise.
38104         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38105         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38106         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38107         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38108         * tests/unicase/test-u8-tolower.c: Likewise.
38109         * tests/unicase/test-u8-totitle.c: Likewise.
38110         * tests/unicase/test-u8-toupper.c: Likewise.
38111         * tests/unicase/test-u16-casecmp.c: Likewise.
38112         * tests/unicase/test-u16-casecoll.c: Likewise.
38113         * tests/unicase/test-u16-casefold.c: Likewise.
38114         * tests/unicase/test-u16-is-cased.c: Likewise.
38115         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38116         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38117         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38118         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38119         * tests/unicase/test-u16-tolower.c: Likewise.
38120         * tests/unicase/test-u16-totitle.c: Likewise.
38121         * tests/unicase/test-u16-toupper.c: Likewise.
38122         * tests/unicase/test-u32-casecmp.c: Likewise.
38123         * tests/unicase/test-u32-casecoll.c: Likewise.
38124         * tests/unicase/test-u32-casefold.c: Likewise.
38125         * tests/unicase/test-u32-is-cased.c: Likewise.
38126         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38127         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38128         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38129         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38130         * tests/unicase/test-u32-tolower.c: Likewise.
38131         * tests/unicase/test-u32-totitle.c: Likewise.
38132         * tests/unicase/test-u32-toupper.c: Likewise.
38133         * tests/unicase/test-ulc-casecmp.c: Likewise.
38134         * tests/unicase/test-ulc-casecoll.c: Likewise.
38135         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38136         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38137         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38138         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38139         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38140         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38141         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38142         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38143         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38144         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38145         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38146         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38147         * tests/unictype/test-bidi_byname.c: Likewise.
38148         * tests/unictype/test-bidi_name.c: Likewise.
38149         * tests/unictype/test-bidi_of.c: Likewise.
38150         * tests/unictype/test-bidi_test.c: Likewise.
38151         * tests/unictype/test-block_list.c: Likewise.
38152         * tests/unictype/test-block_of.c: Likewise.
38153         * tests/unictype/test-block_test.c: Likewise.
38154         * tests/unictype/test-categ_and.c: Likewise.
38155         * tests/unictype/test-categ_and_not.c: Likewise.
38156         * tests/unictype/test-categ_byname.c: Likewise.
38157         * tests/unictype/test-categ_name.c: Likewise.
38158         * tests/unictype/test-categ_none.c: Likewise.
38159         * tests/unictype/test-categ_of.c: Likewise.
38160         * tests/unictype/test-categ_or.c: Likewise.
38161         * tests/unictype/test-categ_test_withtable.c: Likewise.
38162         * tests/unictype/test-combining.c: Likewise.
38163         * tests/unictype/test-decdigit.c: Likewise.
38164         * tests/unictype/test-digit.c: Likewise.
38165         * tests/unictype/test-mirror.c: Likewise.
38166         * tests/unictype/test-numeric.c: Likewise.
38167         * tests/unictype/test-pr_byname.c: Likewise.
38168         * tests/unictype/test-pr_test.c: Likewise.
38169         * tests/unictype/test-predicate-part1.h: Likewise.
38170         * tests/unictype/test-scripts.c: Likewise.
38171         * tests/unictype/test-sy_c_ident.c: Likewise.
38172         * tests/unictype/test-sy_java_ident.c: Likewise.
38173         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38174         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38175         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38176         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38177         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38178         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38179         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38180         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38181         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38182         * tests/uninorm/test-compat-decomposition.c: Likewise.
38183         * tests/uninorm/test-composition.c: Likewise.
38184         * tests/uninorm/test-decomposing-form.c: Likewise.
38185         * tests/uninorm/test-decomposition.c: Likewise.
38186         * tests/uninorm/test-u8-nfc.c: Likewise.
38187         * tests/uninorm/test-u8-nfd.c: Likewise.
38188         * tests/uninorm/test-u8-nfkc.c: Likewise.
38189         * tests/uninorm/test-u8-nfkd.c: Likewise.
38190         * tests/uninorm/test-u8-normcmp.c: Likewise.
38191         * tests/uninorm/test-u8-normcoll.c: Likewise.
38192         * tests/uninorm/test-u16-nfc.c: Likewise.
38193         * tests/uninorm/test-u16-nfd.c: Likewise.
38194         * tests/uninorm/test-u16-nfkc.c: Likewise.
38195         * tests/uninorm/test-u16-nfkd.c: Likewise.
38196         * tests/uninorm/test-u16-normcmp.c: Likewise.
38197         * tests/uninorm/test-u16-normcoll.c: Likewise.
38198         * tests/uninorm/test-u32-nfc.c: Likewise.
38199         * tests/uninorm/test-u32-nfd.c: Likewise.
38200         * tests/uninorm/test-u32-nfkc.c: Likewise.
38201         * tests/uninorm/test-u32-nfkd.c: Likewise.
38202         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38203         * tests/uninorm/test-u32-normcmp.c: Likewise.
38204         * tests/uninorm/test-u32-normcoll.c: Likewise.
38205         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38206         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38207         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38208         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38209         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38210         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38211         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38212         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38213         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38214         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38215         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38216         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38217         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38218         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38219         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38220         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38221         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38222         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38223         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38224         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38225         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38226         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38227         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38228         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38229         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38230         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38231         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38232         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38233         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38234         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38235         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38236         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38237         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38238         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38239         * tests/uniwidth/test-u8-width.c: Likewise.
38240         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38241         * tests/uniwidth/test-u16-width.c: Likewise.
38242         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38243         * tests/uniwidth/test-u32-width.c: Likewise.
38244         * tests/uniwidth/test-uc_width.c: Likewise.
38245         * tests/uniwidth/test-uc_width2.c: Likewise.
38246         * modules/acl-tests (Files): Add tests/macros.h.
38247         * modules/areadlink-tests (Files): Likewise.
38248         * modules/areadlink-with-size-tests (Files): Likewise.
38249         * modules/areadlinkat-tests (Files): Likewise.
38250         * modules/areadlinkat-with-size-tests (Files): Likewise.
38251         * modules/argmatch-tests (Files): Likewise.
38252         * modules/argv-iter-tests (Files): Likewise.
38253         * modules/array-list-tests (Files): Likewise.
38254         * modules/array-mergesort-tests (Files): Likewise.
38255         * modules/array-oset-tests (Files): Likewise.
38256         * modules/avltree-list-tests (Files): Likewise.
38257         * modules/avltree-oset-tests (Files): Likewise.
38258         * modules/avltreehash-list-tests (Files): Likewise.
38259         * modules/base64-tests (Files): Likewise.
38260         * modules/binary-io-tests (Files): Likewise.
38261         * modules/bitrotate-tests (Files): Likewise.
38262         * modules/btowc-tests (Files): Likewise.
38263         * modules/byteswap-tests (Files): Likewise.
38264         * modules/c-ctype-tests (Files): Likewise.
38265         * modules/c-stack-tests (Files): Likewise.
38266         * modules/c-strcase-tests (Files): Likewise.
38267         * modules/c-strcasestr-tests (Files): Likewise.
38268         * modules/c-strstr-tests (Files): Likewise.
38269         * modules/canonicalize-lgpl-tests (Files): Likewise.
38270         * modules/canonicalize-tests (Files): Likewise.
38271         * modules/carray-list-tests (Files): Likewise.
38272         * modules/ceilf-tests (Files): Likewise.
38273         * modules/ceill-tests (Files): Likewise.
38274         * modules/chown-tests (Files): Likewise.
38275         * modules/cloexec-tests (Files): Likewise.
38276         * modules/copy-file-tests (Files): Likewise.
38277         * modules/count-one-bits-tests (Files): Likewise.
38278         * modules/dprintf-posix-tests (Files): Likewise.
38279         * modules/dup2-tests (Files): Likewise.
38280         * modules/dup3-tests (Files): Likewise.
38281         * modules/duplocale-tests (Files): Likewise.
38282         * modules/fbufmode-tests (Files): Likewise.
38283         * modules/fchdir-tests (Files): Likewise.
38284         * modules/fcntl-safer-tests (Files): Likewise.
38285         * modules/fcntl-tests (Files): Likewise.
38286         * modules/fdopendir-tests (Files): Likewise.
38287         * modules/fdutimensat-tests (Files): Likewise.
38288         * modules/fflush-tests (Files): Likewise.
38289         * modules/filevercmp-tests (Files): Likewise.
38290         * modules/flock-tests (Files): Likewise.
38291         * modules/floorf-tests (Files): Likewise.
38292         * modules/floorl-tests (Files): Likewise.
38293         * modules/fnmatch-tests (Files): Likewise.
38294         * modules/fopen-safer-tests (Files): Likewise.
38295         * modules/fopen-tests (Files): Likewise.
38296         * modules/fpending-tests (Files): Likewise.
38297         * modules/fprintf-posix-tests (Files): Likewise.
38298         * modules/fpurge-tests (Files): Likewise.
38299         * modules/freadable-tests (Files): Likewise.
38300         * modules/freadahead-tests (Files): Likewise.
38301         * modules/freading-tests (Files): Likewise.
38302         * modules/freadptr-tests (Files): Likewise.
38303         * modules/freadseek-tests (Files): Likewise.
38304         * modules/freopen-tests (Files): Likewise.
38305         * modules/frexp-nolibm-tests (Files): Likewise.
38306         * modules/frexp-tests (Files): Likewise.
38307         * modules/frexpl-nolibm-tests (Files): Likewise.
38308         * modules/frexpl-tests (Files): Likewise.
38309         * modules/fseek-tests (Files): Likewise.
38310         * modules/fseeko-tests (Files): Likewise.
38311         * modules/fstrcmp-tests (Files): Likewise.
38312         * modules/fsync-tests (Files): Likewise.
38313         * modules/ftell-tests (Files): Likewise.
38314         * modules/ftello-tests (Files): Likewise.
38315         * modules/func-tests (Files): Likewise.
38316         * modules/futimens-tests (Files): Likewise.
38317         * modules/fwritable-tests (Files): Likewise.
38318         * modules/fwriting-tests (Files): Likewise.
38319         * modules/getcwd-tests (Files): Likewise.
38320         * modules/getdate-tests (Files): Likewise.
38321         * modules/getdelim-tests (Files): Likewise.
38322         * modules/getdtablesize-tests (Files): Likewise.
38323         * modules/getgroups-tests (Files): Likewise.
38324         * modules/getline-tests (Files): Likewise.
38325         * modules/getndelim2-tests (Files): Likewise.
38326         * modules/glob-tests (Files): Likewise.
38327         * modules/hash-tests (Files): Likewise.
38328         * modules/i-ring-tests (Files): Likewise.
38329         * modules/iconv-tests (Files): Likewise.
38330         * modules/iconv_open-utf-tests (Files): Likewise.
38331         * modules/idpriv-drop-tests (Files): Likewise.
38332         * modules/idpriv-droptemp-tests (Files): Likewise.
38333         * modules/inet_ntop-tests (Files): Likewise.
38334         * modules/inet_pton-tests (Files): Likewise.
38335         * modules/isblank-tests (Files): Likewise.
38336         * modules/isfinite-tests (Files): Likewise.
38337         * modules/isinf-tests (Files): Likewise.
38338         * modules/isnan-tests (Files): Likewise.
38339         * modules/isnand-nolibm-tests (Files): Likewise.
38340         * modules/isnand-tests (Files): Likewise.
38341         * modules/isnanf-nolibm-tests (Files): Likewise.
38342         * modules/isnanf-tests (Files): Likewise.
38343         * modules/isnanl-nolibm-tests (Files): Likewise.
38344         * modules/isnanl-tests (Files): Likewise.
38345         * modules/lchown-tests (Files): Likewise.
38346         * modules/ldexpl-tests (Files): Likewise.
38347         * modules/link-tests (Files): Likewise.
38348         * modules/linkat-tests (Files): Likewise.
38349         * modules/linked-list-tests (Files): Likewise.
38350         * modules/linkedhash-list-tests (Files): Likewise.
38351         * modules/localename-tests (Files): Likewise.
38352         * modules/lseek-tests (Files): Likewise.
38353         * modules/lstat-tests (Files): Likewise.
38354         * modules/mbmemcasecmp-tests (Files): Likewise.
38355         * modules/mbmemcasecoll-tests (Files): Likewise.
38356         * modules/mbrtowc-tests (Files): Likewise.
38357         * modules/mbscasecmp-tests (Files): Likewise.
38358         * modules/mbscasestr-tests (Files): Likewise.
38359         * modules/mbschr-tests (Files): Likewise.
38360         * modules/mbscspn-tests (Files): Likewise.
38361         * modules/mbsinit-tests (Files): Likewise.
38362         * modules/mbsncasecmp-tests (Files): Likewise.
38363         * modules/mbsnrtowcs-tests (Files): Likewise.
38364         * modules/mbspbrk-tests (Files): Likewise.
38365         * modules/mbspcasecmp-tests (Files): Likewise.
38366         * modules/mbsrchr-tests (Files): Likewise.
38367         * modules/mbsrtowcs-tests (Files): Likewise.
38368         * modules/mbsspn-tests (Files): Likewise.
38369         * modules/mbsstr-tests (Files): Likewise.
38370         * modules/memchr-tests (Files): Likewise.
38371         * modules/memchr2-tests (Files): Likewise.
38372         * modules/memcmp-tests (Files): Likewise.
38373         * modules/memmem-tests (Files): Likewise.
38374         * modules/memrchr-tests (Files): Likewise.
38375         * modules/mkdir-tests (Files): Likewise.
38376         * modules/mkfifo-tests (Files): Likewise.
38377         * modules/mkfifoat-tests (Files): Likewise.
38378         * modules/mknod-tests (Files): Likewise.
38379         * modules/nanosleep-tests (Files): Likewise.
38380         * modules/nl_langinfo-tests (Files): Likewise.
38381         * modules/obstack-printf-tests (Files): Likewise.
38382         * modules/open-tests (Files): Likewise.
38383         * modules/openat-tests (Files): Likewise.
38384         * modules/pipe-filter-gi-tests (Files): Likewise.
38385         * modules/pipe-filter-ii-tests (Files): Likewise.
38386         * modules/pipe2-tests (Files): Likewise.
38387         * modules/popen-safer-tests (Files): Likewise.
38388         * modules/popen-tests (Files): Likewise.
38389         * modules/posixtm-tests (Files): Likewise.
38390         * modules/pread-tests (Files): Likewise.
38391         * modules/printf-frexp-tests (Files): Likewise.
38392         * modules/printf-frexpl-tests (Files): Likewise.
38393         * modules/printf-posix-tests (Files): Likewise.
38394         * modules/priv-set-tests (Files): Likewise.
38395         * modules/quotearg-tests (Files): Likewise.
38396         * modules/random_r-tests (Files): Likewise.
38397         * modules/rawmemchr-tests (Files): Likewise.
38398         * modules/rbtree-list-tests (Files): Likewise.
38399         * modules/rbtree-oset-tests (Files): Likewise.
38400         * modules/rbtreehash-list-tests (Files): Likewise.
38401         * modules/readlink-tests (Files): Likewise.
38402         * modules/remove-tests (Files): Likewise.
38403         * modules/rename-tests (Files): Likewise.
38404         * modules/renameat-tests (Files): Likewise.
38405         * modules/rmdir-tests (Files): Likewise.
38406         * modules/round-tests (Files): Likewise.
38407         * modules/roundf-tests (Files): Likewise.
38408         * modules/roundl-tests (Files): Likewise.
38409         * modules/safe-alloc-tests (Files): Likewise.
38410         * modules/setenv-tests (Files): Likewise.
38411         * modules/sigaction-tests (Files): Likewise.
38412         * modules/signbit-tests (Files): Likewise.
38413         * modules/sleep-tests (Files): Likewise.
38414         * modules/snprintf-posix-tests (Files): Likewise.
38415         * modules/snprintf-tests (Files): Likewise.
38416         * modules/sprintf-posix-tests (Files): Likewise.
38417         * modules/stat-tests (Files): Likewise.
38418         * modules/stat-time-tests (Files): Likewise.
38419         * modules/strcasestr-tests (Files): Likewise.
38420         * modules/strchrnul-tests (Files): Likewise.
38421         * modules/strerror-tests (Files): Likewise.
38422         * modules/striconv-tests (Files): Likewise.
38423         * modules/striconveh-tests (Files): Likewise.
38424         * modules/striconveha-tests (Files): Likewise.
38425         * modules/strsignal-tests (Files): Likewise.
38426         * modules/strstr-tests (Files): Likewise.
38427         * modules/strtod-tests (Files): Likewise.
38428         * modules/strverscmp-tests (Files): Likewise.
38429         * modules/symlink-tests (Files): Likewise.
38430         * modules/symlinkat-tests (Files): Likewise.
38431         * modules/trunc-tests (Files): Likewise.
38432         * modules/truncf-tests (Files): Likewise.
38433         * modules/truncl-tests (Files): Likewise.
38434         * modules/uname-tests (Files): Likewise.
38435         * modules/unicase/cased-tests (Files): Likewise.
38436         * modules/unicase/ignorable-tests (Files): Likewise.
38437         * modules/unicase/locale-language-tests (Files): Likewise.
38438         * modules/unicase/tolower-tests (Files): Likewise.
38439         * modules/unicase/totitle-tests (Files): Likewise.
38440         * modules/unicase/toupper-tests (Files): Likewise.
38441         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38442         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38443         * modules/unicase/u8-casefold-tests (Files): Likewise.
38444         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38445         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38446         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38447         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38448         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38449         * modules/unicase/u8-tolower-tests (Files): Likewise.
38450         * modules/unicase/u8-totitle-tests (Files): Likewise.
38451         * modules/unicase/u8-toupper-tests (Files): Likewise.
38452         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38453         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38454         * modules/unicase/u16-casefold-tests (Files): Likewise.
38455         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38456         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38457         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38458         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38459         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38460         * modules/unicase/u16-tolower-tests (Files): Likewise.
38461         * modules/unicase/u16-totitle-tests (Files): Likewise.
38462         * modules/unicase/u16-toupper-tests (Files): Likewise.
38463         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38464         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38465         * modules/unicase/u32-casefold-tests (Files): Likewise.
38466         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38467         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38468         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38469         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38470         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38471         * modules/unicase/u32-tolower-tests (Files): Likewise.
38472         * modules/unicase/u32-totitle-tests (Files): Likewise.
38473         * modules/unicase/u32-toupper-tests (Files): Likewise.
38474         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38475         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38476         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38477         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38478         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38479         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38480         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38481         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38482         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38483         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38484         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38485         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38486         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38487         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38488         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38489         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38490         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38491         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38492         * modules/unictype/block-list-tests (Files): Likewise.
38493         * modules/unictype/block-of-tests (Files): Likewise.
38494         * modules/unictype/block-test-tests (Files): Likewise.
38495         * modules/unictype/category-C-tests (Files): Likewise.
38496         * modules/unictype/category-Cc-tests (Files): Likewise.
38497         * modules/unictype/category-Cf-tests (Files): Likewise.
38498         * modules/unictype/category-Cn-tests (Files): Likewise.
38499         * modules/unictype/category-Co-tests (Files): Likewise.
38500         * modules/unictype/category-Cs-tests (Files): Likewise.
38501         * modules/unictype/category-L-tests (Files): Likewise.
38502         * modules/unictype/category-Ll-tests (Files): Likewise.
38503         * modules/unictype/category-Lm-tests (Files): Likewise.
38504         * modules/unictype/category-Lo-tests (Files): Likewise.
38505         * modules/unictype/category-Lt-tests (Files): Likewise.
38506         * modules/unictype/category-Lu-tests (Files): Likewise.
38507         * modules/unictype/category-M-tests (Files): Likewise.
38508         * modules/unictype/category-Mc-tests (Files): Likewise.
38509         * modules/unictype/category-Me-tests (Files): Likewise.
38510         * modules/unictype/category-Mn-tests (Files): Likewise.
38511         * modules/unictype/category-N-tests (Files): Likewise.
38512         * modules/unictype/category-Nd-tests (Files): Likewise.
38513         * modules/unictype/category-Nl-tests (Files): Likewise.
38514         * modules/unictype/category-No-tests (Files): Likewise.
38515         * modules/unictype/category-P-tests (Files): Likewise.
38516         * modules/unictype/category-Pc-tests (Files): Likewise.
38517         * modules/unictype/category-Pd-tests (Files): Likewise.
38518         * modules/unictype/category-Pe-tests (Files): Likewise.
38519         * modules/unictype/category-Pf-tests (Files): Likewise.
38520         * modules/unictype/category-Pi-tests (Files): Likewise.
38521         * modules/unictype/category-Po-tests (Files): Likewise.
38522         * modules/unictype/category-Ps-tests (Files): Likewise.
38523         * modules/unictype/category-S-tests (Files): Likewise.
38524         * modules/unictype/category-Sc-tests (Files): Likewise.
38525         * modules/unictype/category-Sk-tests (Files): Likewise.
38526         * modules/unictype/category-Sm-tests (Files): Likewise.
38527         * modules/unictype/category-So-tests (Files): Likewise.
38528         * modules/unictype/category-Z-tests (Files): Likewise.
38529         * modules/unictype/category-Zl-tests (Files): Likewise.
38530         * modules/unictype/category-Zp-tests (Files): Likewise.
38531         * modules/unictype/category-Zs-tests (Files): Likewise.
38532         * modules/unictype/category-and-not-tests (Files): Likewise.
38533         * modules/unictype/category-and-tests (Files): Likewise.
38534         * modules/unictype/category-byname-tests (Files): Likewise.
38535         * modules/unictype/category-name-tests (Files): Likewise.
38536         * modules/unictype/category-none-tests (Files): Likewise.
38537         * modules/unictype/category-of-tests (Files): Likewise.
38538         * modules/unictype/category-or-tests (Files): Likewise.
38539         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38540         * modules/unictype/combining-class-tests (Files): Likewise.
38541         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38542         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38543         * modules/unictype/ctype-blank-tests (Files): Likewise.
38544         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38545         * modules/unictype/ctype-digit-tests (Files): Likewise.
38546         * modules/unictype/ctype-graph-tests (Files): Likewise.
38547         * modules/unictype/ctype-lower-tests (Files): Likewise.
38548         * modules/unictype/ctype-print-tests (Files): Likewise.
38549         * modules/unictype/ctype-punct-tests (Files): Likewise.
38550         * modules/unictype/ctype-space-tests (Files): Likewise.
38551         * modules/unictype/ctype-upper-tests (Files): Likewise.
38552         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38553         * modules/unictype/decimal-digit-tests (Files): Likewise.
38554         * modules/unictype/digit-tests (Files): Likewise.
38555         * modules/unictype/mirror-tests (Files): Likewise.
38556         * modules/unictype/numeric-tests (Files): Likewise.
38557         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38558         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38559         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38560         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38561         Likewise.
38562         * modules/unictype/property-bidi-block-separator-tests (Files):
38563         Likewise.
38564         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38565         Likewise.
38566         * modules/unictype/property-bidi-common-separator-tests (Files):
38567         Likewise.
38568         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38569         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38570         Likewise.
38571         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38572         Likewise.
38573         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38574         Likewise.
38575         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38576         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38577         Likewise.
38578         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38579         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38580         Likewise.
38581         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38582         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38583         * modules/unictype/property-bidi-segment-separator-tests (Files):
38584         Likewise.
38585         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38586         * modules/unictype/property-byname-tests (Files): Likewise.
38587         * modules/unictype/property-combining-tests (Files): Likewise.
38588         * modules/unictype/property-composite-tests (Files): Likewise.
38589         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38590         * modules/unictype/property-dash-tests (Files): Likewise.
38591         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38592         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38593         Likewise.
38594         * modules/unictype/property-deprecated-tests (Files): Likewise.
38595         * modules/unictype/property-diacritic-tests (Files): Likewise.
38596         * modules/unictype/property-extender-tests (Files): Likewise.
38597         * modules/unictype/property-format-control-tests (Files): Likewise.
38598         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38599         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38600         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38601         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38602         * modules/unictype/property-hyphen-tests (Files): Likewise.
38603         * modules/unictype/property-id-continue-tests (Files): Likewise.
38604         * modules/unictype/property-id-start-tests (Files): Likewise.
38605         * modules/unictype/property-ideographic-tests (Files): Likewise.
38606         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38607         * modules/unictype/property-ids-trinary-operator-tests (Files):
38608         Likewise.
38609         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38610         * modules/unictype/property-iso-control-tests (Files): Likewise.
38611         * modules/unictype/property-join-control-tests (Files): Likewise.
38612         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38613         * modules/unictype/property-line-separator-tests (Files): Likewise.
38614         * modules/unictype/property-logical-order-exception-tests (Files):
38615         Likewise.
38616         * modules/unictype/property-lowercase-tests (Files): Likewise.
38617         * modules/unictype/property-math-tests (Files): Likewise.
38618         * modules/unictype/property-non-break-tests (Files): Likewise.
38619         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38620         * modules/unictype/property-numeric-tests (Files): Likewise.
38621         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38622         * modules/unictype/property-other-default-ignorable-code-point-tests
38623         (Files): Likewise.
38624         * modules/unictype/property-other-grapheme-extend-tests (Files):
38625         Likewise.
38626         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38627         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38628         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38629         * modules/unictype/property-other-math-tests (Files): Likewise.
38630         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38631         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38632         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38633         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38634         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38635         * modules/unictype/property-private-use-tests (Files): Likewise.
38636         * modules/unictype/property-punctuation-tests (Files): Likewise.
38637         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38638         * modules/unictype/property-radical-tests (Files): Likewise.
38639         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38640         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38641         * modules/unictype/property-space-tests (Files): Likewise.
38642         * modules/unictype/property-terminal-punctuation-tests (Files):
38643         Likewise.
38644         * modules/unictype/property-test-tests (Files): Likewise.
38645         * modules/unictype/property-titlecase-tests (Files): Likewise.
38646         * modules/unictype/property-unassigned-code-value-tests (Files):
38647         Likewise.
38648         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38649         * modules/unictype/property-uppercase-tests (Files): Likewise.
38650         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38651         * modules/unictype/property-white-space-tests (Files): Likewise.
38652         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38653         * modules/unictype/property-xid-start-tests (Files): Likewise.
38654         * modules/unictype/property-zero-width-tests (Files): Likewise.
38655         * modules/unictype/scripts-tests (Files): Likewise.
38656         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38657         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38658         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38659         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38660         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38661         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38662         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38663         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38664         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38665         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38666         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38667         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38668         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38669         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38670         * modules/uninorm/composition-tests (Files): Likewise.
38671         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38672         * modules/uninorm/decomposition-tests (Files): Likewise.
38673         * modules/uninorm/filter-tests (Files): Likewise.
38674         * modules/uninorm/nfc-tests (Files): Likewise.
38675         * modules/uninorm/nfd-tests (Files): Likewise.
38676         * modules/uninorm/nfkc-tests (Files): Likewise.
38677         * modules/uninorm/nfkd-tests (Files): Likewise.
38678         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38679         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38680         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38681         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38682         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38683         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38684         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38685         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38686         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38687         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38688         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38689         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38690         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38691         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38692         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38693         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38694         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38695         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38696         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38697         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38698         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38699         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38700         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38701         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38702         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38703         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38704         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38705         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38706         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38707         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38708         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38709         * modules/uniwidth/u8-width-tests (Files): Likewise.
38710         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38711         * modules/uniwidth/u16-width-tests (Files): Likewise.
38712         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38713         * modules/uniwidth/u32-width-tests (Files): Likewise.
38714         * modules/uniwidth/width-tests (Files): Likewise.
38715         * modules/unlink-tests (Files): Likewise.
38716         * modules/unsetenv-tests (Files): Likewise.
38717         * modules/usleep-tests (Files): Likewise.
38718         * modules/utimens-tests (Files): Likewise.
38719         * modules/utimensat-tests (Files): Likewise.
38720         * modules/vasnprintf-posix-tests (Files): Likewise.
38721         * modules/vasnprintf-tests (Files): Likewise.
38722         * modules/vasprintf-posix-tests (Files): Likewise.
38723         * modules/vasprintf-tests (Files): Likewise.
38724         * modules/vdprintf-posix-tests (Files): Likewise.
38725         * modules/vfprintf-posix-tests (Files): Likewise.
38726         * modules/vprintf-posix-tests (Files): Likewise.
38727         * modules/vsnprintf-posix-tests (Files): Likewise.
38728         * modules/vsnprintf-tests (Files): Likewise.
38729         * modules/vsprintf-posix-tests (Files): Likewise.
38730         * modules/wcrtomb-tests (Files): Likewise.
38731         * modules/wcsnrtombs-tests (Files): Likewise.
38732         * modules/wcsrtombs-tests (Files): Likewise.
38733         * modules/wctype-tests (Files): Likewise.
38734         * modules/wcwidth-tests (Files): Likewise.
38735         * modules/xmemdup0-tests (Files): Likewise.
38736         * modules/xprintf-posix-tests (Files): Likewise.
38737         * modules/xvasprintf-tests (Files): Likewise.
38738
38739 2009-12-24  Eric Blake  <ebb9@byu.net>
38740
38741         test-nanosleep: fix typo
38742         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38743         patch.
38744         Reported by Bruno Haible.
38745
38746 2009-12-24  Bruno Haible  <bruno@clisp.org>
38747
38748         Reduce namespace pollution on glibc systems.
38749         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38750         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38751         systems.
38752         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38753         <getopt.h> on glibc systems.
38754         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38755         systems.
38756         * lib/fcntl.c: Include <unistd.h> here instead.
38757
38758 2009-12-24  Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38761
38762 2009-12-24  Eric Blake  <ebb9@byu.net>
38763
38764         tests: add signature checks
38765         * tests/signature.h (SIGNATURE_CHECK): New file.
38766         * modules/atexit-tests (Files): Use it.
38767         * modules/btowc-tests (Files): Likewise.
38768         * modules/canonicalize-lgpl-tests (Files): Likewise.
38769         * modules/ceilf-tests (Files): Likewise.
38770         * modules/ceill-tests (Files): Likewise.
38771         * modules/chown-tests (Files): Likewise.
38772         * modules/dprintf-posix-tests (Files): Likewise.
38773         * modules/dup2-tests (Files): Likewise.
38774         * modules/dup3-tests (Files): Likewise.
38775         * modules/duplocale-tests (Files): Likewise.
38776         * modules/fchdir-tests (Files): Likewise.
38777         * modules/fcntl-tests (Files): Likewise.
38778         * modules/fdopendir-tests (Files): Likewise.
38779         * modules/fflush-tests (Files): Likewise.
38780         * modules/flock-tests (Files): Likewise.
38781         * modules/floorf-tests (Files): Likewise.
38782         * modules/floorl-tests (Files): Likewise.
38783         * modules/fnmatch-tests (Files): Likewise.
38784         * modules/fopen-tests (Files): Likewise.
38785         * modules/fprintf-posix-tests (Files): Likewise.
38786         * modules/freopen-tests (Files): Likewise.
38787         * modules/frexp-nolibm-tests (Files): Likewise.
38788         * modules/frexp-tests (Files): Likewise.
38789         * modules/frexpl-nolibm-tests (Files): Likewise.
38790         * modules/frexpl-tests (Files): Likewise.
38791         * modules/fseek-tests (Files): Likewise.
38792         * modules/fseeko-tests (Files): Likewise.
38793         * modules/fsync-tests (Files): Likewise.
38794         * modules/ftell-tests (Files): Likewise.
38795         * modules/ftello-tests (Files): Likewise.
38796         * modules/futimens-tests (Files): Likewise.
38797         * modules/getaddrinfo-tests (Files): Likewise.
38798         * modules/getcwd-tests (Files): Likewise.
38799         * modules/getdelim-tests (Files): Likewise.
38800         * modules/getdtablesize-tests (Files): Likewise.
38801         * modules/getgroups-tests (Files): Likewise.
38802         * modules/gethostname-tests (Files): Likewise.
38803         * modules/getline-tests (Files): Likewise.
38804         * modules/getopt-posix-tests (Files): Likewise.
38805         * modules/gettimeofday-tests (Files): Likewise.
38806         * modules/glob-tests (Files): Likewise.
38807         * modules/iconv-tests (Files): Likewise.
38808         * modules/inet_ntop-tests (Files): Likewise.
38809         * modules/inet_pton-tests (Files): Likewise.
38810         * modules/isblank-tests (Files): Likewise.
38811         * modules/lchown-tests (Files): Likewise.
38812         * modules/ldexpl-tests (Files): Likewise.
38813         * modules/link-tests (Files): Likewise.
38814         * modules/linkat-tests (Files): Likewise.
38815         * modules/lseek-tests (Files): Likewise.
38816         * modules/lstat-tests (Files): Likewise.
38817         * modules/mbrtowc-tests (Files): Likewise.
38818         * modules/mbsinit-tests (Files): Likewise.
38819         * modules/mbsnrtowcs-tests (Files): Likewise.
38820         * modules/mbsrtowcs-tests (Files): Likewise.
38821         * modules/memchr-tests (Files): Likewise.
38822         * modules/memcmp-tests (Files): Likewise.
38823         * modules/memmem-tests (Files): Likewise.
38824         * modules/memrchr-tests (Files): Likewise.
38825         * modules/mkdir-tests (Files): Likewise.
38826         * modules/mkfifo-tests (Files): Likewise.
38827         * modules/mkfifoat-tests (Files): Likewise.
38828         * modules/mknod-tests (Files): Likewise.
38829         * modules/nanosleep-tests (Files): Likewise.
38830         * modules/nl_langinfo-tests (Files): Likewise.
38831         * modules/obstack-printf-tests (Files): Likewise.
38832         * modules/open-tests (Files): Likewise.
38833         * modules/openat-tests (Files): Likewise.
38834         * modules/perror-tests (Files): Likewise.
38835         * modules/pipe2-tests (Files): Likewise.
38836         * modules/poll-tests (Files): Likewise.
38837         * modules/popen-tests (Files): Likewise.
38838         * modules/posix_spawn-tests (Files): Likewise.
38839         * modules/posix_spawnp-tests (Files): Likewise.
38840         * modules/pread-tests (Files): Likewise.
38841         * modules/printf-posix-tests (Files): Likewise.
38842         * modules/pty-tests (Files): Likewise.
38843         * modules/random_r-tests (Files): Likewise.
38844         * modules/rawmemchr-tests (Files): Likewise.
38845         * modules/readlink-tests (Files): Likewise.
38846         * modules/remove-tests (Files): Likewise.
38847         * modules/rename-tests (Files): Likewise.
38848         * modules/renameat-tests (Files): Likewise.
38849         * modules/rmdir-tests (Files): Likewise.
38850         * modules/round-tests (Files): Likewise.
38851         * modules/roundf-tests (Files): Likewise.
38852         * modules/roundl-tests (Files): Likewise.
38853         * modules/select-tests (Files): Likewise.
38854         * modules/setenv-tests (Files): Likewise.
38855         * modules/sigaction-tests (Files): Likewise.
38856         * modules/sleep-tests (Files): Likewise.
38857         * modules/snprintf-posix-tests (Files): Likewise.
38858         * modules/snprintf-tests (Files): Likewise.
38859         * modules/sprintf-posix-tests (Files): Likewise.
38860         * modules/stat-tests (Files): Likewise.
38861         * modules/strcasestr-tests (Files): Likewise.
38862         * modules/strchrnul-tests (Files): Likewise.
38863         * modules/strerror-tests (Files): Likewise.
38864         * modules/strsignal-tests (Files): Likewise.
38865         * modules/strstr-tests (Files): Likewise.
38866         * modules/strtod-tests (Files): Likewise.
38867         * modules/strverscmp-tests (Files): Likewise.
38868         * modules/symlink-tests (Files): Likewise.
38869         * modules/symlinkat-tests (Files): Likewise.
38870         * modules/times-tests (Files): Likewise.
38871         * modules/trunc-tests (Files): Likewise.
38872         * modules/truncf-tests (Files): Likewise.
38873         * modules/truncl-tests (Files): Likewise.
38874         * modules/tsearch-tests (Files): Likewise.
38875         * modules/uname-tests (Files): Likewise.
38876         * modules/unlink-tests (Files): Likewise.
38877         * modules/unsetenv-tests (Files): Likewise.
38878         * modules/usleep-tests (Files): Likewise.
38879         * modules/utimensat-tests (Files): Likewise.
38880         * modules/vasprintf-tests (Files): Likewise.
38881         * modules/vdprintf-posix-tests (Files): Likewise.
38882         * modules/vfprintf-posix-tests (Files): Likewise.
38883         * modules/vprintf-posix-tests (Files): Likewise.
38884         * modules/vsnprintf-posix-tests (Files): Likewise.
38885         * modules/vsnprintf-tests (Files): Likewise.
38886         * modules/vsprintf-posix-tests (Files): Likewise.
38887         * modules/wcrtomb-tests (Files): Likewise.
38888         * modules/wcsnrtombs-tests (Files): Likewise.
38889         * modules/wcsrtombs-tests (Files): Likewise.
38890         * modules/wcwidth-tests (Files): Likewise.
38891         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38892         * tests/test-isinf.c (isinf): Likewise.
38893         * tests/test-isnan.c (isnan): Likewise.
38894         * tests/test-signbit.c (signbit): Likewise.
38895         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38896         declaration, either as macro or with correct signature.
38897         (select): Ensure function under test is declared with correct
38898         signature in correct header.
38899         * tests/test-atexit.c (atexit): Likewise.
38900         * tests/test-btowc.c (btowc): Likewise.
38901         * tests/test-canonicalize-lgpl.c (realpath)
38902         (canonicalize_file_name): Likewise.
38903         * tests/test-ceilf1.c (ceilf): Likewise.
38904         * tests/test-ceill.c (ceill): Likewise.
38905         * tests/test-chown.c (chown): Likewise.
38906         * tests/test-dprintf-posix.c (dprintf): Likewise.
38907         * tests/test-dup2.c (dup2): Likewise.
38908         * tests/test-dup3.c (dup3): Likewise.
38909         * tests/test-duplocale.c (duplocale): Likewise.
38910         * tests/test-fchdir.c (fchdir): Likewise.
38911         * tests/test-fchownat.c (fchownat): Likewise.
38912         * tests/test-fcntl.c (fcntl): Likewise.
38913         * tests/test-fdopendir.c (fdopendir): Likewise.
38914         * tests/test-fflush.c (fflush): Likewise.
38915         * tests/test-flock.c (flock): Likewise.
38916         * tests/test-floorf1.c (floorf): Likewise.
38917         * tests/test-floorl.c (floorl): Likewise.
38918         * tests/test-fnmatch.c (fnmatch): Likewise.
38919         * tests/test-fopen.c (fopen): Likewise.
38920         * tests/test-fprintf-posix.c (fprintf): Likewise.
38921         * tests/test-freopen.c (freopen): Likewise.
38922         * tests/test-frexp.c (frexp): Likewise.
38923         * tests/test-frexpl.c (frexpl): Likewise.
38924         * tests/test-fseek.c (fseek): Likewise.
38925         * tests/test-fseeko.c (fseeko): Likewise.
38926         * tests/test-fstatat.c (fstatat): Likewise.
38927         * tests/test-fsync.c (fsync): Likewise.
38928         * tests/test-ftell.c (ftell): Likewise.
38929         * tests/test-ftello.c (ftello): Likewise.
38930         * tests/test-futimens.c (futimens): Likewise.
38931         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38932         (gai_strerror): Likewise.
38933         * tests/test-getcwd.c (getcwd): Likewise.
38934         * tests/test-getdelim.c (getdelim): Likewise.
38935         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38936         * tests/test-getgroups.c (getgroups): Likewise.
38937         * tests/test-gethostname.c (gethostname): Likewise.
38938         * tests/test-getline.c (getline): Likewise.
38939         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38940         Likewise.
38941         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38942         * tests/test-glob.c (glob, globfree): Likewise.
38943         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38944         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38945         * tests/test-inet_pton.c (inet_pton): Likewise.
38946         * tests/test-isblank.c (isblank): Likewise.
38947         * tests/test-lchown.c (lchown): Likewise.
38948         * tests/test-ldexpl.c (ldexpl): Likewise.
38949         * tests/test-link.c (link): Likewise.
38950         * tests/test-linkat.c (linkat): Likewise.
38951         * tests/test-lseek.c (lseek): Likewise.
38952         * tests/test-lstat.c (lstat): Likewise.
38953         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38954         * tests/test-mbsinit.c (mbsinit): Likewise.
38955         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38956         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38957         * tests/test-memchr.c (memchr): Likewise.
38958         * tests/test-memcmp.c (memcmp): Likewise.
38959         * tests/test-memmem.c (memmem): Likewise.
38960         * tests/test-memrchr.c (memrchr): Likewise.
38961         * tests/test-mkdir.c (mkdir): Likewise.
38962         * tests/test-mkdirat.c (mkdirat): Likewise.
38963         * tests/test-mkfifo.c (mkfifo): Likewise.
38964         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38965         * tests/test-mknod.c (mknod): Likewise.
38966         * tests/test-nanosleep.c (nanosleep): Likewise.
38967         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38968         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38969         Likewise.
38970         * tests/test-open.c (open): Likewise.
38971         * tests/test-openat.c (openat): Likewise.
38972         * tests/test-perror.c (perror): Likewise.
38973         * tests/test-pipe2.c (pipe2): Likewise.
38974         * tests/test-poll.c (poll): Likewise.
38975         * tests/test-popen.c (popen, pclose): Likewise.
38976         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38977         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38978         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38979         (posix_spawn_file_actions_destroy)
38980         (posix_spawn_file_actions_addclose)
38981         (posix_spawn_file_actions_addopen)
38982         (posix_spawn_file_actions_adddup2): Likewise.
38983         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38984         * tests/test-pread.c (pread): Likewise.
38985         * tests/test-printf-posix.c (printf): Likewise.
38986         * tests/test-pty.c (openpty, forkpty): Likewise.
38987         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38988         (random_r): Likewise.
38989         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38990         * tests/test-readlink.c (readlink): Likewise.
38991         * tests/test-remove.c (remove): Likewise.
38992         * tests/test-rename.c (rename): Likewise.
38993         * tests/test-renameat.c (renameat): Likewise.
38994         * tests/test-rmdir.c (rmdir): Likewise.
38995         * tests/test-round1.c (round): Likewise.
38996         * tests/test-roundf1.c (roundf): Likewise.
38997         * tests/test-roundl.c (roundl): Likewise.
38998         * tests/test-setenv.c (setenv): Likewise.
38999         * tests/test-sigaction.c (sigaction): Likewise.
39000         * tests/test-sleep.c (sleep): Likewise.
39001         * tests/test-snprintf.c (snprintf): Likewise.
39002         * tests/test-sprintf-posix.c (sprintf): Likewise.
39003         * tests/test-stat.c (stat): Likewise.
39004         * tests/test-stpncpy.c (stpncpy): Likewise.
39005         * tests/test-strcasestr.c (strcasestr): Likewise.
39006         * tests/test-strchrnul.c (strchrnul): Likewise.
39007         * tests/test-strerror.c (strerror): Likewise.
39008         * tests/test-strsignal.c (strsignal): Likewise.
39009         * tests/test-strstr.c (strstr): Likewise.
39010         * tests/test-strtod.c (strtod): Likewise.
39011         * tests/test-strverscmp.c (strverscmp): Likewise.
39012         * tests/test-symlink.c (symlink): Likewise.
39013         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39014         * tests/test-times.c (times): Likewise.
39015         * tests/test-trunc1.c (trunc): Likewise.
39016         * tests/test-truncf1.c (truncf): Likewise.
39017         * tests/test-truncl.c (truncl): Likewise.
39018         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39019         Likewise.
39020         * tests/test-uname.c (uname): Likewise.
39021         * tests/test-unlink.c (unlink): Likewise.
39022         * tests/test-unlinkat.c (unlinkat): Likewise.
39023         * tests/test-unsetenv.c (unsetenv): Likewise.
39024         * tests/test-usleep.c (usleep): Likewise.
39025         * tests/test-utimensat.c (utimensat): Likewise.
39026         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39027         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39028         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39029         * tests/test-vprintf-posix.c (vprintf): Likewise.
39030         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39031         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39032         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39033         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39034         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39035         * tests/test-wcwidth.c (wcwidth): Likewise.
39036
39037         build: pull in conditional headers during GNULIB_POSIXCHECK
39038         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39039         definitions from any conditionally-included headers.
39040         * lib/stdlib.in.h (includes): Likewise.
39041         * lib/unistd.in.h (includes): Likewise.
39042
39043 2009-12-24  Bruno Haible  <bruno@clisp.org>
39044
39045         * tests/test-argv-iter.c: Include header file being tested immediately
39046         after config.h.
39047         * tests/test-base64.c: Likewise.
39048         * tests/test-flock.c: Likewise.
39049         * tests/test-fsync.c: Likewise.
39050         * tests/test-getdate.c: Likewise.
39051         * tests/test-getndelim2.c: Likewise.
39052         * tests/test-isfinite.c: Likewise.
39053         * tests/test-isinf.c: Likewise.
39054         * tests/test-strerror.c: Likewise.
39055         * tests/test-strsignal.c: Likewise.
39056
39057 2009-12-23  Eric Blake  <ebb9@byu.net>
39058
39059         unistd: work around cygwin bug
39060         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39061         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39062         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39063
39064 2009-12-23  Bruno Haible  <bruno@clisp.org>
39065
39066         localename: More tests.
39067         * tests/test-localename.c (SIZEOF): New macro.
39068         (categories): New variable.
39069         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39070         test_locale_name_default): Add test w.r.t. thread locale.
39071         (test_locale_name_thread): New function.
39072         (main): Invoke it.
39073
39074         localename: Make aware of thread locale.
39075         * lib/localename.h (gl_locale_name_thread): New declaration.
39076         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39077         behaviour with respect to thread locale.
39078         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39079         <langinfo.h>, glthread/lock.h.
39080         (SIZE_BITS): New macro.
39081         (string_hash): New function.
39082         (struct hash_node): New type.
39083         (HASH_TABLE_SIZE): New macro.
39084         (struniq_hash_table, struniq_lock): New variables.
39085         (struniq): New function.
39086         (gl_locale_name_thread): New function.
39087         (gl_locale_name): Invoke it.
39088         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39089         * modules/localename (Depends-on): Add lock.
39090         Reported by Mike Gran <spk121@yahoo.com>.
39091
39092 2009-12-23  Eric Blake  <ebb9@byu.net>
39093
39094         va-args: new module
39095         * modules/va-args: New file.
39096         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39097         * MODULES.html.sh (Core language properties): Mention it.
39098
39099         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39100         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39101         named alias for __attribute__((__unused__)).
39102         * lib/chown.c: Update client.
39103         * lib/fchmodat.c: Likewise.
39104         * lib/fts.c: Likewise.
39105         * lib/getdate.y: Likewise.
39106         * lib/getgroups.c: Likewise.
39107         * lib/getopt.c: Likewise.
39108         * lib/getugroups.c: Likewise.
39109         * lib/mkdir.c: Likewise.
39110         * lib/mkfifo.c: Likewise.
39111         * lib/mkfifoat.c: Likewise.
39112         * lib/mknod.c: Likewise.
39113         * lib/mknodat.c: Likewise.
39114         * lib/readlink.c: Likewise.
39115         * lib/se-context.in.h: Likewise.
39116         * lib/se-selinux.in.h: Likewise.
39117         * lib/sockets.c: Likewise.
39118         * lib/symlink.c: Likewise.
39119         * lib/symlinkat.c: Likewise.
39120         * lib/unicodeio.c: Likewise.
39121         * lib/unistr.h: Likewise.
39122         * tests/test-areadlink.c: Likewise.
39123         * tests/test-areadlinkat.c: Likewise.
39124         * tests/test-filenamecat.c: Likewise.
39125         * tests/test-fseeko.c: Likewise.
39126         * tests/test-ftello.c: Likewise.
39127         * tests/test-getdate.c: Likewise.
39128         * tests/test-getgroups.c: Likewise.
39129         * tests/test-gethostname.c: Likewise.
39130         * tests/test-quotearg.c: Likewise.
39131         * tests/test-version-etc.c: Likewise.
39132         * tests/test-xalloc-die.c: Likewise.
39133         * tests/test-xfprintf-posix.c: Likewise.
39134         * tests/test-xprintf-posix.c: Likewise.
39135         * tests/test-xvasprintf.c: Likewise.
39136
39137         tests: avoid compiler warnings
39138         * tests/test-fcntl.c (main): Delete unused parameters.
39139         * tests/test-freopen-safer.c (main): Likewise.
39140         * tests/test-xalloc-die.c (main): Mark unused parameters.
39141         * tests/test-fseeko.c (main): Likewise.
39142         * tests/test-ftello.c (main): Likewise.
39143         * tests/test-nanosleep.c (main): Avoid declaration warning.
39144         * tests/test-sleep.c (main): Likewise.
39145         * tests/test-unsetenv.c (main): Silence warning about string
39146         literal.
39147         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39148
39149 2009-12-23  Bruno Haible  <bruno@clisp.org>
39150
39151         * tests/test-localename.c (test_locale_name): New function, extracted
39152         from main. Also test mixed situations.
39153         (test_locale_name_posix, test_locale_name_environ,
39154         test_locale_name_default): New functions.
39155         (main): Invoke them all.
39156         * modules/localename-tests (configure.ac): Test for newlocale.
39157
39158 2009-12-23  Bruno Haible  <bruno@clisp.org>
39159
39160         unistd: Ensure getcwd gets declared before being overridden.
39161         * lib/unistd.in.h: Conditionally include <io.h>.
39162
39163 2009-12-22  Bruno Haible  <bruno@clisp.org>
39164
39165         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39166         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39167         (gl_WCHAR_H): Invoke it.
39168         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39169         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39170         Reported by Karl Berry <karl@freefriends.org>.
39171
39172 2009-12-22  Eric Blake  <ebb9@byu.net>
39173
39174         math, unistd: avoid redundant includes
39175         * lib/math.in.h (isnan): No need to re-include <math.h>.
39176         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39177
39178         getsubopt: work around cygwin bug
39179         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39180         avoid conflicting with system getsubopt.
39181         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39182         bug.
39183
39184         getopt: synchronize from glibc
39185         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39186         parameter order.  Adjust all callers.
39187         (_getopt_internal_r, main): Adjust quoting in error messages.
39188         Drop considerations for outdated POSIX 1003.2 error message.
39189         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39190         callers.
39191         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39192
39193         test-getopt: test stderr behavior
39194         * modules/getopt-posix-tests (Depends-on): Add dup2.
39195         * tests/test-getopt.c (ASSERT): Avoid stderr.
39196         (main): Move stderr to a temporary file.
39197         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39198         Instead, add parameter to inform caller if output occurred.
39199         (test_getopt): Adjust all existing tests to expect silence, and
39200         add new tests of leading ":".
39201         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39202         glibc shortcomings with leading "-:" or "+:" in optstring.
39203         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39204         Likewise.
39205         * doc/posix-functions/getopt.texi (getopt): Likewise.
39206
39207         test-getopt: enhance test
39208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39209         supports optind=0.
39210         * tests/test-getopt.c (OPTIND_MIN): Move...
39211         * tests/test-getopt.h (OPTIND_MIN): ...here.
39212         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39213         Require that optind=0 works, since modern BSD supports it in
39214         addition to optreset, and since coreutils expects it.
39215         (test_getopt_long_only): New test.
39216         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39217         glibc shortcomings with 'W;', and enforcement of optind=0.
39218         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39219         Likewise.
39220
39221 2009-12-21  Bruno Haible  <bruno@clisp.org>
39222
39223         localename: Improvements for MacOS X and Cygwin.
39224         * lib/localename.h (gl_locale_name_environ): New declaration.
39225         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39226         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39227         (gl_locale_name_posix): Invoke it.
39228         (gl_locale_name_default): Add comments. Use Windows native API also on
39229         Cygwin.
39230
39231 2009-12-21  Bruno Haible  <bruno@clisp.org>
39232
39233         Update list of Win32 locale ids.
39234         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39235         (LANG_SAMI): Renamed from LANG_SAAMI.
39236         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39237         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39238         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39239         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39240         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39241         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39242         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39243         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39244         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39245         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39246         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39247         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39248         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39249         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39250         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39251         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39252         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39253         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39254         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39255         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39256         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39257         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39258         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39259         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39260         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39261         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39262         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39263         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39264         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39265         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39266         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39267         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39268         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39269         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39270         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39271         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39272         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39273         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39274         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39275         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39276         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39277         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39278         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39279         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39280         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39281         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39282         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39283         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39284         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39285         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39286         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39287         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39288         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39289         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39290         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39291         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39292         Add more languages and countries for Sami, Sorbian. Add more countries
39293         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39294         for Pashto. Change country for Syriac, Tswana.
39295
39296 2009-12-21  Eric Blake  <ebb9@byu.net>
39297
39298         test-utimens: avoid spurious failure
39299         * tests/test-chown.h (nap): Factor...
39300         * tests/nap.h: ...into new file.
39301         * tests/test-lchown.h (nap): Avoid duplication.
39302         * tests/test-utimens-common.h (nap): Use shared implementation,
39303         necessary on file systems with 1-second resolution.
39304         * modules/chown-tests (Files): Include new file.
39305         * modules/fdutimensat-tests (Files): Likewise.
39306         * modules/futimens-tests (Files): Likewise.
39307         * modules/lchown-tests (Files): Likewise.
39308         * modules/openat-tests (Files): Likewise.
39309         * modules/utimens-tests (Files): Likewise.
39310         * modules/utimensat-tests (Files): Likewise.
39311
39312 2009-12-19  Eric Blake  <ebb9@byu.net>
39313
39314         futimens, utimensat: work around Linux bug
39315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39316         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39317         * lib/utimensat.c (rpl_utimensat): Work around it.
39318         * lib/futimens.c (rpl_futimens): Adjust comment.
39319
39320         utimens: work around Linux ctime bug
39321         * lib/utimens.c (detect_ctime_bug): New helper function.
39322         (update_timespec): Differentiate between workaround needed for
39323         this bug vs. what is needed for systems that lack utimensat.
39324         (fdutimens, lutimens): Work around bug.
39325
39326         utimens: check for ctime update
39327         * tests/test-utimens-common.h (check_ctime): Define.
39328         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39329         * tests/test-futimens.h (test_futimens): Likewise.
39330         * tests/test-lutimens.h (test_lutimens): Likewise.
39331         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39332         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39333
39334 2009-12-19  Bruno Haible  <bruno@clisp.org>
39335
39336         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39337         * tests/test-dprintf-posix2.sh: New file.
39338         * tests/test-dprintf-posix2.c: New file.
39339         * modules/dprintf-posix-tests (Files): Add them.
39340         (configure.ac): Check for getrlimit and setrlimit.
39341         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39342
39343 2009-12-19  Bruno Haible  <bruno@clisp.org>
39344
39345         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39346         * tests/test-fprintf-posix3.sh: New file.
39347         * tests/test-fprintf-posix3.c: New file.
39348         * modules/fprintf-posix-tests (Files): Add them.
39349         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39350
39351 2009-12-19  Eric Blake  <ebb9@byu.net>
39352
39353         dirfd: fix prototype
39354         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39355         * lib/dirfd.c (dirfd): Likewise.
39356
39357         canonicalize: reduce memory usage
39358         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39359         allocation to size.
39360         Reported by Solar Designer <solar@openwall.com>.
39361
39362 2009-12-19  Bruno Haible  <bruno@clisp.org>
39363
39364         New module attribute 'Applicability'.
39365         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39366         * gnulib-tool: New option --extract-applicability.
39367         (func_usage): Document it.
39368         (sed_extract_prog): Recognize it.
39369         (func_get_applicability): New function.
39370         (func_import): Generalize handling of 'link-warning' module.
39371         * modules/link-warning (Applicability): New section.
39372         * modules/arg-nonnull (Applicability): New section.
39373         Repoted by Simon Josefsson <simon@josefsson.org>.
39374
39375 2009-12-19  Bruno Haible  <bruno@clisp.org>
39376
39377         fflush: tweak
39378         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39379         * lib/fseeko.c (rpl_fseeko): Likewise.
39380
39381 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39382
39383         * lib/gl_list.h: Fix typo in comment.
39384
39385 2009-12-16  Eric Blake  <ebb9@byu.net>
39386
39387         fcntl: use to simplify other modules
39388         * modules/cloexec (Depends-on): Add fcntl.
39389         * modules/fchdir (Depends-on): Likewise.
39390         * modules/fd-safer-flag (Depends-on): Likewise.
39391         * modules/unistd-safer (Depends-on): Likewise.
39392         * modules/dup3 (configure.ac): Set module indicator.
39393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39394         missing.
39395         * lib/fchdir.c (_gl_register_dup): Fix comment.
39396         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39397         * lib/dup-safer.c (dup_safer): Likewise.
39398         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39399         * lib/dup3.c (dup3): Likewise.
39400         * tests/test-fchdir.c (main): Enhance test.
39401         Fixes a dup_cloexec bug reported by Ondřej Vašík.
39402
39403         fcntl: port portions of fcntl to mingw
39404         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39405         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39406         replacement for mingw.
39407         * modules/fcntl (Description): Update.
39408         (Depends-on): Add dup2.
39409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39410         * modules/fcntl-h (Makefile.am): Substitute it.
39411         * lib/fcntl.in.h (fcntl): Update declaration.
39412         (F_DUPFD, F_GETFD): New macros, when needed.
39413         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39414         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39415         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39416         we now guarantee.
39417
39418         fcntl: work around cygwin bug in F_DUPFD
39419         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39420         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39421         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39422         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39423         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39424
39425         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39426         * modules/fcntl (Files): List new files.
39427         (configure.ac): Run a test.
39428         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39429         * lib/fcntl.c (rpl_fcntl): Likewise.
39430         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39431         (gl_FCNTL_H): Always replace fcntl.h.
39432         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39433         * lib/fcntl.in.h (fcntl): Declare replacement.
39434         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39435         needed, plus a witness.
39436         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39437         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39438         * tests/test-fcntl.c: New file.
39439         * modules/fcntl-tests: Likewise.
39440
39441         binary-io: avoid potential compilation warning
39442         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39443         directives.
39444
39445         fflush: avoid compilation error on NetBSD
39446         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39447         between off_t and fpos_t, since the latter is sometimes a struct.
39448         * lib/fseeko.c (rpl_fseeko): Likewise.
39449         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39450
39451 2009-12-15  Eric Blake  <ebb9@byu.net>
39452
39453         fcntl-h, stdio, sys_ioctl: fix declarations
39454         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39455         function must not take arguments.
39456         * lib/sys_ioctl.in.h (ioctl): Likewise.
39457         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39458         (open): Add a link warning.
39459
39460 2009-12-15  Jim Meyering  <meyering@redhat.com>
39461
39462         areadlink, areadlink-with-size: relax license to LGPLv2+
39463         * modules/areadlink (License): Relax to LGPLv2+.
39464         * modules/areadlink-with-size (License): Likewise.
39465
39466 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39467             Bruno Haible  <bruno@clisp.org>
39468
39469         *printf: Fix memory leak.
39470         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39471         * lib/vfprintf.c (vfprintf): Likewise.
39472         * lib/dprintf.c (dprintf): Likewise.
39473         * lib/vdprintf.c (vdprintf): Likewise.
39474
39475 2009-12-14  Eric Blake  <ebb9@byu.net>
39476
39477         accept4: adjust module dependencies
39478         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39479
39480         utimens: one more try at avoiding compiler warning
39481         * lib/utimens.c (lutimens): Lower scope of result.
39482
39483 2009-12-13  Bruno Haible  <bruno@clisp.org>
39484
39485         Move the malloc checking from module 'list' to new module 'xlist'.
39486         * modules/xlist: New file.
39487         * lib/gl_xlist.h: New file.
39488         * lib/gl_xlist.c: New file.
39489         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39490         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39491         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39492         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39493         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39494         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39495         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39496         gl_sortedlist_nx_add): New declarations.
39497         (struct gl_list_implementation): Rename and change methods accordingly.
39498         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39499         (gl_list_nx_create): Renamed from gl_list_create.
39500         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39501         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39502         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39503         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39504         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39505         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39506         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39507         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39508         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39509         gl_list_create_empty.
39510         (gl_list_nx_create): Renamed from gl_list_create.
39511         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39512         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39513         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39514         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39515         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39516         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39517         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39518         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39519         * lib/gl_array_list.c: Don't include xalloc.h.
39520         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39521         NULL upon out-of-memory.
39522         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39523         out-of-memory.
39524         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39525         Change return type to 'int'.
39526         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39527         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39528         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39529         upon out-of-memory.
39530         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39531         upon out-of-memory.
39532         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39533         upon out-of-memory.
39534         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39535         upon out-of-memory.
39536         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39537         out-of-memory.
39538         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39539         Update.
39540         (gl_array_list_implementation): Update.
39541         * lib/gl_carray_list.c: Don't include xalloc.h.
39542         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39543         Return NULL upon out-of-memory.
39544         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39545         out-of-memory.
39546         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39547         Change return type to 'int'.
39548         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39549         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39550         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39551         upon out-of-memory.
39552         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39553         upon out-of-memory.
39554         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39555         out-of-memory.
39556         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39557         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39558         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39559         Update.
39560         (gl_carray_list_implementation): Update.
39561         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39562         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39563         gl_linked_create_empty. Return NULL upon out-of-memory.
39564         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39565         out-of-memory.
39566         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39567         Change return type to 'int'. Return -1 upon out-of-memory.
39568         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39569         out-of-memory.
39570         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39571         upon out-of-memory.
39572         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39573         upon out-of-memory.
39574         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39575         NULL upon out-of-memory.
39576         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39577         upon out-of-memory.
39578         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39579         out-of-memory.
39580         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39581         Update.
39582         * lib/gl_linked_list.c: Don't include xalloc.h.
39583         (gl_linked_list_implementation): Update.
39584         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39585         (add_to_bucket): Change return type to 'int'.
39586         (gl_linkedhash_list_implementation): Update.
39587         * lib/gl_anytree_list1.h (free_subtree): New function.
39588         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39589         gl_tree_create_empty. Return NULL upon out-of-memory.
39590         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39591         Change return type to 'int'. Return -1 upon out-of-memory.
39592         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39593         out-of-memory.
39594         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39595         (gl_tree_remove_node): New function, moved here from
39596         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39597         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39598         Update.
39599         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39600         malloc, not xmalloc. Return NULL upon out-of-memory.
39601         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39602         out-of-memory.
39603         (gl_tree_remove_node_from_tree): New function, extracted from
39604         gl_tree_remove_node.
39605         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39606         upon out-of-memory.
39607         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39608         out-of-memory.
39609         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39610         upon out-of-memory.
39611         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39612         upon out-of-memory.
39613         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39614         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39615         not xmalloc. Return NULL upon out-of-memory.
39616         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39617         out-of-memory.
39618         (gl_tree_remove_node_from_tree): New function, extracted from
39619         gl_tree_remove_node.
39620         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39621         upon out-of-memory.
39622         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39623         out-of-memory.
39624         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39625         upon out-of-memory.
39626         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39627         upon out-of-memory.
39628         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39629         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39630         gl_anytree_list1.h before gl_anyavltree_list2.h.
39631         (gl_avltree_list_implementation): Update.
39632         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39633         gl_anytree_list1.h before gl_anyavltree_list2.h.
39634         (gl_rbtree_list_implementation): Update.
39635         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39636         Change return type to 'int'. Return -1 upon out-of-memory. Use
39637         __builtin_expect.
39638         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39639         (gl_avltreehash_list_implementation): Update.
39640         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39641         (gl_rbtreehash_list_implementation): Update.
39642         * modules/array-list (Depends-on): Remove xalloc.
39643         * modules/carray-list (Depends-on): Likewise.
39644         * modules/linked-list (Depends-on): Likewise.
39645         * modules/linkedhash-list (Depends-on): Likewise.
39646         * modules/avltree-list (Depends-on): Likewise.
39647         * modules/rbtree-list (Depends-on): Likewise.
39648         * modules/avltreehash-list (Depends-on): Likewise.
39649         * modules/rbtreehash-list (Depends-on): Likewise.
39650
39651         * modules/xsublist: New file.
39652         * lib/gl_xsublist.h: New file.
39653         * lib/gl_xsublist.c: New file.
39654         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39655         (gl_sublist_nx_create): New declaration.
39656         * lib/gl_sublist.c: Don't include xalloc.h.
39657         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39658         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39659         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39660         Change return type to 'int'. Return -1 upon out-of-memory.
39661         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39662         upon out-of-memory.
39663         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39664         NULL upon out-of-memory.
39665         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39666         upon out-of-memory.
39667         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39668         NULL upon out-of-memory.
39669         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39670         NULL upon out-of-memory.
39671         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39672         upon out-of-memory.
39673         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39674         (gl_sublist_list_implementation): Update.
39675         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39676         upon out-of-memory.
39677         * modules/sublist (Depends-on): Remove xalloc.
39678
39679         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39680         * tests/test-carray_list.c: Likewise.
39681         * tests/test-linked_list.c: Likewise.
39682         * tests/test-linkedhash_list.c: Likewise.
39683         * tests/test-avltree_list.c: Likewise.
39684         * tests/test-rbtree_list.c: Likewise.
39685         * tests/test-avltreehash_list.c: Likewise.
39686         * tests/test-rbtreehash_list.c: Likewise.
39687         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39688         * modules/carray-list-tests (Makefile.am): Likewise.
39689         * modules/linked-list-tests (Makefile.am): Likewise.
39690         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39691         * modules/avltree-list-tests (Makefile.am): Likewise.
39692         * modules/rbtree-list-tests (Makefile.am): Likewise.
39693         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39694         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39695
39696         * NEWS: Mention the changes.
39697
39698         * lib/clean-temp.c: Include gl_xlist.h.
39699         * modules/clean-temp (Depends-on): Add xlist.
39700
39701         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39702         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39703
39704         * tests/test-array_oset.c: Include gl_xlist.h.
39705         * modules/array-oset-tests (Depends-on): Add xlist.
39706
39707         Reported by José E. Marchesi <jemarch@gnu.org>.
39708
39709 2009-12-13  Bruno Haible  <bruno@clisp.org>
39710
39711         Move the malloc checking from module 'oset' to new module 'xoset'.
39712         * modules/xoset: New file.
39713         * lib/gl_xoset.h: New file.
39714         * lib/gl_xoset.c: New file.
39715         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39716         declarations.
39717         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39718         (struct gl_oset_implementation): Rename and change methods accordingly.
39719         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39720         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39721         'int'. Mark as __warn_unused_result__.
39722         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39723         gl_oset_create_empty.
39724         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39725         'int'.
39726         * lib/gl_array_oset.c: Don't include xalloc.h.
39727         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39728         malloc, not xmalloc.
39729         (grow): Change return type to 'int'. Don't call xalloc_die.
39730         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39731         to 'int'.
39732         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39733         'int'.
39734         (gl_array_oset_implementation): Update.
39735         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39736         gl_tree_create_empty.
39737         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39738         'int'.
39739         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39740         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39741         xmalloc.
39742         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39743         not xmalloc.
39744         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39745         xmalloc.
39746         (gl_avltree_oset_implementation): Update.
39747         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39748         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39749         xmalloc.
39750         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39751         not xmalloc.
39752         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39753         xmalloc.
39754         (gl_rbtree_oset_implementation): Update.
39755         * modules/array-oset (Depends-on): Remove xalloc.
39756         * modules/avltree-oset (Depends-on): Likewise.
39757         * modules/rbtree-oset (Depends-on): Likewise.
39758         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39759         * tests/test-avltree_oset.c: Likewise.
39760         * tests/test-rbtree_oset.c: Likewise.
39761         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39762         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39763         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39764         * NEWS: Mention the change.
39765
39766 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39767
39768         maint.mk: allow a project to override release-prep commands
39769         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39770         commands into a new rule.
39771         (release-prep): New rule.
39772         (release-prep-hook): New overridable variable.
39773
39774 2009-12-13  Bruno Haible  <bruno@clisp.org>
39775
39776         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39777
39778 2009-12-13  Jim Meyering  <meyering@redhat.com>
39779
39780         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39781         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39782
39783 2009-12-12  Bruno Haible  <bruno@clisp.org>
39784
39785         duplocale: Tweak.
39786         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39787
39788 2009-12-12  Karl Berry  <karl@gnu.org>
39789
39790         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39791
39792 2009-12-12  Bruno Haible  <bruno@clisp.org>
39793
39794         * m4/po.m4: Undo incorrect untabification.
39795
39796 2009-12-12  Bruno Haible  <bruno@clisp.org>
39797
39798         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39799         * modules/c-strtod (Depends-on): Add locale.
39800         * modules/c-strtold (Depends-on): Likewise.
39801
39802 2009-12-12  Bruno Haible  <bruno@clisp.org>
39803
39804         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39805
39806 2009-12-11  Eric Blake  <ebb9@byu.net>
39807
39808         setenv: relax requirement in light of POSIX ruling
39809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39810         not NULL.
39811         * tests/test-setenv.c (main): Relax test.
39812         * tests/test-unsetenv.c (main): Likewise.
39813         * doc/posix-functions/setenv.texi (setenv): Document this.
39814         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39815
39816 2009-12-11  Bruno Haible  <bruno@clisp.org>
39817
39818         New module 'fd-safer-flag'.
39819         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39820         * lib/dup-safer.c (dup_safer_flag): Remove function.
39821         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39822         * lib/fd-safer.c (fd_safer_flag): Remove function.
39823         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39824         * modules/cloexec (configure.ac): Drop indicator macro.
39825         * modules/fd-safer-flag: New file.
39826         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39827         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39828         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39829
39830 2009-12-11  Bruno Haible  <bruno@clisp.org>
39831
39832         Tests for module 'nl_langinfo'.
39833         * modules/nl_langinfo-tests: New file.
39834         * tests/test-nl_langinfo.sh: New file.
39835         * tests/test-nl_langinfo.c: New file.
39836
39837         New module 'nl_langinfo'.
39838         * lib/nl_langinfo.c: New file.
39839         * m4/nl_langinfo.m4: New file.
39840         * modules/nl_langinfo: New file.
39841         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39842
39843 2009-12-11  Bruno Haible  <bruno@clisp.org>
39844
39845         Tests for module 'langinfo'.
39846         * modules/langinfo-tests: New file.
39847         * tests/test-langinfo.c: New file.
39848
39849         New module 'langinfo'.
39850         * lib/langinfo.in.h: New file.
39851         * m4/langinfo_h.m4: New file.
39852         * modules/langinfo: New file.
39853         * doc/posix-headers/langinfo.texi: Mention the new module.
39854
39855 2009-12-11  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/config.charset: Untabify.
39858
39859 2009-12-11  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/unistd-safer (configure.ac): Drop indicator macro.
39862
39863 2009-12-11  Bruno Haible  <bruno@clisp.org>
39864
39865         Move pipe2-safer code to its own file.
39866         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39867         * lib/pipe-safer.c (pipe2_safer): Remove function.
39868         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39869         (Makefile.am): Add it to lib_SOURCES.
39870
39871 2009-12-10  Bruno Haible  <bruno@clisp.org>
39872
39873         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39874
39875 2009-12-10  Bruno Haible  <bruno@clisp.org>
39876
39877         Declare which arguments expect non-NULL values, for GCC and clang.
39878         * build-aux/arg-nonnull.h: New file.
39879         * modules/arg-nonnull: New file.
39880         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39881         (inet_ntop, inet_pton): Use it.
39882         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39883         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39884         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39885         (open, openat): Use it.
39886         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39887         (fnmatch): Use it.
39888         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39889         (getopt, getopt_long, getopt_long_only): Use it.
39890         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39891         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39892         Use it.
39893         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39894         (iconv_open): Use it.
39895         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39896         (strtoimax, strtoumax): Use it.
39897         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39898         (duplocale): Use it.
39899         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39900         (frexp, frexpl): Use it.
39901         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39902         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39903         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39904         (tsearch, tfind, tdelete, twalk): Use it.
39905         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39906         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39907         sigpending): Use it.
39908         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39909         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39910         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39911         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39912         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39913         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39914         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39915         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39916         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39917         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39918         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39919         Use it.
39920         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39921         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39922         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39923         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39924         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39925         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39926         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39927         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39928         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39929         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39930         strtoull, unsetenv): Use it.
39931         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39932         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39933         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39934         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39935         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39936         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39937         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39938         (strcasecmp, strncasecmp): Use it.
39939         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39940         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39941         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39942         rpl_setsockopt): Use it.
39943         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39944         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39945         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39946         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39947         (gettimeofday): Use it.
39948         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39949         (times): Use it.
39950         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39951         (uname): Use it.
39952         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39953         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39954         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39955         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39956         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39957         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39958         unlinkat, write): Use it.
39959         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39960         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39961         * lib/argv-iter.h: Include arg-nonnull.h.
39962         (_ATTRIBUTE_NONNULL_): Remove macro.
39963         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39964         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39965         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39966         optimization.
39967         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39968         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39969         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39970         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39971         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39972         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39973         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39974         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39975         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39976         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39977         * modules/dirent (Depends-on): Add arg-nonnull.
39978         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39979         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39980         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39981         * modules/fnmatch (Depends-on): Add arg-nonnull.
39982         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39983         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39984         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39985         * modules/glob (Depends-on): Add arg-nonnull.
39986         (Makefile.am): Insert arg-nonnull.h into glob.h.
39987         * modules/iconv_open (Depends-on): Add arg-nonnull.
39988         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39989         * modules/inttypes (Depends-on): Add arg-nonnull.
39990         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39991         * modules/locale (Depends-on): Add arg-nonnull.
39992         (Makefile.am): Insert arg-nonnull.h into locale.h.
39993         * modules/math (Depends-on): Add arg-nonnull.
39994         (Makefile.am): Insert arg-nonnull.h into math.h.
39995         * modules/netdb (Depends-on): Add arg-nonnull.
39996         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39997         * modules/search (Depends-on): Add arg-nonnull.
39998         (Makefile.am): Insert arg-nonnull.h into search.h.
39999         * modules/signal (Depends-on): Add arg-nonnull.
40000         (Makefile.am): Insert arg-nonnull.h into signal.h.
40001         * modules/spawn (Depends-on): Add arg-nonnull.
40002         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40003         * modules/stdio (Depends-on): Add arg-nonnull.
40004         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40005         * modules/stdlib (Depends-on): Add arg-nonnull.
40006         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40007         * modules/string (Depends-on): Add arg-nonnull.
40008         (Makefile.am): Insert arg-nonnull.h into string.h.
40009         * modules/strings (Depends-on): Add arg-nonnull.
40010         (Makefile.am): Insert arg-nonnull.h into strings.h.
40011         * modules/sys_socket (Depends-on): Add arg-nonnull.
40012         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40013         * modules/sys_stat (Depends-on): Add arg-nonnull.
40014         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40015         * modules/sys_time (Depends-on): Add arg-nonnull.
40016         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40017         * modules/sys_times (Depends-on): Add arg-nonnull.
40018         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40019         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40020         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40021         * modules/time (Depends-on): Add arg-nonnull.
40022         (Makefile.am): Insert arg-nonnull.h into time.h.
40023         * modules/unistd (Depends-on): Add arg-nonnull.
40024         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40025         * modules/wchar (Depends-on): Add arg-nonnull.
40026         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40027         * modules/argv-iter (Depends-on): Add arg-nonnull.
40028         * tests/test-canonicalize.c (null_ptr): New function.
40029         (main): Use it.
40030         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40031         (main): Use it.
40032         * tests/test-memmem.c (null_ptr): New function.
40033         (main): Use it.
40034         Reported by Jim Meyering.
40035
40036 2009-12-10  Bruno Haible  <bruno@clisp.org>
40037
40038         Use spaces for indentation, not tabs.
40039         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40040         * m4/*.m4: Untabify.
40041         * build-aux/*.h: Untabify.
40042         * tests/**/*.[hc]: Untabify.
40043         * README: New section "Indent with spaces, not TABs", based on
40044         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40045         * NEWS: Mention the change.
40046
40047 2009-12-10  Bruno Haible  <bruno@clisp.org>
40048
40049         pty test: Fix link error.
40050         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40051         test_pty_LDADD.
40052
40053 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40054
40055         * modules/pty: New file.
40056         * modules/pty-tests: New file.
40057         * m4/pty.m4: New file.
40058         * tests/test-pty.c: New file.
40059         * doc/glibc-headers/pty.texi: Modified.
40060         * doc/glibc-functions/forkpty.texi: Modified.
40061         * doc/glibc-functions/openpty.texi: Modified.
40062
40063 2009-12-10  Bruno Haible  <bruno@clisp.org>
40064
40065         Avoid syntax error in C++ mode.
40066         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40067
40068 2009-12-10  Bruno Haible  <bruno@clisp.org>
40069
40070         Use sed with option -e.
40071         * gnulib-tool (func_version, func_emit_copyright_notice,
40072         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40073         option -e to sed.
40074         * modules/link-warning (Makefile.am): Likewise.
40075
40076 2009-12-10  Jim Meyering  <meyering@redhat.com>
40077
40078         mgetgroups: do not write bytes beyond end of malloc'd buffer
40079         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40080         username, we call getgroups with a one-element-shorter buffer,
40081         but still told it the length was original, max_n_groups.
40082
40083 2009-12-09  Eric Blake  <ebb9@byu.net>
40084
40085         cloexec: relax license
40086         * modules/cloexec (Maintainer): Add myself.
40087         (License): Use LGPL, not GPL.
40088
40089         link-warning: optimize generation
40090         * modules/link-warning (Makefile.am): Reduce process usage.
40091
40092 2009-12-09  Bruno Haible  <bruno@clisp.org>
40093
40094         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40095         workaround was added on 2009-11-17.
40096
40097 2009-12-09  Jim Meyering  <meyering@redhat.com>
40098             Bruno Haible  <bruno@clisp.org>
40099
40100         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40101         * modules/link-warning (Makefile.am): Make the comment-removing sed
40102         command more robust in the face of bootstrap-prepended comment lines.
40103
40104 2009-12-09  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40107         most one group.
40108
40109 2009-12-09  Simon Josefsson <simon@josefsson.org>
40110             Bruno Haible  <bruno@clisp.org>
40111
40112         * build-aux/link-warning.h: Add copyright notice.
40113         * modules/link-warning (Makefile.am): Generate link-warning.h from
40114         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40115         * NEWS: Mention change in link-warning module.
40116         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40117         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40118         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40119         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40120         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40121         * modules/math (Makefile.am): Add dependency to math.h.
40122         * modules/search (Makefile.am): Add dependency to search.h.
40123         * modules/signal (Makefile.am): Add dependency to signal.h.
40124         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40125         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40126         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40127         * modules/string (Makefile.am): Add dependency to string.h.
40128         * modules/strings (Makefile.am): Add dependency to strings.h.
40129         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40130         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40131         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40132         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40133         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40134         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40135         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40136         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40137         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40138
40139 2009-12-09  Bruno Haible  <bruno@clisp.org>
40140
40141         fchdir: Optimize away rpl_fstat when possible.
40142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40143         REPLACE_OPEN_DIRECTORY.
40144         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40145
40146 2009-12-09  Bruno Haible  <bruno@clisp.org>
40147
40148         * lib/fchdir.c: Update comment.
40149
40150 2009-12-09  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40153
40154 2009-12-08  Eric Blake  <ebb9@byu.net>
40155
40156         fchdir: avoid memory leak on re-registration.
40157         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40158
40159 2009-12-08  Jim Meyering  <meyering@redhat.com>
40160
40161         init.sh: avoid Solaris 10 /bin/sh portability problem
40162         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40163         sourced script:
40164           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40165           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40166           bar
40167         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40168         and two tests used that idiom.
40169         * tests/init.sh: Update suggested usage comments.
40170         (path_prepend_): New function, to be used in place
40171         of the --src-path=DIR option.
40172         (setup_): Move PATH-prepending code into path_prepend_.
40173         * tests/test-pread.sh: Adapt to new usage.
40174         * tests/test-xalloc-die.sh: Likewise.
40175
40176 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40177
40178         * doc/gnulib.texi (Glibc pty.h): Add.
40179         * doc/glibc-functions/forkpty.texi: Add.
40180         * doc/glibc-functions/openpty.texi: Add.
40181         Suggested by Bruno Haible.
40182
40183 2009-12-08  Eric Blake  <ebb9@byu.net>
40184
40185         fchdir: fix logic bugs
40186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40187         * tests/test-fchdir.c (main): Enhance test.
40188         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40189         is in use.
40190
40191         dup2: fix logic bugs
40192         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40193         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40194         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40195         exists.
40196         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40197
40198 2009-12-07  Eric Blake  <ebb9@byu.net>
40199
40200         unlink: fix m4 detection
40201         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40202
40203         unistd-safer: add unit test
40204         * modules/unistd-safer-tests: New file.
40205         * tests/test-dup-safer.c: Likewise.
40206         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40207         * tests/test-dup2.c (setmode): Likewise.
40208         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40209
40210         cloexec: preserve text vs. binary across dup_cloexec
40211         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40212         mode.
40213         * modules/dup2-tests (Depends-on): Add binary-io.
40214         * modules/cloexec-tests (Depends-on): Likewise.
40215         * tests/test-dup2.c (setmode, is_mode): New helpers.
40216         (main): Add tests that translation mode is preserved.
40217         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40218         Reported by Bruno Haible.
40219
40220         mgetgroups: reduce duplicate listings
40221         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40222         resulting array.
40223         * tests/test-chown.h (test_chown): Simplify client.
40224         * tests/test-lchown.h (test_lchown): Likewise.
40225
40226 2009-12-06  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40229         value.
40230
40231 2009-12-06  Bruno Haible  <bruno@clisp.org>
40232
40233         * lib/progname.c: Include stdio.h, stdlib.h.
40234         (set_program_name): Reject a NULL argument.
40235
40236 2009-12-05  Eric Blake  <ebb9@byu.net>
40237
40238         pipe2-safer: new module
40239         * modules/pipe2-safer: New file.
40240         * lib/unistd-safer.h (pipe2_safer): New prototype.
40241         * lib/unistd--.h (pipe2): New wrapper.
40242         * lib/pipe-safer.c (pipe2_safer): New function.
40243         * modules/pipe (Depends-on): Add pipe2-safer.
40244         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40245
40246         stdlib-safer: preserve cloexec flag for mkostemp[s]
40247         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40248         fd_safer_flag.
40249
40250         unistd-safer: allow preservation of cloexec status via flag
40251         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40252         prototypes.
40253         * lib/dup-safer.c (dup_safer_flag): New function.
40254         * lib/fd-safer.c (fd_safer_flag): Likewise.
40255         * modules/cloexec (configure.ac): Set witness.
40256
40257         test-dup2: enhance test
40258         * modules/dup2-tests (Depends-on): Add cloexec.
40259         * tests/test-dup2.c (main): Enhance test.
40260
40261         cloexec: add dup_cloexec
40262         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40263         header and comments.
40264         * lib/cloexec.c (set_cloexec_flag): Add comments.
40265         (dup_cloexec): New function, with mingw implementation borrowed
40266         from...
40267         * lib/w32spawn.h (dup_noinherit): ...here.
40268         * modules/execute (Depends-on): Add cloexec.
40269         * modules/pipe (Depends-on): Likewise.
40270         * modules/cloexec (Depends-on): Add dup2.
40271         * modules/cloexec-tests (Files): New file.
40272         * tests/test-cloexec.c: Likewise.
40273
40274         test-xalloc-die: fix test for mingw
40275         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40276         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40277         directory and .exe suffix off argv[0] output.
40278
40279         test-fseeko: fix test for mingw
40280         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40281         than undefining fseek, so test will pass on mingw.
40282
40283 2009-12-05  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/progname.h (set_program_name): Clarify specification.
40286         * lib/progname.c (set_program_name): Likewise.
40287         Reported by Jim Meyering.
40288
40289 2009-12-05  Jim Meyering  <meyering@redhat.com>
40290
40291         maint.mk: backslash-escape parens in default regexp
40292         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40293         backslash-escape the literal parentheses.
40294
40295         maint.mk: news-date-check: use grep -E
40296         * top/maint.mk (today): Define a Make variable, not a...
40297         (news-date-check): ...shell variable.
40298         (news-date-regexp): Use the Make variable.
40299         Use grep's -E option.  Change the failing diagnostic to mention
40300         the variable, $(news-date-regexp).
40301
40302 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40303
40304         maintainer-makefile: allow customization of NEWS entry format
40305         * top/maint.mk (news-date-regexp): New overridable variable.
40306         (news-date-check): Use it.
40307
40308 2009-12-04  Eric Blake  <ebb9@byu.net>
40309
40310         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40311         * lib/mgetgroups.h (xgetgroups): New prototype.
40312         * lib/mgetgroups.c (xgetgroups): New wrapper.
40313         (mgetgroups): Handle ENOSYS.
40314         * modules/mgetgroups (Depends-on): Add realloc.
40315         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40316
40317         mgetgroups: avoid argument promotion issues with -1
40318         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40319         for invalid gid_t.
40320         * tests/test-chown.h (getegid, test_chown): Likewise.
40321         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40322
40323 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40324
40325         exclude: Fix header file problems.
40326         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40327
40328 2009-12-01  Jim Meyering  <meyering@redhat.com>
40329
40330         fts: fts_open: do not let an empty string cause immediate failure
40331         This is required in support of GNU rm, for which the command
40332         "rm A '' B" must process and remove both A and B, in spite of
40333         the empty string argument.
40334         * lib/fts.c (fts_open): Do not let the presence of an empty string
40335         cause fts_open to fail immediately.  Most fts-using tools must be
40336         able to process all arguments, in order, and can be expected to
40337         diagnose such arguments themselves.
40338
40339 2009-11-30  Eric Blake  <ebb9@byu.net>
40340
40341         utimens: fix compilation error
40342         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40343         Declare variable at right scope.
40344
40345 2009-11-29  Jim Meyering  <meyering@redhat.com>
40346
40347         bootstrap: handle perl-5.11's changed --version output
40348         * build-aux/bootstrap (get_version): Handle perl separately,
40349         since perl-5.11's --version output is different.
40350
40351 2009-11-28  Jim Meyering  <meyering@redhat.com>
40352
40353         userspec: depend on the inttostr module, too
40354         * modules/userspec (Depends-on): Add inttostr.
40355
40356         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40357         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40358         number of MAXUID when it evaluates to (uid_t) -1.
40359         Likewise for group ID.  Reported by Matt McCutchen in
40360         <http://savannah.gnu.org/bugs/?28113>
40361
40362         userspec: reformat to use spaces, not TABs
40363         * lib/userspec.c: Expand TABs to spaces.
40364         Add Emacs' "indent-tabs-mode: nil" hint.
40365
40366 2009-11-27  Eric Blake  <ebb9@byu.net>
40367
40368         getopt-gnu: flush out another BSD bug
40369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40370         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40371         flush out BSD bug.
40372         * tests/test-getopt.h (test_getopt): End lists with NULL.
40373         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40374         (test_getopt_long_posix): Enhance test.
40375         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40376         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40377         getopt-gnu.
40378         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40379         Likewise.
40380
40381 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40382
40383         * modules/idpriv-droptemp-tests (Notice): Fix text.
40384
40385 2009-11-27  Jim Meyering  <meyering@redhat.com>
40386
40387         test-xalloc-die: avoid spurious failure due to libtool argv difference
40388         In a libtool-enabled project, this test would fail due to a difference
40389         in the emitted program name, e.g.,
40390         -test-xalloc-die: memory exhausted
40391         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40392         Use program to avoid that.
40393         * modules/xalloc-die-tests (Depends-on): Add progname.
40394         * tests/test-xalloc-die.c: Include progname.h".
40395         (program_name): Remove decl.
40396         (main): Call set_program_name.
40397         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40398
40399 2009-11-26  Richard Jones  <rjones@redhat.com>
40400
40401         w32sock: leave win32 error in place.
40402         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40403
40404 2009-11-26  Eric Blake  <ebb9@byu.net>
40405
40406         init.sh: suggest to use skip_ and fail_ functions in comments
40407         * tests/init.sh: Add a sentence.
40408
40409 2009-11-25  Bruno Haible  <bruno@clisp.org>
40410
40411         init.sh: add documentation in comments
40412         * tests/init.sh: Add some developer and user documentation.
40413
40414 2009-11-26  Jim Meyering  <meyering@redhat.com>
40415
40416         init.sh: accommodate even those who specify bogus srcdir manually
40417         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40418         configure-time tests to be sanitized, so that there is no need to
40419         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40420         (with no double quotes) suffices.  However, since tests may be
40421         invoked manually, and since you may explicitly set srcdir to the
40422         name of a directory containing spaces, do quote its uses here.
40423         * tests/test-pread.sh: Likewise.
40424         Suggested by Bruno Haible.
40425
40426         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40427         * tests/test-pread.sh: Write no data into the pipe, because
40428         test-pread actually reads none.  This avoids a diagnostic,
40429         "bash: echo: write error: Broken pipe", that arises in the unusual
40430         event something is ignoring SIGPIPE, and might be interpreted
40431         as some sort of failure.  Reported by Bruno Haible.
40432
40433 2009-11-25  Jim Meyering  <meyering@redhat.com>
40434
40435         test-pread: cover failure with ESPIPE and EINVAL
40436         * tests/test-pread.c (main): Test for failure, too.
40437         * tests/test-pread.sh: Invoke with stdin on a pipe.
40438         Suggested by Eric Blake.
40439
40440         pread: improvement and fix
40441         * modules/pread (Depends-on): Depend on lseek, for portability to
40442         e.g., mingw.  Suggested by Eric Blake.
40443         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40444
40445         unistd.in.h: correct declaration of pread
40446         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40447         Reported by Richard W.M. Jones.
40448
40449         test-pread.sh: distribute the test script
40450         * modules/pread-tests (Files): Include test-pread.sh.
40451
40452         test-pread.sh: clean up
40453         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40454         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40455         That is unnecessary, since it's always ".".
40456         Suggestion from Eric Blake.
40457
40458         test-pread.sh: make executable
40459         * tests/test-pread.sh: Set executable bit.
40460         Reported by Eric Blake.
40461
40462         correct typo in test-pread.sh
40463         * tests/test-pread.sh: Add #! line.
40464
40465         test pread
40466         * tests/test-pread.c: New file.
40467         * tests/test-pread.sh: Likewise.
40468         * modules/pread-tests: Likewise.
40469
40470         pread: new module
40471         * modules/pread: New file.
40472         * lib/unistd.in.h (pread): Define/declare.
40473         * lib/pread.c (pread): New file.
40474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40475         * modules/unistd (Makefile.am): Substitute witnesses.
40476         * doc/posix-functions/pread.texi (pread): Update.
40477         * MODULES.html.sh: Add pread.
40478
40479 2009-11-25  Jim Meyering  <meyering@redhat.com>
40480
40481         tests/init.sh: new file to be used via most *.sh tests
40482         * tests/init.sh: New file.
40483
40484 2009-11-25  Eric Blake  <ebb9@byu.net>
40485
40486         utimens: work around older Linux failure with symlinks
40487         * lib/utimens.c (lutimensat_works_really): New variable.
40488         (fdutimens, lutimens): Use it to manage kernels that support
40489         nanosecond times on files, but not on symlinks.
40490         Reported by Ondřej Vašík.
40491
40492         utimes: fix configure grammar
40493         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40494
40495 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40496
40497         regex: Fix fastmap for multibyte character ranges.
40498         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40499         characters when a multibyte character range is included.
40500
40501 2009-11-22  Andy Wingo  <wingo@pobox.com>
40502
40503         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40504         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40505
40506 2009-11-24  Bruno Haible  <bruno@clisp.org>
40507
40508         doc: Most *_l functions exist in MacOS X 10.5.
40509         * doc/posix-functions/duplocale.texi: Update platforms list.
40510         * doc/posix-functions/freelocale.texi: Likewise.
40511         * doc/posix-functions/newlocale.texi: Likewise.
40512         * doc/posix-functions/uselocale.texi: Likewise.
40513         * doc/posix-functions/isalnum_l.texi: Likewise.
40514         * doc/posix-functions/isalpha_l.texi: Likewise.
40515         * doc/posix-functions/isblank_l.texi: Likewise.
40516         * doc/posix-functions/iscntrl_l.texi: Likewise.
40517         * doc/posix-functions/isdigit_l.texi: Likewise.
40518         * doc/posix-functions/isgraph_l.texi: Likewise.
40519         * doc/posix-functions/islower_l.texi: Likewise.
40520         * doc/posix-functions/isprint_l.texi: Likewise.
40521         * doc/posix-functions/ispunct_l.texi: Likewise.
40522         * doc/posix-functions/isspace_l.texi: Likewise.
40523         * doc/posix-functions/isupper_l.texi: Likewise.
40524         * doc/posix-functions/iswalnum_l.texi: Likewise.
40525         * doc/posix-functions/iswalpha_l.texi: Likewise.
40526         * doc/posix-functions/iswblank_l.texi: Likewise.
40527         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40528         * doc/posix-functions/iswctype_l.texi: Likewise.
40529         * doc/posix-functions/iswdigit_l.texi: Likewise.
40530         * doc/posix-functions/iswgraph_l.texi: Likewise.
40531         * doc/posix-functions/iswlower_l.texi: Likewise.
40532         * doc/posix-functions/iswprint_l.texi: Likewise.
40533         * doc/posix-functions/iswpunct_l.texi: Likewise.
40534         * doc/posix-functions/iswspace_l.texi: Likewise.
40535         * doc/posix-functions/iswupper_l.texi: Likewise.
40536         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40537         * doc/posix-functions/isxdigit_l.texi: Likewise.
40538         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40539         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40540         * doc/posix-functions/strcoll_l.texi: Likewise.
40541         * doc/posix-functions/strfmon_l.texi: Likewise.
40542         * doc/posix-functions/strftime_l.texi: Likewise.
40543         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40544         * doc/posix-functions/strxfrm_l.texi: Likewise.
40545         * doc/posix-functions/tolower_l.texi: Likewise.
40546         * doc/posix-functions/toupper_l.texi: Likewise.
40547         * doc/posix-functions/towctrans_l.texi: Likewise.
40548         * doc/posix-functions/towlower_l.texi: Likewise.
40549         * doc/posix-functions/towupper_l.texi: Likewise.
40550         * doc/posix-functions/wcscoll_l.texi: Likewise.
40551         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40552         * doc/posix-functions/wctrans_l.texi: Likewise.
40553         * doc/posix-functions/wctype_l.texi: Likewise.
40554         * doc/glibc-functions/strptime_l.texi: Likewise.
40555         * doc/glibc-functions/strtod_l.texi: Likewise.
40556         * doc/glibc-functions/strtof_l.texi: Likewise.
40557         * doc/glibc-functions/strtol_l.texi: Likewise.
40558         * doc/glibc-functions/strtold_l.texi: Likewise.
40559         * doc/glibc-functions/strtoll_l.texi: Likewise.
40560         * doc/glibc-functions/strtoul_l.texi: Likewise.
40561         * doc/glibc-functions/strtoull_l.texi: Likewise.
40562         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40563         * doc/glibc-functions/wcstod_l.texi: Likewise.
40564         * doc/glibc-functions/wcstof_l.texi: Likewise.
40565         * doc/glibc-functions/wcstol_l.texi: Likewise.
40566         * doc/glibc-functions/wcstold_l.texi: Likewise.
40567         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40568         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40569         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40570
40571 2009-11-24  Bruno Haible  <bruno@clisp.org>
40572
40573         duplocale: Fix logic bug.
40574         * lib/duplocale.c: Don't include <langinfo.h>.
40575         (_NL_LOCALE_NAME): Remove macro.
40576         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40577         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40578
40579 2009-11-23  Jim Meyering  <meyering@redhat.com>
40580
40581         test-update-copyright: don't hard-code /usr/bin/perl
40582         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40583         perl to print the current year.  Gilles Espinasse reported that
40584         the replaced use of perl was hard-coded as /usr/bin/perl.
40585
40586 2009-11-23  Bruno Haible  <bruno@clisp.org>
40587
40588         duplocale: Add support for glibc 2.3.x.
40589         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40590
40591 2009-11-22  Bruno Haible  <bruno@clisp.org>
40592
40593         vasnprintf: Tiny optimization.
40594         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40595         MacOS X.
40596
40597 2009-11-22  Bruno Haible  <bruno@clisp.org>
40598
40599         Tests for module 'duplocale'.
40600         * modules/duplocale-tests: New file.
40601         * tests/test-duplocale.c: New file.
40602
40603         New module 'duplocale'.
40604         * m4/duplocale.m4: New file.
40605         * lib/locale.in.h (duplocale): New declaration.
40606         * lib/duplocale.c: New file.
40607         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40608         gl_LOCALE_H_DEFAULTS): New macros.
40609         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40610         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40611         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40612         REPLACE_DUPLOCALE.
40613         * modules/duplocale: New file.
40614         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40615
40616 2009-11-22  Bruno Haible  <bruno@clisp.org>
40617
40618         * modules/locale-tests (configure.ac): Test for newlocale function.
40619         * tests/test-locale.c: When the system has extended locale functions,
40620         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40621
40622         locale: Make locale_t available when possible.
40623         * lib/locale.in.h: Include <xlocale.h> when it exists.
40624         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40625         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40626         * modules/locale (Depends-on): Add extensions.
40627         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40628         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40629
40630 2009-11-22  Bruno Haible  <bruno@clisp.org>
40631
40632         Add comments.
40633         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40634         invocation.
40635         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40636         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40637         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40638
40639 2009-11-22  Bruno Haible  <bruno@clisp.org>
40640
40641         error: account for the possibility of freopen (stdout).
40642         * lib/error.c: Include <unistd.h>.
40643         (flush_stdout): New function, extracted from error and error_at_line.
40644         Determine stdout's fd dynamically.
40645         (error, error_at_line): Invoke flush_stdout.
40646         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40647         * modules/error (Depends-on): Add unistd.
40648
40649 2009-11-22  Bruno Haible  <bruno@clisp.org>
40650
40651         diffseq: Add comment.
40652         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40653
40654 2009-11-22  Jim Meyering  <meyering@redhat.com>
40655
40656         c-stack: avoid defining an unused static function
40657         * lib/c-stack.c (find_stack_direction): Do not define this function
40658         when it will not be used.
40659
40660         diffseq: avoid spurious gcc warnings
40661         * lib/diffseq.h (IF_LINT2): Define.
40662         (compareseq): Use it to initialize two members of "part".
40663         This avoids two used-uninitialized warnings.
40664
40665 2009-11-21  Jim Meyering  <meyering@redhat.com>
40666
40667         c-stack: avoid "ignoring return value of `write'" warning
40668         * lib/c-stack.c: Include "ignore-value.h".
40669         (die): Explicitly ignore each write return value.
40670         * modules/c-stack (Depends-on): Add ignore-value.
40671
40672 2009-11-21  Bruno Haible  <bruno@clisp.org>
40673
40674         diffseq: reduce scope of variable 'best'.
40675         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40676         variable, earlier used for two different purposes.
40677
40678 2009-11-21  Jim Meyering  <meyering@redhat.com>
40679
40680         diffseq: remove useless assignment to "best"
40681         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40682         assignment.  At that point "best" is already guaranteed to be zero.
40683
40684 2009-11-20  Eric Blake  <ebb9@byu.net>
40685
40686         build: mention ftp redirector in release announcements
40687         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40688         values that used to come from cfg.mk; mention FTP redirect URL.
40689         * build-aux/announce-gen: Mention the mirror list.
40690         Suggested by Karl Berry.
40691
40692         nanosleep: improve port to mingw
40693         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40695         LIB_NANOSLEEP, but only when needed.
40696         * modules/select (Link): Document LIBSOCKET.
40697         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40698         enough.
40699
40700         nanosleep: work around cygwin bug
40701         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40702         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40703         bug.
40704         (getnow): Delete, not needed.
40705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40706         LIB_CLOCK_GETTIME.
40707         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40708         clock-time, gettime.
40709         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40710         bug.
40711         * modules/nanosleep-tests: New test.
40712         * tests/test-nanosleep.c: New file.
40713
40714         sleep: work around cygwin bug
40715         * lib/sleep.c (rpl_sleep): Work around the bug.
40716         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40717         (gl_PREREQ_SLEEP): Delete unused macro.
40718         * modules/sleep (Depends-on): Add verify.
40719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40720         * modules/unistd (Makefile.am): Substitute witness.
40721         * lib/unistd.in.h (sleep): Update prototype.
40722         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40723         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40724         * modules/sleep-tests (Depends-on): Check for alarm.
40725
40726 2009-11-20  Jim Meyering  <meyering@redhat.com>
40727
40728         maint.mk: improve sc_prohibit_magic_number_exit
40729         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40730         so it does not match uses like System.exit(1).
40731         Add comments showing how to correct all offenders.
40732
40733 2009-11-19  Eric Blake  <ebb9@byu.net>
40734
40735         xalloc-die-tests: add missing library
40736         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40737
40738         test-xvasprintf: silence compiler warnings
40739         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40740         empty string from gcc.
40741
40742 2009-11-19  Jim Meyering  <meyering@redhat.com>
40743
40744         xfreopen: new module, from coreutils
40745         * modules/xfreopen: New module.
40746         * lib/xfreopen.c: New file.
40747         * lib/xfreopen.h: New file.
40748         * MODULES.html.sh (File stream based Input/Output"): Add it.
40749
40750 2009-11-19  Eric Blake  <ebb9@byu.net>
40751
40752         manywarnings: depend on warnings
40753         * modules/manywarnings (Depends-on): Add warnings.
40754
40755         build: avoid compiler warnings
40756         * lib/select.c (rpl_select): Delete unused variable.
40757         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40758
40759 2009-11-18  Eric Blake  <ebb9@byu.net>
40760
40761         tests: avoid false negative with --with-packager
40762         * tests/test-version-etc.sh: Discard packager information.
40763         * tests/test-argp-version-etc-1.sh: Likewise.
40764         Reported by Mike Frysinger.
40765
40766         utimens: fix regression on Solaris
40767         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40768         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40769         can only change fd timestamps via futimesat.  Instead, use an
40770         additional witness macro to avoid BSD bug.
40771         Reported by Jim Meyering.
40772
40773 2009-11-17  Eric Blake  <ebb9@byu.net>
40774
40775         usleep: use it to simplify tests
40776         * modules/stat-time-tests (Depends-on): Add usleep.
40777         (configure.ac): Drop usleep check.
40778         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40779         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40780         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40781         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40782         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40783         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40784         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40785         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40786         Likewise.
40787         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40788         * tests/test-lchown.h (nap): Likewise.
40789         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40790         * tests/test-stat-time.c (nap): Likewise.
40791         * tests/test-utimens-common.h (nap): Update comments.
40792
40793         usleep: new module
40794         * modules/usleep: New file.
40795         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40796         * lib/usleep.c (usleep): Likewise.
40797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40798         * modules/unistd (Makefile.am): Substitute witnesses.
40799         * lib/unistd.in.h (usleep): Add declaration.
40800         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40801         * MODULES.html.sh (Date and time): Likewise.
40802         * modules/usleep-tests (Depends-on): New test.
40803         * tests/test-usleep.c: New file.
40804
40805         chown: work around OpenBSD bug
40806         * lib/chown.c (rpl_chown): Work around the bug.
40807         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40808         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40809         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40810         * modules/chown (Depends-on): Add stdbool.
40811         * modules/lchown (Depends-on): Likewise.
40812         * doc/posix-functions/chown.texi (chown): Document the bug.
40813         * doc/posix-functions/lchown.texi (lchown): Likewise.
40814         * tests/test-lchown.h (test_chown): Relax test.
40815
40816         mkstemp: avoid conflict with C++ keyword template
40817         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40818         * lib/mkostemp.c (mkostemp): Likewise.
40819         * lib/mkostemps.c (mkostemps): Likewise.
40820         * lib/mkstemp.c (mkstemp): Likewise.
40821         * lib/mkstemps.c (mkstemps): Likewise.
40822
40823         xalloc-die-tests: optimize
40824         * tests/test-xalloc-die.sh: Reduce number of processes.
40825
40826 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40827
40828         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40829         patch from ludo@gnu.org (Ludovic Courtès).
40830
40831 2009-11-17  Jim Meyering  <meyering@redhat.com>
40832
40833         version-etc: use proper license string
40834         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40835         * modules/version-etc-fsf: Likewise.
40836
40837 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40838
40839         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40840         printed to stdout.  Deal with EOL differences.
40841
40842 2009-11-17  Eric Blake  <ebb9@byu.net>
40843
40844         unsetenv: work around Solaris bug
40845         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40846         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40847         Reported by Jim Meyering.
40848
40849         vasnprintf: avoid compiler warnings
40850         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40851         variables.
40852         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40853
40854 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40855
40856         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40857         settings since xalloc-die is no longer the self test,
40858         xalloc-die.sh is.
40859
40860 2009-11-17  Jim Meyering  <meyering@redhat.com>
40861
40862         test-xalloc-die.sh: make the code agree with the commit log
40863         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40864         at the end, just in case you happen to have a test-xalloc-die
40865         program in some other PATH directory.
40866
40867         test-xalloc-die.sh: fix a portability bug
40868         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40869         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40870         Otherwise, argv[0] (as often seen in diagnostics) would be too
40871         system-dependent, sometimes with, and sometimes without the leading "./".
40872
40873         version-etc-fsf: relax license to LGPLv3+
40874         * modules/version-etc-fsf (License): Relax license.
40875
40876 2009-11-16  Eric Blake  <ebb9@byu.net>
40877
40878         xalloc-die-tests: avoid printing null pointer
40879         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40880         shell script.
40881         * tests/test-xalloc-die.c (program_name): Declare.
40882         * tests/test-xalloc-die.sh (tmpfiles): New file.
40883
40884         setenv, unsetenv: work around various bugs
40885         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40886         (setenv) [HAVE_SETENV]: Work around bugs.
40887         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40889         for bugs.
40890         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40891         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40893         * modules/stdlib (Makefile.am): Update substitutions.
40894         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40895         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40896         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40897         * modules/setenv-tests: New test.
40898         * modules/unsetenv-tests: Likewise.
40899         * tests/test-setenv.c: New file.
40900         * tests/test-unsetenv.c: Likewise.
40901
40902 2009-11-16  Jim Meyering  <meyering@redhat.com>
40903
40904         version-etc: relax license to LGPLv3+
40905         * modules/version-etc (License): Relax license.
40906
40907         better AC_REQUIRE expanded-before-required-warning avoidance
40908         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40909         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40910         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40911         which is no longer needed.
40912
40913 2009-11-16  Eric Blake  <ebb9@byu.net>
40914
40915         test-freading: clean up temporary file
40916         * tests/test-freading.c (main): Remove file on success, and use
40917         ASSERT more liberally.
40918         Reported by Jim Meyering.
40919
40920 2009-11-16  Jim Meyering  <meyering@redhat.com>
40921
40922         avoid new AC_REQUIRE expanded-before-required warnings
40923         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40924         merely using it.
40925         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40926         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40927
40928 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40929
40930         * tests/test-xalloc-die.c: New file.
40931         * modules/xalloc-die-tests: New file.
40932         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40933         XFAIL_TESTS so it can be appended by modules.
40934
40935 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40936
40937         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40938         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40939
40940 2009-11-14  Eric Blake  <ebb9@byu.net>
40941
40942         fnmatch: avoid compiler warning
40943         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40944         to silence compiler warning about mismatch signedness in ?:.
40945         Reported by Robert Millan.
40946
40947         intprops: add double-inclusion guard
40948         * lib/intprops.h: Allow idempotent includes.
40949         Suggested by Bruce Korb.
40950
40951         openat: detect Solaris fchownat bug
40952         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40953         penalizing glibc chownat when only lchownat is broken.
40954         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40955         trailing slash bugs.
40956         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40957         * modules/openat-tests (Files): Include more files.
40958         (Depends-on): Add mgetgroups, sleep, stat-time.
40959         (configure.ac): Add additional checks.
40960         (Makefile.am): Build new test.
40961         * tests/test-fchownat.c: New file.
40962
40963         lchown: detect Solaris and FreeBSD bug
40964         * lib/lchown.c (rpl_lchown): Work around bug.
40965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40967         * modules/unistd (Makefile.am): Populate it.
40968         * lib/unistd.in.h (lchown): Update declaration.
40969         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40970         * modules/lchown-tests: New file.
40971         * tests/test-lchown.h (test_lchown): Likewise.
40972         * tests/test-lchown.c (main): Likewise.
40973
40974         chown: detect Solaris and FreeBSD bug
40975         * lib/chown.c (rpl_chown): Work around bug.
40976         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40977         (gl_PREREQ_CHOWN): Delete.
40978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40979         * modules/unistd (Makefile.am): Populate it.
40980         * lib/unistd.in.h (chown): Update declaration.
40981         * lib/lchown.c (chown): Update client.
40982         * modules/lchown (Depends-on): Add lstat.
40983         * doc/posix-functions/chown.texi (chown): Document the bug.
40984         * doc/posix-functions/getgroups.texi (getgroups): Document
40985         getgroups pitfall.
40986         * modules/chown-tests: New file.
40987         * tests/test-chown.h (test_chown): Likewise.
40988         * tests/test-chown.c (main): Likewise.
40989
40990 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40991
40992         gnulib-tool: correctly detect absence of m4 directories
40993         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40994
40995 2009-11-14  Jim Meyering  <meyering@redhat.com>
40996
40997         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40998         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40999
41000 2009-11-14  John W. Eaton  <jwe@gnu.org>
41001
41002         strftime.h: wrap function declaration in extern "C" block
41003         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41004
41005 2009-11-13  Eric Blake  <ebb9@byu.net>
41006
41007         getgroups: avoid compiler warning
41008         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41009
41010         getgroups: work around FreeBSD bug
41011         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41013         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41014         * tests/test-getgroups.c (main): Fix buffer overrun.
41015
41016         getgroups: avoid compilation failure
41017         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41018         * modules/getgroups (Depends-on): Add stdint.
41019
41020 2009-11-13  Jim Meyering  <meyering@redhat.com>
41021
41022         test-getgroups: avoid compilation failure
41023         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41024
41025 2009-11-13  Eric Blake  <ebb9@byu.net>
41026
41027         mgetgroups: new module, taken from coreutils
41028         * modules/mgetgroups: New file.
41029         * lib/mgetgroups.h: Likewise.
41030         * lib/mgetgroups.c (mgetgroups): Likewise.
41031         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41032         * MODULES.html.sh (Users and groups): Mention it.
41033
41034         getgroups: don't expose GETGROUPS_T to user
41035         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41036         an element at a time if GETGROUPS_T is wrong size.
41037         * lib/getugroups.h (getugroups): Change signature.
41038         * lib/unistd.in.h (getgroups): Likewise.
41039         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41040         signature needs fixing.
41041         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41042         AC_TYPE_GETGROUPS.
41043         * modules/group-member (Depends-on): Add getgroups.
41044         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41045         (group_member): Rely on getgroups replacement.
41046         * lib/getugroups.c (getugroups): Use gid_t.
41047         * tests/test-getgroups.c (main): Likewise.
41048         * NEWS: Mention the signature change.
41049         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41050         problem with signature.
41051         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41052         GETGROUPS_T is still useful for setgroups.
41053
41054         getgroups, getugroups: provide stubs for mingw
41055         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41056         * lib/getugroups.c (getugroups): Likewise.
41057         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41058         function.  Modernize replacement scheme.
41059         (gl_PREREQ_GETGROUPS): Delete.
41060         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41061         * modules/getgroups (configure.ac): Declare witness.
41062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41063         * modules/unistd (Depends-on): Substitute witness.
41064         * lib/unistd.in.h (getgroups): Declare replacement.
41065
41066         getgroups: avoid calling exit
41067         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41068         drop xalloc.
41069         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41070         dependencies.
41071         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41072         exiting, in the rare case of malloc failure.
41073
41074         getgroups: fix logic error
41075         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41076         has more than 20 groups.
41077         * modules/getgroups-tests: New test.
41078         * tests/test-getgroups.c: New file.
41079
41080 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41081
41082         * tests/test-base64.c: Improve.
41083
41084 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41085
41086         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41087         Blake <ebb9@byu.net>.
41088
41089 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41090
41091         * tests/test-xvasprintf.c: Add %s%s related checks.
41092
41093 2009-11-12  Eric Blake  <ebb9@byu.net>
41094
41095         version-etc: match standards.texi style
41096         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41097         and use <> only for URLs.
41098
41099 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41100
41101         fts: do not fail on a submount during traversal
41102         * lib/fts.c (fts_build): Read the stat info again after opening
41103         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41104         Original report at http://bugzilla.redhat.com/501848.
41105
41106 2009-11-12  Jim Meyering  <meyering@redhat.com>
41107
41108         bootstrap: sync from coreutils
41109         * build-aux/bootstrap (bootstrap_epilogue): New function.
41110         Use git_modules_config in one more place.  This make bootstrap's
41111         --gnulib-srcdir option more useful for testing.
41112
41113         bootstrap: generalize autoheader check
41114         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41115         AC_CONFIG_HEADERS.
41116
41117 2009-11-11  Eric Blake  <ebb9@byu.net>
41118
41119         mkfifoat: use new modules for Solaris and BSD bugs
41120         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41121         * lib/mkfifoat.c (mknodat): Split...
41122         * lib/mknodat.c (mknodat): ...into new file.
41123         * modules/mkfifoat (Files): Ship new file.
41124         (Depends-on): Add mkfifo, mknod.
41125         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41126         (Depends-on): Add symlink.
41127         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41128         redundant with test_mkfifo.h.
41129         (do_mkfifoat, do_mknodat): New helpers.
41130
41131         mknod: new module
41132         * modules/mknod: New file.
41133         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41134         * lib/mknod.c (mknod): Likewise.
41135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41136         defaults.
41137         * modules/sys_stat (Makefile.am): Substitute them.
41138         * lib/sys_stat.in.h (mknod): Declare replacement.
41139         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41140         Document it.
41141         * doc/posix-functions/mknod.texi (mknod): Likewise.
41142         * modules/mknod-tests: New test.
41143         * tests/test-mknod.c: Likewise.
41144
41145         mkfifo: new module
41146         * modules/mkfifo: New file.
41147         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41148         * lib/mkfifo.c (mkfifo): Likewise.
41149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41150         defaults.
41151         * modules/sys_stat (Makefile.am): Substitute them.
41152         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41153         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41154         Document it.
41155         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41156         * modules/mkfifo-tests: New test.
41157         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41158         from test-mkfifoat.c.
41159         * tests/test-mkfifo.c: New file.
41160
41161         readlink: detect FreeBSD bug
41162         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41163         slash on symlink.
41164         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41165         * tests/test-readlink.h (test_readlink): Enhance test.
41166
41167         symlink: detect FreeBSD bug
41168         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41169         slash on symlink.
41170         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41171         * tests/test-symlink.h (test_symlink): Enhance test.
41172
41173 2009-11-10  Eric Blake  <ebb9@byu.net>
41174
41175         link: detect FreeBSD bug
41176         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41177         symlink.
41178         * doc/posix-functions/link.texi (link): Document the bug.
41179         * tests/test-link.h (test_link): Enhance test.
41180         * tests/test-linkat.c (main): Update caller.
41181
41182         unlink, remove: detect FreeBSD bug
41183         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41184         slash on symlink.
41185         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41186         * doc/posix-functions/remove.texi (remove): Likewise.
41187         * tests/test-unlink.h (test_unlink): Enhance test.
41188         * tests/test-remove.c (main): Likewise.
41189
41190 2009-11-09  Eric Blake  <ebb9@byu.net>
41191
41192         rename: detect FreeBSD bug
41193         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41194         slash on symlink.
41195         * modules/renameat-tests (Depends-on): Add filenamecat.
41196         * tests/test-rename.h (test_rename): Allow one more errno.
41197         * tests/test-renameat.c (main): Likewise.
41198         * doc/posix-functions/rename.texi (rename): Document the bug.
41199
41200         open: detect FreeBSD bug
41201         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41202         symlink.
41203         * doc/posix-functions/open.texi (open): Document the bug.
41204         * doc/posix-functions/utimes.texi (utimes): Likewise.
41205         * tests/test-open.h (test_open): Add parameters, and test symlink
41206         handling.
41207         * tests/test-open.c (main): Adjust caller.
41208         * tests/test-fcntl-safer.c (main): Likewise.
41209         * modules/open-tests (Depends-on): Add stdbool, symlink.
41210         * modules/fcntl-safer-tests (Depends-on): Likewise.
41211         * tests/test-openat.c (main): Add test-open tests.
41212
41213         stat: detect FreeBSD bug
41214         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41215         symlink.
41216         * doc/posix-functions/stat.texi (stat): Document the bug.
41217         * tests/test-stat.h (test_stat_func): Add argument.
41218         * tests/test-stat.c (main): Adjust caller.
41219         * tests/test-fstatat.c (main): Likewise.
41220         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41221         Reported by Jim Meyering.
41222
41223 2009-11-09  James Youngman  <jay@gnu.org>
41224
41225         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41226         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41227
41228 2009-11-08  Jim Meyering  <meyering@redhat.com>
41229
41230         utimens: remove invalid futimesat call
41231         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41232         It used the file descriptor of the target file as the DIR_FD
41233         parameter and NULL as the file name.  That caused failure with
41234         errno == EFAULT on FreeBSD-8.0-rc2
41235
41236 2009-11-07  Eric Blake  <ebb9@byu.net>
41237
41238         fflush, freadseek: use fseeko, not fseek
41239         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41240         (clear_ungetc_buffer): Avoid potential problems on large files.
41241         * lib/freadseek.c (freadseek): Likewise.
41242         * modules/freadseek (Depends-on): Add fseeko.
41243         * modules/fseek (configure.ac): Set a witness.
41244         * tests/test-fflush.c (main): Use fseeko.
41245         * tests/test-fpurge.c (fseek): Disable link warning.
41246         * tests/test-freadable.c (fseek): Likewise.
41247         * tests/test-freading.c (fseek): Likewise.
41248         * tests/test-fseeko.c (fseek): Likewise.
41249         * tests/test-ftell.c (fseek): Likewise.
41250         * tests/test-ftello.c (fseek): Likewise.
41251         * tests/test-fwritable.c (fseek): Likewise.
41252         * tests/test-fwriting.c (fseek): Likewise.
41253
41254 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41255
41256         * modules/memchr (Depends-on): Drop getpagesize dependency.
41257
41258 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41259
41260         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41261         Reported by Ludovic Courtès.
41262         * build-aux/pmccabe2html: Improve example usage.
41263         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41264
41265 2009-11-06  Jim Meyering  <meyering@redhat.com>
41266
41267         do-release-commit-and-tag: New module.
41268         Automate the release-commit and tag process.
41269         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41270         * modules/do-release-commit-and-tag: New file.
41271         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41272
41273 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41274
41275         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41276         because test-select.c uses inet_pton.
41277
41278 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41279
41280         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41281         GETADDRINFO_LIB.  Bump serial number.
41282         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41283         Suggested by Eric Blake <ebb9@byu.net>.
41284
41285 2009-11-05  Eric Blake  <ebb9@byu.net>
41286
41287         strtod: detect darwin bug
41288         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41289         Reported by Leo Davis.
41290
41291         freopen-safer: new module
41292         * modules/freopen-safer: New module.
41293         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41294         * lib/freopen-safer.c (freopen_safer): New file.
41295         * lib/stdio-safer.h (freopen_safer): New declaration.
41296         * lib/stdio--.h (freopen): New override.
41297         * MODULES.html.sh (File stream based Input/Output): Mention it.
41298         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41299         freopen-safer module.
41300         * doc/posix-functions/stderr.texi (stderr): Likewise.
41301         * doc/posix-functions/stdin.texi (stdin): Likewise.
41302         * doc/posix-functions/stdout.texi (stdout): Likewise.
41303         * modules/freopen-safer-tests: New test.
41304         * tests/test-reopen-safer.c: New file.
41305
41306 2009-11-05  Jim Meyering  <meyering@redhat.com>
41307
41308         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41309         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41310
41311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41312
41313         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41314
41315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41316
41317         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41318
41319 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41320
41321         Fix link error.
41322         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41323         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41324
41325 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41326
41327         * tests/test-func.c: Also test value of __func__.
41328
41329 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41330
41331         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41332         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41333
41334 2009-11-05  Bruno Haible  <bruno@clisp.org>
41335
41336         Fix link error.
41337         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41338         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41339         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41340
41341 2009-11-05  Bruno Haible  <bruno@clisp.org>
41342
41343         Tests for module 'inet_pton'.
41344         * modules/inet_pton-tests: New file.
41345         * tests/test-inet_pton.c: New file.
41346
41347 2009-11-05  Bruno Haible  <bruno@clisp.org>
41348
41349         Tests for module 'inet_ntop'.
41350         * modules/inet_ntop-tests: New file.
41351         * tests/test-inet_ntop.c: New file.
41352
41353 2009-11-04  Eric Blake  <ebb9@byu.net>
41354
41355         stdlib-safer: wrap all mkstemp variants
41356         * modules/mkostemp (configure.ac): Set witness.
41357         * modules/mkostemps (configure.ac): Likewise.
41358         * modules/mkstemps (configure.ac): Likewise.
41359         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41360         (mkstemps_safer): Wrap more functions.
41361         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41362         wrapping.
41363         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41364         (mkstemps_safer): Implement the wrappers.
41365
41366         mkstemps, mkostemps: new modules
41367         * modules/mkostemps: New module.
41368         * modules/mkstemps: Likewise.
41369         * lib/mkostemps.c (mkostemps): New file.
41370         * lib/mkstemps.c (mkstemps): Likewise.
41371         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41372         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41374         * modules/stdlib (Makefile.am): Substitute them.
41375         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41376         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41377         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41378         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41379         * MODULES.html.sh (File system functions): Mention them.
41380
41381         tempname: resync from glibc
41382         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41383         same values for __GT_FILE as glibc.  Abort even when assertions
41384         are disabled.
41385         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41386         match its value otherwise.  Allow idempotent inclusion.
41387         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41388         * lib/mkostemp.c (mkostemp): Likewise.
41389         * lib/mkstemp.c (mkstemp): Likewise.
41390         * lib/tmpfile.c (tmpfile): Likewise.
41391         * NEWS: Document this.
41392
41393         utimens: fix use of futimens on older Linux
41394         * lib/utimens.c (fdutimens): Use updated, rather than original,
41395         timespec to avoid bug in older Linux kernel.
41396         Reported by Simon Josefsson.
41397
41398 2009-11-04  Bruno Haible  <bruno@clisp.org>
41399
41400         Make num_processors more flexible and consistent.
41401         * lib/nproc.h (enum nproc_query): New type.
41402         (num_processors): Add a 'query' argument.
41403         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41404         (num_processors): Add a 'query' argument. Test the value of the
41405         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41406         mingw, count the number of CPUs available for the current process.
41407         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41408         Check for sched_getaffinity and sched_getaffinity_np.
41409         * modules/nproc (Depends-on): Add c-ctype, extensions.
41410         * NEWS: Mention the change.
41411
41412 2009-11-03  Bruno Haible  <bruno@clisp.org>
41413
41414         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41415
41416 2009-11-03  Jim Meyering  <meyering@redhat.com>
41417
41418         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41419         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41420         if it is defined.
41421
41422 2009-11-02  Eric Blake  <ebb9@byu.net>
41423
41424         mktime, timegm: share common declaration
41425         * lib/mktime-internal.h: New file.
41426         * lib/mktime.c: Use it rather than open-coding a declaration.
41427         * lib/timegm.c: Likewise.
41428         * modules/mktime (Files): Ship it.
41429         * modules/timegm (Files): Likewise.
41430         Suggested by Bruno Haible.
41431
41432         test-update-copyright: update test to match script changes
41433         * tests/test-update-copyright.sh: Avoid hard-coding perl
41434         location.  Don't update *.bak created by earlier runs.
41435
41436 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41437             Simon Josefsson  <simon@josefsson.org>
41438             Bruno Haible  <bruno@clisp.org>
41439
41440         Fix link error on Solaris 8.
41441         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41442         also in libnsl. Define also INET_PTON_LIB.
41443         * modules/inet_pton (Link): New section.
41444
41445 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41446             Bruno Haible  <bruno@clisp.org>
41447
41448         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41449         * modules/inet_ntop (Link): New section.
41450         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41451
41452 2009-11-02  Eric Blake  <ebb9@byu.net>
41453
41454         maint: avoid compiler warnings in m4 macros
41455         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41456         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41457
41458 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41459
41460         * m4/pmccabe2html.m4: Remove file.
41461         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41462         function.  Change maintainer.
41463         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41464         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41465         Courtès).
41466
41467 2009-10-31  Eric Blake  <ebb9@byu.net>
41468
41469         fseeko: fix m4 regression
41470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41471         regression from 2009-10-27.
41472         Reported by Ralf Wildenhues.
41473
41474 2009-10-31  Jim Meyering  <meyering@redhat.com>
41475
41476         inttostr: aesthetics and improved (compile-time) safety
41477         Define inttype_is_signed rather than inttype_is_unsigned,
41478         since the sole use is via "#if inttype_is_signed".
41479         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41480         inttype_is_unsigned.
41481         * lib/offtostr.c (inttype_is_signed): Likewise.
41482         * lib/uinttostr.c (inttype_is_signed): Likewise.
41483         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41484         * lib/inttostr.c (inttostr): Use verify to cross-check the
41485         inttype_is_signed value and the signedness of the actual type.
41486         * modules/inttostr (Depends-on): Add verify.
41487
41488 2009-10-30  Eric Blake  <ebb9@byu.net>
41489
41490         build: avoid compiler warnings
41491         * lib/fchmodat.c (lchmod): Mark unused variables.
41492         * lib/getopt.c (_getopt_initialize): Likewise.
41493         * lib/mktime.c (__mktime_internal): Provide prototype.
41494         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41495         older gcc that do not understand #pragma GCC diagnostic.
41496         * lib/uinttostr.c (inttype_is_unsigned): Define.
41497         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41498
41499 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41500
41501         stat: fix compilation on AIX
41502         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41503         only see struct stat64.
41504
41505 2009-10-30  Eric Blake  <ebb9@byu.net>
41506
41507         exclude: make more robust
41508         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41509         rather than masking a coding bug.
41510         Suggested by Bruno Haible.
41511
41512 2009-10-30  Jim Meyering  <meyering@redhat.com>
41513
41514         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41515         Rather than putting #!/usr/bin/perl on the first line,
41516         start with a variant of what's recommended by "man perlrun" that
41517         invokes the first "perl" program from your shell's search path.
41518         * build-aux/gitlog-to-changelog: Replace #!... as above.
41519         Add a "Local Variables" perl mode setting.
41520         Prompted by a patch from Ludovic Courtès.
41521         Improved by Eric Blake.
41522         * build-aux/useless-if-before-free: Likewise.
41523         * build-aux/announce-gen: Likewise.
41524         * build-aux/update-copyright: Likewise.
41525
41526 2009-10-29  Eric Blake  <ebb9@byu.net>
41527
41528         filenamecat-lgpl: adjust clients
41529         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41530         filenamecat.
41531         * modules/renameat (Depends-on): Likewise.
41532
41533         filenamecat: split into filenamecat-lgpl
41534         * modules/filenamecat-lgpl: New module.
41535         * modules/filenamecat (Files): Move library-safe files into
41536         filenamecat-lgpl.
41537         (Depends-on): Add filenamecat-lgpl.
41538         (configure.ac): Declare witness.
41539         * lib/filenamecat.h (file_name_concat): Only declare when using
41540         GPL module.
41541         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41542         Move...
41543         * lib/filenamecat-lgpl.c: ...into new file.
41544         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41545         (gl_FILE_NAME_CONCAT): Use it.
41546         * MODULES.html.sh (File system functions): Mention new module.
41547
41548         argp: avoid memory leak
41549         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41550         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41551         base_name, since the latter malloc()s and can call exit().
41552         Leak introduced 2006-07-03.
41553
41554         dirname-lgpl: adjust clients that don't need full dirname
41555         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41556         * modules/filenamecat (Depends-on): Likewise.
41557         * modules/linkat (Depends-on): Likewise.
41558         * modules/mkancesdirs (Depends-on): Likewise.
41559         * modules/mkdir (Depends-on): Likewise.
41560         * modules/openat (Depends-on): Likewise.
41561         * modules/savewd (Depends-on): Likewise.
41562         * modules/rename (Depends-on): Likewise.
41563         (License): Relax license.
41564         * modules/mkdir-tests (Depends-on): Drop progname.
41565         (Makefile.am): Delete unneeded LDADD.
41566         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41567
41568         dirname: split into dirname-lgpl
41569         * modules/dirname-lgpl: New module.
41570         * modules/dirname (Files): Move library-safe files into
41571         dirname-lgpl.
41572         (Depends-on): Add dirname-lgpl.
41573         (configure.ac): Declare witness.
41574         * modules/double-slash-root (License): Relax license.
41575         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41576         module.
41577         * lib/dirname.c (dir_len, mdir_name): Move...
41578         * lib/dirname-lgpl.c: ...into new file.
41579         * lib/basename.c (last_component, base_len): Move...
41580         * lib/basename-lgpl.c: ...into new file.
41581         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41582         (gl_DIRNAME): Use it.
41583         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41584         Mention new module.
41585         * modules/dirname-tests (Depends-on): Add progname.
41586         * tests/test-dirname.c (program_name): Delete.
41587
41588         mkdir: make safe for libraries
41589         * modules/mkdir (Depends-on): Drop xalloc.
41590         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41591         exit.
41592
41593         tests: avoid some compiler warnings
41594         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41595         literals.
41596         * tests/test-memchr.c (main): Avoid type mismatch.
41597         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41598         * tests/test-base64.c (main): Likewise.
41599         * tests/test-getdelim.c (main): Likewise.
41600         * tests/test-gethostname.c (main): Likewise.
41601         * tests/test-getline.c (main): Likewise.
41602         * tests/test-netinet_in.c (main): Likewise.
41603         * tests/test-select.c (open_server_socket, main): Likewise.
41604         * tests/test-select-stdin.c (main): Likewise.
41605         * tests/test-sockets.c (main): Likewise.
41606         * tests/test-strsignal.c (main): Likewise.
41607         * tests/test-sys_select.c (main): Likewise.
41608         * tests/test-sys_socket.c (main): Likewise.
41609         * tests/test-u64.c (main): Likewise.
41610         * tests/test-xfprintf-posix.c (main): Likewise.
41611         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41612
41613         sockets: avoid compiler warning
41614         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41615
41616         maint: detect usage(1) and other suspicious exits
41617         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41618
41619 2009-10-29  Jim Meyering  <meyering@redhat.com>
41620
41621         timespec: long-to-int truncation could make timespec_cmp malfunction
41622         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41623         a multiple of 2^32 nanoseconds as no difference.
41624
41625 2009-10-28  Jim Meyering  <meyering@redhat.com>
41626
41627         fprintftime: wrap macro code argument in "do {...} while(0)"
41628         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41629         cpy macro must be a statement that can be followed by a semicolon.
41630         Now that the else clause contains a comment and is hence longer
41631         than one line, I require curly braces.  That in turn requires
41632         that we wrap this code block in the standard do...while(0).
41633
41634         fprintftime: remove stray semicolon from previous change
41635         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41636
41637         fprintftime: avoid a warning about ignored fwrite return value
41638         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41639         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41640         that is unsafe.
41641         * modules/fprintftime (Depends-on): Add ignore-value.
41642
41643         exclude: avoid an unwarranted warning
41644         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41645
41646 2009-10-27  Eric Blake  <ebb9@byu.net>
41647
41648         fseek: avoid compilation failure when fflush is replaced
41649         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41650         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41651         module is in use.
41652         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41653         module is not in use; since REPLACE_FSEEK worked otherwise.
41654         (GNULIB_FTELLO): Likewise for ftell.
41655         Reported by Ian Beckwith and others.
41656
41657 2009-10-27  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41660         Reported by Jim Meyering.
41661
41662 2009-10-27  Jim Meyering  <jim@meyering.net>
41663             Bruno Haible  <bruno@clisp.org>
41664
41665         Avoid warning despite dropping the return value of fwrite.
41666         * lib/unicodeio.c: Include ignore-value.h.
41667         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41668         * modules/unicodeio (Depends-on): Add ignore-value.
41669
41670 2009-10-26  Eric Blake  <ebb9@byu.net>
41671
41672         areadlinkat: fix fallback path
41673         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41674         pointer and zero.
41675
41676 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41677
41678         Use a better IO block size for modern systems
41679         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41680         * lib/md2.c: Likewise.
41681         * lib/md4.c: Likewise.
41682         * lib/md5.c: Likewise.
41683         * lib/sha1.c: Likewise.
41684         * lib/sha256.c: Likewise.
41685         * lib/sha512.c: Likewise.
41686
41687 2009-10-22  Eric Blake  <ebb9@byu.net>
41688
41689         tests: avoid several compiler warnings
41690         * tests/test-getcwd.c (main): Avoid buffer underflow.
41691         * tests/test-getdate.c (main): String literals are not safe with
41692         putenv, so use setenv.  Declare unused argument.
41693         * modules/getdate-tests (Depends-on): Add setenv.
41694         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41695         problems with string literals in char *.
41696         * tests/test-hash.c (main): Avoid shadowing declaration.
41697         (insert_new): Treat string literals as char const *.
41698         * tests/test-getopt.h (test_getopt): Likewise.
41699         (getopt_loop): Alter types to minimize casting elsewhere.
41700         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41701         (test_getopt_long_posix): Likewise.
41702         (do_getopt_long): Add wrapper to minimize casting.
41703         * tests/test-atexit.c (clear_temp_file): Use void.
41704         * tests/test-areadlink-with-size.c (main): Declare unused
41705         arguments.
41706         * tests/test-areadlink.c (main): Likewise.
41707         * tests/test-areadlinkat-with-size.c (main): Likewise.
41708         * tests/test-areadlinkat.c (main): Likewise.
41709         * tests/test-canonicalize-lgpl.c (main): Likewise.
41710         * tests/test-canonicalize.c (main): Likewise.
41711         * tests/test-dirent-safer.c (main): Likewise.
41712         * tests/test-dirname.c (main): Likewise.
41713         * tests/test-dup2.c (main): Likewise.
41714         * tests/test-fchdir.c (main): Likewise.
41715         * tests/test-fcntl-h.c (main): Likewise.
41716         * tests/test-fcntl-safer.c (main): Likewise.
41717         * tests/test-fdopendir.c (main): Likewise.
41718         * tests/test-fdutimensat.c (main): Likewise.
41719         * tests/test-fflush.c (main): Likewise.
41720         * tests/test-filenamecat.c (main): Likewise.
41721         * tests/test-filevercmp.c (main): Likewise.
41722         * tests/test-fopen-safer.c (main): Likewise.
41723         * tests/test-fopen.c (main): Likewise.
41724         * tests/test-fpending.c (main): Likewise.
41725         * tests/test-fpurge.c (main): Likewise.
41726         * tests/test-freading.c (main): Likewise.
41727         * tests/test-fstatat.c (main): Likewise.
41728         * tests/test-fsync.c (main): Likewise.
41729         * tests/test-futimens.c (main): Likewise.
41730         * tests/test-getndelim2.c (main): Likewise.
41731         * tests/test-gettimeofday.c (main): Likewise.
41732         * tests/test-getopt.c (main): Likewise.
41733         * tests/test-i-ring.c (main): Likewise.
41734         * tests/test-inttypes.c (main): Likewise.
41735         * tests/test-link.c (main): Likewise.
41736         * tests/test-lstat.c (main): Likewise.
41737         * tests/test-math.c (main): Likewise.
41738         * tests/test-md5.c (main): Likewise.
41739         * tests/test-memchr2.c (main): Likewise.
41740         * tests/test-memrchr.c (main): Likewise.
41741         * tests/test-mkdir.c (main): Likewise.
41742         * tests/test-mkdirat.c (main): Likewise.
41743         * tests/test-mkfifoat.c (main): Likewise.
41744         * tests/test-open.c (main): Likewise.
41745         * tests/test-openat-safer.c (main): Likewise.
41746         * tests/test-openat.c (main): Likewise.
41747         * tests/test-quotearg.c (main): Likewise.
41748         * tests/test-rawmemchr.c (main): Likewise.
41749         * tests/test-readlink.c (main): Likewise.
41750         * tests/test-remove.c (main): Likewise.
41751         * tests/test-rename.c (main): Likewise.
41752         * tests/test-renameat.c (main): Likewise.
41753         * tests/test-rmdir.c (main): Likewise.
41754         * tests/test-sha1.c (main): Likewise.
41755         * tests/test-signal.c (main): Likewise.
41756         * tests/test-sigaction.c (main): Likewise.
41757         * tests/test-stat.c (main): Likewise.
41758         * tests/test-stat-time.c (main): Likewise.
41759         * tests/test-stddef.c (main): Likewise.
41760         * tests/test-stdint.c (main): Likewise.
41761         * tests/test-stdio.c (main): Likewise.
41762         * tests/test-stdlib.c (main): Likewise.
41763         * tests/test-strchrnul.c (main): Likewise.
41764         * tests/test-strerror.c (main): Likewise.
41765         * tests/test-string.c (main): Likewise.
41766         * tests/test-strtod.c (main): Likewise.
41767         * tests/test-strverscmp.c (main): Likewise.
41768         * tests/test-symlink.c (main): Likewise.
41769         * tests/test-symlinkat.c (main): Likewise.
41770         * tests/test-sys_stat.c (main): Likewise.
41771         * tests/test-sys_time.c (main): Likewise.
41772         * tests/test-time.c (main): Likewise.
41773         * tests/test-unistd.c (main): Likewise.
41774         * tests/test-unlink.c (main): Likewise.
41775         * tests/test-unlinkat.c (main): Likewise.
41776         * tests/test-utimens.c (main): Likewise.
41777         * tests/test-utimensat.c (main): Likewise.
41778         * tests/test-version-etc.c (main): Likewise.
41779         * tests/test-wchar.c (main): Likewise.
41780         * tests/test-wctype.c (main): Likewise.
41781         * tests/test-xprintf-posix.c (main): Likewise.
41782         * tests/test-posixtm.c (main): Likewise.
41783         (STREQ): Delete unused macro.
41784         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41785         shadowed variables.
41786         * tests/test-memchr.c (main): Likewise.
41787
41788 2009-10-21  Eric Blake  <ebb9@byu.net>
41789
41790         areadlinkat: avoid failure on older glibc
41791         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41792         rather than mis-comparing 0 against FUNC_RESULT of char*.
41793
41794 2009-10-21  Bruno Haible  <bruno@clisp.org>
41795
41796         * modules/stpncpy (License): Relicense under LGPLv2+.
41797         Reported by David Lutterkort <lutter@redhat.com>.
41798
41799 2009-10-20  Eric Blake  <ebb9@byu.net>
41800
41801         utimensat: work around Solaris 9 bug
41802         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41803         has trailing slash bugs.
41804         * tests/test-lutimens.h (test_lutimens): Enhance test.
41805         * tests/test-utimens.h (test_utimens): Likewise.
41806         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41807         * doc/posix-functions/utimes.texi (utimes): Likewise.
41808         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41809         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41810         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41811         * doc/posix-functions/futimens.texi (futimens): Likewise.
41812
41813         fdutimensat: new module
41814         * modules/fdutimensat: New file.
41815         * lib/fdutimensat.c (fdutimensat): Likewise.
41816         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41817         * MODULES.html.sh (File system functions): Mention module.
41818         * modules/fdutimensat-tests: New test.
41819         * tests/test-fdutimensat.c: Likewise.
41820
41821         doc: regenerate INSTALL
41822         * doc/INSTALL: Reflect recent autoconf update.
41823         * doc/INSTALL.ISO: Likewise.
41824         * doc/INSTALL.UTF-8: Likewise.
41825
41826 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41827
41828         acl: warn if ACL support is not detected
41829         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41830
41831 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41832
41833         * lib/nproc.h: Add extern "C" block for C++.
41834
41835 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41836             Bruno Haible  <bruno@clisp.org>
41837
41838         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41839         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41840         * doc/posix-functions/isalpha.texi: Likewise.
41841         * doc/posix-functions/isblank.texi: Likewise.
41842         * doc/posix-functions/iscntrl.texi: Likewise.
41843         * doc/posix-functions/isdigit.texi: Likewise.
41844         * doc/posix-functions/isgraph.texi: Likewise.
41845         * doc/posix-functions/islower.texi: Likewise.
41846         * doc/posix-functions/isprint.texi: Likewise.
41847         * doc/posix-functions/ispunct.texi: Likewise.
41848         * doc/posix-functions/isspace.texi: Likewise.
41849         * doc/posix-functions/isupper.texi: Likewise.
41850         * doc/posix-functions/isxdigit.texi: Likewise.
41851
41852 2009-10-18  Bruno Haible  <bruno@clisp.org>
41853
41854         Tests for module 'isblank'.
41855         * modules/isblank-tests: New file.
41856         * tests/test-isblank.c: New file.
41857
41858         New module 'isblank'.
41859         * lib/isblank.c: New file.
41860         * m4/isblank.m4: New file.
41861         * modules/isblank: New file.
41862         * doc/posix-functions/isblank.texi: Mention the new module.
41863
41864 2009-10-18  Bruno Haible  <bruno@clisp.org>
41865
41866         New module 'ctype'.
41867         * lib/ctype.in.h: New file.
41868         * m4/ctype.m4: New file.
41869         * modules/ctype: New file.
41870         * doc/posix-headers/ctype.texi: Mention the new module.
41871
41872 2009-10-18  Jim Meyering  <meyering@redhat.com>
41873
41874         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41875         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41876         right after its initialization, rather than farther down.
41877         Keeping these in close proximity makes it easier to ensure
41878         that each such variable is initialized.  E.g.,
41879
41880             LIB_CLOCK_GETTIME=
41881             AC_SUBST([LIB_CLOCK_GETTIME])
41882
41883         This change also increments these serial numbers.
41884         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41885         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41887
41888 2009-10-18  Bruno Haible  <bruno@clisp.org>
41889
41890         Don't let environment variables perturb build.
41891         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41892         (gl_PREREQ_GETHRXTIME): ... not here.
41893
41894 2009-10-18  Bruno Haible  <bruno@clisp.org>
41895
41896         Avoid symlink attack in localcharset module.
41897         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41898         (O_NOFOLLOW): Define fallback.
41899         (get_charset_aliases): Don't open the file if it is a symbolic link.
41900         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41901         gl_FCNTL_H.
41902         (gl_FCNTL_H): Require it.
41903         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41904         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41905         Reported by Fergal Glynn <fglynn@veracode.com>.
41906
41907 2009-10-18  Bruno Haible  <bruno@clisp.org>
41908
41909         Implement nproc for mingw.
41910         * lib/nproc.c: Include <windows.h>
41911         (num_processors): On native Windows platforms, try GetSystemInfo.
41912
41913 2009-10-18  Bruno Haible  <bruno@clisp.org>
41914
41915         Implement nproc for IRIX.
41916         * lib/nproc.c: Include <sys/sysmp.h>.
41917         (num_processors): On IRIX systems, try sysmp.
41918         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41919
41920 2009-10-18  Bruno Haible  <bruno@clisp.org>
41921
41922         Implement nproc for HP-UX.
41923         * lib/nproc.c: Include <sys/pstat.h>
41924         (num_processors): On HP-UX systems, try pstat_getdynamic.
41925         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41926         pstat_getdynamic.
41927
41928 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41929             Bruno Haible  <bruno@clisp.org>
41930
41931         Implement nproc for NetBSD, OpenBSD.
41932         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41933         (ARRAY_SIZE): New macro.
41934         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41935         * m4/nproc.m4: New file.
41936         * modules/nproc (Files): Add m4/nproc.m4.
41937         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41938         (Makefile.am): Instead, augment lib_SOURCES.
41939
41940 2009-10-18  Bruno Haible  <bruno@clisp.org>
41941
41942         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41943         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41944         sys/param.h.
41945
41946 2009-10-16  Eric Blake  <ebb9@byu.net>
41947
41948         utimensat: new module
41949         * modules/utimensat: New file.
41950         * lib/utimensat.c (utimensat): Likewise.
41951         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41952         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41953         so we can work around Linux bugs.
41954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41955         * modules/sys_stat (Makefile.am): Substitute them.
41956         * lib/sys_stat.in.h (utimensat): Declare it.
41957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41959         * modules/utimensat-tests: New test.
41960         * tests/test-utimensat.c: Likewise.
41961
41962         utimens: let lutimens work on non-symlinks
41963         * lib/utimens.c (lutimens): Fall back to utimens rather than
41964         failing with ENOSYS, when file is not a symlink.
41965         (utimens): Reduce redirection.
41966         * tests/test-lutimens.h (test_lutimens): Update test to cover
41967         non-symlinks.
41968         * tests/test-utimens.h (test_utimens): Update test to cover
41969         symlinks.
41970         * tests/test-utimens.c (main): Update caller.
41971
41972         utimens: cache whether utimensat syscall works
41973         * lib/utimens.c (utimensat_works_really): New cache variable.
41974         (fdutimens, lutimens): Use it to avoid failing syscall.
41975
41976         test-stat-time, test-utimens: improve portability
41977         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41978         ext4 on alpha, and for cygwin.
41979         * tests/test-utimens-common.h: New file.
41980         (nap): Factor delays into single function.
41981         * tests/test-lutimens.h (test_lutimens): Use new header.
41982         * tests/test-futimens.h (test_futimens): Likewise.
41983         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41984         timestamps to occur from same machine, as was done previously for
41985         test_utimens.
41986         * modules/utimens-tests (Files): Ship new file.
41987         * modules/futimens-tests (Files): Likewise.
41988         Reported in part by Jim Meyering.
41989
41990         sys_stat: sort replacement declarations
41991         * lib/sys_stat.in.h: Sort declarations.
41992         * lib/futimens.c (futimens): Fix typo.
41993
41994 2009-10-15  Jim Meyering  <meyering@redhat.com>
41995
41996         don't let environment settings perturb build
41997         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41998         could cause a configure-time and/or build-time malfunction.
41999         Typically, a configure-time function-in-library test is performed
42000         via code like this:
42001
42002           LIB_VAR=
42003           AC_SUBST([LIB_VAR])
42004           prefix_saved_LIBS=$LIBS
42005             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42006                        [test "$ac_cv_search_FUNC" = "none required" ||
42007                         LIB_VAR=$ac_cv_search_FUNC])
42008           LIBS=$prefix_saved_LIBS
42009
42010         However, in each of the files affected by this change, the LIB_VAR=
42011         initialization was omitted.  Thus, when set in the environment, its
42012         value would propagate into generated Makefiles when FUNC is not found
42013         in LIB_NAME.
42014         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42017
42018 2009-10-14  Eric Blake  <ebb9@byu.net>
42019
42020         fchdir: avoid infinite recursion in mingw
42021         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42022         recursing.
42023
42024         test-stat-time: port to mingw
42025         * tests/test-stat-time.c (force_unlink): Return a value.
42026         (test_ctime) [W32]: Fix compilation error.
42027         (nap): Don't call usleep with too large an argument.  Use
42028         force_unlink.
42029         * doc/pastposix-functions/usleep.texi (usleep): Document the
42030         portability issue.
42031
42032 2009-10-13  Jim Meyering  <meyering@redhat.com>
42033
42034         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42035         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42036         * modules/pipe-filter-ii: Likewise.
42037         * modules/sys_socket-tests: Likewise.
42038         * modules/tsearch-tests: Likewise.
42039         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42040         (check): Depend on it.
42041
42042 2009-10-12  Eric Blake  <ebb9@byu.net>
42043
42044         utimens-tests: port to NFS file systems
42045         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42046         comparisons to avoid spurious failures from timestamp drift
42047         between NFS machines.
42048
42049 2009-10-12  Eric Blake  <ebb9@byu.net>
42050
42051         stat-time-tests: minor cleanups
42052         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42053         * tests/test-stat-time.c (nap): Separate assignment from call.
42054         Suggested by Paolo Bonzini and Bruno Haible.
42055
42056         sys_stat: guarantee struct timespec
42057         * lib/sys_stat.in.h (includes): Always include <time.h>
42058         * modules/sys_stat (Depends-on): Add time.
42059         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42060         mode_t permission values.
42061         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42062         get at subsecond timestamps.
42063
42064 2009-10-10  Eric Blake  <ebb9@byu.net>
42065
42066         futimens: new module
42067         * modules/futimens: New file.
42068         * lib/futimens.c (futimens): Likewise.
42069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42070         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42071         we can work around Linux bugs.
42072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42073         * modules/sys_stat (Makefile.am): Substitute them.
42074         * lib/sys_stat.in.h (futimens): Declare it.
42075         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42076         * doc/posix-functions/futimens.texi (futimens): Likewise.
42077         * modules/futimens-tests: New test.
42078         * tests/test-futimens.c: Likewise.
42079
42080         utimens: introduce fdutimens
42081         * lib/utimens.h (fdutimens): New prototype.
42082         * lib/utimens.c (gl_futimens): Move guts...
42083         (fdutimens): ...to new interface.
42084         * tests/test-utimens.c (do_fdutimens): Use it.
42085
42086         utimens: add UTIME_NOW and UTIME_OMIT support
42087         * lib/utimens.c (validate_timespec, update_timespec): New helper
42088         functions.
42089         (gl_futimens, lutimens): Use them.
42090         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42091         stdbool, sys_stat.
42092         (Link): Mention resulting library dependency.
42093         * modules/utimecmp (Link): Likewise.
42094         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42095         (Makefile.am): Pick up library dependency.
42096         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42097         definition.
42098         * tests/test-sys_stat.c: Test the definitions.
42099         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42100         * NEWS: Document library dependency.
42101
42102         utimecmp: support symlink timestamps
42103         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42104         hashing when possible.  Use pathconf when available.
42105         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42106         * modules/utimecmp (Depends-on): Add lstat.
42107
42108         utimens: add lutimens interface
42109         * lib/utimens.c (lutimens): New function.
42110         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42111         * lib/utimens.h (lutimens): Declare new interface.
42112         * tests/test-utimens.c (main): Enhance test.
42113         * tests/test-lutimens.h (test_lutimens): New file.
42114         * modules/utimens-tests (Files): Distribute it.
42115         (Depends-on): Add symlink.
42116         (configure.ac): Check for usleep.
42117
42118         utimens: validate futimens usage
42119         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42120         fewer syscalls on failure later on.  Avoid compiler warning on
42121         mingw.
42122         * modules/utimens (Depends-on): Add dup2.
42123
42124         utimens: add test
42125         * modules/utimens-tests: New test.
42126         * tests/test-utimens.h: New file.
42127         * tests/test-futimens.h: Likewise.
42128         * tests/test-utimens.c: Likewise.
42129
42130         doc: mention timestamp portability issues
42131         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42132         instead.
42133         * doc/posix-functions/utime.texi (utime): Likewise.
42134         * doc/posix-functions/utimes.texi (utimes): Likewise.
42135         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42136         instead.
42137         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42138         module.
42139         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42140         Mention weakness with symlink timestamps.
42141         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42142         to utimensat/futimens instead.
42143         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42144
42145         test-dup2: enhance test
42146         * tests/test-dup2.c (main): Also check AT_FDCWD.
42147
42148         test-stat-time: avoid more spurious failures
42149         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42150         xfs; and avoid race if the two timestamps cross quantization edge.
42151
42152         relocatable: prefer 'file system' over 'filesystem'
42153         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42154         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42155         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42156         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42157         * lib/relocatable.c (compute_curr_prefix): Likewise.
42158
42159 2009-10-10  Jim Meyering  <meyering@redhat.com>
42160
42161         stat-time-tests: check for the usleep function
42162         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42163
42164 2009-10-10  Bruno Haible  <bruno@clisp.org>
42165
42166         * modules/xnanosleep: Put the Link section after the Include section.
42167
42168 2009-10-09  Eric Blake  <ebb9@byu.net>
42169
42170         dup2: work around FreeBSD 6.1 bug
42171         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42172         * doc/posix-functions/dup2.texi (dup2): Document it.
42173         Reported by Nelson H. F. Beebe and Jim Meyering.
42174
42175         test-stat-time: port to buggy NFS clients
42176         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42177         (test_ctime): Also skip test if mtime and ctime are skewed.
42178
42179         maint: prefer 'file system' over 'filesystem'
42180         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42181         * doc/posix-functions/lstat.texi (lstat): Likewise.
42182         * lib/file-has-acl.c (file_has_acl): Likewise.
42183         * lib/fwriteerror.c [TEST]: Likewise.
42184         * tests/test-areadlink.h (test_areadlink): Likewise.
42185         * tests/test-areadlinkat-with-size.c (main): Likewise.
42186         * tests/test-areadlinkat.c (main): Likewise.
42187         * tests/test-canonicalize-lgpl.c (main): Likewise.
42188         * tests/test-canonicalize.c (main): Likewise.
42189         * tests/test-fstatat.c (main): Likewise.
42190         * tests/test-linkat.c (main): Likewise.
42191         * tests/test-lstat.h (test_lstat_func): Likewise.
42192         * tests/test-mkdir.h (test_mkdir): Likewise.
42193         * tests/test-readlink.h (test_readlink): Likewise.
42194         * tests/test-remove.c (main): Likewise.
42195         * tests/test-rename.h (test_rename): Likewise.
42196         * tests/test-renameat.c (main): Likewise.
42197         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42198         * tests/test-symlink.h (test_symlink): Likewise.
42199         * tests/test-symlinkat.c (main): Likewise.
42200         * tests/test-unlink.h (test_unlink_func): Likewise.
42201         * tests/test-unlinkat.c (main): Likewise.
42202
42203         maint: make realtime library usage explicit
42204         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42205         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42206         * modules/settime (Link): Likewise.
42207         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42208
42209         test-stat-time: speed up execution
42210         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42211         warning on mingw.
42212         (nap): New helper function.
42213         (prepare_test): Use it to reduce sleep time.
42214         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42215         execution.
42216         * modules/stat-time-tests (configure.ac): Check for usleep.
42217
42218 2009-10-09  Jim Meyering  <meyering@redhat.com>
42219
42220         selinux-h: always use getfilecon wrappers
42221         * lib/getfilecon.c: New file.
42222         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42223         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42224         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42225         (fgetfilecon): Provide a stub.
42226         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42227         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42228         file unconditionally.
42229         When <selinux/selinux.h> is found, arrange to use wrappers.
42230         * modules/selinux-h (Files): Add getfilecon.c.
42231         (Makefile.am): Substitute include-next-related bits
42232         into the now-always-generated selinux/selinux.h file.
42233         * doc/glibc-functions/lgetfilecon.texi: New file.
42234         * doc/glibc-functions/fgetfilecon.texi: New file.
42235         * doc/glibc-functions/getfilecon.texi: New file.
42236         * doc/glibc-functions/getfilecon-desc.texi: New file.
42237         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42238         which to pull in the new files.
42239         * MODULES.html.sh (Misc): Add selinux-h.
42240
42241 2009-10-08  Jim Meyering  <meyering@redhat.com>
42242
42243         unistd: fix comment typo
42244         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42245
42246 2009-10-08  Eric Blake  <ebb9@byu.net>
42247
42248         areadlink: use SIZE_MAX consistently
42249         * modules/areadlink (Depends-on): Add stdint.
42250         * modules/areadlink-with-size (Depends-on): Likewise.
42251         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42252         gives NULL; drop sys/types, since unistd gives size_t; and add
42253         stdint for SIZE_MAX.
42254         (SIZE_MAX): Rely on headers.
42255         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42256         and add stdint.
42257         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42258         (SIZE_MAX): Likewise.
42259         (INITIAL_BUF_SIZE): Turn into enum.
42260         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42261
42262 2009-10-08  Jim Meyering  <meyering@redhat.com>
42263
42264         areadlinkat: avoid compilation failure
42265         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42266         Fix typo in comment.
42267
42268 2009-10-07  Eric Blake  <ebb9@byu.net>
42269
42270         areadlinkat-with-size: new module
42271         * modules/areadlinkat-with-size: New module.
42272         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42273         * lib/areadlink.h (areadlinkat): Declare it.
42274         * MODULES.html.sh (File system functions): Mention it.
42275         * modules/areadlinkat-with-size-tests: New test.
42276         * tests/test-areadlinkat-with-size.c: New file.
42277
42278         xreadlinkat: new module
42279         * modules/xreadlinkat: New module.
42280         * lib/xreadlinkat.c (xreadlinkat): New file.
42281         * lib/xreadlink.h (xreadlinkat): Declare it.
42282         * MODULES.html.sh (File system functions): Mention it.
42283
42284         areadlinkat: new module
42285         * lib/at-func.c (FUNC_FAIL): New define.
42286         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42287         * modules/areadlinkat: New module.
42288         * lib/linkat.c (areadlinkat): Move...
42289         * lib/areadlinkat.c (areadlinkat): ...to new file.
42290         * lib/areadlink.h (areadlinkat): Declare it.
42291         * modules/linkat (Depends-on): Add areadlinkat.
42292         * MODULES.html.sh (File system functions): Mention it.
42293         * modules/areadlinkat-tests: New test.
42294         * tests/test-areadlinkat.c: New file.
42295
42296         areadlink, areadlink-with-size: add tests
42297         * modules/areadlink-tests: New test.
42298         * modules/areadlink-with-size-tests: Likewise.
42299         * tests/test-areadlink.h: New file.
42300         * tests/test-areadlink.c: Likewise.
42301         * tests/test-areadlink-with-size.c: Likewise.
42302
42303         maint: minor cleanups
42304         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42305         _UNUSED_PARAMETER_ instead.
42306         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42307         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42308         * modules/linkat-tests (Files): Distribute test-link.h.
42309
42310         openat, utimens: whitespace cleanup
42311         * lib/openat.c: Prefer space throughout, rather than mix of 8
42312         spaces vs. tabs.
42313         * lib/at-func.c: Likewise.
42314         * lib/utimens.c: Likewise.
42315
42316         openat: avoid using wrong fd
42317         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42318         working directory chooses same fd.
42319         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42320
42321         mkdir, mkdirat: fix cygwin 1.5.x bug
42322         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42324         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42325         bug.
42326         (gl_PREREQ_MKDIR): Delete unused macro.
42327         * modules/mkdir (Files): Track file rename.
42328         (configure.ac): Update macro name.
42329         * modules/openat (Depends-on): Add mkdir.
42330         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42331
42332         mkdir, mkdirat: add tests
42333         * modules/mkdir-tests: New test.
42334         * tests/test-mkdir.h: New file.
42335         * tests/test-mkdir.c: Likewise.
42336         * tests/test-mkdirat.c: Likewise.
42337         * modules/openat-tests (Files): Add new files.
42338         (Makefile.am): Run new test.
42339
42340 2009-10-06  Eric Blake  <ebb9@byu.net>
42341
42342         doc: tweak *at function documentation
42343         * doc/posix-functions/faccessat.texi (faccessat): Mention
42344         known issue with replacement.
42345         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42346         * doc/posix-functions/linkat.texi (linkat): Likewise.
42347         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42348         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42349         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42350         * doc/posix-functions/renameat.texi (renameat): Likewise.
42351         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42352
42353         openat: fix GNU/Hurd bug in unlinkat
42354         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42355         broken.
42356         * doc/posix-functions/unlink.texi (unlink): Document this.
42357         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42358
42359         fdopendir: fix GNU/Hurd bug
42360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42361         allowing non-directory fds.
42362         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42363         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42364         * modules/dirent (Makefile.am): Substitute it.
42365         * lib/dirent.in.h (fdopendir): Declare replacement.
42366         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42367         * tests/test-fdopendir.c (main): Test something other than
42368         /dev/null, since on Hurd that behaves like a directory.
42369
42370         test-symlink: port to GNU/Hurd
42371         * tests/test-symlink.h (test_symlink): Relax expected errno.
42372
42373         doc: tweak more cygwin information
42374         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42375         now compatible with glibc.
42376         * doc/posix-functions/getopt.texi (getopt): Likewise.
42377
42378         getopt-gnu: add another test
42379         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42380         guarantee behavior relied on by m4.
42381         * tests/test-getopt.c (main): Use it.
42382         * modules/getopt-posix-tests (Depends-on): Add setenv.
42383         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42384
42385         getopt: fix compilation on darwin
42386         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42387         include.
42388         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42389         Reported by Ludovic Courtès.
42390
42391 2009-10-06  Bruno Haible  <bruno@clisp.org>
42392
42393         * modules/size_max (Description): Discourage its use.
42394         Reported by Simon Josefsson.
42395
42396 2009-10-06  Jim Meyering  <meyering@redhat.com>
42397
42398         linkat: avoid compilation failure
42399         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42400
42401 2009-10-05  Eric Blake  <ebb9@byu.net>
42402
42403         linkat: support Linux 2.6.17
42404         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42405         linkat on Linux, but allow cache variable override.
42406         * lib/linkat.c (rpl_linkat): Define override.
42407         * modules/linkat (Depends-on): Add symlinkat.
42408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42409         * modules/unistd (Makefile.am): Substitute it.
42410         * lib/unistd.in.h (linkat): Declare replacement.
42411         Reported by Pádraig Brady.
42412
42413         quotearg: port test to systems with C.UTF-8 locale
42414         * tests/test-quotearg.c (struct result_strings): Add another
42415         member, differentiating between C.ASCII and C.UTF-8 handling.
42416         (compare_strings): Add parameter.
42417         (main): Adjust all callers.
42418
42419         getopt: avoid clash with FreeBSD _getopt_internal
42420         * lib/getopt.in.h (_getopt_internal): Override the name.
42421         * lib/getopt_int.h (includes): Pick up any overrides.
42422         Reported by Reuben Thomas.
42423
42424         hash: allow C89 compilation
42425         * lib/hash.c (check_tuning): Move declaration before statement.
42426         Reported by Reuben Thomas.
42427
42428 2009-10-05  Karl Berry  <karl@gnu.org>
42429
42430         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42431
42432 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42433             Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/uname.c (uname): Use a table-driven algorithm to compute
42436         Windows NT versions.
42437
42438 2009-10-04  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42441         program_invocation_short_name.
42442         * modules/progname (configure.ac): Test for presence of
42443         program_invocation_short_name.
42444         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42445
42446 2009-10-04  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/progname.c (set_program_name): Fix comment.
42449         Reported by Jim Meyering.
42450
42451 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42452             Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/uname.c: Include <string.h>.
42455         (uname): Do only one call to GetVersionEx in the common case.
42456
42457 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42458             Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42461         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42462         (uname): Add support for Windows CE and various non-x86 CPU types.
42463
42464 2009-10-03  Bruno Haible  <bruno@clisp.org>
42465
42466         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42467         invocation to tests/configure.ac.
42468         Reported by Ian Beckwith <ianb@erislabs.net>.
42469
42470 2009-10-02  Eric Blake  <ebb9@byu.net>
42471
42472         fchdir: avoid compiler warning
42473         * lib/fchdir.c (canonicalize_file_name)
42474         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42475
42476         test-open: support mingw errno values
42477         * tests/test-open.h (test_open): Relax test.
42478         * tests/test-fopen.h (test_fopen): Likewise.
42479         * tests/test-openat-safer.c (main): Likewise.
42480
42481         open: fix opening directory on mingw
42482         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42483
42484         test-open: on GNU/Hurd, /dev/null is a directory
42485         * tests/test-fopen.h (main): Rename...
42486         (test_fopen): ...to this.  Use a guaranteed non-directory when
42487         confirming open behavior on trailing slash.
42488         * tests/test-openat-safer.c (main): Likewise.
42489         * tests/test-open.h (main): Likewise....
42490         (test_open): ...to this.
42491         * tests/test-fopen.c (main): Adjust caller.
42492         * tests/test-fopen-safer.c (main): Likewise.
42493         * tests/test-open.c (main): Likewise.
42494         * tests/test-fcntl-safer.c (main): Likewise.
42495         Reported by Samuel Thibault.
42496
42497         rename, fchdir: don't ignore chdir failure
42498         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42499         * lib/rename.c (rpl_rename) [W32]: Likewise.
42500         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42501         an empty destination directory if source cannot be renamed,
42502         although there is still possibility for failure.
42503         * doc/posix-functions/rename.texi (rename): Document the race.
42504         Reported by Jim Meyering.
42505
42506         maint: cleanup whitespace in recent commits
42507         * lib/rename.c (rpl_rename): Remove tabs.
42508         * tests/test-link.h (test_link): Likewise.
42509         * lib/fchdir.c (get_name): Likewise.
42510         Reported by Jim Meyering.
42511
42512 2009-10-02  Ben Pfaff  <blp@gnu.org>
42513
42514         relocatable-prog-wrapper: Add missing dependency on
42515         double-slash-root.
42516         * modules/relocatable-prog-wrapper: Add dependency.
42517         Reported by Ian Beckwith <ianb@erislabs.net>.
42518
42519 2009-10-02  Eric Blake  <ebb9@byu.net>
42520
42521         renameat: fix Solaris bugs
42522         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42523         needed fixing.
42524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42525         * modules/stdio (Makefile.am): Substitute it.
42526         * lib/stdio.in.h (renameat): Declare replacement.
42527         * lib/renameat.c (rpl_renameat): Implement fix.
42528
42529         renameat: new module
42530         * modules/renameat: New file.
42531         * lib/renameat.c (renameat): Likewise.
42532         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42534         * modules/stdio (Makefile.am): Substitute them.
42535         * lib/stdio.in.h (renameat): Declare it.
42536         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42537         * doc/posix-functions/renameat.texi (renameat): Likewise.
42538         * modules/renameat-tests: New test.
42539         * tests/test-renameat.c: Likewise.
42540
42541         rename: fix mingw bugs
42542         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42543         directory overwrite bugs.
42544
42545         rename: fix another cygwin 1.5 bug
42546         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42547         checks.
42548         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42549         unnecessary cygwin workarounds.  Also work around bug with moving
42550         full directory onto an empty one.
42551         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42552
42553         rename-dest-slash: merge into rename module
42554         * modules/rename-dest-slash (Status): Mark obsolete.
42555         (Depends-on): Add rename.
42556         (Files): Let rename do it all.
42557         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42558         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42559         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42560         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42561         * lib/rename.c (rpl_rename): Update comments.
42562
42563         rename: fix cygwin 1.5.x bugs
42564         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42565         * lib/rename.c (rpl_rename): Work around them.
42566         * modules/rename (Depends-on): Add same-inode.
42567
42568         rename: fix Solaris 10 bug
42569         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42570         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42571         was the only bug.
42572
42573         rename: fix Solaris 9 bug
42574         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42575         on non-directory.  Avoid calling exit.
42576         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42577         strdup.
42578         * modules/rename-tests (Depends-on): Drop lstat.
42579         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42580         (gl_PREREQ_RENAME): Delete unused macro.
42581
42582         rename-dest-slash: fix NetBSD bug
42583         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42584         links.
42585         * modules/rename-dest-slash (Depends-on): Add same-inode.
42586
42587         rename-tests: new test, exposes several platform bugs
42588         * modules/rename-tests: New file.
42589         * tests/test-rename.h: Likewise.
42590         * tests/test-rename.c: Likewise.
42591         * doc/posix-functions/rename.texi (rename): Improve documentation,
42592         including bugs that will eventually be fixed in gnulib.
42593
42594 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42595
42596         * lib/uname.c: Include <stdlib.h>
42597         (uname): Assume version info is available.
42598
42599 2009-10-02  Jim Meyering  <meyering@redhat.com>
42600
42601         gnu-web-doc-update: correct --help output
42602         * build-aux/gnu-web-doc-update: Make --help output relevant.
42603
42604         gnu-web-doc-update: add standard options
42605         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42606
42607         gnu-web-doc-update: New module.
42608         Use this script to automatically update the on-line web documentation
42609         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42610         * modules/gnu-web-doc-update: New file, from coreutils.
42611         * build-aux/gnu-web-doc-update: New script.
42612
42613 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42614
42615         link: LoadLibrary is not needed.
42616         * lib/link.c: Use GetModuleHandle.
42617
42618 2009-10-01  Eric Blake  <ebb9@byu.net>
42619
42620         getopt: bump serial number
42621         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42622         change.
42623
42624         tests: tighten link, rmdir, and remove tests
42625         * tests/test-link.h (includes): No need to use <config.h> here.
42626         Clean up if directory hard link was created, otherwise test for
42627         trailing '.'.
42628         * tests/test-linkat.c (main): Simplify.
42629         * tests/test-remove.c (main): Enhance test for trailing '.'.
42630         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42631
42632 2009-10-01  Jim Meyering  <meyering@redhat.com>
42633
42634         maint.mk: requiring "make major" was annoying, for a "minor" release.
42635         What is intended is "stable", to contrast with alpha and beta,
42636         so require "make stable", not "make major".
42637         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42638         (get_tool_versions): Likewise.
42639         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42640
42641 2009-09-30  Ben Pfaff  <blp@gnu.org>
42642
42643         Fix broken build of replacement for Windows tmpfile().
42644         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42645         flags argument added along with the 'mkostemp' module.
42646
42647 2009-09-28  Bruno Haible  <bruno@clisp.org>
42648
42649         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42650         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42651         to 'remove_elt'.
42652         (gl_list_remove): Update.
42653         * lib/gl_list.c (gl_list_remove): Update.
42654         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42655         to 'remove_elt'.
42656         (gl_oset_remove): Update.
42657         * lib/gl_list.c (gl_oset_remove): Update.
42658         Reported by Eric Blake.
42659
42660 2009-09-28  Eric Blake  <ebb9@byu.net>
42661
42662         doc: mention yet more cygwin 1.7 status
42663         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42664         cygwin.
42665         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42666         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42667
42668         argp: fix test failure
42669         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42670         that are not upper-case.  Pass correct range to tolower.
42671
42672 2009-09-27  Jim Meyering  <meyering@redhat.com>
42673
42674         test-yesno: work around sparc-dash here-document infelicity
42675         Without this change, the literal \177 byte in a here document
42676         would make dash 0.5.5.1-3 access uninitialized memory.
42677         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42678         Instead, use a marker, "@", and filter through tr to create the desired
42679         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42680
42681 2009-09-27  Bruno Haible  <bruno@clisp.org>
42682
42683         Disable untested support for new flavours of ACLs on AIX.
42684         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42685         progress.
42686         * lib/set-mode-acl.c (qset_acl): Likewise.
42687
42688 2008-12-07  Bruno Haible  <bruno@clisp.org>
42689
42690         Add support for new flavours of ACLs on AIX. (Untested.)
42691         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42692         (file_has_acl): Add support for newer AIX.
42693         * lib/set-mode-acl.c (qset_acl): Likewise.
42694         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42695         Rainer Tammer <tammer@tammer.net>.
42696
42697 2009-09-26  Eric Blake  <ebb9@byu.net>
42698
42699         argp: fix compilation of getopt
42700         * lib/getopt.in.h (includes): Use different guard than glibc.
42701         Reported by Sergey Poznyakoff.
42702
42703         doc: mention more cygwin 1.7 status
42704         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42705         bug.
42706         * doc/posix-functions/execl.texi (execl): Likewise.
42707         * doc/posix-functions/execle.texi (execle): Likewise.
42708         * doc/posix-functions/execlp.texi (execlp): Likewise.
42709         * doc/posix-functions/execv.texi (execv): Likewise.
42710         * doc/posix-functions/execve.texi (execve): Likewise.
42711         * doc/posix-functions/execvp.texi (execvp): Likewise.
42712         * doc/glibc-functions/canonicalize_file_name.texi
42713         (canonicalize_file_name): Cygwin 1.7 now provides this.
42714         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42715         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42716         on AT_SYMLINK_NOFOLLOW.
42717
42718 2009-09-24  Eric Blake  <ebb9@byu.net>
42719
42720         test-linkat: make test more robust
42721         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42722
42723         getopt: fix inclusion guards for cygwin
42724         * modules/getopt-posix (Depends-on): Add include-next.
42725         (Makefile.am): Substitute more items in replacement header.
42726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42727         <getopt.h>.
42728         * lib/getopt.in.h (includes): Use split inclusion guard, and
42729         prefer <getopt.h> over include <unistd.h> when one is present.
42730         (option): Also override name of 'struct option'.
42731
42732         same-inode: revert prior change; it is not yet ready
42733         * NEWS: Undo mention of this change.
42734         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42735         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42736         * lib/cycle-check.c (cycle_check): Likewise.
42737         * lib/same.c (same_name): Likewise.
42738         * lib/at-func2.c (at_func2): Likewise.
42739
42740 2009-09-23  Eric Blake  <ebb9@byu.net>
42741
42742         linkat: new module
42743         * modules/linkat: New file.
42744         * lib/at-func2.c (at_func2): Likewise.
42745         * lib/linkat.c (linkat): Likewise.
42746         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42747         * lib/openat-priv.h (at_func2): Add declaration.
42748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42749         * modules/unistd (Makefile.am): Substitute them.
42750         * lib/unistd.in.h (linkat): Declare it.
42751         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42752         * doc/posix-functions/linkat.texi (linkat): Likewise.
42753         * doc/posix-functions/link.texi (link): Tweak wording.
42754         * tests/test-link.c (main): Move guts...
42755         * tests/test-link.h (test_link): ...into new file.
42756         * modules/linkat-tests: New test.
42757         * tests/test-linkat.c: Likewise.
42758         * modules/link-tests (Files): Ship new file.
42759         (Depends-on): Add stdbool.
42760
42761         dirname: add library-safe mdir_name
42762         * lib/dirname.h (mdir_name): New prototype.
42763         * lib/dirname.c (dir_name): Move guts...
42764         (mdir_name): ...to new function that avoids xalloc_die.
42765
42766         fchdir: another mingw fix
42767         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42768         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42769         on mingw (where it has not yet been ported), and make it optional
42770         elsewhere.
42771         (_gl_register_fd): Use it.
42772
42773         same-inode: make SAME_INODE tri-state, to port to mingw
42774         * NEWS: Mention this change.
42775         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42776         st_ino always being 0.
42777         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42778         * lib/cycle-check.c (cycle_check): Likewise.
42779         * lib/same.c (same_name): Likewise.
42780
42781         lstat: avoid mingw compilation error
42782         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42783         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42784         lstat ourselves.
42785         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42786         was adequate.
42787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42788         the checks for lstat.
42789         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42790
42791         link: fix test failure on Solaris 9
42792         * lib/link.c (rpl_link): Don't assume link will catch bogus
42793         trailing slash on source.
42794
42795         test-symlinkat: enhance test
42796         * tests/test-readlink.c (main): Move guts...
42797         * tests/test-readlink.h (test_readlink): ...into new file.
42798         * tests/test-symlink.c (main): Move guts...
42799         * tests/test-symlink.h (test_symlink): ...into new file.
42800         * tests/test-symlinkat.c (main): Use new files for further
42801         coverage.
42802         (do_symlink, do_readlink): New helper functions.
42803         * modules/symlink-tests (Files): Ship new file.
42804         (Depends-on): Add stdbool.
42805         * modules/readlink-tests (Files): Ship new file.
42806         (Depends-on): Add stdbool.
42807         * modules/symlinkat-tests (Files): Use new files.
42808
42809 2009-09-23  Eric Blake  <ebb9@byu.net>
42810
42811         readlink: document portability issue with symlink length
42812         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42813         systems have bogus st_size on symlinks, and mention the
42814         areadlink-with-size module.
42815         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42816         * doc/posix-functions/readlink.texi (readlink): Mention the
42817         areadlink module, and ERANGE failure.
42818         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42819         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42820
42821         readlink: fix Solaris 9 bug with trailing slash
42822         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42823         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42824         * doc/posix-functions/readlink.texi (readlink): Document this.
42825         * modules/readlink-tests: New test.
42826         * tests/test-readlink.c: Likewise.
42827
42828         readlink: fix cygwin 1.5.x bug with return type
42829         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42830         * lib/unistd.in.h (readlink): Use ssize_t.
42831         * lib/readlink.c (readlink): Likewise.
42832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42833         * modules/unistd (Makefile.am): Substitute it.
42834         * lib/unistd.in.h (readlink): Declare replacement.
42835         * doc/posix-functions/readlink.texi (readlink): Document this.
42836
42837         symlink: use throughout gnulib
42838         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42839         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42840         symlink is not used.
42841         * modules/symlinkat (Depends-on): Add symlink.
42842         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42843         * modules/canonicalize-tests (Depends-on): Likewise.
42844         * modules/lstat-tests (Depends-on): Likewise.
42845         * modules/openat-tests (Depends-on): Likewise.
42846         * modules/remove-tests (Depends-on): Likewise.
42847         * modules/rmdir-tests (Depends-on): Likewise.
42848         * modules/unlink-tests (Depends-on): Likewise.
42849         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42850         * tests/test-canonicalize.c (symlink): Likewise.
42851         * tests/test-fstatat.c (symlink): Likewise.
42852         * tests/test-lstat.c (symlink): Likewise.
42853         * tests/test-remove.c (symlink): Likewise.
42854         * tests/test-rmdir.c (symlink): Likewise.
42855         * tests/test-unlink.c (symlink): Likewise.
42856         * tests/test-unlinkat.c (symlink): Likewise.
42857
42858         symlink: new module, for Solaris 9 bug
42859         * modules/symlink: New file.
42860         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42861         * lib/symlink.c: Likewise.
42862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42863         * modules/unistd (Makefile.am): Substitute them.
42864         * lib/unistd.in.h (symlink): Declare replacement.
42865         * MODULES.html.sh (File system functions): Mention it.
42866         * doc/posix-functions/symlink.texi (symlink): Likewise.
42867         * modules/symlink-tests: New test.
42868         * tests/test-symlink.c: Likewise.
42869
42870 2009-09-23  Bruno Haible  <bruno@clisp.org>
42871
42872         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42873         when needed.
42874         Test case: gnulib-tool --import --with-tests atexit inttypes.
42875         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42876
42877 2009-09-23  Bruno Haible  <bruno@clisp.org>
42878
42879         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42880         subcommand, not in a subshell.
42881
42882 2009-09-22  Eric Blake  <ebb9@byu.net>
42883
42884         unistd: sort replacement declarations
42885         * lib/unistd.in.h: Sort declarations.
42886
42887         open, openat: minor optimization
42888         * lib/open.c (open): If open succeeded, len is non-zero.
42889         * lib/openat.c (rpl_openat): Likewise.
42890
42891         link-follow: ensure correct result
42892         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42893         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42894         distinguish between possible failures.
42895
42896 2009-09-21  Eric Blake  <ebb9@byu.net>
42897
42898         fts: avoid compiler warning
42899         * lib/fts.c (dirent_inode_sort_may_be_useful)
42900         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42901
42902 2009-09-19  Bruno Haible  <bruno@clisp.org>
42903
42904         * lib/progreloc.c (canonicalize_file_name): New declaration.
42905
42906 2009-09-19  Eric Blake  <ebb9@byu.net>
42907
42908         link: fix quoting
42909         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42910
42911         openat: fix openat bugs on Solaris 9
42912         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42913         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42914         * modules/openat (Depends-on): Add open.
42915         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42916         * modules/fcntl-h (Makefile.am): Substitute it.
42917         * lib/fcntl.in.h (openat): Declare replacement.
42918         * doc/posix-functions/openat.texi (openat): Document this.
42919
42920         openat: move fstatat and unlinkat into correct files
42921         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42922         compiled.
42923         * lib/openat.c (fstatat, unlinkat): Move...
42924         * lib/fstatat.c (fstatat): ...into correct files.
42925         * lib/unlinkat.c (unlinkat): Likewise.
42926
42927         openat: fix unlinkat bugs on Solaris 9
42928         * lib/unlinkat.c (unlinkat): New file.
42929         * modules/openat (Depends-on): Add unlink.
42930         (Files): Distribute it.
42931         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42932         trailing slash behavior is broken.
42933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42934         * modules/unistd (Makefile.am): Substitute it.
42935         * lib/unistd.in.h (unlinkat): Declare replacement.
42936         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42937
42938         openat: fix fstatat bugs on Solaris 9
42939         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42940         stat.
42941         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42942
42943         test-unlinkat: enhance test, to expose Solaris 9 bug
42944         * tests/test-unlink.c (main): Factor guts...
42945         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42946         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42947         * tests/test-rmdir.c (main): Adjust caller.
42948         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42949         (unlinker): New helper function.
42950         (rmdirat): Enhance check.
42951         * modules/rmdir-tests (Depends-on): Add stdbool.
42952         * modules/unlink-tests (Depends-on): Likewise.
42953         (Files): Add test-unlink.h.
42954         * modules/openat-tests (Files): Likewise.
42955         (Depends-on): Add unlinkdir.
42956
42957         test-fstatat: new test, to expose Solaris 9 bugs
42958         * tests/test-stat.c (main): Factor guts...
42959         * tests/test-stat.h (test_stat_func): ...into new file.
42960         * tests/test-lstat.c (main): Factor guts...
42961         * tests/test-lstat.h (test_lstat_func): ...into new file.
42962         * tests/test-fstatat.c: New file.
42963         * modules/stat-tests (Files): Add test-stat.h.
42964         * modules/lstat-tests (Files): Add test-lstat.h.
42965         (Depends-on): Add stdbool.
42966         * modules/openat-tests (Depends-on): Add pathmax.
42967         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42968         (Makefile.am): Run new test.
42969
42970         remove: new module, for mingw and Solaris 9 bugs
42971         * modules/remove: New file.
42972         * lib/remove.c: Likewise.
42973         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42975         * modules/stdio (Makefile.am): Use them.
42976         * lib/stdio.in.h (remove): Declare replacement.
42977         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42978         * doc/posix-functions/remove.texi (remove): Likewise.
42979         * modules/remove-tests: New test.
42980         * tests/test-remove.c: Likewise.
42981
42982         unlink: new module, for Solaris 9 bug
42983         * modules/unlink: New file.
42984         * lib/unlink.c: Likewise.
42985         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42987         * modules/unistd (Makefile.am): Use them.
42988         * lib/unistd.in.h (stat): Declare replacement.
42989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42990         * doc/posix-functions/unlink.texi (unlink): Likewise.
42991         * modules/unlink-tests: New test.
42992         * tests/test-unlink.c: Likewise.
42993
42994         lstat: fix Solaris 9 bug
42995         * lib/lstat.c (lstat): Also check for trailing slash on
42996         non-symlink, non-directories.  Use stat module to simplify logic.
42997         * doc/posix-functions/lstat.texi (lstat): Document it.
42998         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42999         (configure.ac): Check for symlink.
43000         * tests/test-lstat.c (main): Add more tests.
43001
43002         stat: add as dependency to other modules
43003         * modules/chown (Depends-on): Add stat.
43004         * modules/euidaccess (Depends-on): Likewise.
43005         * modules/fchdir (Depends-on): Likewise.
43006         * modules/isdir (Depends-on): Likewise.
43007         * modules/link (Depends-on): Likewise.
43008         * modules/lstat (Depends-on): Likewise.
43009         * modules/mkdir-p (Depends-on): Likewise.
43010         * modules/modechange (Depends-on): Likewise.
43011         * modules/open (Depends-on): Likewise.
43012         * modules/readlink (Depends-on): Likewise.
43013         * modules/same (Depends-on): Likewise.
43014
43015         stat: fix Solaris 9 bug
43016         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43017         slash.
43018         * lib/stat.c (rpl_stat): Work around it.
43019         * doc/posix-functions/stat.texi (stat): Update documentation.
43020
43021         stat: new module, for mingw bug
43022         * modules/stat: New file.
43023         * lib/stat.c: Likewise.
43024         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43026         * modules/sys_stat (Makefile.am): Use them.
43027         * lib/sys_stat.in.h (stat): Declare replacement.
43028         * lib/openat.c (fstatat): Deal with lstat and stat being function
43029         macros.
43030         * modules/openat (Depends-on): Add inline.
43031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43032         * doc/posix-functions/stat.texi (stat): Likewise.
43033         * modules/stat-tests: New test.
43034         * tests/test-stat.c: Likewise.
43035
43036 2009-09-19  Jim Meyering  <meyering@redhat.com>
43037
43038         syntax-check: detect unnecessary inclusion of canonicalize.h
43039         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43040
43041 2009-09-19  Eric Blake  <ebb9@byu.net>
43042
43043         canonicalize-lgpl: adjust clients to use correct header
43044         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43045         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43046         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43047         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43048         * lib/progreloc.c (includes): Likewise.
43049
43050 2009-09-19  Jim Meyering  <meyering@redhat.com>
43051
43052         test-posixtm.c: correct a comment
43053         * tests/test-posixtm.c: Correct first-line comment.
43054         Spotted by Eric Blake.
43055
43056 2009-09-16  Jim Meyering  <meyering@redhat.com>
43057
43058         posixtm-tests: make T const-correct; add a test case
43059         * tests/test-posixtm.c (T): Declare const.
43060         Add a test for -(2^31+1).
43061         Remove useless can-succeed-only-in-2002 test.
43062
43063         posixtm-tests: adjust the sole failing test
43064         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43065         expected output matches what mktime now produces.  Cross-checked via
43066         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43067
43068         posixtm: move #ifdef'd tests into a new module
43069         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43070         * tests/test-posixtm.c: ... this new file.
43071         * modules/posixtm-tests: New module.
43072
43073 2009-09-19  Eric Blake  <ebb9@byu.net>
43074
43075         openat: simplify use of at-func.c
43076         * lib/at-func.c (includes): Include prerequisites here, to
43077         simplify requirements on client files.
43078         * lib/openat-priv.h: Add double-inclusion guard.
43079         * lib/faccessat.c (includes): Simplify.
43080         * lib/fchmodat.c (includes): Likewise.
43081         * lib/fchownat.c (includes): Likewise.
43082         * lib/mkdirat.c (includes): Likewise.
43083         * lib/mkfifoat.c (includes): Likewise.
43084         * lib/symlinkat.c (includes): Likewise.
43085
43086         openat: allow return of fd 0
43087         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43088         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43089         unistd-safer.
43090         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43091         <fcntl.h>; this module does not leak fds.
43092         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43093         must be allowed to return 0, leaving openat_safer to add the
43094         safety.
43095         (openat_permissive): Avoid writing to just-opened fd 2 if
43096         restoring the current directory fails.
43097         * lib/openat-die.c (openat_restore_fail): Add comment.
43098         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43099         (save_cwd): Guarantee safe fd, but without use of open_safer.
43100         * tests/test-openat.c: New test.
43101         * modules/openat-tests (Files, Makefile.am): Distribute and build
43102         new file.
43103
43104         relocatable-prog-wrapper: fix build
43105         * modules/relocatable-prog-wrapper (Files): Update name of
43106         canonicalize m4 file, broken on 2009-09-17.
43107         Reported by emad hajjar <aleppos@hotmail.com>.
43108
43109 2009-09-19  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43112         * lib/safe-alloc.c: Likewise.
43113         Reported by Ian Beckwith <ianb@erislabs.net>.
43114
43115 2009-09-18  Bruno Haible  <bruno@clisp.org>
43116
43117         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43118         Reported by <erobles@sensacd.com.mx>.
43119
43120 2009-09-17  Eric Blake  <ebb9@byu.net>
43121
43122         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43123         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43124         slashes when checking if last component is missing.
43125         * tests/test-canonicalize.c (main): Test this.
43126
43127         canonicalize, canonicalize-lgpl: honor // if distinct from /
43128         * modules/canonicalize (Files): Add double-slash-root.m4.
43129         * modules/canonicalize-lgpl (Files): Likewise.
43130         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43131         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43132         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43133         fallback definition.
43134         (canonicalize_filename_mode): Use it to protect //.
43135         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43136         (__realpath): Likewise.
43137         * tests/test-canonicalize.c (main): Test this.
43138         * tests/test-canonicalize-lgpl.c (main): Likewise.
43139         * modules/canonicalize-tests (Depends-on): Add same-inode.
43140         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43141
43142         canonicalize-lgpl: fix glibc bug with trailing slash
43143         * m4/canonicalize-lgpl.m4: Move contents...
43144         * m4/canonicalize.m4: ...here.
43145         (gl_CANONICALIZE_LGPL): Factor realpath check...
43146         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43147         glibc 2.3.5 bug, fixed 2005-04-27.
43148         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43149         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43150         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43151         * modules/canonicalize-lgpl (Files): Manage file rename.
43152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43153         * modules/stdlib (Makefile.am): Substitute witness.
43154         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43155         is needed.
43156         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43157         replacement is required.
43158         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43159         * doc/glibc-functions/canonicalize_file_name.texi
43160         (canonicalize_file_name): Document this.
43161         * doc/posix-functions/realpath.texi (realpath): Likewise.
43162
43163         canonicalize-lgpl: reject non-directory with trailing slash
43164         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43165         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43166         catches failures in glibc 2.3.5.
43167         * tests/test-canonicalize.c (main): Likewise.
43168
43169         canonicalize-lgpl: use native realpath if it works
43170         * lib/canonicalize-lgpl.c (realpath): Guard with
43171         FUNC_REALPATH_WORKS.
43172         * lib/stdlib.in.h (realpath): Make declaration optional based on
43173         HAVE_REALPATH.
43174         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43175         native realpath works.
43176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43177         * modules/stdlib (Makefile.am): Substitute witness.
43178
43179         canonicalize, canonicalize-lgpl: use <stdlib.h>
43180         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43181         (Include): Mention <stdlib.h>.
43182         (configure.ac): Mention functions we provide.
43183         * modules/canonicalize (configure.ac): Likewise.
43184         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43185         realpath if canonicalize_file_name is missing.
43186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43187         * modules/stdlib (Makefile.am): Substitute witnesses.
43188         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43189         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43190         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43191         * NEWS: Document this.
43192         * doc/glibc-functions/canonicalize_file_name.texi
43193         (canonicalize_file_name): Likewise.
43194         * doc/posix-functions/realpath.texi (realpath): Likewise.
43195         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43196
43197         test-canonicalize: consolidate into single C program
43198         * tests/test-canonicalize.sh: Delete; move setup into...
43199         * tests/test-canonicalize.c (main): ...the program, making it
43200         easier to run in debugger.  Add some tests.
43201         * modules/canonicalize-tests (Files): Remove unused file.
43202         (Depends-on): Add progname.
43203         (configure.ac, Makefile.am): Simplify.
43204
43205         test-canonicalize-lgpl: consolidate into single C program
43206         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43207         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43208         easier to run in debugger.  Add some tests.
43209         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43210         (configure.ac, Makefile.am): Simplify.
43211
43212         canonicalize: avoid resolvepath
43213         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43214         unnecessary checks.
43215         * lib/canonicalize.c (includes): Simplify.
43216         (canonicalize_file_name): Drop resolvepath implementation.
43217         * modules/canonicalize (Depends-on): Drop filenamecat.
43218
43219         canonicalize: don't lose errno
43220         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43221         over calls to free.
43222
43223         canonicalize: simplify errno handling
43224         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43225         assignment.
43226
43227         canonicalize, canonicalize-lgpl: update module dependencies
43228         * modules/canonicalize (Depends-on): Add extensions, lstat,
43229         pathmax, stdlib.
43230         (Files): Drop pathmax.h.
43231         (configure.ac): Adjust macro name.
43232         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43233         lstat, stdlib, sys_stat.
43234         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43235         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43236         extensions.
43237         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43238         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43239         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43240         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43241         declaration, if available.
43242         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43243         we can rely on the readlink module.
43244         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43245         (includes): Use <unistd.h> unconditionally.
43246
43247 2009-09-17  Eric Blake  <ebb9@byu.net>
43248
43249         maint: make Include sections of modules consistent
43250         * modules/alloca: Use only header name; no need to list #include.
43251         * modules/alloca-opt: Likewise.
43252         * modules/arpa_inet: Likewise.
43253         * modules/canon-host: Likewise.
43254         * modules/configmake: Likewise.
43255         * modules/dirent: Likewise.
43256         * modules/eealloc: Likewise.
43257         * modules/environ: Likewise.
43258         * modules/fchdir: Likewise.
43259         * modules/fcntl: Likewise.
43260         * modules/fcntl-h: Likewise.
43261         * modules/gethrxtime: Likewise.
43262         * modules/gettime: Likewise.
43263         * modules/ignore-value: Likewise.
43264         * modules/inet_ntop: Likewise.
43265         * modules/inet_pton: Likewise.
43266         * modules/inttypes: Likewise.
43267         * modules/isnand-nolibm: Likewise.
43268         * modules/isnanf-nolibm: Likewise.
43269         * modules/mbchar: Likewise.
43270         * modules/mbfile: Likewise.
43271         * modules/mbiter: Likewise.
43272         * modules/mbuiter: Likewise.
43273         * modules/netdb: Likewise.
43274         * modules/netinet_in: Likewise.
43275         * modules/nproc: Likewise.
43276         * modules/pagealign_alloc: Likewise.
43277         * modules/poll: Likewise.
43278         * modules/printf-frexp: Likewise.
43279         * modules/pthread: Likewise.
43280         * modules/putenv: Likewise.
43281         * modules/random_r: Likewise.
43282         * modules/relocatable-prog: Likewise.
43283         * modules/search: Likewise.
43284         * modules/select: Likewise.
43285         * modules/selinux-h: Likewise.
43286         * modules/settime: Likewise.
43287         * modules/signal: Likewise.
43288         * modules/size_max: Likewise.
43289         * modules/socklen: Likewise.
43290         * modules/ssize_t: Likewise.
43291         * modules/stdarg: Likewise.
43292         * modules/stdbool: Likewise.
43293         * modules/stddef: Likewise.
43294         * modules/stdint: Likewise.
43295         * modules/stdio: Likewise.
43296         * modules/stdlib: Likewise.
43297         * modules/string: Likewise.
43298         * modules/strings: Likewise.
43299         * modules/sys_file: Likewise.
43300         * modules/sys_ioctl: Likewise.
43301         * modules/sys_select: Likewise.
43302         * modules/sys_socket: Likewise.
43303         * modules/sys_stat: Likewise.
43304         * modules/sys_time: Likewise.
43305         * modules/sys_times: Likewise.
43306         * modules/sys_utsname: Likewise.
43307         * modules/sys_wait: Likewise.
43308         * modules/sysexits: Likewise.
43309         * modules/time: Likewise.
43310         * modules/times: Likewise.
43311         * modules/tmpfile: Likewise.
43312         * modules/trim: Likewise.
43313         * modules/unistd: Likewise.
43314         * modules/wchar: Likewise.
43315         * modules/wctype: Likewise.
43316
43317 2009-09-17  Bruno Haible  <bruno@clisp.org>
43318
43319         Make getdate.y compile on QNX and NetBSD 5 / i386.
43320         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43321         TIME_T_FITS_IN_LONG_INT.
43322         * lib/getdate.y (long_time_t): New type.
43323         (relative_time): Change type of 'seconds' field to long_time_t.
43324         (get_date): Update types of local variables. Check against overflow
43325         during conversion from long_time_t to time_t.
43326         Reported by Matt Kraai <kraai@ftbfs.org>
43327         and Hasso Tepper <hasso@netbsd.org>.
43328
43329 2009-09-17  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/COPYING: Update copyright years.
43332         * modules/README: Likeiwse.
43333         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43334         Reported by Ian Beckwith <ianb@erislabs.net>.
43335
43336 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43337
43338         * users.txt: Update references for gnuit package.
43339
43340 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43341
43342         * m4/getdelim.m4: Fix typo in copyright line.
43343
43344 2009-09-17  Bruno Haible  <bruno@clisp.org>
43345
43346         * lib/atoll.c: Use the standard header with GPL copyright.
43347         * lib/argz.in.h: Likewise.
43348         * lib/glob.c: Likewise.
43349         * lib/glob-libc.h: Likewise.
43350         * lib/random_r.c: Likewise.
43351         * lib/siglist.h: Likewise.
43352         * lib/strsignal.c: Likewise.
43353         Reported by Ian Beckwith <ianb@erislabs.net>.
43354
43355 2009-09-17  Eric Blake  <ebb9@byu.net>
43356
43357         rmdir: ensure correct dependency order
43358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43359
43360 2009-09-17  Bruno Haible  <bruno@clisp.org>
43361
43362         Disable assertion that fails on NetBSD 5 / i386.
43363         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43364         Reported by Sam Steingold <sds@gnu.org>
43365         and Hasso Tepper <hasso@netbsd.org>.
43366
43367 2009-09-16  Eric Blake  <ebb9@byu.net>
43368
43369         unlinkdir: port to mingw
43370         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43371         on which no one can unlink a directory.
43372
43373         stdlib: sort witness names
43374         * modules/stdlib (Makefile.am): Sort replacements.
43375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43376         * lib/stdlib.in.h: Likewise.
43377
43378         parse-duration-tests: avoid link failure
43379         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43380         LIBINTL.
43381         Reported by Tom G. Christensen.
43382
43383         openat-tests: ensure unlinkat behaves like rmdir
43384         * tests/test-rmdir.c (main): Factor guts...
43385         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43386         * modules/rmdir-tests (Files): Ship new file.
43387         * modules/openat-tests: New test.
43388         * tests/test-unlinkat.c: Likewise.
43389
43390         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43391         * modules/rmdir-errno (Status, Notice): Now obsolete.
43392
43393         rmdir: work around cygwin 1.5.x and mingw bugs
43394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43395         * lib/rmdir.c (rmdir): Work around it.
43396         * modules/rmdir (Status, Notice): No longer obsolete.
43397         (Files): Add dos.m4.
43398         (Depends-on): Add unistd.
43399         (configure.ac): Set witnesses.
43400         (License): Relax to LGPLv2+.
43401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43402         * modules/unistd (Makefile.am): Substitute witnesses.
43403         * lib/unistd.in.h (rmdir): Declare replacement.
43404         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43405         * modules/rmdir-tests: New tests.
43406         * tests/test-rmdir.c: Likewise.
43407
43408 2009-09-15  Eric Blake  <ebb9@byu.net>
43409
43410         fchdir: improve use of replacement functions
43411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43413         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43414         REPLACE_CLOSEDIR.
43415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43416         * modules/sys_stat (Makefile.am): Substitute correct witness.
43417         * modules/dirent (Makefile.am): Likewise.
43418         * modules/unistd (Makefile.am): Likewise.
43419         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43420         * lib/unistd.in.h (dup): Likewise.
43421         * lib/sys_stat.in.h (fstat): Likewise.
43422
43423         maint: ignore gnulib-tool temp files
43424         * .gitignore: Ignore files created during gnulib-tool --test.
43425
43426 2009-09-13  Jim Meyering  <meyering@redhat.com>
43427
43428         posixtm: don't reject a time that specify "60" as the number of seconds
43429         * lib/posixtm.c (posixtime): The code to reject invalid dates
43430         would also reject a time specified with the .60 suffix.
43431         But POSIX allows that, in order to accommodate leap seconds.
43432         So don't reject it.
43433         (main): Adjust tests accordingly.
43434         * modules/posixtm (Depends-on): Add stpcpy.
43435
43436 2009-09-11  Jim Meyering  <meyering@redhat.com>
43437
43438         announce-gen: include [$release_type] in emitted Subject:
43439         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43440         e.g., [stable] in the emitted Subject: line.
43441
43442 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43443
43444         Remove obsolete macros from several modules.
43445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43446         obsolete Autoconf macros with their modern counterparts.
43447         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43448         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43450         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43451         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43452         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43454         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43455         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43456         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43457         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43458         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43459         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43460         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43461         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43462         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43463         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43464         * m4/time_r.m4 (gl_TIME_R): Likewise.
43465         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43466         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43467         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43468
43469         Fix copyright header in build-aux scripts.
43470         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43471         recommendation.
43472         * build-aux/ncftpput-ftp: Likewise.
43473         * build-aux/update-copyright: Likewise.
43474
43475 2009-09-09  Eric Blake  <ebb9@byu.net>
43476
43477         test-link: allow Linux choice of errno
43478         * tests/test-link.c (main): Relax test for alternate error.
43479
43480         strndup: fix improper m4 caching
43481         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43482         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43483         (gl_PREREQ_STRNDUP): Delete.
43484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43485         * modules/string (Makefile.am): Substitute it.
43486         * lib/string.in.h (strndup): Modernize prototype.
43487
43488         getcwd: port to mingw
43489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43490         different from the POSIX assumptions made throughout the getcwd
43491         module; fortunately, the mingw getcwd does not need replacement.
43492         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43493         * modules/getcwd-tests: New test.
43494         * tests/test-getcwd.c: Likewise.
43495
43496         link: fix platform bugs
43497         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43498         * lib/link.c (link): Work around them.  Fix related mingw bug.
43499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43500         * modules/unistd (Makefile.am): Substitute it.
43501         * lib/unistd.in.h (link): Declare replacement.
43502         * doc/posix-functions/link.texi (link): Document this.
43503         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43504
43505         test-link: consolidate into single C program, test more cases
43506         * tests/test-link.sh: Delete.
43507         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43508         at least Cygwin and Solaris.
43509         * modules/link-tests (Files): Remove unused file.
43510         (Depends-on): Add errno, sys_stat.
43511         (Makefile.am): Simplify.
43512
43513 2009-09-08  Bruno Haible  <bruno@clisp.org>
43514
43515         Work around towlower, towupper bug on mingw.
43516         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43517         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43518         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43519         * doc/posix-functions/towupper.texi: Likewise.
43520         Reported by Eric Blake.
43521
43522 2009-09-08  Jim Meyering  <meyering@redhat.com>
43523
43524         build: don't try to run autoheader if we don't use it
43525         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43526         is not used in configure.ac.
43527
43528 2009-09-08  Eric Blake  <ebb9@byu.net>
43529
43530         euidaccess: fix compilation error
43531         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43532
43533         rawmemchr: relax license
43534         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43535         okay.
43536         Reported by Jim Meyering.
43537
43538         mkfifoat: new module
43539         * modules/mkfifoat: New file.
43540         * lib/mkfifoat.c: Likewise.
43541         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43543         * modules/sys_stat (Makefile.am): Use them.
43544         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43545         * MODULES.html.sh (File system functions): Mention module.
43546         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43547         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43548         * modules/mkfifoat-tests: New test.
43549         * tests/test-mkfifoat.c: Likewise.
43550
43551         strchrnul: relax license
43552         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43553         okay.
43554         Reported by Jim Meyering.
43555
43556 2009-09-08  Eric Blake  <ebb9@byu.net>
43557
43558         fstatat: fix compilation on Solaris
43559         * lib/fstatat.c (includes): Add fcntl.h.
43560         Reported by Pádraig Brady.
43561
43562 2009-09-07  Eric Blake  <ebb9@byu.net>
43563
43564         rename: modernize replacement
43565         * modules/rename (Depends-on): Add stdio.
43566         (configure.ac): Declare witness.
43567         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43568         stdio take care of replacement.
43569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43570         * modules/stdio (Makefile.am): Substitute them.
43571         * lib/stdio.in.h (rename): Declare replacement.
43572         * lib/rename.c (includes): Allow cross-compilation to non-windows
43573         machines.
43574         * doc/posix-functions/rename.texi (rename): Improve
43575         documentation.
43576
43577         stdio: sort witness names
43578         * modules/stdio (Makefile.am): Sort replacements.
43579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43580         * lib/stdio.in.h: Likewise.
43581
43582         getcwd: minor cleanups
43583         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43584         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43585
43586         openat: provide more convenience names
43587         * modules/faccessat (configure.ac): Add C witness.
43588         * lib/unistd.in.h (readlinkat): Fix typo.
43589         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43590         convenience wrappers.
43591         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43592         wrappers in syntax checks.
43593
43594 2009-09-06  Eric Blake  <ebb9@byu.net>
43595
43596         doc: fix comments in recent patches
43597         * lib/faccessat.c: Mention correct function.
43598         * lib/fchmodat.c: Likewise.
43599         * lib/fchownat.c: Likewise.
43600         * lib/symlinkat.c: Likewise.
43601         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43602         constants.
43603
43604         faccessat, symlinkat: continue cleanup of previous patch
43605         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43606         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43607         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43609         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43610         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43611         set.
43612
43613 2009-09-06  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43616         (fstatat): Declare if GNULIB_FSTATAT is set.
43617         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43618         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43619         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43620         * modules/fcntl-h (Files): Remove m4/openat.m4.
43621         * modules/sys_stat (Files): Remove m4/openat.m4.
43622         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43623         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43624         * modules/unistd (Files): Remove m4/openat.m4.
43625         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43626         GNULIB_OPENAT.
43627         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43628         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43630         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43631         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43632         gl_OPENAT_DEFAULTS.
43633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43634         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43635         Don't require gl_OPENAT_DEFAULTS.
43636         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43637         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43638         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43639         (gl_OPENAT_DEFAULTS): Remove macro.
43640
43641 2009-09-06  Bruno Haible  <bruno@clisp.org>
43642
43643         * modules/openat (configure.ac): Remove unneeded witness.
43644
43645 2009-09-06  Bruno Haible  <bruno@clisp.org>
43646
43647         Set errno to ENOSYS when a function is entirely unsupported.
43648         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43649         EOPNOTSUPP.
43650         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43651         * modules/chown (Depends-on): Remove errno.
43652
43653 2009-09-06  Bruno Haible  <bruno@clisp.org>
43654
43655         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43656
43657 2009-09-06  Bruno Haible  <bruno@clisp.org>
43658
43659         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43660
43661 2009-09-06  Ben Pfaff  <blp@gnu.org>
43662             Bruno Haible  <bruno@clisp.org>
43663
43664         Work around a glibc bug in strtok_r.
43665         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43666         Undefine if UNDEFINE_STRTOK_R is set.
43667         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43669         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43671         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43672         UNDEFINE_STRTOK_R.
43673         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43674
43675 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43676
43677         exclude: minor fix
43678         * lib/exclude.c: Include wctype.h
43679
43680 2009-09-06  Akim Demaille  <demaille@gostai.com>
43681
43682         bootstrap: improve error message
43683         * build-aux/bootstrap (find_tool): Upon failure, report the list
43684         of candidates.
43685         Honor the initial value of the envvar.
43686
43687 2009-09-05  Eric Blake  <ebb9@byu.net>
43688
43689         symlinkat: new module
43690         * modules/symlinkat: New file.
43691         * lib/symlinkat.c: Likewise.
43692         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43694         * modules/unistd (Makefile.am): Use them.
43695         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43696         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43697         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43698         * MODULES.html.sh (File system functions): Mention module.
43699         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43700         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43701         * modules/symlinkat-tests: New test.
43702         * tests/test-symlinkat.c: Likewise.
43703
43704         test-openat-safer: add more checks
43705         * tests/test-openat-safer.c (main): Check more code paths.
43706
43707 2009-09-05  Jim Meyering  <meyering@redhat.com>
43708
43709         syntax-check: detect unnecessary inclusion of openat.h
43710         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43711
43712 2009-09-05  Bruno Haible  <bruno@clisp.org>
43713
43714         Support towlower, towupper.
43715         * doc/posix-functions/towlower.texi: Mention module wctype.
43716         * doc/posix-functions/towupper.texi: Likewise.
43717         * lib/wctype.in.h (towlower, towupper): New functions.
43718         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43719         (ASSERT): New macro.
43720         (e): New variable.
43721         (main): Test also towlower, towupper. Test WEOF argument.
43722         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43723
43724 2009-09-05  Bruno Haible  <bruno@clisp.org>
43725
43726         Fix conversion behaviour when the input is invalid.
43727         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43728         mark occurring in first pass of indirect conversion.
43729         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43730         input.
43731         Found by clang's static analyzer.
43732
43733 2009-09-05  Bruno Haible  <bruno@clisp.org>
43734
43735         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43736         where direct conversion is possible.
43737
43738 2009-09-04  Eric Blake  <ebb9@byu.net>
43739
43740         openat: fail with ENOENT on empty name
43741         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43742         buffer.
43743
43744         link-follow: fix logic bug in prior patch
43745         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43746         reversed sense of yes and no in prior patch.  Avoid confusing
43747         compilation failure with desired semantics.
43748
43749         link-follow: accommodate mingw and cross-compilation
43750         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43751         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43752         cross-compilation results to -1, to make linkat easier to
43753         implement when cross-compiling.  Trivially support mingw.
43754         * modules/link-follow (configure.ac): Call new name.
43755         * NEWS: Mention this.
43756
43757 2009-09-03  Eric Blake  <ebb9@byu.net>
43758
43759         faccessat: compile replacement
43760         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43761         needed.
43762
43763         fts: fix compilation error
43764         * lib/fts.c (includes): Re-add "openat.h", for
43765         openat_needs_fchdir.
43766
43767         faccessat: new module
43768         * modules/faccessat: New file.
43769         * lib/faccessat.c: Likewise.
43770         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43772         * modules/unistd (Makefile.am): Use it.
43773         * lib/unistd.in.h (faccessat): Declare it.
43774         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43775         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43776         * MODULES.html.sh (File system functions): Mention it.
43777         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43778         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43779
43780         euidaccess: prefer POSIX over non-standard implementation
43781         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43782         * lib/euidaccess.c (euidaccess): Use it if available.
43783
43784         openat: make template easier to use
43785         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43786         AT_FUNC_F2 to be undefined.
43787         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43788         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43789         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43790         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43791         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43792         Likewise.
43793         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43794         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43795         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43796         Likewise.
43797
43798         openat: declare in POSIX headers
43799         * NEWS: Mention this.
43800         * modules/openat (configure.ac): Declare witnesses.
43801         (Depends-on): Add fcntl-h, sys_stat, unistd.
43802         (Include): Mention correct headers.
43803         * modules/fcntl-h (Depends-on): Add link-warning.
43804         (Files): Add openat.m4.
43805         (Makefile.am): Substitute witnesses.
43806         * modules/sys_stat (Files, Makefile.am): Likewise.
43807         * modules/unistd (Files, Makefile.am): Likewise.
43808         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43809         (gl_OPENAT_DEFAULTS): New macro.
43810         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43813         (SYS_STAT_H): Remove unused variable.
43814         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43815         * lib/fcntl--.h (includes): Remove unneeded header.
43816         * lib/openat-safer.c (includes): Likewise.
43817         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43818         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43819         appropriate headers.
43820         (__OPENAT_PREFIX): Delete.
43821         * lib/fcntl.in.h (openat): Provide declaration.
43822         (AT_FDCWD): Fix Solaris bug.
43823         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43824         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43825         * lib/fchmodat.c (includes):  Adjust to find declaration.
43826         * lib/fchownat.c (includes): Likewise.
43827         * lib/mkdirat.c (includes): Likewise.
43828         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43829         still visible.
43830
43831 2009-09-02  Eric Blake  <ebb9@byu.net>
43832
43833         errno: use consistently
43834         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43835         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43836         * lib/canonicalize.c (ELOOP): Likewise.
43837         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43838         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43839         * lib/lchown.c (EOPNOTSUPP): Likewise.
43840         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43841         * lib/savewd.c (ESTALE): Likewise.
43842         * lib/settime.c (ENOSYS): Likewise.
43843         * lib/utimens.c (ENOSYS): Likewise.
43844         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43845         * lib/chdir-safer.c (ELOOP): Likewise.
43846         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43847         * modules/c-stack (Depends-on): Add errno.
43848         * modules/canonicalize (Depends-on): Likewise.
43849         * modules/chdir-safer (Depends-on): Likewise.
43850         * modules/fdopendir (Depends-on): Likewise.
43851         * modules/inet_ntop (Depends-on): Likewise.
43852         * modules/inet_pton (Depends-on): Likewise.
43853         * modules/lchown (Depends-on): Likewise.
43854         * modules/openat (Depends-on): Likewise.
43855         * modules/savewd (Depends-on): Likewise.
43856         * modules/settime (Depends-on): Likewise.
43857         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43858
43859         fts: avoid leaking fds
43860         * modules/fts (Depends-on): Add cloexec.
43861         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43862         flag.
43863
43864         fts: make directory fds more robust
43865         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43866         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43867
43868         backupfile, chdir-long, fts, savedir: make safer
43869         * lib/backupfile.c (includes): Use "dirent--.h", since
43870         numbered_backup can write to stderr during readdir.
43871         * lib/savedir.c (includes): Likewise.
43872         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43873         emulation can write to stderr on failure.
43874         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43875         * lib/getcwd.c: Document why opendir_safer is unused.
43876         * lib/glob.c: Likewise.
43877         * lib/scandir.c: Likewise.
43878         * lib/openat-proc.c: Likewise, for open_safer.
43879         * modules/backupfile (Depends-on): Add dirent-safer.
43880         * modules/savedir (Depends-on): Likewise.
43881         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43882         * modules/chdir-long (Depends-on): Add openat-safer.
43883
43884         openat-safer: new module
43885         * modules/openat-safer: New file.
43886         * lib/openat-safer.c: Likewise.
43887         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43888         * lib/fcntl-safer.h (openat_safer): Declare.
43889         * lib/fcntl--.h (openat): Override.
43890         * MODULES.html.sh (File descriptor based I/O): Mention it.
43891         * lib/openat.h: Add double-inclusion guards.
43892         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43893         "fcntl--.h", so we can implement openat.
43894         * modules/openat-safer-tests: New test.
43895         * tests/test-openat-safer.c: New file.
43896
43897         dirent-safer: new module
43898         * modules/dirent-safer: New file.
43899         * lib/dirent--.h: Likewise.
43900         * lib/dirent-safer.h: Likewise.
43901         * lib/opendir-safer.c: Likewise.
43902         * m4/dirent-safer.m4: Likewise.
43903         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43904         * modules/dirent-safer-tests: New test.
43905         * tests/test-dirent-safer.c: New file.
43906         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43907
43908         fdopendir: optimize on mingw
43909         * lib/unistd.in.h (_gl_directory_name): New prototype.
43910         * lib/fchdir.c (_gl_directory_name): Implement it.
43911         (fchdir): Use it to simplify implementation.
43912         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43913         fchdir, when available, to avoid calling [f]chdir().
43914
43915         fdopendir: split into its own module
43916         * lib/openat.c (fdopendir): Move...
43917         * lib/fdopendir.c: ...into new file.
43918         * modules/fdopendir: New module.
43919         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43920         * modules/openat (Depends-on): Add fdopendir.
43921         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43922         fdopendir here.
43923         * modules/savedir (Depends-on): Only need fdopendir, not full
43924         openat.
43925         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43926         * lib/openat.h (fdopendir): Drop prototype.
43927         * lib/dirent.in.h (fdopendir): Provide prototype.
43928         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43929         * modules/dirent (Makefile.am): Substitute them.
43930         * MODULES.html.sh (File system functions): Mention it.
43931         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43932         * modules/fdopendir-tests: New file.
43933         * tests/test-fdopendir.c: Likewise.
43934
43935         fchdir: use more consistent macro convention
43936         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43937         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43938         REPLACE_FCHDIR, rather than relying on config.h macros.
43939         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43940         inside a single make-time REPLACE_FCHDIR block, rather than using
43941         the config.h FCHDIR_REPLACEMENT.
43942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43943         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43944         Manage fstat replacement.
43945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43946         REPLACE_FCHDIR.
43947         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43948         (Makefile.am): Substitute REPLACE_FCHDIR.
43949         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43950         FCHDIR_REPLACEMENT.
43951         * lib/dup-safer.c (dup_safer): Likewise.
43952         * lib/dup2.c (rpl_dup2): Likewise.
43953         * lib/dup3.c (rpl_dup3): Likewise.
43954         * lib/open.c (rpl_open): Likewise.
43955
43956         fchdir: simplify error handling, and support dup3
43957         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43958         stdbool, malloc-posix, realloc-posix.
43959         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43960         (ensure_dirs_slot): Return false on allocation failure.
43961         (rpl_dup2): Delete.
43962         (_gl_register_dup): New function.
43963         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43964         (_gl_register_fd): Close fd on allocation failure.
43965         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43966         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43967         prototype.
43968         (rpl_dup2_fchdir): Delete prototype.
43969         * lib/open.c (open): Update caller.
43970         * lib/dup2.c (dup2): Track fchdir metadata.
43971         * lib/dup3.c (dup3): Likewise.
43972         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43974
43975 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43976
43977         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43978         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43979         don't pass arguments to AC_OUTPUT.
43980
43981 2009-09-02  Bruno Haible  <bruno@clisp.org>
43982
43983         * modules/mkdtemp (License): Relicense under LGPLv2+.
43984         Reported by Paolo Bonzini.
43985
43986 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43987
43988         Replace uses of obsolete autoconf macros in Jim's modules.
43989         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43990         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43991         can evoke a warning from autoconf when run with -Wobsolete
43992         enabled.  They were declared obsolete for good reasons (see
43993         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43994         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43995         should not continue using the deprecated macros.
43996         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43997         obsolete Autoconf macros with modern counterparts.
43998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43999         * m4/dos.m4 (gl_AC_DOS): Likewise.
44000         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44002         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44003         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44006         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44007         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44008         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44009         Likewise.
44010         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44011         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44013         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44014         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44015         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44016
44017 2009-09-01  Eric Blake  <ebb9@byu.net>
44018
44019         fchdir: fix off-by-one bug in previous patch
44020         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44021         (_gl_unregister_fd): Delete useless if.
44022
44023 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44024
44025         maint.mk: sort the list of syntax-check rules
44026         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44027         easier to get a sense of progress when the rules are run sequentially
44028         and take a long time.
44029
44030 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44031
44032         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44033         * modules/netinet_in: Likewise.
44034         * modules/sys_file: Likewise.
44035         * modules/sys_ioctl: Likewise.
44036         * modules/sys_select: Likewise.
44037         * modules/sys_socket: Likewise.
44038         * modules/sys_stat: Likewise.
44039         * modules/sys_time: Likewise.
44040         * modules/sys_times: Likewise.
44041         * modules/sys_utsname: Likewise.
44042         * modules/sys_wait: Likewise.
44043
44044 2009-09-01  Jim Meyering  <meyering@redhat.com>
44045
44046         fts: help ensure that return values are not ignored
44047         * lib/fts_.h (__GNUC_PREREQ): Define.
44048         (__attribute_warn_unused_result__): Define.
44049         (fts_children, fts_close, fts_open, fts_read): Declare with
44050         __attribute_warn_unused_result__.
44051
44052         fts: fts_close now fails also when closing a dir file descriptor fails
44053         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44054         and propagate to caller, along with errno.
44055
44056         announce-gen: correct formatting in --help output
44057         * build-aux/announce-gen (usage): Move the one-line description in
44058         --help output "up", to where it belongs, just after Usage:.
44059
44060 2009-08-31  Eric Blake  <ebb9@byu.net>
44061
44062         fchdir: port to mingw
44063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44064         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44065         opened, then use a substitute.
44066         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44067         replacement.
44068         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44069         (_gl_register_fd): No need to check stat if open already filters
44070         all directories.
44071         (fchdir): Fix error condition to match POSIX.
44072         * modules/fchdir (Depends-on): Add sys_stat.
44073         * doc/posix-functions/open.texi (open): Document the limitation.
44074         * modules/fchdir-tests: New file.
44075         * tests/test-fchdir.c: Likewise.
44076
44077         canonicalize: allow cross-testing from cygwin to mingw
44078         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44079         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44080         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44081         Likewise.
44082         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44083         target does not support symlinks.
44084         * tests/test-canonicalize-lgpl.sh: Likewise.
44085
44086         chown: avoid compilation warning on mingw
44087         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44088         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44089         mingw.
44090         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44091         * modules/chown (Depends-on): Add errno.
44092
44093 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44094
44095         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44096         command.
44097
44098 2009-08-31  Jim Meyering  <meyering@redhat.com>
44099
44100         canonicalize: remove useless initialization
44101         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44102         initialization of local, "end".
44103
44104 2009-08-30  Bruno Haible  <bruno@clisp.org>
44105
44106         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44107         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44108         ENOSYS.
44109
44110 2009-08-30  Bruno Haible  <bruno@clisp.org>
44111
44112         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44113         /usr/xpg4/bin/tr when it exists.
44114         * tests/test-pipe-filter-gi1.sh: Likewise.
44115
44116 2009-08-30  Bruno Haible  <bruno@clisp.org>
44117
44118         Work around deficient /usr/bin/id program on Solaris.
44119         * tests/test-file-has-acl.sh (ID): New variable.
44120         * tests/test-set-mode-acl.sh (ID): Likewise.
44121         * tests/test-copy-acl.sh (ID): Likewise.
44122         * tests/test-copy-file.sh (ID): Likewise.
44123
44124 2009-08-30  Bruno Haible  <bruno@clisp.org>
44125
44126         New module 'xstriconveh'.
44127         * lib/xstriconveh.h: New file.
44128         * lib/xstriconveh.c: New file.
44129         * modules/xstriconveh: New file.
44130
44131 2009-08-30  Bruno Haible  <bruno@clisp.org>
44132
44133         Make it easier to use mem_cd_iconveh.
44134         * lib/striconveh.h (iconveh_t): New type.
44135         (iconveh_open, iconveh_close): New declarations.
44136         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44137         with a single 'const iconveh_t *' argument.
44138         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44139         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44140         with a single 'const iconveh_t *' argument.
44141         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44142         * tests/test-striconveh.c (main): Update.
44143         * NEWS: Mention the change.
44144
44145 2009-08-30  Bruno Haible  <bruno@clisp.org>
44146
44147         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44148         problem.
44149
44150 2009-08-30  Bruno Haible  <bruno@clisp.org>
44151
44152         Work around iconv_open problem on Solaris.
44153         * lib/iconv_open-solaris.gperf: New file.
44154         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44156         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44157         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44158         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44159         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44160
44161 2009-08-29  Jim Meyering  <meyering@redhat.com>
44162
44163         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44164         * top/maint.mk (cvs-check): Remove target; it was just an alias
44165         to the better-named vc-diff-check.
44166         (maintainer-distcheck): Remove rule.  It was used only from
44167         the (alpha/beta/major) target, and all of its commands but one
44168         were coreutils-specific.
44169         (vc-dist): Remove rule.
44170         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44171         Run vc-diff-check, not vc-dist.
44172         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44173
44174 2009-08-27  Bruno Haible  <bruno@clisp.org>
44175
44176         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44177         of 0.
44178
44179 2009-08-27  Bruno Haible  <bruno@clisp.org>
44180
44181         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44182         compilers.
44183         * doc/func.texi: Document the SunPRO C bug.
44184
44185 2009-08-27  Bruno Haible  <bruno@clisp.org>
44186
44187         Fix link error on Solaris.
44188         * tests/test-parse-duration.c (xstrdup): Remove function.
44189
44190 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44191
44192         ignore-value: handle pointer types, too
44193         * lib/ignore-value.h (__attribute__): Remove definition.
44194         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44195         of a more concise and more-often effective "(void) i" statement.
44196         (ignore_ptr): New function to suppress warnings from functions that
44197         return pointers, and to make it explicit that one function doesn't
44198         handle all cases.
44199
44200 2009-08-25  Bruno Haible  <bruno@clisp.org>
44201
44202         dup2: work around a Linux bug.
44203         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44204         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44205         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44206         Reported by Simon Josefsson.
44207
44208 2009-08-25  Jim Meyering  <meyering@redhat.com>
44209
44210         libguestfs uses gnulib
44211         * users.txt: Add libguestfs.
44212
44213 2009-08-24  Eric Blake  <ebb9@byu.net>
44214
44215         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44216         * lib/pipe2.c (includes): Add binary-io.h.
44217         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44218
44219 2009-08-24  Bruno Haible  <bruno@clisp.org>
44220
44221         Tolerate declared but missing accept4 syscall.
44222         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44223         available.
44224         * lib/sys_socket.in.h (accept4): If the function is already present,
44225         override it.
44226         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44227         * modules/accept4 (Makefile.am): Compile accept4.c always.
44228         Reported by Paolo Bonzini and Eric Blake.
44229
44230 2009-08-23  Bruno Haible  <bruno@clisp.org>
44231
44232         New module 'accept4'.
44233         * lib/sys_socket.in.h (accept4): New declaration.
44234         * lib/accept4.c: New file.
44235         * m4/accept4.m4: New file.
44236         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44237         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44238         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44239         HAVE_ACCEPT4.
44240         * modules/accept4: New file.
44241         * doc/glibc-functions/accept4.texi: Mention the new module.
44242
44243 2009-08-24  Jim Meyering  <meyering@redhat.com>
44244
44245         progname: also set global program_invocation_name, when possible
44246         Before this change, a libtool-enabled program that calls glibc's
44247         error function would report the program name as
44248         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44249         * modules/progname (configure.ac): Check for a declaration of
44250         program_invocation_name.
44251         * lib/progname.c:  Include <errno.h>.
44252         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44253         Set program_invocation_name.
44254
44255 2009-08-23  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/dup3.c: Include <string.h>.
44258
44259 2009-08-23  Bruno Haible  <bruno@clisp.org>
44260
44261         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44262         * lib/pipe2.c (pipe2): Likewise.
44263         Suggested by Eric Blake.
44264
44265 2009-08-23  Bruno Haible  <bruno@clisp.org>
44266
44267         Tolerate declared but missing dup3 syscall.
44268         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44269         * lib/unistd.in.h (dup3): If the function is already present,
44270         override it.
44271         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44272         * modules/dup3 (Makefile.am): Compile dup3.c always.
44273         Reported by Paolo Bonzini.
44274
44275 2009-08-23  Bruno Haible  <bruno@clisp.org>
44276
44277         Tolerate declared but missing pipe2 syscall.
44278         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44279         available.
44280         * lib/unistd.in.h (pipe2): If the function is already present,
44281         override it.
44282         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44283         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44284         Reported by Paolo Bonzini.
44285
44286 2009-08-23  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/pipe2.c (pipe2): Move #ifs inside function.
44289
44290 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44291
44292         quotearg: document limitations of quote_these_too
44293         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44294         those limitations are created.
44295         * lib/quotearg.h (set_char_quoting): Document that digits and
44296         letters that are special after backslash are not permitted.
44297         (quotearg_char): Cross-reference set_char_quoting documentation.
44298
44299 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44300
44301         quotearg: implement custom_quoting_style
44302         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44303         right_quote fields.
44304         (set_custom_quoting): New public function.
44305         (quotearg_buffer_restyled): Add left_quote and right_quote
44306         arguments, handle them very much like locale quoting, and update
44307         all uses.
44308         (quotearg_n_custom): New public function.
44309         (quotearg_n_custom_mem): New public function.
44310         (quotearg_custom): New public function.
44311         (quotearg_custom_mem): New public function.
44312         * lib/quotearg.h: Prototype and document new public functions.
44313         (enum quoting_style): For escape_quoting_style and
44314         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44315         ignored even though they're otherwise like c_quoting_style.
44316         Add custom_quoting_style member and document with comparison to
44317         clocale_quoting_style.
44318         * tests/test-quotearg.c (custom_quotes): New array.
44319         (custom_results): New array.
44320         (main): Extend to test custom quoting.
44321
44322 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44323
44324         quotearg: fix right quote escaping when it's in quote_these_too
44325         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44326         quote, be sure to prepend only one backslash.
44327         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44328         (main): Test it.
44329
44330 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44331
44332         quotearg-tests: test escaping of embedded locale quotes
44333         * tests/test-quotearg.c (struct result_strings): Add member for
44334         new input.
44335         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44336         (inputs): Add new input.
44337         (results_g): Add expected results.
44338         (flag_results): Likewise.
44339         (locale_results): Likewise.
44340         (compare_strings): Check those.
44341
44342 2009-08-23  Bruno Haible  <bruno@clisp.org>
44343
44344         Tests for module 'dup3'.
44345         * modules/dup3-tests: New file.
44346         * tests/test-dup3.c: New file.
44347
44348         New module 'dup3'.
44349         * lib/unistd.in.h (dup3): New declaration.
44350         * lib/dup3.c: New file.
44351         * m4/dup3.m4: New file.
44352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44353         HAVE_DUP3.
44354         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44355         * modules/dup3: New file.
44356         * doc/glibc-functions/dup3.texi: Mention the new module.
44357
44358 2009-08-23  Bruno Haible  <bruno@clisp.org>
44359
44360         Tweak the dup2 test.
44361         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44362         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44363         the test file is still empty. Fix argument order of lseek.
44364
44365 2009-08-23  Bruno Haible  <bruno@clisp.org>
44366
44367         Avoid test link errors when the modules getopt-gnu, gettext are used.
44368         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44370
44371 2009-08-23  Bruno Haible  <bruno@clisp.org>
44372
44373         Fix getdtablesize() on mingw.
44374         * lib/getdtablesize.c (getdtablesize): Implement differently.
44375         * lib/unistd.in.h (getdtablesize): Improve comment.
44376
44377 2009-08-23  Bruno Haible  <bruno@clisp.org>
44378
44379         New module 'mkostemp'.
44380         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44381         * lib/stdlib.in.h (mksotemp): New declaration.
44382         * lib/mkostemp.c: New file, from glibc with modifications.
44383         * lib/tempname.h (GT_FILE): Remove outdated comment.
44384         (gen_tempname): Add flags argument.
44385         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44386         (__GT_FILE): Map to 1.
44387         (small_open, large_open): Remove macros.
44388         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44389         * lib/mkstemp.c (mkstemp): Update.
44390         * lib/mkdtemp.c (mkdtemp): Likewise.
44391         * m4/mkostemp.m4: New file.
44392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44393         HAVE_MKOSTEMP.
44394         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44395         HAVE_MKOSTEMP.
44396         * modules/mkostemp: New file, based on modules/mkstemp.
44397         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44398         * NEWS: Mention the change.
44399
44400 2009-08-23  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44403         Reported by Eric Blake.
44404
44405 2009-08-23  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44408         Reported by Eric Blake.
44409
44410 2009-08-23  Bruno Haible  <bruno@clisp.org>
44411
44412         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44413         * modules/pipe2 (Depends-on): Likewise.
44414
44415 2009-08-23  Eric Blake  <ebb9@byu.net>
44416
44417         fcntl-h: add O_TTY_INIT support
44418         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44419         * tests/test-fcntl-h.c (o): Test it.
44420         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44421
44422         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44423         * modules/fcntl: Move <fcntl.h> header replacement...
44424         * modules/fcntl-h: ...to new name, so as not to collide with
44425         like-named function.
44426         * tests/test-fcntl.c: Rename...
44427         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44428         * modules/fcntl-tests: Rename...
44429         * modules/fcntl-h-tests: ...to this.  Update test file name.
44430         * modules/chdir-long (Depends-on): Update clients.
44431         * modules/chdir-safer (Depends-on): Likewise.
44432         * modules/fcntl-safer (Depends-on): Likewise.
44433         * modules/fts (Depends-on): Likewise.
44434         * modules/mkancesdirs (Depends-on): Likewise.
44435         * modules/mkdir-p (Depends-on): Likewise.
44436         * modules/open (Depends-on): Likewise.
44437         * modules/savewd (Depends-on): Likewise.
44438         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44439         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44440
44441 2009-08-22  Bruno Haible  <bruno@clisp.org>
44442
44443         * modules/binary-io (License): Relicense under LGPL.
44444         * modules/pipe2 (License): Likewise.
44445
44446 2009-08-22  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44449         return value.
44450         * lib/pipe-filter-gi.c (filter_init): Likewise.
44451         Reported by Eric Blake.
44452
44453 2009-08-22  Bruno Haible  <bruno@clisp.org>
44454
44455         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44456         * modules/pipe (Depends-on): Add pipe2.
44457
44458 2009-08-22  Bruno Haible  <bruno@clisp.org>
44459
44460         Tests for module 'pipe2'.
44461         * modules/pipe2-tests: New file.
44462         * tests/test-pipe2.c: New file.
44463
44464         New module 'pipe2'.
44465         * lib/unistd.in.h (pipe2): New declaration.
44466         * lib/pipe2.c: New file.
44467         * m4/pipe2.m4: New file.
44468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44469         HAVE_PIPE2.
44470         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44471         * modules/pipe2: New file.
44472         * doc/glibc-functions/pipe2.texi: Mention the new module.
44473
44474 2009-08-22  Bruno Haible  <bruno@clisp.org>
44475
44476         Reference some new glibc functions.
44477         * doc/glibc-functions/accept4.texi: New file.
44478         * doc/glibc-functions/dup3.texi: New file.
44479         * doc/glibc-functions/mkostemp.texi: New file.
44480         * doc/glibc-functions/pipe2.texi: New file.
44481         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44482         (Glibc sys/socket.h): Refer to accept4.
44483         (Glibc unistd.h): Refer to dup3, pipe2.
44484         Reported by Eric Blake.
44485
44486 2009-08-22  Jim Meyering  <meyering@redhat.com>
44487             Bruno Haible  <bruno@clisp.org>
44488
44489         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44490         This makes it so packages using automake-1.11's silent-rules option
44491         can print e.g., a single "GEN    configmake.h" line, rather than
44492         the 30+ statements that perform the job.  If you want to see the
44493         actual commands, you can still run "make V=1".
44494         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44495         so that make output is abbreviated when those variables are defined
44496         appropriately.
44497         * modules/argz: Likewise.
44498         * modules/arpa_inet: Likewise.
44499         * modules/byteswap: Likewise.
44500         * modules/configmake: Likewise.
44501         * modules/dirent: Likewise.
44502         * modules/errno: Likewise.
44503         * modules/fcntl: Likewise.
44504         * modules/float: Likewise.
44505         * modules/fnmatch: Likewise.
44506         * modules/getopt-posix: Likewise.
44507         * modules/glob: Likewise.
44508         * modules/iconv_open: Likewise.
44509         * modules/inttypes: Likewise.
44510         * modules/localcharset: Likewise.
44511         * modules/locale: Likewise.
44512         * modules/math: Likewise.
44513         * modules/netdb: Likewise.
44514         * modules/netinet_in: Likewise.
44515         * modules/poll: Likewise.
44516         * modules/posix_spawnp-tests: Likewise.
44517         * modules/sched: Likewise.
44518         * modules/search: Likewise.
44519         * modules/selinux-h: Likewise.
44520         * modules/signal: Likewise.
44521         * modules/spawn: Likewise.
44522         * modules/stdarg: Likewise.
44523         * modules/stdbool: Likewise.
44524         * modules/stddef: Likewise.
44525         * modules/stdint: Likewise.
44526         * modules/stdio: Likewise.
44527         * modules/stdlib: Likewise.
44528         * modules/string: Likewise.
44529         * modules/strings: Likewise.
44530         * modules/sys_file: Likewise.
44531         * modules/sys_ioctl: Likewise.
44532         * modules/sys_select: Likewise.
44533         * modules/sys_socket: Likewise.
44534         * modules/sys_stat: Likewise.
44535         * modules/sys_time: Likewise.
44536         * modules/sys_times: Likewise.
44537         * modules/sys_utsname: Likewise.
44538         * modules/sys_wait: Likewise.
44539         * modules/sysexits: Likewise.
44540         * modules/time: Likewise.
44541         * modules/unistd: Likewise.
44542         * modules/wchar: Likewise.
44543         * modules/wctype: Likewise.
44544
44545 2009-08-22  Jim Meyering  <meyering@redhat.com>
44546
44547         announce-gen: detect write failure
44548         * build-aux/announce-gen: Add Coda at end.
44549         Remove equivalent-but-more-verbose block at top.
44550
44551 2009-08-19  Akim Demaille  <demaille@gostai.com>
44552
44553         bootstrap: --help to stdout.
44554         * bootstrap (usage): Don't send --help to stderr.
44555         Use a here doc instead of a long string.
44556
44557 2009-08-21  Eric Blake  <ebb9@byu.net>
44558
44559         test-popen-safer: split from test-popen
44560         * tests/test-popen.c (main): Move...
44561         * tests/test-popen.h: ...into new file.
44562         * tests/test-popen-safer2.c: New file.
44563         * modules/popen-tests (Files): Add test-popen.h.
44564         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44565         Suggested by Bruno Haible.
44566
44567         test-fcntl-safer: split from test-open
44568         * tests/test-open.c (main): Move...
44569         * tests/test-open.h: ...into new file.
44570         * tests/test-fcntl-safer.c: New file.
44571         * modules/open-tests (Files): Add test-open.h.
44572         * modules/fcntl-safer-tests: New file.
44573         Suggested by Bruno Haible.
44574
44575         test-fopen-safer: split from test-fopen
44576         * tests/test-fopen.c (main): Move...
44577         * tests/test-fopen.h: ...into new file.
44578         * tests/test-fopen-safer.c: New file.
44579         * modules/fopen-tests (Files): Add test-fopen.h.
44580         * modules/fopen-safer-tests: New file.
44581         Suggested by Bruno Haible.
44582
44583 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44584
44585         popen-safer: test O_CLOEXEC at run-time.
44586         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44587
44588 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44589
44590         fcntl: move more flags to the header
44591         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44592         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44593         * lib/fcntl.in.h: Do both things here.
44594
44595 2009-08-21  Jim Meyering  <meyering@redhat.com>
44596
44597         consistently remove $@-t before redirecting to it
44598         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44599         * modules/alloca-opt: Likewise.
44600         * modules/byteswap: Likewise.
44601         * modules/fnmatch: Likewise.
44602         * modules/getopt-posix: Likewise.
44603         * modules/glob: Likewise.
44604         * modules/poll: Likewise.
44605         * modules/posix_spawnp-tests: Likewise.
44606         * modules/sys_socket: Likewise.
44607         * modules/sysexits: Likewise.
44608
44609 2009-08-21  Eric Blake  <ebb9@byu.net>
44610
44611         popen: simplify access to original popen
44612         * lib/popen.c (rpl_popen): No need to worry about popen being a
44613         macro.
44614         Reported by Bruno Haible.
44615
44616 2009-08-20  Eric Blake  <ebb9@byu.net>
44617
44618         build: avoid some compiler warnings
44619         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44620         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44621         type.
44622         (new_exclude_segment, excluded_file_pattern_p)
44623         (excluded_file_name_p): Reduce scope.
44624         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44625         old-style declaration.
44626
44627 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44628
44629         * tests/test-exclude1.sh: Handle Windows EOL.
44630         * tests/test-exclude2.sh: Likewise.
44631         * tests/test-exclude3.sh: Likewise.
44632         * tests/test-exclude4.sh: Likewise.
44633         * tests/test-exclude5.sh: Likewise.
44634         * tests/test-exclude6.sh: Likewise.
44635         * tests/test-exclude7.sh: Likewise.
44636
44637 2009-08-19  Akim Demaille  <demaille@gostai.com>
44638
44639         bootstrap: find sha1sum when named gsha1sum.
44640         * bootstrap (find_tool): New.
44641         ($SHA1SUM): New.
44642         Use it.
44643
44644 2009-08-20  Jim Meyering  <meyering@redhat.com>
44645
44646         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44647         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44648         expression that converts "." in a file name to "\." in the resulting
44649         regexp.  Start with a dummy statement, so that prior shell variable
44650         definitions are expanded portably.  Reported by Simon Josefsson.
44651
44652 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44653
44654         Fix polling for writeability of a screen buffer.
44655         * lib/poll.c: Distinguish input and screen buffers for the
44656         Win32 implementation.
44657         * lib/select.c: Likewise.
44658
44659 2009-08-19  Eric Blake  <ebb9@byu.net>
44660
44661         popen-safer: prevent popen from clobbering std descriptors
44662         * modules/popen-safer: New file.
44663         * lib/popen-safer.c: Likewise.
44664         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44665         * lib/stdio--.h (popen): Provide override.
44666         * lib/stdio-safer.h (popen_safer): Provide declaration.
44667         * tests/test-popen.c (includes): Partially test this.
44668         * modules/popen-safer-tests: New file, for more tests.
44669         * tests/test-popen-safer.c: Likewise.
44670         * MODULES.html.sh (file stream based Input/Output): Mention it.
44671
44672         tests: test some of the *-safer modules
44673         * modules/fopen-safer (Depends-on): Add fopen.
44674         * modules/fcntl-safer (Depends-on): Add fcntl.
44675         * modules/stdlib-safer (Depends-on): Add stdlib.
44676         (configure.ac): Set indicator.
44677         * modules/unistd-safer (configure.ac): Likewise.
44678         * modules/tmpfile-safer (configure.ac): Likewise.
44679         (Depends-on): Add tmpfile.
44680         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44681         active.
44682         * tests/test-fopen.c (includes): Test safer versions when they are
44683         in use.
44684         * tests/test-open.c (includes): Likewise.
44685
44686         popen: fix cygwin 1.5 bug when stdin closed
44687         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44688         * modules/popen: New file.
44689         * modules/popen-tests: Likewise.
44690         * tests/test-popen.c: Likewise.
44691         * m4/popen.m4: Likewise.
44692         * lib/popen.c: Likewise.
44693         * lib/stdio.in.h (popen): New declaration.
44694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44695         * modules/stdio (Makefile.am): Likewise.
44696         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44697
44698 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44699
44700         maint.mk: give full control over update-copyright exclusions
44701         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44702         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44703         (update-copyright): Don't force inclusion of top-level
44704         ChangeLog.  Don't force exclusion of all COPYING files, but make
44705         them the default exclusion instead.
44706
44707 2009-08-16  Bruno Haible  <bruno@clisp.org>
44708
44709         Fix test failures on Solaris 10.
44710         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44711         tests when Solaris iconv() is used.
44712         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44713         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44714         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44715         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44716         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44717
44718 2009-08-16  Bruno Haible  <bruno@clisp.org>
44719
44720         Fix test failures on Solaris 10.
44721         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44722         'tr' program and pass it as first argument.
44723         * tests/test-pipe-filter-gi1.sh: Likewise.
44724         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44725         program as first argument.
44726         * tests/test-pipe-filter-gi1.c (main): Likewise.
44727
44728 2009-08-16  Eric Blake  <ebb9@byu.net>
44729
44730         fpurge: fix previous commits
44731         * modules/fpurge (Makefile.am): Make replacement conditional,
44732         partially reverting 2007-04-29 change; missed in previous
44733         attempt.
44734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44735         is missing.
44736
44737 2009-08-16  Bruno Haible  <bruno@clisp.org>
44738
44739         Clarify fpurge's effect on the file position.
44740         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44741         * tests/test-fpurge.c (main): Make a second pass for checking the file
44742         position.
44743
44744 2009-08-16  Bruno Haible  <bruno@clisp.org>
44745
44746         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44747         declaration of fpurge is missing.
44748         * tests/test-fpurge.c (main): Check that the file has not more contents
44749         than expected. Close the file before removing it.
44750
44751 2009-08-15  Eric Blake  <ebb9@byu.net>
44752
44753         fpurge: don't wrap working cygwin implementation
44754         * lib/fpurge.c (fpurge): Fix comment typo.
44755         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44756         1.7 to avoid replacement.
44757         * tests/test-fpurge.c (main): Enhance test.
44758
44759 2009-08-15  Eric Blake  <ebb9@byu.net>
44760         and Jim Meyering  <meyering@redhat.com>
44761
44762         test-update-copyright: skip if perl is insufficient
44763         * tests/test-update-copyright.sh: Failure to run maintainer tool
44764         should not cause testsuite failure on cygwin 1.5.
44765
44766 2009-08-14  Eric Blake  <ebb9@byu.net>
44767
44768         doc: mention more functions added in cygwin 1.7.0
44769         * doc/posix-headers/limits.texi (limits.h): Update for recent
44770         cygwin additions.
44771         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44772         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44773         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44774         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44775         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44776
44777 2009-08-14  Eric Blake  <ebb9@byu.net>
44778
44779         maint.mk: simplify update-copyright rule
44780         * top/maint.mk (update-copyright-local): Delete, and document how
44781         to do it in cfg.mk instead.
44782         (update-copyright-exclude-regexp): Delete, and document how to do
44783         it in .x-update-copyright instead.
44784         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44785         exclude ChangeLog.
44786
44787 2009-08-14  Bruno Haible  <bruno@clisp.org>
44788
44789         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44790
44791 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44792
44793         maint.mk: support update-copyright-env
44794         * top/maint.mk (update-copyright-env): Define place-holder.
44795         (update-copyright): Expand $(update-copyright-env) before
44796         invoking update-copyright.
44797
44798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44799
44800         update-copyright: implement forced reformatting
44801         * build-aux/update-copyright: Implement and document
44802         UPDATE_COPYRIGHT_FORCE.
44803         * tests/test-update-copyright.sh: Test it.
44804
44805 2009-08-14  Eric Blake  <ebb9@byu.net>
44806         and Bruno Haible  <bruno@clisp.org>
44807
44808         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44809         * tests/test-locale.c: Revert previous patch related to NULL.
44810         * tests/test-stdio.c: Likewise.
44811         * tests/test-stdlib.c: Likewise.
44812         * tests/test-string.c: Likewise.
44813         * tests/test-unistd.c: Likewise.
44814         * modules/time-tests (Depends-on): Add verify.
44815         * modules/wchar-tests (Depends-on): Likewise.
44816         * tests/test-time.c: Test for NULL compliance.
44817         * tests/test-wchar.c: Likewise.
44818         * modules/locale (Depends-on): Add stddef.
44819         * modules/stdio (Depends-on): Likewise.
44820         * modules/stdlib (Depends-on): Likewise.
44821         * modules/string (Depends-on): Likewise.
44822         * modules/time (Depends-on): Likewise.
44823         * modules/unistd (Depends-on): Likewise.
44824         * modules/wchar (Depends-on): Likewise.
44825         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44826         * lib/stdlib.in.h (includes): Likewise.
44827         * lib/string.in.h (includes): Likewise.
44828         * lib/time.in.h (includes): Likewise.
44829         * lib/unistd.in.h (includes): Likewise.
44830         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44831         replaced.
44832         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44833         * m4/stddef_h.m4: New file.
44834         * modules/stddef: Likewise.
44835         * lib/stddef.in.h: Likewise.
44836         * modules/stddef-tests: Likewise.
44837         * tests/test-stddef.c: Likewise.
44838         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44839         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44840         * doc/posix-headers/locale.texi (locale.h): Likewise.
44841         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44842         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44843         * doc/posix-headers/string.texi (string.h): Likewise.
44844         * doc/posix-headers/time.texi (time.h): Likewise.
44845         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44846         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44847
44848 2009-08-14  Eric Blake  <ebb9@byu.net>
44849
44850         doc: improve git diff of texinfo files
44851         * .gitattributes: Add rule for *.texi files, with hint on how to
44852         use it.
44853         Copied from m4, and based on a report by Bruno Haible.
44854
44855 2009-08-14  Bruno Haible  <bruno@clisp.org>
44856
44857         Disable multithread support by default on Cygwin 1.5.x for real.
44858         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44859
44860 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44861
44862         update-copyright: much ado about intervals
44863         * build-aux/update-copyright: Implement and document
44864         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44865         of copyright year intervals.
44866         Also, document UPDATE_COPYRIGHT_YEAR.
44867         * tests/test-update-copyright.sh: Test it.
44868
44869         update-copyright: convert 2-digit to 4-digit years
44870         * build-aux/update-copyright: Implement and document.
44871         * tests/test-update-copyright.sh: Update.
44872
44873 2009-08-14  Jim Meyering  <meyering@redhat.com>
44874
44875         test-exclude: avoid coreutils "make check" failure
44876         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44877         just as in test-argmatch.c.
44878
44879 2009-08-13  Eric Blake  <ebb9@byu.net>
44880
44881         test-dup2: fix bad assumption
44882         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44883         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44884
44885         test-version-etc: fix CRLF portability issue
44886         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44887         recognize \r.
44888         * tests/test-argp-version-etc-1.sh: Likewise.
44889
44890         getopt: update client modules
44891         * modules/argp (Depends-on): Use getopt-gnu.
44892         * modules/git-merge-changelog (Depends-on): Likewise.
44893         * modules/long-options (Depends-on): Likewise.
44894         * modules/xstrtol (Depends-on): Likewise.
44895
44896 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44897
44898         * tests/test-version-etc.sh: Don't fail on different
44899         project/version.  Don't fail on CRLF differences.  Rewrite to use
44900         multiple -e instead of multiple sed forks, suggested by Eric Blake
44901         <ebb9@byu.net>.
44902         * tests/test-argp-version-etc-1.sh: Likewise.
44903
44904 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44905
44906         * tests/test-version-etc.sh: Don't fail on different
44907         project/version.
44908
44909 2009-08-12  Bruno Haible  <bruno@clisp.org>
44910
44911         Tests for modules 'getopt-posix', 'getopt-gnu'.
44912         * modules/getopt-posix-tests: New file.
44913         * tests/test-getopt.c: New file.
44914         * tests/test-getopt.h: New file.
44915         * tests/test-getopt_long.h: New file.
44916
44917         New modules 'getopt-posix', 'getopt-gnu'.
44918         * modules/getopt-gnu: New file, renamed from modules/getopt.
44919         * modules/getopt-posix: New file.
44920         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44921         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44922         (gl_GETOPT): Remove macro.
44923         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44924         Disable the test against BSD systems that declare optreset. Test
44925         against mingw bug. Test against lack of support of optional arguments
44926         on many platforms.
44927         * doc/glibc-headers/getopt.texi: Update module name and list of
44928         relevant platforms.
44929         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44930         'getopt-gnu' and more portability problems.
44931         * NEWS: Mention the changes.
44932
44933 2009-08-12  Bruno Haible  <bruno@clisp.org>
44934
44935         Ensure that optarg etc. get declared by <unistd.h>.
44936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44937         AC_USE_SYSTEM_EXTENSIONS.
44938         * modules/getopt (Depends-on): Add 'extensions'.
44939
44940 2009-08-12  Bruno Haible  <bruno@clisp.org>
44941
44942         Avoid test link errors.
44943         * modules/pipe-filter-ii-tests (Makefile.am): Define
44944         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44945         * modules/pipe-filter-gi-tests (Makefile.am): Define
44946         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44948
44949 2009-08-12  Bruno Haible  <bruno@clisp.org>
44950
44951         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44952         gl_GETOPT_SUBSTITUTE before.
44953         (gl_GETOPT): Use it.
44954         * m4/argp.m4 (gl_ARGP): Update.
44955         Reported by Sergey Poznyakoff.
44956
44957         * m4/getopt.m4: Reorder macros.
44958         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44959         (gl_GETOPT_SUBSTITUTE): Remove macro.
44960
44961 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44962
44963         Minor improvement in gitlog-to-changelog
44964
44965         * build-aux/gitlog-to-changelog: New option `--format' makes
44966         output format string configurable.
44967
44968 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44969
44970         Optimize exclude: use hash tables for non-wildcard patterns.
44971
44972         * lib/exclude.c: Include hash.h and mbuiter.h
44973         (struct exclude_pattern, exclude_segment): New data types.
44974         (struct exclude): Rewrite.
44975         (fnmatch_pattern_has_wildcards): New function.
44976         (new_exclude_segment, free_exclude_segment): New functions.
44977         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44978         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44979         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44980         * modules/exclude: Depend on hash and mbuiter.
44981
44982         * modules/exclude-tests: New file.
44983         * tests/test-exclude.c: New file.
44984         * tests/test-exclude1.sh: New file.
44985         * tests/test-exclude2.sh: New file.
44986         * tests/test-exclude3.sh: New file.
44987         * tests/test-exclude4.sh: New file.
44988         * tests/test-exclude5.sh: New file.
44989         * tests/test-exclude6.sh: New file.
44990         * tests/test-exclude7.sh: New file.
44991
44992 2009-08-12  Bruno Haible  <bruno@clisp.org>
44993
44994         Ensure that getopt() gets declared by <unistd.h>.
44995         * lib/unistd.in.h: Conditionally include getopt.h.
44996         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44997         Set GNULIB_UNISTD_H_GETOPT.
44998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44999         GNULIB_UNISTD_H_GETOPT.
45000         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45001
45002 2009-08-12  Bruno Haible  <bruno@clisp.org>
45003
45004         Clarify logic.
45005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45006         gl_replace_getopt instead of GETOPT_H.
45007
45008 2009-08-12  Bruno Haible  <bruno@clisp.org>
45009
45010         * m4/getopt.m4: Add comments.
45011
45012 2009-08-12  Bruno Haible  <bruno@clisp.org>
45013
45014         Disable multithread support by default on Cygwin 1.5.x.
45015         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45016         set gl_use_threads=no if not specified otherwise.
45017
45018 2009-08-11  Bruno Haible  <bruno@clisp.org>
45019
45020         Avoid compilation error on NetBSD 5.0.
45021         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45022         * tests/test-stdio.c: Likewise.
45023         * tests/test-stdlib.c: Likewise.
45024         * tests/test-string.c: Likewise.
45025         * tests/test-unistd.c: Likewise.
45026         Reported by Greg Troxel <gdt@ir.bbn.com>
45027         at <https://savannah.gnu.org/support/?106973>.
45028
45029 2009-08-11  Bruno Haible  <bruno@clisp.org>
45030
45031         * modules/dup2-tests (Depends-on): Remove close.
45032
45033         Undo 2009-07-19 commit.
45034         * modules/acl-tests (Depends-on): Remove close.
45035         * modules/binary-io-tests (Depends-on): Likewise.
45036         * modules/closein-tests (Depends-on): Likewise.
45037         * modules/flock-tests (Depends-on): Likewise.
45038         * modules/fsync-tests (Depends-on): Likewise.
45039         * modules/lseek-tests (Depends-on): Likewise.
45040         * modules/pipe-tests (Depends-on): Likewise.
45041         * modules/posix_spawn-tests (Depends-on): Likewise.
45042         * modules/posix_spawnp-tests (Depends-on): Likewise.
45043         * modules/stat-time-tests (Depends-on): Likewise.
45044         * modules/yesno-tests (Depends-on): Likewise.
45045
45046 2009-08-10  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45049
45050 2009-08-10  Bruno Haible  <bruno@clisp.org>
45051
45052         Fix a gcc warning.
45053         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45054
45055 2009-08-10  Bruno Haible  <bruno@clisp.org>
45056
45057         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45058         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45059         not only the first time.
45060         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45061         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45062         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45063         is 1, not only the the first time.
45064
45065 2009-08-10  Bruno Haible  <bruno@clisp.org>
45066
45067         Make it possible to use module 'gethostname' without module 'close'.
45068         * lib/unistd.in.h (close): Evoke a link error only if
45069         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45071         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45072         * modules/unistd (Makefile.am): Substitute
45073         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45074         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45075         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45076         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45077         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45078         * modules/sys_ioctl (Makefile.am): Substitute
45079         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45080         * modules/socket (configure.ac): On native Windows, set
45081         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45082         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45083         Reported by Sam Steingold <sds@gnu.org>.
45084
45085 2009-08-10  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45088         * modules/ioctl (configure.ac): Likewise.
45089
45090 2009-08-10  Bruno Haible  <bruno@clisp.org>
45091
45092         Avoid collision between gnulib wrapper and libintl wrapper.
45093         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45094         already defined in intl/printf.c.
45095         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45096         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45097
45098 2009-08-09  Bruno Haible  <bruno@clisp.org>
45099
45100         Make <sys/select.h> really self-contained, also on Solaris 10.
45101         * lib/sys_select.in.h: Include <string.h>.
45102         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45103         Solaris 10 problem.
45104         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45105         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45106         Reported by Jim Meyering.
45107
45108 2009-08-09  Bruno Haible  <bruno@clisp.org>
45109
45110         Avoid warnings from 'aclocal' that are due to a use of macro name
45111         AM_XGETTEXT_OPTION that is not defined in automake.
45112         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45113         automake.
45114         * modules/error (configure.ac): Likewise.
45115         * modules/propername (configure.ac): Likewise.
45116         * modules/vasprintf (configure.ac): Likewise.
45117         * modules/verror (configure.ac): Likewise.
45118         * modules/xprintf (configure.ac): Likewise.
45119         * modules/xvasprintf (configure.ac): Likewise.
45120
45121 2009-08-08  Bruno Haible  <bruno@clisp.org>
45122
45123         Avoid compilation error in C++ mode.
45124         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45125         Reported by Sam Steingold <sds@gnu.org>.
45126
45127 2009-08-08  Bruno Haible  <bruno@clisp.org>
45128
45129         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45130         for the various Unix platforms.
45131         * doc/posix-headers/limits.texi: Update platforms list regarding
45132         HOST_NAME_MAX.
45133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45134
45135 2009-08-07  Jim Meyering  <meyering@redhat.com>
45136
45137         selinux-at: fix typo in a comment
45138         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45139         Spotted by Paolo Bonzini.
45140
45141         selinux-at: remove redundant m4 code, add documentation
45142         * modules/selinux-at (configure.ac): Remove redundant code.
45143         LIB_SELINUX is already set via the dependent module, selinux-h.
45144         (Include): Add quotes around selinux-at.h.
45145         * lib/selinux-at.h: Add documentation.
45146         Reported by Bruno Haible in
45147         http://marc.info/?l=gnulib-bug&m=124958988300749
45148
45149 2009-08-07  Bruno Haible  <bruno@clisp.org>
45150
45151         Avoid link error on MacOS X 10.3 and 10.4.
45152         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45153         on non-ELF systems.
45154         * lib/argp-pv.c (argp_program_version): Likewise.
45155         Reported by Simon Josefsson.
45156
45157 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45158
45159         * tests/test-version-etc.sh: Use $EXEEXT.
45160
45161 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45162
45163         update-copyright: update documentation to point to maint.mk
45164         * build-aux/update-copyright: Here.
45165
45166 2009-08-06  Jim Meyering  <meyering@redhat.com>
45167
45168         maint.mk: support update-copyright-local
45169         * top/maint.mk (update-copyright-local): Define place-holder.
45170         (update-copyright): Depend on $(update-copyright-local).
45171
45172 2009-08-06  Jim Meyering  <meyering@redhat.com>
45173
45174         selinux-at: new module
45175         Initially written for coreutils, this module will soon be
45176         used by findutils, too.
45177         * MODULES.html.sh [Misc]: Add selinux-at.
45178         * lib/selinux-at.h: New file, from coreutils.
45179         * lib/selinux-at.c: Likewise.
45180         * modules/selinux-at: Likewise.
45181         (License): Change from LGPL to GPL, since it depends
45182         on the GPL'd openat module.
45183
45184         doc: update README
45185         * README: Remove references to cogito.
45186         Remove cvs-repo-updating instructions from 2007.
45187         Don't imply that CVS is better if you have limited disk space.
45188
45189 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45190
45191         update-copyright: support C-style comments
45192         * build-aux/update-copyright: Implement and document.
45193         * tests/test-update-copyright.sh: Test.
45194
45195 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45196
45197         update-copyright: support omitted "(C)"
45198         * build-aux/update-copyright: Implement and document.  Also,
45199         allow variable whitespace before "(C)".
45200         * tests/test-update-copyright.sh: Test.
45201
45202 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45203
45204         update-copyright: don't trip on non-FSF copyright statements
45205         * build-aux/update-copyright: Fix so that the first correctly
45206         formatted FSF copyright statement is recognized no matter what
45207         appears before it.  Update documentation.
45208         * tests/test-update-copyright.sh: Test that.
45209
45210 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45211
45212         update-copyright: clean up code a little
45213         * build-aux/update-copyright: Append "_re" to the name of any
45214         variable holding a regular expression.
45215         Replace "old" and "new" with "stmt" in variable names.
45216         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45217         handled correctly.
45218         Format code more consistently.
45219
45220 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45221
45222         update-copyright-tests: improve portability
45223         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45224         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45225
45226 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45227
45228         update-copyright: support @copyright{} and &copy;
45229         * build-aux/update-copyright: Implement and document.
45230         * tests/test-update-copyright.sh: Test.
45231
45232 2009-08-04  Jim Meyering  <meyering@redhat.com>
45233
45234         update-copyright-tests: correctly test EOL=\r\n handling
45235         * tests/test-update-copyright.sh: Put \r at the end of some lines
45236         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45237
45238         maint.mk: make update-copyright exclusion list more configurable
45239         * top/maint.mk (update-copyright): Default to excluding COPYING,
45240         but allow an override, in case someone does want to update that file.
45241
45242         maint.mk: don't update copyright date in COPYING
45243         * top/maint.mk (update-copyright): Exclude COPYING.
45244
45245         maint.mk: add a copyright-updating rule
45246         * top/maint.mk (update-copyright): New rule.
45247         Derived from coreutils/Makefile.am.
45248
45249         update-copyright: rename some variables
45250         * build-aux/update-copyright: Rename a few variables for clarity.
45251         Tweak syntax.  List Joel E. Denny as coauthor.
45252
45253 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45254
45255         update-copyright: fix bug for 2-digit last year and add tests
45256         * build-aux/update-copyright: Fix bug.
45257         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45258         specified.
45259         * modules/update-copyright-tests: New
45260         * tests/test-update-copyright.sh: New.
45261
45262 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45263
45264         update-copyright: handle leading tabs in line prefix
45265         * build-aux/update-copyright: Count leading tabs as 8 spaces
45266         when computing margin.  This helps with the formatting of
45267         ChangeLogs, for example.
45268         Fix documentation a little.
45269
45270 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45271
45272         update-copyright: support EOL=\r\n
45273         * build-aux/update-copyright: Implement that.
45274
45275 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45276
45277         update-copyright: automatically format copyright statements
45278         * build-aux/update-copyright: Implement that.
45279         Also, be a little more predictable and safer by always failing
45280         when the full copyright format is not perfectly recognized as an
45281         unbroken whole.  Discussed at
45282         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45283         Rewrite documentation.
45284
45285 2009-08-03  Bruno Haible  <bruno@clisp.org>
45286
45287         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45288
45289 2009-08-02  Bruno Haible  <bruno@clisp.org>
45290
45291         Tests for module 'uname'.
45292         * modules/uname-tests: New file.
45293         * tests/test-uname.c: New file.
45294
45295         New module 'uname'.
45296         * lib/uname.c: New file.
45297         * m4/uname.m4: New file.
45298         * modules/uname: New file.
45299         * doc/posix-functions/uname.texi: Mention the new module.
45300
45301 2009-08-02  Bruno Haible  <bruno@clisp.org>
45302
45303         Tests for module 'sys_utsname'.
45304         * modules/sys_utsname-tests: New file.
45305         * tests/test-sys_utsname.c: New file.
45306
45307         New module 'sys_utsname'.
45308         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45309         * m4/sys_utsname_h.m4: New file.
45310         * modules/sys_utsname: New file.
45311         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45312
45313 2009-08-02  Bruno Haible  <bruno@clisp.org>
45314
45315         Implicitly initialize the sockets library.
45316         * lib/gethostname.c: Include sockets.h.
45317         (rpl_gethostname): Invoke gl_sockets_startup.
45318         * lib/socket.c: Include sockets.h.
45319         (rpl_socket): Invoke gl_sockets_startup.
45320         * modules/gethostname (Depends-on): Add sockets.
45321         * modules/socket (Depends-on): Likewise.
45322         * tests/test-poll.c: Don't include sockets.h.
45323         (main): Don't invoke gl_sockets_startup.
45324         * tests/test-select.c: Don't include sockets.h.
45325         (main): Don't invoke gl_sockets_startup.
45326
45327 2009-08-02  Bruno Haible  <bruno@clisp.org>
45328
45329         Allow multiple calls to gl_sockets_startup.
45330         * lib/sockets.c (initialized_sockets_version): New variable.
45331         (gl_sockets_startup): Do nothing if already called for this or a higher
45332         version.
45333         (gl_sockets_cleanup): Reset initialized_sockets_version.
45334
45335 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45336
45337         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45338         different project/version.
45339
45340 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45341             Bruno Haible  <bruno@clisp.org>
45342
45343         Tests for module 'pipe-filter-gi'.
45344         * modules/pipe-filter-gi-tests: New file.
45345         * tests/test-pipe-filter-gi1.sh: New file.
45346         * tests/test-pipe-filter-gi1.c: New file.
45347         * tests/test-pipe-filter-gi2.sh: New file.
45348         * tests/test-pipe-filter-gi2-main.c: New file.
45349         * tests/test-pipe-filter-gi2-child.c: New file.
45350
45351         New module 'pipe-filter-gi'.
45352         * lib/pipe-filter-gi.c: New file.
45353         * modules/pipe-filter-gi: New file.
45354
45355 2009-08-02  Bruno Haible  <bruno@clisp.org>
45356             Paolo Bonzini  <bonzini@gnu.org>
45357
45358         Tests for module 'pipe-filter-ii'.
45359         * modules/pipe-filter-ii-tests: New file.
45360         * tests/test-pipe-filter-ii1.sh: New file.
45361         * tests/test-pipe-filter-ii1.c: New file.
45362         * tests/test-pipe-filter-ii2.sh: New file.
45363         * tests/test-pipe-filter-ii2-main.c: New file.
45364         * tests/test-pipe-filter-ii2-child.c: New file.
45365
45366         New module 'pipe-filter-ii'.
45367         * lib/pipe-filter.h: New file.
45368         * lib/pipe-filter-ii.c: New file.
45369         * lib/pipe-filter-aux.h: New file.
45370         * modules/pipe-filter-ii: New file.
45371
45372 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45373
45374         * lib/gc-libgcrypt.c: Change copyright to FSF.
45375         * lib/gc-gnulib.c: Likewise.
45376
45377 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45378
45379         * lib/gethostname.c: Include limits.h.
45380
45381 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45382             Bruno Haible  <bruno@clisp.org>
45383
45384         Ensure HOST_NAME_MAX as part of the gethostname module.
45385         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45386         define also HOST_NAME_MAX.
45387         * tests/test-gethostname.c: Include <limits.h>.
45388         (main): Check also HOST_NAME_MAX.
45389         * doc/posix-headers/limits.texi: Document the mingw problem.
45390
45391 2009-08-02  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45394         Add comments.
45395
45396 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45397
45398         * lib/gethostname.c: Add Windows wrapper.
45399         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45400         * modules/gethostname: Depend on sys_socket & errno, for also
45401         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45402         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45403
45404 2009-07-31  Jim Meyering  <meyering@redhat.com>
45405
45406         getloadavg: fix symbol name in comment
45407         * lib/getloadavg.c: Correct a typo I introduced when adding
45408         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45409         Matt Kraai spotted the problem.
45410
45411 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45412
45413         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45414         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45415         code also if ! defined N_NAME_POINTER.
45416         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45417         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45418         but the n_name member is a 12-byte array.
45419
45420 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45421
45422         update-copyright: generalize comment handling
45423         * build-aux/update-copyright: Handle copyright statements
45424         within more comment styles.
45425         Document usage.
45426         Report any file with an external copyright holder or parse failure.
45427
45428 2009-07-29  Jim Meyering  <meyering@redhat.com>
45429
45430         mktime: correct setting of REPLACE_MKTIME
45431         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45432
45433         update-copyright: new module
45434         * modules/update-copyright: New file.
45435         * build-aux/update-copyright: New file.
45436         * MODULES.html.sh (maint+release support): Add update-copyright.
45437
45438 2009-07-27  Bruno Haible  <bruno@clisp.org>
45439
45440         Fix compilation error when <ctime> is used and mktime is replaced.
45441         * lib/time.in.h (mktime): New declaration.
45442         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45443         REPLACE_MKTIME instead of defining mktime in config.h.
45444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45445         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45446         Reported by Ross McFarland <rwmcfa1@neces.com>.
45447
45448 2009-07-27  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45451         Reported by Matt Kraai <mkraai@beckman.com>.
45452
45453 2009-07-25  Jim Meyering  <meyering@redhat.com>
45454
45455         maint.mk: avoid warnings about missing files
45456         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45457         diagnostic when .prev-version does not exist.
45458         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45459         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45460         nonexistent cfg.mk.
45461         Suggestions from Simon Josefsson.
45462
45463 2009-07-25  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45466         defined as macros. Needed on QNX 6.4.1.
45467         Reported by Matt Kraai <mkraai@beckman.com>.
45468
45469 2009-07-23  Jim Meyering  <meyering@redhat.com>
45470
45471         maint.mk: invoke "make dist" with a working value of XZ_OPT
45472         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45473
45474 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45475
45476         Make fseeko.c compile on QNX.
45477         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45478
45479 2009-07-22  Peter Simons  <simons@cryp.to>
45480
45481         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45482         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45483         * lib/md4.h: Likewise.
45484         * lib/md5.h: Likewise.
45485         * lib/sha1.h: Likewise.
45486         * lib/sha256.h: Likewise.
45487         * lib/sha512.h: Likewise.
45488
45489         tests-sha1: don't assign literal string to 'char *' variable
45490         * tests/test-sha1.c (main): Declare locals with "const" to match
45491         attributes of the right hand side.
45492
45493 2009-07-21  Eric Blake  <ebb9@byu.net>
45494
45495         dup2: fix more mingw problems
45496         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45497         fd to itself.
45498         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45499         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45500         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45501         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45502         care of mingw bugs.
45503
45504 2009-07-21  Jim Meyering  <meyering@redhat.com>
45505
45506         vc-list-files: avoid failure when /bin/sh is dash
45507         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45508         On some Debian based systems, /bin/sh is a symlink to dash, and running
45509         this command would omit the "/" following each 'tests' prefix:
45510           dash -x build-aux/vc-list-files -C . tests
45511         That is because bash and dash work differently:
45512           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45513           bash ok
45514           dash odd
45515
45516 2009-07-21  Eric Blake  <ebb9@byu.net>
45517
45518         dup2-tests: test previous patch
45519         * modules/dup2-tests: New file.
45520         * tests/test-dup2.c: Likewise.
45521         * tests/test-open.c (main): Avoid unspecified behavior.
45522         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45523         test.
45524
45525         dup2: work around mingw and cygwin 1.5 bug
45526         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45528         * modules/unistd (Makefile.am): Substitute it.
45529         * lib/unistd.in.h (dup2): Declare the replacement.
45530         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45531         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45532         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45533         * modules/execute (Depends-on): Add dup2.
45534         * modules/fseterr (Depends-on): Likewise.
45535         * modules/pipe (Depends-on): Likewise.
45536         * modules/posix_spawn-internal (Depends-on): Likewise.
45537
45538 2009-07-21  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/.gitattributes: New file.
45541
45542 2009-07-20  Bruno Haible  <bruno@clisp.org>
45543
45544         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45545         (main): Use it.
45546
45547 2009-07-20  Eric Blake  <ebb9@byu.net>
45548
45549         test-pipe: make a bit more robust.
45550         * tests/test-pipe.c (myerr): Allow error messages regardless of
45551         what we do to stderr.
45552         (test_pipe): Rearrange to avoid deadlock.
45553         (child_main): Try a larger read, to ensure we avoided deadlock.
45554         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45555         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45556         if misused.
45557
45558 2009-07-19  Jim Meyering  <meyering@redhat.com>
45559
45560         fts: avoid false-positive cycle-detection
45561         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45562         for each new command line argument.
45563
45564 2009-07-19  Bruno Haible  <bruno@clisp.org>
45565
45566         Fix build error on mingw with the modules sys_select and unistd.
45567         * modules/acl-tests (Depends-on): Add close.
45568         * modules/binary-io-tests (Depends-on): Likewise.
45569         * modules/closein-tests (Depends-on): Likewise.
45570         * modules/flock-tests (Depends-on): Likewise.
45571         * modules/fsync-tests (Depends-on): Likewise.
45572         * modules/lseek-tests (Depends-on): Likewise.
45573         * modules/pipe-tests (Depends-on): Likewise.
45574         * modules/posix_spawn-tests (Depends-on): Likewise.
45575         * modules/posix_spawnp-tests (Depends-on): Likewise.
45576         * modules/stat-time-tests (Depends-on): Likewise.
45577         * modules/yesno-tests (Depends-on): Likewise.
45578
45579 2009-07-19  Bruno Haible  <bruno@clisp.org>
45580
45581         Unify conditionals.
45582         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45583         macros, not at the compiler macros.
45584         * lib/pipe.c: Likewise.
45585         * lib/execute.c: Likewise.
45586         * lib/spawni.c: Likewise.
45587
45588 2009-07-19  Bruno Haible  <bruno@clisp.org>
45589
45590         Fix handling of closed stdin/stdout/stderr on mingw.
45591         * lib/w32spawn.h: Include unistd.h.
45592         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45593         file descriptor with O_NOINHERIT flag.
45594         (fd_safer_noinherit): New function, based on fd-safer.c.
45595         (dup_safer_noinherit): New function, based on dup-safer.c.
45596         (undup_safer_noinherit): New function.
45597         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45598         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45599         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45600         instead of fd_safer.
45601         * tests/test-pipe.c: Include <windows.h>.
45602         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45603         result.
45604
45605         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45606         from main.
45607         (test_pipe): Pass an extra argument for disambiguation.
45608         (main): Invoke parent_main or child_main.
45609
45610         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45611         consistently.
45612
45613 2009-07-18  Eric Blake  <ebb9@byu.net>
45614
45615         test-pipe: fix mingw build
45616         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45617
45618 2009-07-18  Bruno Haible  <bruno@clisp.org>
45619
45620         * modules/pipe-tests (Makefile.am): Fix typo.
45621
45622 2009-07-18  Eric Blake  <ebb9@byu.net>
45623
45624         error: fix mingw build
45625         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45626         Reported by Bruno Haible.
45627
45628         error: avoid undefined use of stdout
45629         * lib/error.c (error, error_at_line): Check that fd 1 is open
45630         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45631         is handling faults and the close_stdout module wants to report the
45632         detection of closed stdout as an error.
45633
45634 2009-07-17  Eric Blake  <ebb9@byu.net>
45635
45636         pipe: be robust in face of closed fds
45637         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45638         should cause child to misbehave.
45639         * modules/pipe-tests: New module.
45640         * tests/test-pipe.c: New file.
45641         * tests/test-pipe.sh: New file.
45642         Reported by Akim Demaille.
45643
45644 2009-07-14  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45647         Reported by anonymous kc.
45648
45649 2009-07-07  Jim Meyering  <meyering@redhat.com>
45650
45651         maint.mk: don't look for translatable strings in *.m4 or *.mk
45652         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45653         when searching for translatable strings.
45654
45655 2009-07-05  Jim Meyering  <meyering@redhat.com>
45656
45657         remove superfluous parentheses in STREQ definition
45658         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45659         * lib/getugroups.c (STREQ): Likewise.
45660         * lib/fnmatch.c (STREQ): Likewise.
45661         Spotted by Bruno Haible.
45662
45663 2009-07-04  Jim Meyering  <meyering@redhat.com>
45664
45665         argv-iter: new module
45666         * MODULES.html.sh: Add argv-iter.
45667         * lib/argv-iter.c, lib/argv-iter.h: New files.
45668         * modules/argv-iter: New file.
45669         * modules/argv-iter-tests: New file.
45670         * tests/test-argv-iter.c: Test it.
45671
45672 2009-07-04  Bruno Haible  <bruno@clisp.org>
45673
45674         Fix assertion.
45675         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45676         contains more exact copies of a given entry than file2, leave the extra
45677         copies unpaired rather than aborting.
45678         Reported by Eric Blake.
45679
45680 2009-07-02  Bruno Haible  <bruno@clisp.org>
45681
45682         Speedup git-merge-changelog for git cherry-pick.
45683         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45684         (entries_mapping_get): New function, extracted from compute_mapping.
45685         (entries_mapping_reverse_get): New function.
45686         (compute_mapping): Add a 'full' argument. Return the result in a
45687         'struct entries_mapping'.
45688         (main): Update. Access the mappings through entries_mapping_get.
45689         Reported by Eric Blake.
45690
45691 2009-07-02  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45694         best_i.
45695
45696 2009-07-02  Bruno Haible  <bruno@clisp.org>
45697
45698         Speed up approximate search for matching ChangeLog entries.
45699         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45700         argument. Call fstrcmp_bounded instead of fstrcmp.
45701         (compute_mapping, try_split_merged_entry, main): Update callers.
45702
45703 2009-07-02  Bruno Haible  <bruno@clisp.org>
45704
45705         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45706
45707 2009-06-30  Bruno Haible  <bruno@clisp.org>
45708
45709         Reduce the number of uc_is_cased calls.
45710         * lib/unicase.h (casing_suffix_context_t): Add
45711         'first_char_except_ignorable' field.
45712         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45713         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45714         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45715         Update initializer.
45716         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45717         case-ignorable characters.
45718         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45719         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45720         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45721         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45722         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45723
45724 2009-06-30  Bruno Haible  <bruno@clisp.org>
45725
45726         Tests for module 'unicase/ignorable'.
45727         * modules/unicase/ignorable-tests: New file.
45728         * tests/unicase/test-ignorable.c: New file, generated by
45729         gen-uni-tables.
45730
45731         Tests for module 'unicase/cased'.
45732         * modules/unicase/cased-tests: New file.
45733         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45734         * tests/unicase/test-predicate-part1.h: New file, derived from
45735         tests/unictype/test-predicate-part1.h.
45736         * tests/unicase/test-predicate-part2.h: New file, same as
45737         tests/unictype/test-predicate-part2.h.
45738
45739         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45740         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45741         (output_casing_properties): New function.
45742         (main): Call it.
45743         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45744         * lib/unicase/cased.c: Include unictype/bitmap.h.
45745         (uc_is_cased): Define through a bitmap lookup.
45746         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45747         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45748         (uc_is_case_ignorable): Define through a bitmap lookup.
45749         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45750         lib/unictype/bitmap.h.
45751         (Depends-on): Add inline. Clean up.
45752         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45753         lib/unictype/bitmap.h.
45754         (Depends-on): Add inline. Clean up.
45755         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45756         recognition.
45757         * tests/unicase/test-u16-tolower.c (main): Likewise.
45758         * tests/unicase/test-u32-tolower.c (main): Likewise.
45759
45760 2009-06-30  Bruno Haible  <bruno@clisp.org>
45761
45762         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45763         * lib/unicase/u16-casemap.c: Likewise.
45764         * lib/unicase/u32-casemap.c: Likewise.
45765
45766 2009-06-29  Bruno Haible  <bruno@clisp.org>
45767
45768         Define u32_casefold as a wrapper around u32_ct_casefold.
45769         * lib/unicase/u32-casefold.c: Update.
45770         * modules/unicase/u32-casefold (Depends-on): Add
45771         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45772         unicase/empty-suffix-context. Clean up.
45773
45774         Define u16_casefold as a wrapper around u16_ct_casefold.
45775         * lib/unicase/u16-casefold.c: Update.
45776         * modules/unicase/u16-casefold (Depends-on): Add
45777         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45778         unicase/empty-suffix-context. Clean up.
45779
45780         Define u8_casefold as a wrapper around u8_ct_casefold.
45781         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45782         * lib/unicase/u8-casefold.c: Update.
45783         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45784         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45785
45786         Define u32_totitle as a wrapper around u32_ct_totitle.
45787         * lib/unicase/u32-totitle.c: Update.
45788         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45789         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45790
45791         Define u16_totitle as a wrapper around u16_ct_totitle.
45792         * lib/unicase/u16-totitle.c: Update.
45793         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45794         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45795
45796         Define u8_totitle as a wrapper around u8_ct_totitle.
45797         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45798         functions.
45799         (FUNC): Delegate to U_CT_TOTITLE.
45800         * lib/unicase/u8-totitle.c: Update.
45801         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45802         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45803
45804         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45805         invocation.
45806         * modules/unicase/u32-tolower (Depends-on): Add
45807         unicase/empty-prefix-context, unicase/empty-suffix-context.
45808
45809         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45810         invocation.
45811         * modules/unicase/u16-tolower (Depends-on): Add
45812         unicase/empty-prefix-context, unicase/empty-suffix-context.
45813
45814         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45815         * modules/unicase/u8-tolower (Depends-on): Add
45816         unicase/empty-prefix-context, unicase/empty-suffix-context.
45817
45818         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45819         invocation.
45820         * modules/unicase/u32-toupper (Depends-on): Add
45821         unicase/empty-prefix-context, unicase/empty-suffix-context.
45822
45823         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45824         invocation.
45825         * modules/unicase/u16-toupper (Depends-on): Add
45826         unicase/empty-prefix-context, unicase/empty-suffix-context.
45827
45828         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45829         * modules/unicase/u8-toupper (Depends-on): Add
45830         unicase/empty-prefix-context, unicase/empty-suffix-context.
45831
45832         New module 'unicase/u32-ct-casefold'.
45833         * lib/unicase/u32-ct-casefold.c: New file.
45834         * modules/unicase/u32-ct-casefold: New file.
45835
45836         New module 'unicase/u16-ct-casefold'.
45837         * lib/unicase/u16-ct-casefold.c: New file.
45838         * modules/unicase/u16-ct-casefold: New file.
45839
45840         New module 'unicase/u8-ct-casefold'.
45841         * lib/unicase/u8-ct-casefold.c: New file.
45842         * lib/unicase/u-ct-casefold.h: New file, derived from
45843         lib/unicase/u-casefold.h.
45844         * modules/unicase/u8-ct-casefold: New file.
45845
45846         New module 'unicase/u32-ct-totitle'.
45847         * lib/unicase/u32-ct-totitle.c: New file.
45848         * modules/unicase/u32-ct-totitle: New file.
45849
45850         New module 'unicase/u16-ct-totitle'.
45851         * lib/unicase/u16-ct-totitle.c: New file.
45852         * modules/unicase/u16-ct-totitle: New file.
45853
45854         New module 'unicase/u8-ct-totitle'.
45855         * lib/unicase/u8-ct-totitle.c: New file.
45856         * lib/unicase/u-ct-totitle.h: New file, derived from
45857         lib/unicase/u-totitle.h.
45858         * modules/unicase/u8-ct-totitle: New file.
45859
45860         New module 'unicase/u32-ct-tolower'.
45861         * lib/unicase/u32-ct-tolower.c: New file.
45862         * modules/unicase/u32-ct-tolower: New file.
45863
45864         New module 'unicase/u16-ct-tolower'.
45865         * lib/unicase/u16-ct-tolower.c: New file.
45866         * modules/unicase/u16-ct-tolower: New file.
45867
45868         New module 'unicase/u8-ct-tolower'.
45869         * lib/unicase/u8-ct-tolower.c: New file.
45870         * modules/unicase/u8-ct-tolower: New file.
45871
45872         New module 'unicase/u32-ct-toupper'.
45873         * lib/unicase/u32-ct-toupper.c: New file.
45874         * modules/unicase/u32-ct-toupper: New file.
45875
45876         New module 'unicase/u16-ct-toupper'.
45877         * lib/unicase/u16-ct-toupper.c: New file.
45878         * modules/unicase/u16-ct-toupper: New file.
45879
45880         New module 'unicase/u8-ct-toupper'.
45881         * lib/unicase/u8-ct-toupper.c: New file.
45882         * modules/unicase/u8-ct-toupper: New file.
45883
45884         Add context arguments to u*_casemap functions.
45885         * lib/unicase/unicasemap.h: Include unicase.h.
45886         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45887         suffix_context arguments.
45888         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45889         functions.
45890         (FUNC): Add prefix_context and suffix_context arguments. Use
45891         uc_is_cased and uc_is_case_ignorable.
45892         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45893         * lib/unicase/u16-casemap.c: Likewise.
45894         * lib/unicase/u32-casemap.c: Likewise.
45895         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45896         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45897         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45898         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45899         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45900         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45901
45902         New module 'unicase/u32-suffix-context'.
45903         * lib/unicase/u32-suffix-context.c: New file.
45904         * modules/unicase/u32-suffix-context: New file.
45905
45906         New module 'unicase/u16-suffix-context'.
45907         * lib/unicase/u16-suffix-context.c: New file.
45908         * modules/unicase/u16-suffix-context: New file.
45909
45910         New module 'unicase/u8-suffix-context'.
45911         * lib/unicase/u8-suffix-context.c: New file.
45912         * lib/unicase/u-suffix-context.h: New file.
45913         * modules/unicase/u8-suffix-context: New file.
45914
45915         New module 'unicase/empty-suffix-context'.
45916         * lib/unicase/empty-suffix-context.c: New file.
45917         * modules/unicase/empty-suffix-context: New file.
45918
45919         New module 'unicase/u32-prefix-context'.
45920         * lib/unicase/u32-prefix-context.c: New file.
45921         * modules/unicase/u32-prefix-context: New file.
45922
45923         New module 'unicase/u16-prefix-context'.
45924         * lib/unicase/u16-prefix-context.c: New file.
45925         * modules/unicase/u16-prefix-context: New file.
45926
45927         New module 'unicase/u8-prefix-context'.
45928         * lib/unicase/u8-prefix-context.c: New file.
45929         * lib/unicase/u-prefix-context.h: New file.
45930         * lib/unicase/context.h: New file.
45931         * modules/unicase/u8-prefix-context: New file.
45932
45933         New module 'unicase/empty-prefix-context'.
45934         * lib/unicase/empty-prefix-context.c: New file.
45935         * modules/unicase/empty-prefix-context: New file.
45936
45937         New module 'unicase/ignorable'.
45938         * lib/unicase/ignorable.c: New file.
45939         * modules/unicase/ignorable: New file.
45940
45941         New module 'unicase/cased'.
45942         * lib/unicase/caseprop.h: New file.
45943         * lib/unicase/cased.c: New file.
45944         * modules/unicase/cased: New file.
45945
45946         New functions for case mapping of substrings.
45947         * lib/unicase.h (casing_prefix_context_t): New type.
45948         (unicase_empty_prefix_context): New variable.
45949         (u8_casing_prefix_context, u16_casing_prefix_context,
45950         u32_casing_prefix_context, u8_casing_prefixes_context,
45951         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45952         declarations.
45953         (casing_suffix_context_t): New type.
45954         (unicase_empty_suffix_context): New variable.
45955         (u8_casing_suffix_context, u16_casing_suffix_context,
45956         u32_casing_suffix_context, u8_casing_suffixes_context,
45957         u16_casing_suffixes_context, u32_casing_suffixes_context,
45958         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45959         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45960         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45961         declarations.
45962
45963 2009-06-28  Jim Meyering  <meyering@redhat.com>
45964
45965         boostrap: indent only with spaces
45966         * build-aux/bootstrap: Indent only with spaces, never TABs.
45967
45968         bootstrap: split long lines
45969         * build-aux/bootstrap: Keep line length < 80.
45970
45971         bootstrap: sync from coreutils
45972         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45973         just as autoreconf does.  Verify a list of prerequisite
45974         package-name,version-number pairs if defined in bootstrap.conf.
45975         Refer to README-prereq, if prerequisites are not satisfied.
45976
45977 2009-06-27  Eric Blake  <ebb9@byu.net>
45978
45979         tests: add test for bogus NULL definition
45980         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45981         * tests/test-stdlib.c: Likewise.
45982         * tests/test-string.c: Likewise.
45983         * tests/test-locale.c: Likewise.
45984         * tests/test-unistd.c: Likewise.
45985         * modules/stdio-tests (Depends-on): Add verify.
45986         * modules/stdlib-tests (Depends-on): Likewise.
45987         * modules/string-tests (Depends-on): Likewise.
45988         * modules/locale-tests (Depends-on): Likewise.
45989         * modules/unistd-tests (Depends-on): Likewise.
45990
45991 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45992
45993         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45994         self-explaining comment.
45995         * m4/selinux-selinux-h: Update serial.
45996         (gl_LIBSELINUX): New macro, adding a warning for missing development
45997         packages to code extracted from...
45998         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45999         Add warning for missing development packages here, too.
46000
46001 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46002
46003         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46004
46005 2009-06-25  Eric Blake  <ebb9@byu.net>
46006
46007         version-etc: fix regression
46008         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46009         gcc.
46010         (version_etc): Use it, to catch bugs with trailing NULL.
46011         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46012         (version_etc_va): Fix logic bug.
46013         * modules/version-etc-tests: Add test.
46014         * tests/test-version-etc.c: New file.
46015         * tests/test-version-etc.sh: Likewise.
46016
46017 2009-06-25  Sam Steingold  <sds@gnu.org>
46018
46019         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46020         mbtowc declaration.
46021
46022 2009-06-25  Eric Blake  <ebb9@byu.net>
46023
46024         fpurge: migrate into <stdio.h>
46025         * lib/fpurge.h: Delete...
46026         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46027         * lib/fpurge.c (fpurge): Change declaring header.
46028         * modules/fpurge (Files): Drop deleted file.
46029         (Depends-on): Add stdio.
46030         (configure.ac): Set witness.
46031         * modules/stdio (Makefile.am): Support fpurge macros.
46032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46033         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46034         * lib/fflush.c: Update client.
46035         * tests/test-fpurge.c: Likewise.
46036         * NEWS: Mention the change.
46037
46038 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46039
46040         * lib/argp-version-etc.c (program_authors): Add const
46041         qualifier.
46042         * lib/version-etc.c: Fix typos in the comments.
46043         * modules/argp-version-etc: Depends on version-etc.
46044
46045 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46046
46047         argp-version-etc: new module.
46048
46049         * lib/argp-version-etc.c: New file.
46050         * lib/argp-version-etc.h: New file.
46051         * modules/argp-version-etc: New file.
46052         * modules/argp-version-etc-tests: New file.
46053         * tests/test-argp-version-etc.c: New test.
46054         * tests/test-argp-version-etc-1.sh: New test.
46055
46056 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46057
46058         Provide additional interfaces and documentation for version-etc
46059         module.
46060
46061         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46062         interfaces.
46063         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46064         prototypes.
46065
46066 2009-06-24  Bruno Haible  <bruno@clisp.org>
46067
46068         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46069         HAVE_LIB${NAME} macro.
46070         Reported by Sam Steingold <sds@gnu.org>.
46071
46072 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46073
46074         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46075         needed.
46076
46077 2009-06-21  Bruno Haible  <bruno@clisp.org>
46078
46079         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46080         work.
46081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46082         together with LIB${NAME}, LTLIB${NAME}.
46083         Reported by Sam Steingold <sds@gnu.org>.
46084
46085 2009-06-20  Jim Meyering  <meyering@redhat.com>
46086
46087         tests: make sc_require_test_exit_idiom more generic
46088         * top/maint.mk (Exit_witness_file): New overridable variable.
46089         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46090         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46091
46092 2009-06-19  Jim Meyering  <meyering@redhat.com>
46093
46094         hash: reverse order of src/dst parameters in an internal interface
46095         * lib/hash.c (transfer_entries): Reverse order of parameters to
46096         put DST before SRC.  Adjust callers.
46097
46098         tests: test-hash: avoid wholesale duplication
46099         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46100         Instead, use a loop and add a single conditional.
46101
46102         tests: test-hash: allow seed selection via a command line argument
46103         * tests/test-hash.c (get_seed): New function.
46104         (main): Use it.
46105
46106 2009-06-19  Eric Blake  <ebb9@byu.net>
46107
46108         hash: avoid memory leak on allocation failure
46109         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46110         failure.  Factor repeated algorithm...
46111         (transfer_entries): ...into new helper routine.
46112         (hash_delete): React to hash_rehash return value.
46113
46114         hash: reduce memory pressure in hash_rehash no-op case
46115         * lib/hash.c (next_prime): Avoid overflow.
46116         (hash_initialize): Factor bucket size computation...
46117         (compute_bucket_size): ...into new helper function.
46118         (hash_rehash): Use new function and open coding to reduce memory
46119         pressure, and avoid a memory leak in USE_OBSTACK code.
46120         Reported by Jim Meyering.
46121
46122 2009-06-18  Eric Blake  <ebb9@byu.net>
46123
46124         hash: make rotation more obvious
46125         * modules/hash (Depends-on): Add bitrotate and stdint.
46126         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46127         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46128         (SIZE_MAX): Rely on headers for definition.
46129         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46130         (raw_hasher): Use rotr_sz.
46131         Suggested by Jim Meyering.
46132
46133         hash: fix memory leak in last patch
46134         * lib/hash.c (hash_rehash): Avoid memory leak.
46135
46136         hash: avoid no-op rehashing
46137         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46138
46139         hash: provide default callback functions
46140         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46141         (hash_initialize): Use them as defaults.
46142         * tests/test-hash.c (main): Test this.
46143
46144         hash: minor optimization
46145         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46146         when possible.
46147         (hash_initialize): Document this promise.
46148         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46149         * tests/test-hash.c (hash_compare_strings): Test this.
46150
46151 2009-06-18  Bruno Haible  <bruno@clisp.org>
46152
46153         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46154         going to be replaced anyway.
46155
46156 2009-06-18  Bruno Haible  <bruno@clisp.org>
46157
46158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46159         in one place.
46160         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46161         be replaced anyway.
46162
46163 2009-06-18  Eric Blake  <ebb9@byu.net>
46164
46165         hash: check for resize before insertion
46166         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46167         threshold before insertion, so that a pathological hash_rehash
46168         that fills every bucket can still trigger another rehash.
46169
46170 2009-06-18  Jim Meyering  <meyering@redhat.com>
46171
46172         hash-tests: add a loop around the small tests
46173         * tests/test-hash.c (main): Repeat small tests with selected
46174         small initial table sizes.
46175
46176 2009-06-17  Eric Blake  <ebb9@byu.net>
46177
46178         hash: minor cleanups
46179         * lib/hash.h (hash_entry): Make opaque, by moving...
46180         * lib/hash.c (hash_entry): ...here.
46181         (hash_insert): Clarify restrictions on what can be inserted.
46182         (hash_get_next): Clarify when it is safe to remove an element
46183         during traversal.
46184         (check_tuning): Skip verification when tuning is known safe.
46185         (hash_initialize): Clarify restrictions on tuning.
46186
46187 2009-06-17  Jim Meyering  <jim@meyering.net>
46188         and Eric Blake  <ebb9@byu.net>
46189
46190         hash-tests: new module
46191         * modules/hash-tests: New file.
46192         * tests/test-hash.c: New file.
46193
46194 2009-06-17  Eric Blake  <ebb9@byu.net>
46195
46196         strstr-simple: document new module
46197         * MODULES.html.sh: Document new module.
46198
46199         strstr, strcasestr: replace on platforms with broken memchr
46200         * modules/strstr: Split into...
46201         * modules/strstr-simple: ...new module that does not care about
46202         performance, but does care about glibc bug.
46203         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46204         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46205         if platform memchr is broken, per Debian bug 521737.
46206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46207         memchr.
46208         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46209         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46210         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46211         * modules/mountlist (Depends-on): Add strstr-simple.
46212         * modules/gen-uni-tables (Depends-on): Likewise.
46213         * modules/argz (Depends-on): Add strstr.
46214
46215 2009-06-17  Bruno Haible  <bruno@clisp.org>
46216
46217         * modules/posix_spawn-internal (Depends-on): Add errno.
46218
46219 2009-06-17  Bruno Haible  <bruno@clisp.org>
46220
46221         Define missing ESTALE on Interix 3.5.
46222         * lib/errno.in.h (ESTALE): Assign a value if missing.
46223         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46225         missing.
46226         * doc/posix-headers/errno.texi: Mention the Interix bug.
46227         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46228
46229 2009-06-15  Eric Blake  <ebb9@byu.net>
46230
46231         memchr, memchr2: add valgrind exception
46232         * lib/memchr.valgrind: New file.
46233         * lib/memchr2.valgrind: New file.
46234         * modules/memchr (Files): Distribute valgrind file.
46235         * modules/memchr2 (Files): Likewise.
46236
46237         docs: memchr is no longer obsolete
46238         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46239         * lib/string.in.h (memchr): Simplify logic.
46240
46241 2009-06-14  Jim Meyering  <meyering@redhat.com>
46242
46243         link-follow: fix the "checking..." message to not mention trailing slash
46244         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46245         never considered trailing slashes.
46246
46247 2009-06-14  Bruno Haible  <bruno@clisp.org>
46248
46249         * m4/memchr.m4: Mention also the bug on IA-64.
46250         * doc/posix-functions/memchr.texi: Likewise.
46251
46252 2009-06-12  Eric Blake  <ebb9@byu.net>
46253
46254         memchr: detect broken x86_64 and alpha implementations
46255         * modules/memchr-tests (Depends-on): Move mmap detection...
46256         * modules/memchr (Depends-on): ...here.
46257         (configure.ac): Set indicator.
46258         * lib/string.in.h (memchr): Declare replacement.
46259         * modules/string (Makefile.am): Trigger replacement.
46260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46261         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46262         bugs.
46263         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46264         * modules/getpagesize (License): Relax license.
46265
46266 2009-06-11  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/idpriv.h: Add more references.
46269
46270 2009-06-08  Bruno Haible  <bruno@clisp.org>
46271
46272         Tests for module 'idpriv-droptemp'.
46273         * modules/idpriv-droptemp-tests: New file.
46274         * tests/test-idpriv-droptemp.sh: New file.
46275         * tests/test-idpriv-droptemp.su.sh: New file.
46276         * tests/test-idpriv-droptemp.c: New file.
46277
46278         New module 'idpriv-droptemp'.
46279         * lib/idpriv-droptemp.c: New file.
46280         * modules/idpriv-droptemp: New file.
46281
46282 2009-06-08  Bruno Haible  <bruno@clisp.org>
46283
46284         Tests for module 'idpriv-drop'.
46285         * modules/idpriv-drop-tests: New file.
46286         * tests/test-idpriv-drop.sh: New file.
46287         * tests/test-idpriv-drop.su.sh: New file.
46288         * tests/test-idpriv-drop.c: New file.
46289
46290         New module 'idpriv-drop'.
46291         * lib/idpriv.h: New file.
46292         * lib-idpriv-drop.c: New file.
46293         * m4/idpriv.m4: New file.
46294         * modules/idpriv-drop: New file.
46295
46296 2009-06-08  Bruno Haible  <bruno@clisp.org>
46297
46298         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46299         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46300         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46301         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46302         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46303         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46304         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46305
46306 2009-06-08  Eric Blake  <ebb9@byu.net>
46307
46308         test-strstr: use memory fence, when possible
46309         * tests/test-strstr.c (main): Use memory fence, in order to be
46310         more likely to trigger Debian bug 521737.
46311         * modules/strstr-tests (Files): Pull in additional files.
46312
46313         memchr: no longer obsolete, for wider field testing
46314         * modules/memchr (Status, Notice): Delete, this module is no
46315         longer obsolete.
46316         * modules/vasnprintf (Depends-on): Add memchr.
46317
46318 2009-06-07  Jim Meyering  <meyering@redhat.com>
46319
46320         hash: declare some functions with the warn_unused_result attribute
46321         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46322
46323 2009-06-07  Bruno Haible  <bruno@clisp.org>
46324
46325         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46326         Reported by Eric Blake.
46327
46328 2009-06-06  Eric Blake  <ebb9@byu.net>
46329
46330         test-alignof: fix typo with long double
46331         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46332         compiler error.
46333
46334 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46335
46336         Escape non-texinfo { and }s.
46337         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46338         markup error.
46339
46340 2009-06-04  Jim Meyering  <meyering@redhat.com>
46341
46342         gitlog-to-changelog: don't infloop on an empty commit log
46343         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46344         Reported by Boris Petersen <transacid@centerim.org>.
46345
46346 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46347
46348         version-etc: extend for packagers
46349         Add three new configure options, intended for packagers:
46350           --with-packager="packager name"
46351           --with-packager-version="packager-specific version"
46352           --with-packager-bug-reports="packager bug reporting"
46353         An example with coreutils:
46354           $ ./configure \
46355             --with-packager=Gentoo \
46356             --with-packager-bug-report=http://bugs.gentoo.org/ \
46357             --with-packager-version="patchset 1.6"
46358           $ ./src/ls --version | head -n2
46359           ls (GNU coreutils) 7.1-dirty
46360           Packaged by Gentoo (patchset 1.6)
46361         Note that the bug reporting info via --help doesn't show up because
46362         coreutils uses its own custom emit_bug_reporting_address() implementation
46363         in src/system.h.  If it didn't, it'd look like:
46364           $ ./src/ls --help | tail -n4
46365           Report bugs to <bug-coreutils@gnu.org>.
46366           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46367           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46368           General help using GNU software: <http://www.gnu.org/gethelp/>.
46369         * lib/version-etc.c: Print new information, if provided.
46370         * m4/version-etc.m4: New file.
46371         * modules/version-etc (Files): Add m4/version-etc.m4.
46372         (configure.ac): Add gl_VERSION_ETC.
46373
46374 2009-05-31  Bruno Haible  <bruno@clisp.org>
46375
46376         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46377         and 'int64_t'.
46378         * modules/alignof-tests (Dependencies): Add stdint.
46379         Reported by Eric Blake.
46380
46381 2009-05-31  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46384         restriction due to compiler bugs.
46385         Reported by Eric Blake.
46386
46387 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46388             Bruno Haible  <bruno@clisp.org>
46389
46390         Fix test-alignof failure.
46391         * lib/alignof.h (alignof_slot): New macro.
46392         (alignof_type): New macro, with the same semantics as the previous
46393         'alignof'.
46394         (alignof): Alias to alignof_slot.
46395         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46396         check that the results are usable as constant expressions.
46397
46398 2009-05-31  Bruno Haible  <bruno@clisp.org>
46399
46400         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46401         * tests/test-memchr.c (main): Check that memchr does not read past the
46402         first occurrence of the byte.
46403         * tests/test-strstr.c (main): Update comment.
46404         Suggested by Eric Blake.
46405
46406 2009-05-30  Bruno Haible  <bruno@clisp.org>
46407
46408         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46409         detail how to use dumpbin.
46410         Reported by David Byron <dbyron@dbyron.com>.
46411
46412 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46413
46414         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46415
46416 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46417
46418         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46419
46420 2009-05-28  Bruno Haible  <bruno@clisp.org>
46421
46422         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46423         build-aux/ files.
46424
46425 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46426
46427         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46428
46429 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46430
46431         * gnulib-tool (sed_transform_main_lib_file)
46432         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46433         regexps.
46434
46435 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46436
46437         * tests/test-strstr.c: Add another self-test.
46438         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46439         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46440
46441 2009-05-23  Bruno Haible  <bruno@clisp.org>
46442
46443         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46444         change.
46445
46446 2009-05-21  Bruno Haible  <bruno@clisp.org>
46447
46448         Simplify use of mode_t varargs.
46449         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46450         uses 'mode_t' or 'int'.
46451         * lib/openat.c (openat): Likewise.
46452         * lib/open-safer.c (open_safer): Likewise.
46453         * m4/mode_t.m4: New file.
46454         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46455         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46456         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46457         * modules/open (Files): Add m4/mode_t.m4.
46458         * modules/openat (Files): Likewise.
46459         * modules/fcntl-safer (Files): Likewise.
46460         Suggested by Eric Blake.
46461
46462 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46463
46464         * doc/glibc-functions/fallocate.texi: New file.
46465         * doc/gnulib.texi: Include it.
46466
46467 2009-05-21  Eric Blake  <ebb9@byu.net>
46468             Bruno Haible  <bruno@clisp.org>
46469
46470         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46471         invocations.
46472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46473
46474 2009-05-21  Eric Blake  <ebb9@byu.net>
46475             Bruno Haible  <bruno@clisp.org>
46476
46477         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46478         include_next. Fix of 2008-11-20 commit.
46479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46480         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46481         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46482         NEXT_MATH_H.
46483         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46484         instead of NEXT_MATH_H.
46485
46486 2009-05-21  Bruno Haible  <bruno@clisp.org>
46487
46488         Avoid redefinition warnings for SIZE_MAX.
46489         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46490         Reported by Simon Josefsson.
46491
46492 2009-05-21  Bruno Haible  <bruno@clisp.org>
46493
46494         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46495         AC_CACHE_VAL.
46496
46497 2009-05-20  Bruno Haible  <bruno@clisp.org>
46498
46499         Make zeroptr.h work on mingw.
46500         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46501         mprotect.
46502         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46503         * modules/memchr2-tests (configure.ac): Likewise.
46504         * modules/memcmp-tests (configure.ac): Likewise.
46505         * modules/memmem-tests (configure.ac): Likewise.
46506         * modules/memrchr-tests (configure.ac): Likewise.
46507         Reported by Simon Josefsson.
46508
46509 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46510
46511         * tests/test-glob.c: Include string.h for strcmp prototype.
46512
46513 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46514
46515         * modules/getdelim (Depends-on): Add explicit stdint, although it
46516         was implicitly already pulled in via realloc-posix.
46517         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46518
46519 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46520
46521         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46522         G. Christensen" <tgc@jupiterrise.com>.
46523         * m4/sys_socket_h.m4: Check for sa_family_t.
46524         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46525         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46526         * tests/test-sys_socket.c: Check that sa_family_t works.
46527
46528 2009-05-18  Eric Blake  <ebb9@byu.net>
46529
46530         maint.mk: allow gnulib_dir in VPATH build
46531         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46532
46533 2009-05-15  Jim Meyering  <meyering@redhat.com>
46534
46535         maint.mk: Give gnulib_dir a default definition.
46536         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46537         Thus, most packages no longer need to specify this variable in cfg.mk
46538
46539 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46540
46541         rename.m4: fix typos that would make non-mingw cross-configure fail
46542         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46543
46544 2009-05-13  Eric Blake  <ebb9@byu.net>
46545
46546         mmap-anon: avoid out-of-order autoconf expansion
46547         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46548         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46549         * modules/memchr-tests (Depends-on): Add extensions.
46550         * modules/memchr2-tests (Depends-on): Add extensions.
46551         * modules/memcmp-tests (Depends-on): Add extensions.
46552         * modules/memmem-tests (Depends-on): Add extensions.
46553         * modules/memrchr-tests (Depends-on): Add extensions.
46554
46555 2009-05-13  Bruno Haible  <bruno@clisp.org>
46556
46557         Make some tests ISO C 99 compliant.
46558         * tests/zerosize-ptr.h: New file.
46559         * tests/test-memchr.c: Include zerosize-ptr.h.
46560         (main): Use a zero-size object pointer instead of NULL.
46561         * tests/test-memchr2.c: Include zerosize-ptr.h.
46562         (main): Use a zero-size object pointer instead of NULL.
46563         * tests/test-memcmp.c: Include zerosize-ptr.h.
46564         (main): Use a zero-size object pointer instead of NULL.
46565         * tests/test-memmem.c: Include zerosize-ptr.h.
46566         (main): Use a zero-size object pointer instead of NULL.
46567         * tests/test-memrchr.c: Include zerosize-ptr.h.
46568         (main): Use a zero-size object pointer instead of NULL.
46569         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46570         m4/mmap-anon.m4.
46571         (Depends-on): Add getpagesize.
46572         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46573         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46574         m4/mmap-anon.m4.
46575         (Depends-on): Add getpagesize.
46576         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46577         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46578         m4/mmap-anon.m4.
46579         (Depends-on): Add getpagesize.
46580         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46581         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46582         m4/mmap-anon.m4.
46583         (Depends-on): Add getpagesize.
46584         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46585         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46586         m4/mmap-anon.m4.
46587         (Depends-on): Add getpagesize.
46588         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46589
46590 2009-05-12  Bruno Haible  <bruno@clisp.org>
46591
46592         Tests for module 'alignof'.
46593         * modules/alignof-tests: New file.
46594         * tests/test-alignof.c: New file.
46595
46596 2009-05-12  Bruno Haible  <bruno@clisp.org>
46597
46598         Fix alignof macro.
46599         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46600         vendor compilers that are always correct.
46601
46602 2009-05-12  Bruno Haible  <bruno@clisp.org>
46603
46604         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46605         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46606         not whether its fully works.
46607
46608 2009-05-12  Bruno Haible  <bruno@clisp.org>
46609
46610         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46611
46612 2009-05-12  Jim Meyering  <meyering@redhat.com>
46613
46614         * top/maint.mk: Adjust backslash alignment.
46615
46616 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46617
46618         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46619
46620 2009-05-11  Eric Blake  <ebb9@byu.net>
46621
46622         argp: avoid undefined behavior
46623         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46624         macros.
46625
46626 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46627
46628         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46629         user.name to prevent git commit from complaining.
46630
46631 2009-05-10  Bruno Haible  <bruno@clisp.org>
46632
46633         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46634         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46635         it rewrites every file name only once.
46636         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46637
46638 2009-05-08  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46641         instead of 'max'.
46642
46643 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46644
46645         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46646         sockaddr_storage test.
46647
46648 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46649
46650         * modules/sys_socket (Makefile.am): Substitute
46651         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46652         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46653         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46654         * tests/test-sys_socket.c: Check sockaddr_storage.
46655
46656 2009-05-08  Bruno Haible  <bruno@clisp.org>
46657
46658         New module 'alignof'.
46659         * lib/alignof.h: New file.
46660         * modules/alignof: New file.
46661
46662 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46663             Bruno Haible  <bruno@clisp.org>
46664
46665         Fix test-file-has-acl on FreeBSD.
46666         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46667         mask is implicitly added.
46668         * tests/test-file-has-acl.c: Include <signal.h>.
46669         (main): Terminate the test after 5 seconds.
46670         * modules/acl-tests (configure.ac): Check for alarm function.
46671
46672 2009-05-04  Bruno Haible  <bruno@clisp.org>
46673
46674         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46675         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46676         * modules/errno (configure.ac): Drop AC_REQUIRE.
46677         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46678         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46679
46680 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46681
46682         * modules/glob-tests: New module.
46683         * tests/test-glob.c: Add.
46684
46685 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46686
46687         * modules/fnmatch-tests: New module.
46688         * tests/test-fnmatch.c: Add.
46689
46690 2009-05-04  Eric Blake  <ebb9@byu.net>
46691
46692         maint: make the new no-submodule-changes rule VPATH-safe
46693         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46694
46695 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46696             Bruno Haible  <bruno@clisp.org>
46697
46698         acl: Fix infinite loop on FreeBSD.
46699         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46700         of return value from acl_get_entry.
46701         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46702         Likewise.
46703
46704 2009-05-03  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/acl-internal.h (acl_entries): Clarify return value.
46707         * lib/acl_entries.c (acl_entries): Likewise.
46708
46709 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46710
46711         Bug fix in acl module.
46712         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46713
46714 2009-05-03  Bruno Haible  <bruno@clisp.org>
46715
46716         Create gperf-generated file in the source dir, not in the build dir.
46717         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46718         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46719         * modules/unicase/locale-language (unicase/locale-languages.h):
46720         Likewise.
46721         * modules/unicase/special-casing (unicase/special-casing-table.h):
46722         Likewise.
46723         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46724         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46725         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46726         Reported by Ralf Wildenhues.
46727
46728 2009-05-03  Bruno Haible  <bruno@clisp.org>
46729
46730         * modules/fnmatch (Description, configure.ac): Taken from
46731         fnmatch-posix.
46732         * modules/fnmatch-posix: Turn into a symbolic reference to the
46733         'fnmatch' module, and deprecate.
46734         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46735
46736 2009-05-03  Bruno Haible  <bruno@clisp.org>
46737
46738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46739         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46740         Reported by Ralf Wildenhues.
46741
46742 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46743
46744         * m4/fnmatch.m4: Fix fnmatch re-define.
46745
46746 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46747
46748         priv-set: new module and tests; adapt write-any-file
46749         * lib/priv-set.c: New file.
46750         * lib/priv-set.h: New file.
46751         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46752         * lib/write-any-file.c: Simplify by using priv-set module.
46753         * m4/priv-set.m4: New file.
46754         * modules/priv-set: New file.
46755         * modules/unlinkdir: Add dependency on priv-set module.
46756         * modules/write-any-file: Likewise.
46757
46758         Tests for module 'priv-set'.
46759         * modules/priv-set-tests: New file.
46760         * tests/test-priv-set.c: New file.
46761
46762 2009-05-03  Jim Meyering  <meyering@redhat.com>
46763             Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46766         use the converted UTF-8 variant of the name instead.
46767
46768 2009-05-03  Jim Meyering  <meyering@redhat.com>
46769
46770         tests: tighten some getdate tests
46771         * tests/test-getdate.c (main): Tighten tests: require equality,
46772         not just greater than.  Set TZ envvar to UTC0.
46773
46774 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46775
46776         getdate: correctly interpret "next monday" when run on a Monday
46777         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46778         that e.g., "next tues" (when run on a tuesday) results in a date
46779         that is one week in the future, and not today's date.
46780         I.e., add a week when the wday is the same as the current one.
46781         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46782         and earlier by Martin Bernreuther and Jan Minář.
46783         * tests/test-getdate.c (main): Check that "next DAY" is always in
46784         the future and that "last DAY" is always in the past.
46785
46786 2009-05-02  Jim Meyering  <meyering@redhat.com>
46787
46788         build: ensure that a release build fails when a submodule is unclean
46789         * top/maint.mk (no-submodule-changes): New rule.
46790         (alpha beta major): Depend on it.
46791
46792 2009-05-02  Bruno Haible  <bruno@clisp.org>
46793
46794         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46795         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46796         shell variable gl_fnmatch_required to detect which variant is
46797         requested.
46798         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46799         gl_FUNC_FNMATCH_POSIX.
46800         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46801         exclude fnmatch-posix.
46802
46803 2009-05-02  Bruno Haible  <bruno@clisp.org>
46804
46805         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46806         * modules/mbsrtowcs (License): Change to LGPLv2+.
46807         * modules/strnlen1 (License): Likewise.
46808         Reported by Simon Josefsson.
46809
46810 2009-05-02  Bruno Haible  <bruno@clisp.org>
46811
46812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46813         "cross".
46814         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46815         gnulib-tool was called with option --source-base=lib.
46816
46817 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46818
46819         Use automake *-local hooks without commands, for extensibility.
46820         * modules/localcharset (Makefile.am): Rename install-exec-local
46821         rule to install-exec-localcharset, and make it a prerequisite of
46822         install-exec-local.  Likewise, rename the uninstall-local rule to
46823         uninstall-localcharset, and make it a prerequisite of the former.
46824
46825 2009-05-01  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46828         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46829         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46831         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46832         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46833         m4/locale-zh.m4, m4/codeset.m4.
46834
46835         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46836         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46837         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46838         m4/locale-zh.m4.
46839
46840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46841         REPLACE_WCRTOMB if mbstate_t must be replaced.
46842         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46843         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46844
46845 2009-05-01  Bruno Haible  <bruno@clisp.org>
46846
46847         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46848         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46849         dngettext, dcngettext, textdomain, bindtextdomain,
46850         bind_textdomain_codeset): Undefine before redefining.
46851
46852 2009-04-30  Bruno Haible  <bruno@clisp.org>
46853
46854         Fix bug introduced on 2009-04-25.
46855         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46856         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46857         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46858         is defined.
46859         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46860         is defined.
46861         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46862         is defined.
46863         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46864
46865 2009-04-28  Bruno Haible  <bruno@clisp.org>
46866
46867         Comment tweaks.
46868         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46869         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46870         * lib/unicase.h (u*_casexfrm): Likewise.
46871         Reported by Paolo Bonzini.
46872
46873 2009-04-28  Bruno Haible  <bruno@clisp.org>
46874
46875         Fix a compilation error.
46876         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46877         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46878         Reported by Jim Meyering.
46879
46880 2009-04-27  Bruno Haible  <bruno@clisp.org>
46881
46882         New module 'libunistring'.
46883         * modules/libunistring: New file.
46884         * m4/libunistring.m4: New file.
46885         * MODULES.html.sh (Unicode string functions): Add it.
46886
46887 2009-04-27  Eric Blake  <ebb9@byu.net>
46888
46889         maint.mk: allow package-specific header to provide <config.h>
46890         * top/maint.mk (sc_require_config_h): New variable.
46891         (sc_require_config_h, sc_require_config_h_first): Use it.
46892
46893 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46894
46895         * top/maint.mk (sc_avoid_if_before_free): Except
46896         useless-if-before-free script.
46897
46898 2009-04-27  Eric Blake  <ebb9@byu.net>
46899
46900         maintainer-makefile: depend on all required helper scripts
46901         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46902         useless-if-before-free.
46903         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46904         version, rather than assuming gnulib checkout is available.
46905         Reported by Simen Josefsson.
46906
46907 2009-04-26  Bruno Haible  <bruno@clisp.org>
46908
46909         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46910         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46911         "../" or "..".
46912
46913 2009-04-26  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46916         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46917         AC_LIB_HAVE_LINKFLAGS.
46918
46919 2009-04-26  Bruno Haible  <bruno@clisp.org>
46920
46921         Simplify calling convention of u*_conv_from_encoding.
46922         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46923         u32_conv_from_encoding): Expect a resultbuf argument and return the
46924         result directly as a pointer.
46925         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46926         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46927         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46928         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46929         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46930         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46931         Update.
46932         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46933         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46934         * lib/vasnprintf.c (VASNPRINTF): Update.
46935         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46936         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46937         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46938         * NEWS: Mention the change.
46939
46940 2009-04-26  Bruno Haible  <bruno@clisp.org>
46941
46942         Simplify calling convention of u*_conv_to_encoding.
46943         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46944         u32_conv_to_encoding): Expect a resultbuf argument and return the
46945         result directly as a pointer.
46946         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46947         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46948         freeing scaled_offsets if mem_iconveha failed.
46949         * lib/unicase/u-casexfrm.h (FUNC): Update.
46950         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46951         * lib/vasnprintf.c (VASNPRINTF): Update.
46952         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46953         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46954         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46955         * NEWS: Mention the change.
46956
46957 2009-04-26  Bruno Haible  <bruno@clisp.org>
46958
46959         Avoid test failures on AIX and OSF/1.
46960         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46961         malloc(0).
46962         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46963         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46964         Likewise.
46965         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46966         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46967         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46968         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46969         * doc/posix-functions/malloc.texi: Document the portability problem
46970         related to malloc(0).
46971
46972 2009-04-26  Bruno Haible  <bruno@clisp.org>
46973
46974         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46975         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46976         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46977
46978 2009-04-25  Bruno Haible  <bruno@clisp.org>
46979
46980         Avoid link error when creating a namespace clean library.
46981         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46982         as macro with arguments if already defined as an alias.
46983         * lib/signbitf.c (gl_signbitf): Don't undefine.
46984         * lib/signbitd.c (gl_signbitd): Don't undefine.
46985         * lib/signbitl.c (gl_signbitl): Don't undefine.
46986
46987 2009-04-25  Jim Meyering  <meyering@redhat.com>
46988
46989         vc-list-files: fix another quoting bug
46990         * build-aux/vc-list-files: Avoid sed backslash expansion
46991         of pathological directory names.
46992
46993 2009-04-25  Eric Blake  <ebb9@byu.net>
46994
46995         vc-list-files: fix shell quoting error
46996         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46997         timestamp.
46998
46999 2009-04-25  Jim Meyering  <meyering@redhat.com>
47000
47001         vc-list-files: restore lost functionality with subdir argument
47002         * build-aux/vc-list-files: When given a non-"." sub-directory
47003         argument, substitute the $dir/ prefix back onto each resulting name.
47004         Otherwise, coreutils' root_tests check would fail.
47005
47006 2009-04-24  Eric Blake  <ebb9@byu.net>
47007
47008         vc-list-files: ignore git symlinks
47009         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47010         than ls-files, to ignore git symlinks.
47011
47012         maint.mk: import improvements from m4
47013         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47014         (move_if_change): Delete unused macro.
47015         (news-date-check, vc-diff-check): Support VPATH builds.
47016         (announcement): Likewise.  Split --bootstrap-tools list...
47017         (boostrap-tools): ...into separate list, which can be overridden
47018         in cfg.mk.
47019         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47020         requiring dependency on useless-if-before-free module.
47021         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47022         Support VPATH builds.
47023
47024 2009-04-24  Jim Meyering  <meyering@redhat.com>
47025
47026         maint.mk: remove coreutils-specific rules and variables
47027         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47028         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47029         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47030
47031         maint.mk: remove obsolete rule
47032         * top/maint.mk (rel-check): Remove rule.
47033         (WGET, WGETFLAGS): Remove now-unused variables.
47034
47035 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47036
47037         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47038         consistency.
47039
47040         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47041         '$(PATH_SEPARATOR)' instead of ':'.
47042
47043 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47044
47045         * lib/getopt1.c (main): Use 'const' for static array.
47046
47047 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47048
47049         * top/maint.mk: Sync with coreutils.
47050         * NEWS: Explain incompatibilities.
47051
47052 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47053             Bruno Haible  <bruno@clisp.org>
47054
47055         Fix cross-compilation results.
47056         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47057         statement, as third argument of AC_TRY_RUN.
47058         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47059         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47060         Likewise.
47061         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47062         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47063         Likewise.
47064         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47065         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47066         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47067
47068 2009-04-20  Bruno Haible  <bruno@clisp.org>
47069
47070         Avoid test failure on mingw.
47071         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47072
47073 2009-04-20  Bruno Haible  <bruno@clisp.org>
47074
47075         Avoid compilation error on mingw.
47076         * modules/localename-tests (Depends-on): Add locale.
47077
47078 2009-04-19  Bruno Haible  <bruno@clisp.org>
47079
47080         Support for building a shared library on Windows platforms.
47081         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47082         (main): Test the presence of UNINORM_NFC here.
47083         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47084         (main): Test the presence of UNINORM_NFD here.
47085         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47086         (main): Test the presence of UNINORM_NFKC here.
47087         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47088         (main): Test the presence of UNINORM_NFKD here.
47089
47090 2009-04-19  Bruno Haible  <bruno@clisp.org>
47091
47092         Avoid a compiler warning.
47093         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47094         Change type of variable 'sequence'.
47095
47096 2009-04-19  Bruno Haible  <bruno@clisp.org>
47097
47098         * modules/configmake (Makefile.am): When the contents of configmake.h
47099         does not change, arrange to preserve its modification time.
47100
47101 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47102
47103         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47104         gettext domain.
47105
47106 2009-04-16  Jim Meyering  <meyering@redhat.com>
47107
47108         useless-if-before-free: improve conversion code
47109         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47110         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47111
47112 2009-04-14  Bruno Haible  <bruno@clisp.org>
47113
47114         * modules/fcntl (Depends-on): Add extensions.
47115         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47116
47117 2009-04-12  Ben Pfaff  <blp@gnu.org>
47118
47119         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47120         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47121
47122 2009-03-20  Ben Pfaff  <blp@gnu.org>
47123
47124         Make rename replace existing destinations on Windows.
47125         * m4/rename.m4: Add test for Mingw.
47126         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47127         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47128         * doc/posix-functions/rename.texi: Document.
47129
47130 2009-04-10  Bruno Haible  <bruno@clisp.org>
47131
47132         New include file "iconveh.h".
47133         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47134         * lib/striconveh.h: Include it.
47135         (enum iconv_ilseq_handler): Remove definition.
47136         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47137         striconveh.h.
47138         * lib/striconveha.c: Include striconveh.h.
47139         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47140         * modules/striconveh (Files): Add lib/iconveh.h.
47141         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47142         lib/striconveh.h.
47143
47144 2009-04-10  Bruno Haible  <bruno@clisp.org>
47145
47146         * lib/uniconv.h: Update comment.
47147
47148 2009-04-10  Bruno Haible  <bruno@clisp.org>
47149
47150         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47151         always.
47152         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47153         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47154         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47155         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47156         "unistring-notinline.h", so that the function gets defined always.
47157         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47158         * lib/unistr/u8-uctomb.c: Likewise.
47159         * lib/unistr/u16-mbtouc.c: Likewise.
47160         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47161         * lib/unistr/u16-uctomb.c: Likewise.
47162         * lib/unistr/u32-mbtouc.c: Likewise.
47163         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47164         * lib/unistr/u32-uctomb.c: Likewise.
47165
47166 2009-04-10  Bruno Haible  <bruno@clisp.org>
47167
47168         Mark 'utime' obsolete.
47169         * modules/utime (Status, Notice): New sections.
47170         Suggested by Jim Meyering.
47171
47172         Fix cross-compile guess for utime test.
47173         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47174         autoconf.
47175         * doc/posix-functions/utime.texi: Give more precisions.
47176         Reported by Jan <ipif@ymail.com>.
47177
47178 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47179
47180         filevercmp: correct today's change
47181         * lib/filevercmp.c: Also handle coreutils' test inputs.
47182         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47183
47184         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47185         for reporting it.
47186         * lib/filevercmp.c: Special handle for "", "." and "..".
47187         * tests/test-filevercmp.c: Enlarge the set suite.
47188
47189 2009-04-07  Jim Meyering  <meyering@redhat.com>
47190
47191         useless-if-before-free: show how to remove braced useless free, too
47192         * build-aux/useless-if-before-free: still only in a comment, though.
47193
47194 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47195
47196         maint.mk: import changes to syntax-check macros from coreutils
47197         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47198         Use them in the relevant macros.
47199
47200 2009-04-06  Bruno Haible  <bruno@clisp.org>
47201
47202         Fix unportable use of bit-fields.
47203         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47204         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47205         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47206
47207 2009-04-06  Bruno Haible  <bruno@clisp.org>
47208
47209         Avoid test failures on AIX and OSF/1.
47210         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47211         that malloc(0) = NULL.
47212         * tests/unicase/test-u8-tolower.c (check): Likewise.
47213         * tests/unicase/test-u8-totitle.c (check): Likewise.
47214         * tests/unicase/test-u8-toupper.c (check): Likewise.
47215         * tests/unicase/test-u16-casefold.c (check): Likewise.
47216         * tests/unicase/test-u16-tolower.c (check): Likewise.
47217         * tests/unicase/test-u16-totitle.c (check): Likewise.
47218         * tests/unicase/test-u16-toupper.c (check): Likewise.
47219         * tests/unicase/test-u32-casefold.c (check): Likewise.
47220         * tests/unicase/test-u32-tolower.c (check): Likewise.
47221         * tests/unicase/test-u32-totitle.c (check): Likewise.
47222         * tests/unicase/test-u32-toupper.c (check): Likewise.
47223         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47224         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47225         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47226         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47227         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47228         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47229         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47230         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47231         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47232         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47233         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47234         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47235
47236 2009-04-05  Bruno Haible  <bruno@clisp.org>
47237
47238         Work around an autoconf limitation.
47239         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47240         comment line if it would be longer than 3 KB.
47241
47242 2009-04-05  Bruno Haible  <bruno@clisp.org>
47243
47244         Avoid test failure with libiconv-1.13.
47245         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47246         of the expected test results.
47247
47248 2009-04-05  Bruno Haible  <bruno@clisp.org>
47249
47250         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47251         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47252         that it should be installed.
47253
47254 2009-04-05  Bruno Haible  <bruno@clisp.org>
47255
47256         * gnulib-tool: New option --copy-file.
47257         (func_usage): Document it.
47258         (func_dest_tmpfilename): Moved out of func_import.
47259         (func_add_file, func_update_file): New functions, extracted from
47260         func_import.
47261         (func_import): Update.
47262
47263 2009-04-05  Karl Berry  <karl@gnu.org>
47264
47265         * README: prominently mention gnulib-tool.
47266         Rearrange sections so getting the code is near the top.
47267
47268 2009-04-05  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/unicase.h: Mention u*_cmp2.
47271         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47272         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47273         * lib/unicase/ulc-casecmp.c: Likewise.
47274         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47275         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47276         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47277         unistr/u8-cmp.
47278         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47279         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47280         unistr/u16-cmp.
47281         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47282         unistr/u32-cmp.
47283
47284         * lib/uninorm.h: Mention u*_cmp2.
47285         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47286         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47287         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47288         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47289         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47290         unistr/u8-cmp.
47291         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47292         unistr/u16-cmp.
47293         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47294         unistr/u32-cmp.
47295
47296         New module 'unistr/u32-cmp2'.
47297         * lib/unistr/u32-cmp2.c: New file.
47298         * modules/unistr/u32-cmp2: New file.
47299
47300         New module 'unistr/u16-cmp2'.
47301         * lib/unistr/u16-cmp2.c: New file.
47302         * modules/unistr/u16-cmp2: New file.
47303
47304         New module 'unistr/u8-cmp2'.
47305         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47306         * lib/unistr/u8-cmp2.c: New file.
47307         * lib/unistr/u-cmp2.h: New file.
47308         * modules/unistr/u8-cmp2: New file.
47309
47310 2009-04-05  Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/unictype.h (uc_property_is_valid): New macro.
47313         * tests/unictype/test-pr_byname.c (main): Use it.
47314
47315         * lib/unistr.h: Doc fixes.
47316         * lib/uniconv.h: Doc fixes.
47317         * lib/unictype.h: Doc fixes.
47318
47319 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47320
47321         Port coreutils 7.2 to Solaris 8.
47322
47323         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47324         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47325         for Solaris 8.  This is a bit of a hack, as it means it's the
47326         caller's responsibility to add -lnsl if needed, but most likely it
47327         won't be needed since only getaddrinfo uses this and getaddrinfo
47328         isn't needed on Solaris 8.
47329
47330         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47331         problem to Solaris 8 encountered with coreutils 7.2, which
47332         resulted in a message "fnmatch.c:292: warning: passing argument 4
47333         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47334         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47335
47336 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47337
47338         * m4/ld-version-script.m4: Add FIXME comment.
47339
47340 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47341
47342         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47343         SOVERSION variable.
47344
47345 2009-04-02  Bruno Haible  <bruno@clisp.org>
47346
47347         * Makefile (info, html, dvi, pdf): Combine the rules.
47348         Suggested by Jim Meyering.
47349
47350 2009-04-01  Bruno Haible  <bruno@clisp.org>
47351
47352         * Makefile (info, html, dvi, pdf): New targets.
47353         Reported by Reuben Thomas <rrt@sc3d.org>.
47354
47355 2009-04-01  Bruno Haible  <bruno@clisp.org>
47356
47357         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47358         can be put into PATH.
47359         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47360
47361 2009-04-01  Bruno Haible  <bruno@clisp.org>
47362
47363         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47364
47365 2009-04-01  Bruno Haible  <bruno@clisp.org>
47366
47367         Rename module 'visibility'.
47368         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47369         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47370         * doc/gnulib.texi: Update.
47371         * MODULES.html.sh (Misc): Update.
47372         * NEWS: Mention the change.
47373
47374 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47375
47376         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47377         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47378         Eric Blake <ebb9@byu.net> for review.
47379         * MODULES.html.sh: Add lib-msvc-compat.
47380         * doc/gnulib.texi: Link to new section.
47381         * m4/ld-output-def.m4: New file.
47382         * doc/ld-output-def.texi: New file.
47383
47384 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47385
47386         Rename ld-version-script to lib-symbol-versions.  Suggested by
47387         Bruno Haible <bruno@clisp.org>.
47388         * modules/ld-version-script: Renamed to lib-symbol-versions.
47389         * doc/ld-version-script.texi: Fix module name.
47390         * MODULES.html.sh: Add lib-symbol-versions.
47391
47392 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47393
47394         * modules/u64-tests: New file.
47395         * tests/test-u64.c: New file.
47396
47397 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47398
47399         * MODULES.html.sh: Mention u64.
47400         * modules/u64: New module.
47401         * modules/crypto/sha512: Depend on u64 module instead of providing
47402         u64.h.
47403
47404 2009-03-27  Eric Blake  <ebb9@byu.net>
47405
47406         test-strerror: make debugging EAI_SYSTEM easier
47407         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47408         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47409         failure was EAI_SYSTEM.
47410
47411 2009-03-25  Bruno Haible  <bruno@clisp.org>
47412
47413         Fix a problem with --enable-relocatable on Solaris 7.
47414         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47415         since 2008-02-24.
47416
47417 2009-03-25  Eric Blake  <ebb9@byu.net>
47418
47419         test-sockets: avoid gcc warning
47420         * tests/test-sockets.c (main): Silence compiler warning.
47421
47422 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         New modules nproc, pthread, contributed by Glen Lenker.
47425
47426         * MODULES.html.sh: Add pthread, nproc.
47427         * lib/nproc.c: New file.
47428         * lib/nproc.h: New file.
47429         * lib/pthread.in.h: New file.
47430         * m4/pthread.m4: New file.
47431         * modules/nproc: New file.
47432         * modules/pthread: New file.
47433
47434 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47435
47436         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47437         New variable.
47438
47439 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47440
47441         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47442         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47443         * tests/test-filevercmp.c: Add tests for backup suffixes.
47444
47445 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47446
47447         * modules/stdlib (Depends-on): Add stdint, needed when defining
47448         struct random_data on, for example, HP-UX 10.20.  Reported by
47449         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47450
47451 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47452
47453         * lib/readline.c (readline): Call fflush on stdout after printing
47454         prompt.
47455
47456 2009-03-20  Bruno Haible  <bruno@clisp.org>
47457
47458         Remove dependency from 'close' module to -lws2_32 on native Windows.
47459         * lib/close-hook.h: New file.
47460         * lib/close-hook.c: New file.
47461         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47462         w32sock.h.
47463         (_gl_close_fd_maybe_socket): Remove function.
47464         (rpl_close): Invoke execute_all_close_hooks instead of
47465         _gl_close_fd_maybe_socket.
47466         * lib/sockets.c: Include close-hook.h, w32sock.h.
47467         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47468         (close_sockets_hook): New variable.
47469         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47470         (gl_sockets_cleanup): Unregister it.
47471         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47472         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47473         * modules/close-hook: New file.
47474         * modules/close (Files): Remove lib/w32sock.h.
47475         (Depends-on): Add close-hook.
47476         (Link): Remove section.
47477         * modules/sockets (Files): Add lib/w32sock.h.
47478         (Depends-on): Add close-hook.
47479         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47480         invocation.
47481         * NEWS: Mention that LIB_CLOSE is gone.
47482
47483 2009-03-23  Eric Blake  <ebb9@byu.net>
47484
47485         signal-tests: test previous patch
47486         * tests/test-signal.c: New file.
47487         * modules/signal-tests: Likewise.
47488
47489         signal.h: always support 'volatile sig_atomic_t'
47490         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47491         (gl_SIGNAL_H_DEFAULTS): Add a default.
47492         * modules/signal (Makefile.am): Substitute if needed.
47493         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47494         users can blindly add volatile.
47495         * doc/posix-headers/signal.texi (signal.h): Document it.
47496         Reported by Matthew Woehlke.
47497
47498 2009-03-23  Jim Meyering  <meyering@redhat.com>
47499
47500         pathmax: PATH_MAX: use pathconf only when available
47501         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47502         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47503         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47504         This avoids a link failure in a PSP cross-compilation environment
47505         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47506
47507         * lib/vasnprintf.c (divide): Fix typo in comment.
47508
47509 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47510
47511         * gnulib-tool (func_filter_filelist): Fix comment.
47512
47513 2009-03-20  Bruno Haible  <bruno@clisp.org>
47514
47515         Make sockets.h self-contained.
47516         * lib/sockets.c: Include sockets.h first.
47517         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47518
47519 2009-03-19  Eric Blake  <ebb9@byu.net>
47520
47521         doc: mention more functions added in cygwin 1.7.0
47522         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47523         addition.
47524         * doc/posix-functions/log2f.texi: Likewise.
47525
47526 2009-03-19  Jim Meyering  <meyering@redhat.com>
47527
47528         fsusage: avoid syntax error due to statement-before-declaration
47529         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47530         after all declarations.  Reported by Matthew Woehlke in
47531         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47532
47533 2009-03-18  Eric Blake  <ebb9@byu.net>
47534
47535         build-aux/compile: sync from automake
47536         * build-aux/compile: New file, from automake.
47537         * config/srclist.txt: Mention build-aux/compile.
47538
47539 2009-03-17  Bruno Haible  <bruno@clisp.org>
47540
47541         * lib/git-merge-changelog.c: Fix typo in comment.
47542         Reported by Reuben Thomas <rrt@sc3d.org>.
47543
47544 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47545
47546         * m4/regex.m4: update and improve help for
47547         --without-included-regex.
47548
47549 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47550
47551         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47552         failure on missing include files.
47553
47554 2009-03-17  Eric Blake  <ebb9@byu.net>
47555
47556         doc: mention more functions added in cygwin 1.7.0
47557         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47558         addition.
47559         * doc/posix-functions/fwscanf.texi: Likewise.
47560         * doc/posix-functions/swprintf.texi: Likewise.
47561         * doc/posix-functions/swscanf.texi: Likewise.
47562         * doc/posix-functions/vfwprintf.texi: Likewise.
47563         * doc/posix-functions/vfwscanf.texi: Likewise.
47564         * doc/posix-functions/vswprintf.texi: Likewise.
47565         * doc/posix-functions/vswscanf.texi: Likewise.
47566         * doc/posix-functions/vwprintf.texi: Likewise.
47567         * doc/posix-functions/vwscanf.texi: Likewise.
47568         * doc/posix-functions/wcscasecmp.texi: Likewise.
47569         * doc/posix-functions/wcsdup.texi: Likewise.
47570         * doc/posix-functions/wcsftime.texi: Likewise.
47571         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47572         * doc/posix-functions/wprintf.texi: Likewise.
47573         * doc/posix-functions/wscanf.texi: Likewise.
47574         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47575
47576 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47577
47578         maint.mk: really add $(AM_MAKEFLAGS)
47579         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47580         was inadvertently omitted in the last commit.
47581         Spotted by Bruno Haible.
47582
47583         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47584         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47585         $(AM_MAKEFLAGS)' rather than plain `make'.
47586
47587         gnulib-tool: execute $MAKE not make
47588         * gnulib-tool: Default $MAKE to 'make'.
47589         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47590         than make.  Initialize $MAKE in the do-autobuild script.
47591
47592         gnulib-tool: use $MAKE not make in generated files
47593         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47594         make, in generated files.  Initialize $MAKE in the do-autobuild
47595         script.
47596
47597         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47598
47599         GNUmakefile: disable parallelism only for multiple, recursive targets
47600         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47601         additions in the Makefile.
47602         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47603         by Automake.
47604         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47605         are listed on the command line and at least one of them is
47606         listed in $(ALL_RECURSIVE_TARGETS).
47607
47608 2009-03-14  Bruno Haible  <bruno@clisp.org>
47609
47610         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47611         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47612         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47613         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47614         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47615         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47616         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47617         unistr/u8-uctomb.
47618         * modules/unistr/u8-strchr (Depends-on): Likewise.
47619         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47620         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47621         unistr/u16-uctomb.
47622         * modules/unistr/u16-strchr (Depends-on): Likewise.
47623         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47624
47625 2009-03-12  Bruno Haible  <bruno@clisp.org>
47626
47627         Work around select() bug on Interix 3.5.
47628         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47629         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47630         * m4/select.m4: New file.
47631         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47632         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47633         * modules/select (Files): Add m4/select.m4.
47634         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47635         * modules/nanosleep (Depends-on): Add select.
47636         * modules/poll (Depends-on): Likewise.
47637         * doc/posix-functions/select.texi: Mention the Interix bug.
47638         Reported by Markus Duft <mduft@gentoo.org>.
47639
47640         * lib/select.c: Renamed from lib/winsock-select.c.
47641         * modules/select (Files): Add lib/select.c, remove
47642         lib/winsock-select.c.
47643         (configure.ac): Update.
47644
47645 2009-03-12  Jim Meyering  <meyering@redhat.com>
47646
47647         avoid gcc warnings about unused macro definitions
47648         * lib/readtokens.c (STREQ): Remove unused definition.
47649         * lib/xmalloc.c (SIZE_MAX): Likewise.
47650         * lib/openat-die.c (N_): Likewise.
47651         * lib/mountlist.c (SIZE_MAX): Remove definition.
47652         Instead, include <stdint.h>.
47653         * lib/readutmp.c: Likewise.
47654         * modules/readutmp (Depends-on): Add stdint.
47655         * modules/mountlist (Depends-on): Add stdint.
47656         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47657
47658 2009-03-10  Bruno Haible  <bruno@clisp.org>
47659
47660         Tests for module 'mbmemcasecoll'.
47661         * modules/mbmemcasecoll-tests: New file.
47662         * tests/test-mbmemcasecoll1.sh: New file.
47663         * tests/test-mbmemcasecoll2.sh: New file.
47664         * tests/test-mbmemcasecoll3.sh: New file.
47665         * tests/test-mbmemcasecoll.c: New file.
47666
47667         New module 'mbmemcasecoll'.
47668         * lib/mbmemcasecoll.h: New file.
47669         * lib/mbmemcasecoll.c: New file.
47670         * modules/mbmemcasecoll: New file.
47671
47672         * tests/test-mbmemcasecmp.h: New file, extracted from
47673         tests/test-mbmemcasecmp.c.
47674         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47675         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47676         (main): Update.
47677         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47678
47679 2009-03-09  Bruno Haible  <bruno@clisp.org>
47680
47681         Tests for module 'mbmemcasecmp'.
47682         * modules/mbmemcasecmp-tests: New file.
47683         * tests/test-mbmemcasecmp1.sh: New file.
47684         * tests/test-mbmemcasecmp2.sh: New file.
47685         * tests/test-mbmemcasecmp3.sh: New file.
47686         * tests/test-mbmemcasecmp.c: New file.
47687
47688         New module 'mbmemcasecmp'.
47689         * lib/mbmemcasecmp.h: New file.
47690         * lib/mbmemcasecmp.c: New file.
47691         * modules/mbmemcasecmp: New file.
47692
47693 2009-03-09  Bruno Haible  <bruno@clisp.org>
47694
47695         Tests for module 'unicase/ulc-casecoll'.
47696         * modules/unicase/ulc-casecoll-tests: New file.
47697         * tests/unicase/test-ulc-casecoll1.sh: New file.
47698         * tests/unicase/test-ulc-casecoll2.sh: New file.
47699         * tests/unicase/test-ulc-casecoll.c: New file.
47700
47701         New module 'unicase/ulc-casecoll'.
47702         * lib/unicase.h (ulc_casecoll): New declaration.
47703         * lib/unicase/ulc-casecoll.c: New file.
47704         * modules/unicase/ulc-casecoll: New file.
47705
47706         New module 'unicase/ulc-casexfrm'.
47707         * lib/unicase.h (ulc_casexfrm): New declaration.
47708         * lib/unicase/ulc-casexfrm.c: New file.
47709         * modules/unicase/ulc-casexfrm: New file.
47710
47711 2009-03-09  Bruno Haible  <bruno@clisp.org>
47712
47713         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47714         invocations.
47715
47716         * m4/mbscasecmp.m4: Remove file.
47717         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47718         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47719
47720         * m4/mbscasestr.m4: Remove file.
47721         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47722         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47723
47724         * m4/mbschr.m4: Remove file.
47725         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47726         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47727
47728         * m4/mbscspn.m4: Remove file.
47729         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47730         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47731
47732         * m4/mbslen.m4: Remove file.
47733         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47734         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47735
47736         * m4/mbsncasecmp.m4: Remove file.
47737         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47738         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47739
47740         * m4/mbsnlen.m4: Remove file.
47741         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47742         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47743
47744         * m4/mbspbrk.m4: Remove file.
47745         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47746         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47747
47748         * m4/mbspcasecmp.m4: Remove file.
47749         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47750         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47751
47752         * m4/mbsrchr.m4: Remove file.
47753         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47754         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47755
47756         * m4/mbssep.m4: Remove file.
47757         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47758         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47759
47760         * m4/mbsspn.m4: Remove file.
47761         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47762         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47763
47764         * m4/mbsstr.m4: Remove file.
47765         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47766         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47767
47768         * m4/mbstok_r.m4: Remove file.
47769         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47770         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47771
47772         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47773
47774         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47775         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47776
47777         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47778
47779 2009-03-08  Bruno Haible  <bruno@clisp.org>
47780
47781         Tests for module 'unicase/ulc-casecmp'.
47782         * modules/unicase/ulc-casecmp-tests: New file.
47783         * tests/unicase/test-ulc-casecmp1.sh: New file.
47784         * tests/unicase/test-ulc-casecmp2.sh: New file.
47785         * tests/unicase/test-ulc-casecmp.c: New file.
47786
47787         New module 'unicase/ulc-casecmp'.
47788         * lib/unicase.h (ulc_casecmp): New declaration.
47789         * lib/unicase/ulc-casecmp.c: New file.
47790         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47791         'const SRC_UNIT *'.
47792         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47793         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47794         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47795         * modules/unicase/ulc-casecmp: New file.
47796
47797         Tests for module 'unicase/u32-is-cased'.
47798         * modules/unicase/u32-is-cased-tests: New file.
47799         * tests/unicase/test-u32-is-cased.c: New file.
47800
47801         Tests for module 'unicase/u16-is-cased'.
47802         * modules/unicase/u16-is-cased-tests: New file.
47803         * tests/unicase/test-u16-is-cased.c: New file.
47804
47805         Tests for module 'unicase/u8-is-cased'.
47806         * modules/unicase/u8-is-cased-tests: New file.
47807         * tests/unicase/test-u8-is-cased.c: New file.
47808         * tests/unicase/test-is-cased.h: New file.
47809
47810         New module 'unicase/u32-is-cased'.
47811         * lib/unicase/u32-is-cased.c: New file.
47812         * modules/unicase/u32-is-cased: New file.
47813
47814         New module 'unicase/u16-is-cased'.
47815         * lib/unicase/u16-is-cased.c: New file.
47816         * modules/unicase/u16-is-cased: New file.
47817
47818         New module 'unicase/u8-is-cased'.
47819         * lib/unicase/u8-is-cased.c: New file.
47820         * lib/unicase/u-is-cased.h: New file.
47821         * modules/unicase/u8-is-cased: New file.
47822
47823         Tests for module 'unicase/u32-is-casefolded'.
47824         * modules/unicase/u32-is-casefolded-tests: New file.
47825         * tests/unicase/test-u32-is-casefolded.c: New file.
47826
47827         Tests for module 'unicase/u16-is-casefolded'.
47828         * modules/unicase/u16-is-casefolded-tests: New file.
47829         * tests/unicase/test-u16-is-casefolded.c: New file.
47830
47831         Tests for module 'unicase/u8-is-casefolded'.
47832         * modules/unicase/u8-is-casefolded-tests: New file.
47833         * tests/unicase/test-u8-is-casefolded.c: New file.
47834         * tests/unicase/test-is-casefolded.h: New file.
47835
47836         New module 'unicase/u32-is-casefolded'.
47837         * lib/unicase/u32-is-casefolded.c: New file.
47838         * modules/unicase/u32-is-casefolded: New file.
47839
47840         New module 'unicase/u16-is-casefolded'.
47841         * lib/unicase/u16-is-casefolded.c: New file.
47842         * modules/unicase/u16-is-casefolded: New file.
47843
47844         New module 'unicase/u8-is-casefolded'.
47845         * lib/unicase/u8-is-casefolded.c: New file.
47846         * modules/unicase/u8-is-casefolded: New file.
47847
47848         Tests for module 'unicase/u32-is-titlecase'.
47849         * modules/unicase/u32-is-titlecase-tests: New file.
47850         * tests/unicase/test-u32-is-titlecase.c: New file.
47851
47852         Tests for module 'unicase/u16-is-titlecase'.
47853         * modules/unicase/u16-is-titlecase-tests: New file.
47854         * tests/unicase/test-u16-is-titlecase.c: New file.
47855
47856         Tests for module 'unicase/u8-is-titlecase'.
47857         * modules/unicase/u8-is-titlecase-tests: New file.
47858         * tests/unicase/test-u8-is-titlecase.c: New file.
47859         * tests/unicase/test-is-titlecase.h: New file.
47860
47861         New module 'unicase/u32-is-titlecase'.
47862         * lib/unicase/u32-is-titlecase.c: New file.
47863         * modules/unicase/u32-is-titlecase: New file.
47864
47865         New module 'unicase/u16-is-titlecase'.
47866         * lib/unicase/u16-is-titlecase.c: New file.
47867         * modules/unicase/u16-is-titlecase: New file.
47868
47869         New module 'unicase/u8-is-titlecase'.
47870         * lib/unicase/u8-is-titlecase.c: New file.
47871         * modules/unicase/u8-is-titlecase: New file.
47872
47873         Tests for module 'unicase/u32-is-lowercase'.
47874         * modules/unicase/u32-is-lowercase-tests: New file.
47875         * tests/unicase/test-u32-is-lowercase.c: New file.
47876
47877         Tests for module 'unicase/u16-is-lowercase'.
47878         * modules/unicase/u16-is-lowercase-tests: New file.
47879         * tests/unicase/test-u16-is-lowercase.c: New file.
47880
47881         Tests for module 'unicase/u8-is-lowercase'.
47882         * modules/unicase/u8-is-lowercase-tests: New file.
47883         * tests/unicase/test-u8-is-lowercase.c: New file.
47884         * tests/unicase/test-is-lowercase.h: New file.
47885
47886         New module 'unicase/u32-is-lowercase'.
47887         * lib/unicase/u32-is-lowercase.c: New file.
47888         * modules/unicase/u32-is-lowercase: New file.
47889
47890         New module 'unicase/u16-is-lowercase'.
47891         * lib/unicase/u16-is-lowercase.c: New file.
47892         * modules/unicase/u16-is-lowercase: New file.
47893
47894         New module 'unicase/u8-is-lowercase'.
47895         * lib/unicase/u8-is-lowercase.c: New file.
47896         * modules/unicase/u8-is-lowercase: New file.
47897
47898         Tests for module 'unicase/u32-is-uppercase'.
47899         * modules/unicase/u32-is-uppercase-tests: New file.
47900         * tests/unicase/test-u32-is-uppercase.c: New file.
47901
47902         Tests for module 'unicase/u16-is-uppercase'.
47903         * modules/unicase/u16-is-uppercase-tests: New file.
47904         * tests/unicase/test-u16-is-uppercase.c: New file.
47905
47906         Tests for module 'unicase/u8-is-uppercase'.
47907         * modules/unicase/u8-is-uppercase-tests: New file.
47908         * tests/unicase/test-u8-is-uppercase.c: New file.
47909         * tests/unicase/test-is-uppercase.h: New file.
47910
47911         New module 'unicase/u32-is-uppercase'.
47912         * lib/unicase/u32-is-uppercase.c: New file.
47913         * modules/unicase/u32-is-uppercase: New file.
47914
47915         New module 'unicase/u16-is-uppercase'.
47916         * lib/unicase/u16-is-uppercase.c: New file.
47917         * modules/unicase/u16-is-uppercase: New file.
47918
47919         New module 'unicase/u8-is-uppercase'.
47920         * lib/unicase/u8-is-uppercase.c: New file.
47921         * modules/unicase/u8-is-uppercase: New file.
47922
47923         New module 'unicase/u32-is-invariant'.
47924         * lib/unicase/u32-is-invariant.c: New file.
47925         * modules/unicase/u32-is-invariant: New file.
47926
47927         New module 'unicase/u16-is-invariant'.
47928         * lib/unicase/u16-is-invariant.c: New file.
47929         * modules/unicase/u16-is-invariant: New file.
47930
47931         New module 'unicase/u8-is-invariant'.
47932         * lib/unicase/u8-is-invariant.c: New file.
47933         * lib/unicase/invariant.h: New file.
47934         * lib/unicase/u-is-invariant.h: New file.
47935         * modules/unicase/u8-is-invariant: New file.
47936
47937         Tests for module 'unicase/u32-casecoll'.
47938         * modules/unicase/u32-casecoll-tests: New file.
47939         * tests/unicase/test-u32-casecoll.c: New file.
47940
47941         Tests for module 'unicase/u16-casecoll'.
47942         * modules/unicase/u16-casecoll-tests: New file.
47943         * tests/unicase/test-u16-casecoll.c: New file.
47944
47945         Tests for module 'unicase/u8-casecoll'.
47946         * modules/unicase/u8-casecoll-tests: New file.
47947         * tests/unicase/test-u8-casecoll.c: New file.
47948
47949         New module 'unicase/u32-casecoll'.
47950         * lib/unicase/u32-casecoll.c: New file.
47951         * modules/unicase/u32-casecoll: New file.
47952
47953         New module 'unicase/u16-casecoll'.
47954         * lib/unicase/u16-casecoll.c: New file.
47955         * modules/unicase/u16-casecoll: New file.
47956
47957         New module 'unicase/u8-casecoll'.
47958         * lib/unicase/u8-casecoll.c: New file.
47959         * lib/unicase/u-casecoll.h: New file.
47960         * modules/unicase/u8-casecoll: New file.
47961
47962         New module 'unicase/u32-casexfrm'.
47963         * lib/unicase/u32-casexfrm.c: New file.
47964         * modules/unicase/u32-casexfrm: New file.
47965
47966         New module 'unicase/u16-casexfrm'.
47967         * lib/unicase/u16-casexfrm.c: New file.
47968         * modules/unicase/u16-casexfrm: New file.
47969
47970         New module 'unicase/u8-casexfrm'.
47971         * lib/unicase/u8-casexfrm.c: New file.
47972         * lib/unicase/u-casexfrm.h: New file.
47973         * modules/unicase/u8-casexfrm: New file.
47974
47975         Tests for module 'unicase/u32-casecmp'.
47976         * modules/unicase/u32-casecmp-tests: New file.
47977         * tests/unicase/test-u32-casecmp.c: New file.
47978
47979         Tests for module 'unicase/u16-casecmp'.
47980         * modules/unicase/u16-casecmp-tests: New file.
47981         * tests/unicase/test-u16-casecmp.c: New file.
47982
47983         Tests for module 'unicase/u8-casecmp'.
47984         * modules/unicase/u8-casecmp-tests: New file.
47985         * tests/unicase/test-u8-casecmp.c: New file.
47986         * tests/unicase/test-casecmp.h: New file.
47987
47988         New module 'unicase/u32-casecmp'.
47989         * lib/unicase/u32-casecmp.c: New file.
47990         * modules/unicase/u32-casecmp: New file.
47991
47992         New module 'unicase/u16-casecmp'.
47993         * lib/unicase/u16-casecmp.c: New file.
47994         * modules/unicase/u16-casecmp: New file.
47995
47996         New module 'unicase/u8-casecmp'.
47997         * lib/unicase/u8-casecmp.c: New file.
47998         * lib/unicase/u-casecmp.h: New file.
47999         * modules/unicase/u8-casecmp: New file.
48000
48001         Tests for module 'unicase/u32-casefold'.
48002         * modules/unicase/u32-casefold-tests: New file.
48003         * tests/unicase/test-u32-casefold.c: New file.
48004
48005         Tests for module 'unicase/u16-casefold'.
48006         * modules/unicase/u16-casefold-tests: New file.
48007         * tests/unicase/test-u16-casefold.c: New file.
48008
48009         Tests for module 'unicase/u8-casefold'.
48010         * modules/unicase/u8-casefold-tests: New file.
48011         * tests/unicase/test-u8-casefold.c: New file.
48012
48013         New module 'unicase/u32-casefold'.
48014         * lib/unicase/u32-casefold.c: New file.
48015         * modules/unicase/u32-casefold: New file.
48016
48017         New module 'unicase/u16-casefold'.
48018         * lib/unicase/u16-casefold.c: New file.
48019         * modules/unicase/u16-casefold: New file.
48020
48021         New module 'unicase/u8-casefold'.
48022         * lib/unicase/u8-casefold.c: New file.
48023         * lib/unicase/u-casefold.h: New file.
48024         * modules/unicase/u8-casefold: New file.
48025
48026         New module 'unicase/tocasefold'.
48027         * lib/unicase/casefold.h: New file.
48028         * lib/unicase/tocasefold.c: New file.
48029         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48030         * modules/unicase/tocasefold: New file.
48031
48032         Tests for module 'unicase/u32-totitle'.
48033         * modules/unicase/u32-totitle-tests: New file.
48034         * tests/unicase/test-u32-totitle.c: New file.
48035
48036         Tests for module 'unicase/u16-totitle'.
48037         * modules/unicase/u16-totitle-tests: New file.
48038         * tests/unicase/test-u16-totitle.c: New file.
48039
48040         Tests for module 'unicase/u8-totitle'.
48041         * modules/unicase/u8-totitle-tests: New file.
48042         * tests/unicase/test-u8-totitle.c: New file.
48043
48044         New module 'unicase/u32-totitle'.
48045         * lib/unicase/u32-totitle.c: New file.
48046         * modules/unicase/u32-totitle: New file.
48047
48048         New module 'unicase/u16-totitle'.
48049         * lib/unicase/u16-totitle.c: New file.
48050         * modules/unicase/u16-totitle: New file.
48051
48052         New module 'unicase/u8-totitle'.
48053         * lib/unicase/u8-totitle.c: New file.
48054         * lib/unicase/u-totitle.h: New file.
48055         * modules/unicase/u8-totitle: New file.
48056
48057         Tests for module 'unicase/u32-tolower'.
48058         * modules/unicase/u32-tolower-tests: New file.
48059         * tests/unicase/test-u32-tolower.c: New file.
48060
48061         Tests for module 'unicase/u16-tolower'.
48062         * modules/unicase/u16-tolower-tests: New file.
48063         * tests/unicase/test-u16-tolower.c: New file.
48064
48065         Tests for module 'unicase/u8-tolower'.
48066         * modules/unicase/u8-tolower-tests: New file.
48067         * tests/unicase/test-u8-tolower.c: New file.
48068
48069         New module 'unicase/u32-tolower'.
48070         * lib/unicase/u32-tolower.c: New file.
48071         * modules/unicase/u32-tolower: New file.
48072
48073         New module 'unicase/u16-tolower'.
48074         * lib/unicase/u16-tolower.c: New file.
48075         * modules/unicase/u16-tolower: New file.
48076
48077         New module 'unicase/u8-tolower'.
48078         * lib/unicase/u8-tolower.c: New file.
48079         * modules/unicase/u8-tolower: New file.
48080
48081         Tests for module 'unicase/u32-toupper'.
48082         * modules/unicase/u32-toupper-tests: New file.
48083         * tests/unicase/test-u32-toupper.c: New file.
48084
48085         Tests for module 'unicase/u16-toupper'.
48086         * modules/unicase/u16-toupper-tests: New file.
48087         * tests/unicase/test-u16-toupper.c: New file.
48088
48089         Tests for module 'unicase/u8-toupper'.
48090         * modules/unicase/u8-toupper-tests: New file.
48091         * tests/unicase/test-u8-toupper.c: New file.
48092
48093         New module 'unicase/u32-toupper'.
48094         * lib/unicase/u32-toupper.c: New file.
48095         * modules/unicase/u32-toupper: New file.
48096
48097         New module 'unicase/u16-toupper'.
48098         * lib/unicase/u16-toupper.c: New file.
48099         * modules/unicase/u16-toupper: New file.
48100
48101         New module 'unicase/u8-toupper'.
48102         * lib/unicase/u8-toupper.c: New file.
48103         * modules/unicase/u8-toupper: New file.
48104
48105         New module 'unicase/u32-casemap'.
48106         * lib/unicase/u32-casemap.c: New file.
48107         * modules/unicase/u32-casemap: New file.
48108
48109         New module 'unicase/u16-casemap'.
48110         * lib/unicase/u16-casemap.c: New file.
48111         * modules/unicase/u16-casemap: New file.
48112
48113         New module 'unicase/u8-casemap'.
48114         * lib/unicase/unicasemap.h: New file.
48115         * lib/unicase/u8-casemap.c: New file.
48116         * lib/unicase/u-casemap.h: New file.
48117         * modules/unicase/u8-casemap: New file.
48118
48119         New module 'unicase/special-casing'.
48120         * lib/unicase/special-casing.h: New file.
48121         * lib/unicase/special-casing.c: New file.
48122         * lib/unicase/special-casing-table.gperf: New file, generated by
48123         gen-uni-tables.c.
48124         * modules/unicase/special-casing: New file.
48125
48126         Tests for module 'unicase/locale-language'.
48127         * modules/unicase/locale-language-tests: New file.
48128         * tests/unicase/test-locale-language.sh: New file.
48129         * tests/unicase/test-locale-language.c: New file.
48130
48131         New module 'unicase/locale-language'.
48132         * lib/unicase/locale-language.c: New file.
48133         * lib/unicase/locale-languages.gperf: New file.
48134         * modules/unicase/locale-language: New file.
48135
48136         Generate more tables for case conversion and case folding.
48137         * lib/gen-uni-tables.c (SCC_*): New enum items.
48138         (struct special_casing_rule): New type.
48139         (casing_rules, num_casing_rules, allocated_casing_rules): New
48140         variables.
48141         (add_casing_rule, fill_casing_rules): New functions.
48142         (struct casefold_rule): New type.
48143         (casefolding_rules, num_casefolding_rules,
48144         allocated_casefolding_rules): New variables.
48145         (fill_casefolding_rules): New function.
48146         (unicode_casefold): New variable.
48147         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48148         sort_casing_rules, output_casing_rules): New functions.
48149         (main): Accept to more arguments: SpecialCasing.txt and
48150         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48151         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48152         Output mapping for casefolding.
48153
48154         * lib/unicase.h: Include stdbool.h, uninorm.h.
48155         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48156         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48157         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48158         arguments.
48159         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48160         resultp arguments.
48161         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48162         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48163         resultp arguments.
48164         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48165         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48166         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48167         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48168         declarations.
48169         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48170
48171 2009-03-08  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48174         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48175         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48176         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48177
48178 2009-03-07  Bruno Haible  <bruno@clisp.org>
48179
48180         Adjust u*_normcmp, u*_normcoll API.
48181         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48182         u16_normcoll, u32_normcoll): Change failure conventions.
48183         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48184         errno and return -1.
48185         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48186
48187 2009-03-07  Bruno Haible  <bruno@clisp.org>
48188
48189         Tests for module 'uninorm/u32-normcoll'.
48190         * modules/uninorm/u32-normcoll-tests: New file.
48191         * tests/uninorm/test-u32-normcoll.c: New file.
48192
48193         Tests for module 'uninorm/u16-normcoll'.
48194         * modules/uninorm/u16-normcoll-tests: New file.
48195         * tests/uninorm/test-u16-normcoll.c: New file.
48196
48197         Tests for module 'uninorm/u8-normcoll'.
48198         * modules/uninorm/u8-normcoll-tests: New file.
48199         * tests/uninorm/test-u8-normcoll.c: New file.
48200
48201 2009-03-07  Bruno Haible  <bruno@clisp.org>
48202
48203         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48204         tests/uninorm/test-u32-normcmp.c.
48205         * tests/uninorm/test-u32-normcmp.c: Include it.
48206         (test_nonascii): New function, extracted from main. Add some more
48207         tests.
48208         (main): Invoke test_ascii and test_nonascii.
48209         * modules/uninorm/u32-normcmp-tests (Files): Add
48210         tests/uninorm/test-u32-normcmp.h.
48211         (Depends-on): Remove uninorm/u32-normcmp.
48212
48213         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48214         tests/uninorm/test-u16-normcmp.c.
48215         * tests/uninorm/test-u16-normcmp.c: Include it.
48216         (test_nonascii): New function, extracted from main. Add some more
48217         tests.
48218         (main): Invoke test_ascii and test_nonascii.
48219         * modules/uninorm/u16-normcmp-tests (Files): Add
48220         tests/uninorm/test-u16-normcmp.h.
48221         (Depends-on): Remove uninorm/u16-normcmp.
48222
48223         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48224         tests/uninorm/test-u8-normcmp.c.
48225         * tests/uninorm/test-u8-normcmp.c: Include it.
48226         (test_nonascii): New function, extracted from main. Add some more
48227         tests.
48228         (main): Invoke test_ascii and test_nonascii.
48229         * modules/uninorm/u8-normcmp-tests (Files): Add
48230         tests/uninorm/test-u8-normcmp.h.
48231         (Depends-on): Remove uninorm/u8-normcmp.
48232
48233 2009-03-07  Bruno Haible  <bruno@clisp.org>
48234
48235         New module 'uninorm/u32-normcoll'.
48236         * lib/uninorm/u32-normcoll.c: New file.
48237         * modules/uninorm/u32-normcoll: New file.
48238
48239         New module 'uninorm/u16-normcoll'.
48240         * lib/uninorm/u16-normcoll.c: New file.
48241         * modules/uninorm/u16-normcoll: New file.
48242
48243         New module 'uninorm/u8-normcoll'.
48244         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48245         declarations.
48246         * lib/uninorm/u8-normcoll.c: New file.
48247         * lib/uninorm/u-normcoll.h: New file.
48248         * modules/uninorm/u8-normcoll: New file.
48249
48250         New module 'uninorm/u32-normxfrm'.
48251         * lib/uninorm/u32-normxfrm.c: New file.
48252         * modules/uninorm/u32-normxfrm: New file.
48253
48254         New module 'uninorm/u16-normxfrm'.
48255         * lib/uninorm/u16-normxfrm.c: New file.
48256         * modules/uninorm/u16-normxfrm: New file.
48257
48258         New module 'uninorm/u8-normxfrm'.
48259         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48260         declarations.
48261         * lib/uninorm/u8-normxfrm.c: New file.
48262         * lib/uninorm/u-normxfrm.h: New file.
48263         * modules/uninorm/u8-normxfrm: New file.
48264
48265 2009-03-07  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48268         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48269         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48270
48271 2009-03-07  Bruno Haible  <bruno@clisp.org>
48272
48273         New module 'memxfrm'.
48274         * lib/memxfrm.h: New file.
48275         * lib/memxfrm.c: New file.
48276         * modules/memxfrm: New file.
48277
48278 2009-03-07  Bruno Haible  <bruno@clisp.org>
48279
48280         New module 'memcmp2'.
48281         * lib/memcmp2.h: New file.
48282         * lib/memcmp2.c: New file.
48283         * modules/memcmp2: New file.
48284
48285 2009-03-07  Bruno Haible  <bruno@clisp.org>
48286
48287         Tests for module 'uninorm/decomposing-form'.
48288         * modules/uninorm/decomposing-form-tests: New file.
48289         * tests/uninorm/test-decomposing-form.c: New file.
48290
48291         New module 'uninorm/decomposing-form'.
48292         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48293         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48294         Add 'decomposing_variant' field.
48295         * lib/uninorm/decomposing-form.c: New file.
48296         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48297         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48298         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48299         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48300         * modules/uninorm/decomposing-form: New file.
48301         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48302         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48303
48304 2009-03-07  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48307         strings.
48308
48309 2009-03-06  Bruno Haible  <bruno@clisp.org>
48310
48311         Tests for module 'uninorm/u32-normcmp'.
48312         * tests/uninorm/test-u32-normcmp.c: New file.
48313         * modules/uninorm/u32-normcmp-tests: New file.
48314
48315         Tests for module 'uninorm/u16-normcmp'.
48316         * tests/uninorm/test-u16-normcmp.c: New file.
48317         * modules/uninorm/u16-normcmp-tests: New file.
48318
48319         Tests for module 'uninorm/u8-normcmp'.
48320         * tests/uninorm/test-u8-normcmp.c: New file.
48321         * modules/uninorm/u8-normcmp-tests: New file.
48322
48323         New module 'uninorm/u32-normcmp'.
48324         * lib/uninorm/u32-normcmp.c: New file.
48325         * modules/uninorm/u32-normcmp: New file.
48326
48327         New module 'uninorm/u16-normcmp'.
48328         * lib/uninorm/u16-normcmp.c: New file.
48329         * modules/uninorm/u16-normcmp: New file.
48330
48331         New module 'uninorm/u8-normcmp'.
48332         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48333         declarations.
48334         * lib/uninorm/u8-normcmp.c: New file.
48335         * lib/uninorm/u-normcmp.h: New file.
48336         * modules/uninorm/u8-normcmp: New file.
48337
48338 2009-03-06  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48341         Reported by Eric Blake.
48342
48343 2009-03-06  Eric Blake  <ebb9@byu.net>
48344             Bruno Haible  <bruno@clisp.org>
48345
48346         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48347         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48348         condition.
48349         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48350         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48351         condition.
48352         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48353
48354 2009-03-06  Eric Blake  <ebb9@byu.net>
48355
48356         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48357         to avoid compiler warnings.
48358         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48359
48360 2009-03-05  Bruno Haible  <bruno@clisp.org>
48361
48362         * tests/test-ftell.c (main): Disable test beyond end of file on
48363         FreeMiNT.
48364         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48365
48366 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48367
48368         * lib/filevercmp.c: Move hidden files up in ordering.
48369         * tests/test-filevercmp.c: Add tests for hidden files.
48370
48371 2009-03-04  Bruno Haible  <bruno@clisp.org>
48372
48373         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48374         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48375         AM_CFLAGS.
48376         Reported by Simon Josefsson.
48377
48378 2009-03-03  Bruno Haible  <bruno@clisp.org>
48379
48380         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48381         Reported by Simon Josefsson.
48382
48383         * doc/ld-version-script.texi: Update node reference.
48384
48385 2009-03-03  Bruno Haible  <bruno@clisp.org>
48386
48387         * modules/visibility (License): Change to 'unlimited'.
48388         Suggested by Simon Josefsson.
48389
48390 2009-03-03  Jim Meyering  <meyering@redhat.com>
48391
48392         unlinkdir: cannot_unlink_dir may modify process state
48393         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48394         it's neither thread-safe nor appropriate for use in a library.
48395
48396 2009-03-03  Eric Blake  <ebb9@byu.net>
48397
48398         test-closein: silence test under Darwin
48399         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48400         care if it dies from EPIPE or EBADF.
48401
48402 2009-03-03  Bruno Haible  <bruno@clisp.org>
48403
48404         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48405         earlier.
48406         * doc/visibility.texi: Fix @node and @section.
48407
48408 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48409
48410         * doc/gnulib.texi: Link to sections for ld version script and
48411         visibility.
48412         * doc/visibility.texi: Add @node and @section.
48413         * modules/ld-version-script: New module.
48414         * m4/ld-version-script.m4: New file.
48415         * doc/ld-version-script.texi: New file.
48416
48417 2009-03-02  David Lutterkort  <lutter@redhat.com>
48418
48419         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48421
48422 2009-03-02  Bruno Haible  <bruno@clisp.org>
48423
48424         * doc/visibility.texi: Mention libtool's -export-symbols option.
48425
48426 2009-03-02  Jim Meyering  <meyering@redhat.com>
48427
48428         announce-gen: new option: --no-print-checksums
48429         * build-aux/announce-gen (usage): Describe it.
48430         (print_checksums): Print a newline here, not in the [*] footnote.
48431         (main): Honor it.
48432
48433 2009-03-01  Bruno Haible  <bruno@clisp.org>
48434
48435         Use socklen_t in the native Windows replacements prototypes.
48436         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48437         instead of 'int'.
48438         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48439         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48440         * modules/getsockopt (Depends-on): Add socklen.
48441         * modules/setsockopt (Depends-on): Add socklen.
48442
48443 2009-03-01  Bruno Haible  <bruno@clisp.org>
48444
48445         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48446         least 4.2.
48447
48448 2009-03-01  Eric Blake  <ebb9@byu.net>
48449             Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48452         error messages.
48453         * lib/wait-process.c (wait_subprocess): Omit error message about
48454         deadly signal sent to the child of termsigp != NULL.
48455
48456 2009-03-01  Eric Blake  <ebb9@byu.net>
48457
48458         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48459
48460 2009-03-01  Bruno Haible  <bruno@clisp.org>
48461
48462         Avoid a gcc warning.
48463         * tests/test-sched.c (b): Make global.
48464         Reported by Eric Blake.
48465
48466 2009-01-19  Martin Lambers  <marlam@marlam.de>
48467
48468         Provide POSIX semantics for socket timeout options on W32.
48469         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48470         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48471         * modules/setsockopt: Depend on sys_time module for struct timeval.
48472         * modules/getsockopt: Depend on sys_time module for struct timeval.
48473
48474 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48475
48476         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48477         __USE_GNU, for consistency with netdb.in.h.
48478         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48479
48480 2009-03-01  Bruno Haible  <bruno@clisp.org>
48481
48482         More support for FreeMiNT.
48483         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48484         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48485
48486 2009-03-01  Bruno Haible  <bruno@clisp.org>
48487
48488         More support for FreeMiNT.
48489         * lib/fpurge.c (fpurge): Correct last commit.
48490         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48491
48492 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48493
48494         Fix unportable awk script in vc-list-files.
48495         * build-aux/vc-list-files: In the replacement awk script, use
48496         substr with a second argument of 1, not zero.
48497         Report by Simon Josefsson.
48498
48499 2009-02-28  Bruno Haible  <bruno@clisp.org>
48500
48501         More support for FreeMiNT.
48502         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48503         to FreeMiNT today.
48504         * lib/fwriting.c (fwriting): Likewise.
48505         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48506
48507 2009-02-28  Bruno Haible  <bruno@clisp.org>
48508
48509         * tests/test-freadseek.c (main): Disable test beyond end of file on
48510         FreeMiNT.
48511         * tests/test-ftello.c (main): Likewise.
48512         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48513
48514 2009-02-28  Bruno Haible  <bruno@clisp.org>
48515
48516         Add tentative support for FreeMiNT.
48517         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48518         * lib/fpurge.c (fpurge): Likewise.
48519         * lib/freadable.c (freadable): Likewise.
48520         * lib/freading.c (freading): Likewise.
48521         * lib/freadptr.c (freadptr): Likewise.
48522         * lib/freadseek.c (freadptrinc): Likewise.
48523         * lib/fseeko.c (rpl_fseeko): Likewise.
48524         * lib/fseterr.c (fseterr): Likewise.
48525         * lib/fwritable.c (fwritable): Likewise.
48526         * lib/fwriting.c (fwriting): Likewise.
48527         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48528         Hourihane.
48529         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48530
48531 2009-02-28  Bruno Haible  <bruno@clisp.org>
48532
48533         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48534         SIGCHLD.
48535         Reported by Jim Meyering.
48536
48537 2009-02-28  Bruno Haible  <bruno@clisp.org>
48538
48539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48540         Mention the results of these tests on various platforms.
48541         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48542         order.
48543         * doc/posix-functions/printf.texi: Likewise.
48544         * doc/posix-functions/snprintf.texi: Likewise.
48545         * doc/posix-functions/sprintf.texi: Likewise.
48546         * doc/posix-functions/vfprintf.texi: Likewise.
48547         * doc/posix-functions/vprintf.texi: Likewise.
48548         * doc/posix-functions/vsnprintf.texi: Likewise.
48549         * doc/posix-functions/vsprintf.texi: Likewise.
48550         * doc/glibc-functions/obstack_printf.texi: Likewise.
48551         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48552
48553 2009-02-28  Bruno Haible  <bruno@clisp.org>
48554
48555         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48556         Reported by Loïc Minier <lool@dooz.org>.
48557
48558 2009-02-27  Bruno Haible  <bruno@clisp.org>
48559
48560         * gnulib-tool (func_import): Make the sed expression used to create the
48561         sed script for updating the .gitignore file POSIX compliant.
48562         Reported by Eric Blake.
48563
48564 2009-02-27  Bruno Haible  <bruno@clisp.org>
48565
48566         * gnulib-tool (sed): Don't alias as "sed --posix".
48567         Reported by Eric Blake.
48568
48569 2009-02-27  Bruno Haible  <bruno@clisp.org>
48570
48571         Avoid test link errors.
48572         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48573         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48574         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48575         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48577
48578 2009-02-27  Bruno Haible  <bruno@clisp.org>
48579
48580         Avoid spurious "(cached)" in configure output.
48581         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48582         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48583         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48584         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48585         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48586         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48587         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48588         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48589         Reported by Eric Blake.
48590
48591 2009-02-27  Eric Blake  <ebb9@byu.net>
48592
48593         printf: fix regression in previous patch
48594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48595
48596 2009-02-27  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48599         value.
48600         * lib/stdint.in.h: Likewise.
48601         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48602
48603 2009-02-27  Eric Blake  <ebb9@byu.net>
48604
48605         doc: mention more functions added in cygwin 1.7.0
48606         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48607         addition.
48608         * doc/posix-functions/open_wmemstream.texi: Likewise.
48609         * doc/posix-functions/wcsnlen.texi: Likewise.
48610         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48611         * doc/posix-functions/wcstod.texi: Likewise.
48612         * doc/posix-functions/wcstof.texi: Likewise.
48613         * doc/posix-functions/wcstoimax.texi: Likewise.
48614         * doc/posix-functions/wcstok.texi: Likewise.
48615         * doc/posix-functions/wcstoumax.texi: Likewise.
48616
48617         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48619         * doc/posix-functions/fprintf.texi: Update.
48620         * doc/posix-functions/printf.texi: Update.
48621         * doc/posix-functions/snprintf.texi: Update.
48622         * doc/posix-functions/sprintf.texi: Update.
48623         * doc/posix-functions/vfprintf.texi: Update.
48624         * doc/posix-functions/vprintf.texi: Update.
48625         * doc/posix-functions/vsnprintf.texi: Update.
48626         * doc/posix-functions/vsprintf.texi: Update.
48627         * doc/glibc-functions/obstack_printf.texi: Update.
48628         * doc/glibc-functions/obstack_vprintf.texi: Update.
48629
48630 2009-02-26  Eric Blake  <ebb9@byu.net>
48631
48632         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48633         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48634         compilation bug by using runtime conversion.
48635         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48636         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48637         * modules/ceill-tests (Files): Use nan.h.
48638         * modules/floorl-tests (Files): Likewise.
48639         * modules/frexpl-tests (Files): Likewise.
48640         * modules/isnanl-tests (Files): Likewise.
48641         * modules/ldexpl-tests (Files): Likewise.
48642         * modules/roundl-tests (Files): Likewise.
48643         * modules/truncl-tests (Files): Likewise.
48644         * tests/test-ceill.c (main): Use a working NaN.
48645         * tests/test-floorl.c (main): Likewise.
48646         * tests/test-frexpl.c (main): Likewise.
48647         * tests/test-isnan.c (test_long_double): Likewise.
48648         * tests/test-isnanl.h (main): Likewise.
48649         * tests/test-ldexpl.h (main): Likewise.
48650         * tests/test-roundl.h (main): Likewise.
48651         * tests/test-truncl.h (main): Likewise.
48652         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48653
48654 2009-02-26  Eric Blake  <ebb9@byu.net>
48655             Bruno Haible  <bruno@clisp.org>
48656
48657         Work around a *printf bug with %ls on Solaris.
48658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48659         precision is specified, sprintf stops converting the wide string
48660         argument when the number of bytes that have been produced by this
48661         conversion equals or exceeds the precision.
48662         * doc/posix-functions/fprintf.texi: Update.
48663         * doc/posix-functions/printf.texi: Update.
48664         * doc/posix-functions/snprintf.texi: Update.
48665         * doc/posix-functions/sprintf.texi: Update.
48666         * doc/posix-functions/vfprintf.texi: Update.
48667         * doc/posix-functions/vprintf.texi: Update.
48668         * doc/posix-functions/vsnprintf.texi: Update.
48669         * doc/posix-functions/vsprintf.texi: Update.
48670         * doc/glibc-functions/obstack_printf.texi: Update.
48671         * doc/glibc-functions/obstack_vprintf.texi: Update.
48672
48673 2009-02-26  Eric Blake  <ebb9@byu.net>
48674
48675         stdlib: favor compiler check of random.h
48676         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48677         to avoid an ObjC random.h installed by Swarm.
48678
48679 2009-02-26  Bruno Haible  <bruno@clisp.org>
48680
48681         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48682         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48683         Reported by Gary V. Vaughan <gary@gnu.org>.
48684
48685 2009-02-26  Bruno Haible  <bruno@clisp.org>
48686
48687         Fix *printf behaviour regarding the %ls directive.
48688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48689         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48690         NEED_PRINTF_DIRECTIVE_LS.
48691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48692         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48694         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48695         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48696         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48697         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48702         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48706         * doc/posix-functions/fprintf.texi: Update.
48707         * doc/posix-functions/printf.texi: Update.
48708         * doc/posix-functions/snprintf.texi: Update.
48709         * doc/posix-functions/sprintf.texi: Update.
48710         * doc/posix-functions/vfprintf.texi: Update.
48711         * doc/posix-functions/vprintf.texi: Update.
48712         * doc/posix-functions/vsnprintf.texi: Update.
48713         * doc/posix-functions/vsprintf.texi: Update.
48714         * doc/glibc-functions/obstack_printf.texi: Update.
48715         * doc/glibc-functions/obstack_vprintf.texi: Update.
48716         Reported by Eric Blake.
48717
48718 2009-02-25  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48721         with known value.
48722         Reported by Gary V. Vaughan <gary@gnu.org>.
48723
48724 2009-02-25  Bruno Haible  <bruno@clisp.org>
48725
48726         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48727         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48728         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48729         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48730         Reported by Gary V. Vaughan <gary@gnu.org>.
48731
48732 2009-02-25  Bruno Haible  <bruno@clisp.org>
48733
48734         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48735         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48736         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48737         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48738         Reported by Gary V. Vaughan <gary@gnu.org>.
48739
48740 2009-02-25  Eric Blake  <ebb9@byu.net>
48741
48742         tests: skip fseek/ftell tests if ungetc is broken
48743         * m4/ungetc.m4: New file.
48744         * modules/fseek-tests: Split test, so ungetc dependency is
48745         separate from rest of test.
48746         * modules/fseeko-tests: Likewise.
48747         * modules/ftell-tests: Likewise.
48748         * modules/ftello-tests: Likewise.
48749         * tests/test-fseek.c (main): Isolate ungetc dependency.
48750         * tests/test-fseeko.c (main): Likewise.
48751         * tests/test-ftell.c (main): Likewise.
48752         * tests/test-ftello.c (main): Likewise.
48753         * tests/test-fseek2.sh: New file.
48754         * tests/test-fseeko2.sh: Likewise.
48755         * tests/test-ftell2.sh: Likewise.
48756         * tests/test-ftello2.sh: Likewise.
48757
48758 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
48759
48760         test-getaddrinfo: fix usage of skip return code 77
48761         * tests/test-gettaddrinfo.c: Return skip code 77 only
48762         for first occurrence of skip (4x77 is not 77)
48763
48764 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48765
48766         strtod: avoid C99 decl-after-statement
48767         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48768
48769 2009-02-24  Eric Blake  <ebb9@byu.net>
48770
48771         strtod: detect HP-UX 11.31 bug
48772         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48773         Reported by Gary V. Vaughan.
48774
48775 2009-02-23  Bruno Haible  <bruno@clisp.org>
48776
48777         Fix invalid read past end of memory block.
48778         * lib/vasnprintf.c (DCHAR_SET): Define.
48779         (local_wcslen): Define only when needed.
48780         (local_strnlen, local_wcsnlen): New functions.
48781         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48782         directives that involve a conversion ourselves.
48783         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48784         wcsnlen, mbrtowc, wcrtomb.
48785         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48786         * tests/test-vasprintf-posix.c (test_function): Likewise.
48787         * tests/test-snprintf-posix.h (test_function): Likewise.
48788         * tests/test-sprintf-posix.h (test_function): Likewise.
48789         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48790
48791 2009-02-22  Bruno Haible  <bruno@clisp.org>
48792
48793         Implement new clarified decomposition of Hangul syllables.
48794         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48795         of type LTV, return only a pairwise decomposition.
48796         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48797         Likewise.
48798         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48799         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48800         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48801
48802 2009-02-22  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48805         zero-length results and shrink excess allocated memory.
48806         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48807         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48808         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48809         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48810         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48811         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48812         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48813         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48814         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48815         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48816         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48817         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48818
48819 2009-02-21  Bruno Haible  <bruno@clisp.org>
48820
48821         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48822         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48823         spaces after a period. Put a space between a macro name and its
48824         argument list. Trivial rewordings.
48825         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48826         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48827         (main): Return 0 explicitly.
48828
48829 2009-02-21  Bruno Haible  <bruno@clisp.org>
48830
48831         Tests for module 'uninorm/filter'.
48832         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48833         * modules/uninorm/filter-tests: New file.
48834
48835         New module 'uninorm/filter'.
48836         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48837         uninorm_filter_flush, uninorm_filter_free): New declarations.
48838         * lib/uninorm/uninorm-filter.c: New file.
48839         * modules/uninorm/filter: New file.
48840
48841 2009-02-21  Bruno Haible  <bruno@clisp.org>
48842
48843         Tests for module 'uninorm/nfkc'.
48844         * tests/uninorm/test-nfkc.c: New file.
48845         * tests/uninorm/test-u8-nfkc.c: New file.
48846         * tests/uninorm/test-u16-nfkc.c: New file.
48847         * tests/uninorm/test-u32-nfkc.c: New file.
48848         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48849         * tests/uninorm/test-u32-nfkc-big.c: New file.
48850         * modules/uninorm/nfkc-tests: New file.
48851
48852         New module 'uninorm/nfkc'.
48853         * lib/uninorm/nfkc.c: New file.
48854         * modules/uninorm/nfkc: New file.
48855
48856         Tests for module 'uninorm/nfkd'.
48857         * tests/uninorm/test-nfkd.c: New file.
48858         * tests/uninorm/test-u8-nfkd.c: New file.
48859         * tests/uninorm/test-u16-nfkd.c: New file.
48860         * tests/uninorm/test-u32-nfkd.c: New file.
48861         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48862         * tests/uninorm/test-u32-nfkd-big.c: New file.
48863         * modules/uninorm/nfkd-tests: New file.
48864
48865         New module 'uninorm/nfkd'.
48866         * lib/uninorm/nfkd.c: New file.
48867         * modules/uninorm/nfkd: New file.
48868
48869         Tests for module 'uninorm/nfc'.
48870         * tests/uninorm/test-nfc.c: New file.
48871         * tests/uninorm/test-u8-nfc.c: New file.
48872         * tests/uninorm/test-u16-nfc.c: New file.
48873         * tests/uninorm/test-u32-nfc.c: New file.
48874         * tests/uninorm/test-u32-nfc-big.sh: New file.
48875         * tests/uninorm/test-u32-nfc-big.c: New file.
48876         * modules/uninorm/nfc-tests: New file.
48877
48878         New module 'uninorm/nfc'.
48879         * lib/uninorm/nfc.c: New file.
48880         * modules/uninorm/nfc: New file.
48881
48882         Tests for module 'uninorm/nfd'.
48883         * tests/uninorm/test-nfd.c: New file.
48884         * tests/uninorm/test-u8-nfd.c: New file.
48885         * tests/uninorm/test-u16-nfd.c: New file.
48886         * tests/uninorm/test-u32-nfd.c: New file.
48887         * tests/uninorm/test-u32-nfd-big.sh: New file.
48888         * tests/uninorm/test-u32-nfd-big.c: New file.
48889         * tests/uninorm/test-u32-normalize-big.h: New file.
48890         * tests/uninorm/test-u32-normalize-big.c: New file.
48891         * tests/uninorm/NormalizationTest.txt: New file, created from
48892         Unicode 5.1.0 NormalizationTest.txt.
48893         * modules/uninorm/nfd-tests: New file.
48894
48895         New module 'uninorm/nfd'.
48896         * lib/uninorm/nfd.c: New file.
48897         * modules/uninorm/nfd: New file.
48898
48899         New module 'uninorm/u32-normalize'.
48900         * lib/uninorm/u32-normalize.c: New file.
48901         * modules/uninorm/u32-normalize: New file.
48902
48903         New module 'uninorm/u16-normalize'.
48904         * lib/uninorm/u16-normalize.c: New file.
48905         * modules/uninorm/u16-normalize: New file.
48906
48907         New module 'uninorm/u8-normalize'.
48908         * lib/uninorm/u8-normalize.c: New file.
48909         * lib/uninorm/normalize-internal.h: New file.
48910         * lib/uninorm/u-normalize-internal.h: New file.
48911         * modules/uninorm/u8-normalize: New file.
48912
48913         New module 'uninorm/decompose-internal'.
48914         * lib/uninorm/decompose-internal.c: New file.
48915         * modules/uninorm/decompose-internal: New file.
48916
48917         Tests for module 'uninorm/composition'.
48918         * tests/uninorm/test-composition.c: New file.
48919         * modules/uninorm/composition-tests: New file.
48920
48921         New module 'uninorm/composition'.
48922         * lib/uninorm/composition.c: New file.
48923         * lib/uninorm/composition-table.gperf: New file, generated by
48924         gen-uni-tables.
48925         * modules/uninorm/composition: New file.
48926
48927         Tests for module 'uninorm/compat-decomposition'.
48928         * tests/uninorm/test-compat-decomposition.c: New file.
48929         * modules/uninorm/compat-decomposition-tests: New file.
48930
48931         New module 'uninorm/compat-decomposition'.
48932         * lib/uninorm/decompose-internal.h: New file.
48933         * lib/uninorm/compat-decomposition.c: New file.
48934         * modules/uninorm/compat-decomposition: New file.
48935
48936         Tests for module 'uninorm/canonical-decomposition'.
48937         * tests/uninorm/test-canonical-decomposition.c: New file.
48938         * modules/uninorm/canonical-decomposition-tests: New file.
48939
48940         New module 'uninorm/canonical-decomposition'.
48941         * lib/uninorm/canonical-decomposition.c: New file.
48942         * modules/uninorm/canonical-decomposition: New file.
48943
48944         Tests for module 'uninorm/decomposition'.
48945         * tests/uninorm/test-decomposition.c: New file.
48946         * modules/uninorm/decomposition-tests: New file.
48947
48948         New module 'uninorm/decomposition'.
48949         * lib/uninorm/decomposition.c: New file.
48950         * modules/uninorm/decomposition: New file.
48951
48952         New module 'uninorm/decomposition-table'.
48953         * lib/uninorm/decomposition-table.h: New file.
48954         * lib/uninorm/decomposition-table.c: New file.
48955         * lib/uninorm/decomposition-table1.h: New file, generated by
48956         gen-uni-tables.
48957         * lib/uninorm/decomposition-table2.h: New file, generated by
48958         gen-uni-tables.
48959         * modules/uninorm/decomposition-table: New file.
48960
48961         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48962         (UC_DECOMP_*): New enumeration items.
48963         (get_decomposition): New function.
48964         (struct decomp_table): New type.
48965         (output_decomposition, output_decomposition_tables): New functions.
48966         (unicode_composition_exclusions): New variable.
48967         (fill_composition_exclusions, debug_output_composition_tables): New
48968         functions.
48969         (main): Accept one more argument. Invoke fill_composition_exclusions.
48970         Output decomposition and composition tables.
48971
48972         New module 'uninorm/base'.
48973         * lib/uninorm.h: New file.
48974         * lib/unictype.h: Update comment.
48975         * modules/uninorm/base: New file.
48976
48977 2009-02-21  David Lutterkort  <lutter@redhat.com>
48978
48979         Tests for module 'safe-alloc'.
48980         * tests/test-safe-alloc.c: New file.
48981         * modules/safe-alloc-tests: New file.
48982
48983         New module 'safe-alloc'.
48984         * lib/safe-alloc.h: New file.
48985         * lib/safe-alloc.c: New file.
48986         * m4/safe-alloc.m4: New file.
48987         * modules/safe-alloc: New file.
48988         * doc/safe-alloc.texi: New file.
48989         * doc/gnulib.texi: Include it.
48990         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48991         safe-alloc.
48992
48993 2009-02-18  Bruno Haible  <bruno@clisp.org>
48994
48995         Fix link error on non-glibc systems.
48996         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48997         variable.
48998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48999
49000 2009-02-18  Jim Meyering  <meyering@redhat.com>
49001
49002         fts: avoid used-uninitialized error due to recent change
49003         * lib/fts.c (fts_read): Guard uses of the new member,
49004         parent->fts_n_dirs_remaining, since it's not relevant for
49005         the parent of a directory specified on the command-line.
49006
49007 2009-02-17  James Youngman  <jay@gnu.org>
49008             Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/include_next.m4: Reformulate comment.
49011
49012 2009-02-16  Jim Meyering  <meyering@redhat.com>
49013
49014         fts: add #if guards so that the fts_lgpl module still builds
49015         * lib/fts.c: Guard just-added hash-table-using parts with
49016         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49017         Reported by Simon Josefsson.
49018
49019 2009-02-15  Bruno Haible  <bruno@clisp.org>
49020
49021         * modules/array-mergesort-tests: New file.
49022         * tests/test-array-mergesort.c: New file.
49023
49024         New module 'array-mergesort'.
49025         * modules/array-mergesort: New file.
49026         * lib/array-mergesort.h: New file.
49027
49028 2009-02-15  Bruno Haible  <bruno@clisp.org>
49029
49030         Fix 2009-02-07 commit.
49031         * lib/gen-uni-tables.c (output_predicate, output_category,
49032         output_combclass, output_bidi_category, output_decimal_digit,
49033         output_digit, output_numeric, output_mirror, output_scripts,
49034         output_ident_category, output_simple_mapping): Fix format directives.
49035         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49036
49037 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49038
49039         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49040         fixes are available from IBM.
49041
49042 2009-02-13  Jim Meyering  <meyering@redhat.com>
49043
49044         fts: arrange not to stat non-directories in more cases
49045         This makes GNU find (when it doesn't need to stat each file)
49046         *much* more efficient at traversing reiserfs file systems.
49047         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49048         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49049         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49050         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49051         (leaf_optimization_applies): New function.
49052         (LCO_hash, LCO_compare): New helper functions.
49053         (link_count_optimize_ok): New function.
49054         (fts_stat): Initialize new member (if dir).
49055         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49056         we've just stat'ed a directory.  Skip the stat call when possible.
49057         ---
49058         Note this AFS-related exchange:
49059         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49060         and note find's pioctl call in find/fstype.c.
49061         But that is necessary only if you want to enable the
49062         optimization for AFS, and for now, I don't.
49063
49064         fts: move a function definition "up" (no semantic change)
49065         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49066         "up" to precede upcoming use of a related function.
49067
49068 2009-02-11  Jim Meyering  <meyering@redhat.com>
49069
49070         fts: correct internal computation of nlinks (optimization-related)
49071         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49072         whether the current entry is a directory, so don't test it.
49073
49074 2009-02-10  Bruno Haible  <bruno@clisp.org>
49075
49076         Tests for module 'uniwbrk/ulc-wordbreaks'.
49077         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49078         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49079         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49080
49081         Tests for module 'uniwbrk/u32-wordbreaks'.
49082         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49083         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49084
49085         Tests for module 'uniwbrk/u16-wordbreaks'.
49086         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49087         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49088
49089         Tests for module 'uniwbrk/u8-wordbreaks'.
49090         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49091         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49092
49093 2009-02-10  Bruno Haible  <bruno@clisp.org>
49094
49095         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49096         property.
49097         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49098         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49099         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49100
49101 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49102
49103         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49104         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49105
49106 2009-02-10  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49109         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49110         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49111         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49112         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49113         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49114
49115 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49116
49117         * lib/sockets.h (gl_fd_to_handle): New function.
49118
49119         * tests/test-sockets.c: Call gl_fd_to_handle.
49120
49121 2009-02-09  Bruno Haible  <bruno@clisp.org>
49122
49123         * doc/havelib.texi: Document the conventions on bi-arch systems.
49124
49125 2009-02-08  Bruno Haible  <bruno@clisp.org>
49126
49127         Document the AC_LIB_LINKFLAGS macro.
49128         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49129         * doc/gnulib.texi: Include it.
49130
49131 2009-02-08  Bruno Haible  <bruno@clisp.org>
49132
49133         Fix wrong order of sections, compared to TOC.
49134         * doc/gnulib.texi: Include relocatable-maint.texi after the
49135         "Regular expressions" node, not before.
49136
49137 2009-02-08  Bruno Haible  <bruno@clisp.org>
49138
49139         Tests for module 'unicase/totitle'.
49140         * modules/unicase/totitle-tests: New file.
49141
49142         Tests for module 'unicase/tolower'.
49143         * modules/unicase/tolower-tests: New file.
49144
49145         Tests for module 'unicase/toupper'.
49146         * modules/unicase/toupper-tests: New file.
49147         * tests/unicase/test-mapping-part1.h: New file.
49148         * tests/unicase/test-mapping-part2.h: New file.
49149
49150         New module 'unicase/totitle'.
49151         * modules/unicase/totitle: New file.
49152         * lib/unicase/totitle.c: New file.
49153
49154         New module 'unicase/tolower'.
49155         * modules/unicase/tolower: New file.
49156         * lib/unicase/tolower.c: New file.
49157
49158         New module 'unicase/toupper'.
49159         * modules/unicase/toupper: New file.
49160         * lib/unicase/toupper.c: New file.
49161         * lib/unicase/simple-mapping.h: New file.
49162
49163         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49164         (mapping_table): New structure.
49165         (output_simple_mapping): New function.
49166         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49167         * modules/gen-uni-tables (Description): Update.
49168         * lib/unicase/toupper.h: New file, automatically generated by
49169         gen-uni-tables.
49170         * lib/unicase/tolower.h: New file, automatically generated by
49171         gen-uni-tables.
49172         * lib/unicase/totitle.h: New file, automatically generated by
49173         gen-uni-tables.
49174         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49175         gen-uni-tables.
49176         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49177         gen-uni-tables.
49178         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49179         gen-uni-tables.
49180
49181         New module 'unicase/base'.
49182         * modules/unicase/base: New file.
49183         * lib/unicase.h: New file.
49184
49185 2009-02-08  Bruno Haible  <bruno@clisp.org>
49186
49187         New module 'uniwbrk/ulc-wordbreaks'.
49188         * modules/uniwbrk/ulc-wordbreaks: New file.
49189         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49190
49191         New module 'uniwbrk/u32-wordbreaks'.
49192         * modules/uniwbrk/u32-wordbreaks: New file.
49193         * lib/uniwbrk/u32-wordbreaks.c: New file.
49194
49195         New module 'uniwbrk/u16-wordbreaks'.
49196         * modules/uniwbrk/u16-wordbreaks: New file.
49197         * lib/uniwbrk/u16-wordbreaks.c: New file.
49198
49199         New module 'uniwbrk/u8-wordbreaks'.
49200         * modules/uniwbrk/u8-wordbreaks: New file.
49201         * lib/uniwbrk/u8-wordbreaks.c: New file.
49202         * lib/uniwbrk/u-wordbreaks.h: New file.
49203
49204         New module 'uniwbrk/table'.
49205         * modules/uniwbrk/table: New file.
49206         * lib/uniwbrk/wbrktable.h: New file.
49207         * lib/uniwbrk/wbrktable.c: New file.
49208
49209         New module 'uniwbrk/wordbreak-property'.
49210         * modules/uniwbrk/wordbreak-property: New file.
49211         * lib/uniwbrk/wordbreak-property.c: New file.
49212
49213         * lib/gen-uni-tables.c (WBP_*): New enum items.
49214         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49215         (unicode_org_wbp): New variable.
49216         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49217         New functions.
49218         (wbp_table): New structure.
49219         (output_wbp, output_wbrk_tables): New functions.
49220         (main): Accept additional argument. Invoke fill_org_wbp,
49221         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49222         output_wbrk_tables.
49223         * modules/gen-uni-tables (Description): Update.
49224         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49225         gen-uni-tables.
49226
49227         New module 'uniwbrk/base'.
49228         * modules/uniwbrk/base: New file.
49229         * lib/uniwbrk.h: New file.
49230
49231 2009-02-08  Bruno Haible  <bruno@clisp.org>
49232
49233         Update to Unicode 5.1.0.
49234         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49235         U+2185..U+2188.
49236         (is_property_default_ignorable_code_point): Don't include characters
49237         of category Cc or Cs and not-a-characters.
49238         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49239         U+0D79, U+109E, U+109F, U+A60C.
49240         * lib/unictype/bidi_of.h: Regenerated.
49241         * lib/unictype/blocks.h: Regenerated.
49242         * lib/unictype/categ_C.h: Regenerated.
49243         * lib/unictype/categ_Cf.h: Regenerated.
49244         * lib/unictype/categ_Cn.h: Regenerated.
49245         * lib/unictype/categ_L.h: Regenerated.
49246         * lib/unictype/categ_Ll.h: Regenerated.
49247         * lib/unictype/categ_Lm.h: Regenerated.
49248         * lib/unictype/categ_Lo.h: Regenerated.
49249         * lib/unictype/categ_Lu.h: Regenerated.
49250         * lib/unictype/categ_M.h: Regenerated.
49251         * lib/unictype/categ_Mc.h: Regenerated.
49252         * lib/unictype/categ_Me.h: Regenerated.
49253         * lib/unictype/categ_Mn.h: Regenerated.
49254         * lib/unictype/categ_N.h: Regenerated.
49255         * lib/unictype/categ_Nd.h: Regenerated.
49256         * lib/unictype/categ_Nl.h: Regenerated.
49257         * lib/unictype/categ_No.h: Regenerated.
49258         * lib/unictype/categ_P.h: Regenerated.
49259         * lib/unictype/categ_Pd.h: Regenerated.
49260         * lib/unictype/categ_Pe.h: Regenerated.
49261         * lib/unictype/categ_Pf.h: Regenerated.
49262         * lib/unictype/categ_Pi.h: Regenerated.
49263         * lib/unictype/categ_Po.h: Regenerated.
49264         * lib/unictype/categ_Ps.h: Regenerated.
49265         * lib/unictype/categ_S.h: Regenerated.
49266         * lib/unictype/categ_Sk.h: Regenerated.
49267         * lib/unictype/categ_Sm.h: Regenerated.
49268         * lib/unictype/categ_So.h: Regenerated.
49269         * lib/unictype/categ_of.h: Regenerated.
49270         * lib/unictype/combining.h: Regenerated.
49271         * lib/unictype/ctype_alnum.h: Regenerated.
49272         * lib/unictype/ctype_alpha.h: Regenerated.
49273         * lib/unictype/ctype_graph.h: Regenerated.
49274         * lib/unictype/ctype_lower.h: Regenerated.
49275         * lib/unictype/ctype_print.h: Regenerated.
49276         * lib/unictype/ctype_punct.h: Regenerated.
49277         * lib/unictype/ctype_upper.h: Regenerated.
49278         * lib/unictype/decdigit.h: Regenerated.
49279         * lib/unictype/digit.h: Regenerated.
49280         * lib/unictype/mirror.h: Regenerated.
49281         * lib/unictype/numeric.h: Regenerated.
49282         * lib/unictype/pr_alphabetic.h: Regenerated.
49283         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49284         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49285         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49286         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49287         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49288         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49289         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49290         * lib/unictype/pr_combining.h: Regenerated.
49291         * lib/unictype/pr_dash.h: Regenerated.
49292         * lib/unictype/pr_decimal_digit.h: Regenerated.
49293         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49294         * lib/unictype/pr_deprecated.h: Regenerated.
49295         * lib/unictype/pr_diacritic.h: Regenerated.
49296         * lib/unictype/pr_extender.h: Regenerated.
49297         * lib/unictype/pr_format_control.h: Regenerated.
49298         * lib/unictype/pr_grapheme_base.h: Regenerated.
49299         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49300         * lib/unictype/pr_grapheme_link.h: Regenerated.
49301         * lib/unictype/pr_id_continue.h: Regenerated.
49302         * lib/unictype/pr_id_start.h: Regenerated.
49303         * lib/unictype/pr_ideographic.h: Regenerated.
49304         * lib/unictype/pr_ignorable_control.h: Regenerated.
49305         * lib/unictype/pr_lowercase.h: Regenerated.
49306         * lib/unictype/pr_math.h: Regenerated.
49307         * lib/unictype/pr_numeric.h: Regenerated.
49308         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49309         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49310         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49311         * lib/unictype/pr_other_id_continue.h: Regenerated.
49312         * lib/unictype/pr_other_lowercase.h: Regenerated.
49313         * lib/unictype/pr_other_math.h: Regenerated.
49314         * lib/unictype/pr_punctuation.h: Regenerated.
49315         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49316         * lib/unictype/pr_soft_dotted.h: Regenerated.
49317         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49318         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49319         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49320         * lib/unictype/pr_uppercase.h: Regenerated.
49321         * lib/unictype/pr_xid_continue.h: Regenerated.
49322         * lib/unictype/pr_xid_start.h: Regenerated.
49323         * lib/unictype/pr_zero_width.h: Regenerated.
49324         * lib/unictype/scripts.h: Regenerated.
49325         * lib/unictype/scripts_byname.gperf: Regenerated.
49326         * lib/unictype/sy_java_ident.h: Regenerated.
49327         * lib/unilbrk/lbrkprop1.h: Regenerated.
49328         * lib/unilbrk/lbrkprop2.h: Regenerated.
49329         * tests/unictype/test-categ_C.c: Regenerated.
49330         * tests/unictype/test-categ_Cf.c: Regenerated.
49331         * tests/unictype/test-categ_Cn.c: Regenerated.
49332         * tests/unictype/test-categ_L.c: Regenerated.
49333         * tests/unictype/test-categ_Ll.c: Regenerated.
49334         * tests/unictype/test-categ_Lm.c: Regenerated.
49335         * tests/unictype/test-categ_Lo.c: Regenerated.
49336         * tests/unictype/test-categ_Lu.c: Regenerated.
49337         * tests/unictype/test-categ_M.c: Regenerated.
49338         * tests/unictype/test-categ_Mc.c: Regenerated.
49339         * tests/unictype/test-categ_Me.c: Regenerated.
49340         * tests/unictype/test-categ_Mn.c: Regenerated.
49341         * tests/unictype/test-categ_N.c: Regenerated.
49342         * tests/unictype/test-categ_Nd.c: Regenerated.
49343         * tests/unictype/test-categ_Nl.c: Regenerated.
49344         * tests/unictype/test-categ_No.c: Regenerated.
49345         * tests/unictype/test-categ_P.c: Regenerated.
49346         * tests/unictype/test-categ_Pd.c: Regenerated.
49347         * tests/unictype/test-categ_Pe.c: Regenerated.
49348         * tests/unictype/test-categ_Pf.c: Regenerated.
49349         * tests/unictype/test-categ_Pi.c: Regenerated.
49350         * tests/unictype/test-categ_Po.c: Regenerated.
49351         * tests/unictype/test-categ_Ps.c: Regenerated.
49352         * tests/unictype/test-categ_S.c: Regenerated.
49353         * tests/unictype/test-categ_Sk.c: Regenerated.
49354         * tests/unictype/test-categ_Sm.c: Regenerated.
49355         * tests/unictype/test-categ_So.c: Regenerated.
49356         * tests/unictype/test-ctype_alnum.c: Regenerated.
49357         * tests/unictype/test-ctype_alpha.c: Regenerated.
49358         * tests/unictype/test-ctype_graph.c: Regenerated.
49359         * tests/unictype/test-ctype_lower.c: Regenerated.
49360         * tests/unictype/test-ctype_print.c: Regenerated.
49361         * tests/unictype/test-ctype_punct.c: Regenerated.
49362         * tests/unictype/test-ctype_upper.c: Regenerated.
49363         * tests/unictype/test-decdigit.h: Regenerated.
49364         * tests/unictype/test-digit.h: Regenerated.
49365         * tests/unictype/test-numeric.h: Regenerated.
49366         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49367         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49368         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49369         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49370         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49371         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49372         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49373         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49374         * tests/unictype/test-pr_combining.c: Regenerated.
49375         * tests/unictype/test-pr_dash.c: Regenerated.
49376         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49377         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49378         * tests/unictype/test-pr_deprecated.c: Regenerated.
49379         * tests/unictype/test-pr_diacritic.c: Regenerated.
49380         * tests/unictype/test-pr_extender.c: Regenerated.
49381         * tests/unictype/test-pr_format_control.c: Regenerated.
49382         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49383         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49384         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49385         * tests/unictype/test-pr_id_continue.c: Regenerated.
49386         * tests/unictype/test-pr_id_start.c: Regenerated.
49387         * tests/unictype/test-pr_ideographic.c: Regenerated.
49388         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49389         * tests/unictype/test-pr_lowercase.c: Regenerated.
49390         * tests/unictype/test-pr_math.c: Regenerated.
49391         * tests/unictype/test-pr_numeric.c: Regenerated.
49392         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49393         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49394         Regenerated.
49395         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49396         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49397         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49398         * tests/unictype/test-pr_other_math.c: Regenerated.
49399         * tests/unictype/test-pr_punctuation.c: Regenerated.
49400         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49401         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49402         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49403         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49404         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49405         * tests/unictype/test-pr_uppercase.c: Regenerated.
49406         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49407         * tests/unictype/test-pr_xid_start.c: Regenerated.
49408         * tests/unictype/test-pr_zero_width.c: Regenerated.
49409
49410         Update to Unicode 5.1.0.
49411         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49412         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49413         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49414         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49415         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49416         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49417         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49418         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49419         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49420         (nonspacing_table_ind): Update.
49421         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49422
49423         Update to Unicode 5.1.0.
49424         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49425         code transform.
49426         * lib/uniname/uniname.c (unicode_character_name,
49427         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49428         * lib/uniname/uninames.h: Regenerated.
49429         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49430
49431 2009-02-07  Bruno Haible  <bruno@clisp.org>
49432
49433         Merge gen-ctype and gen-lbrk into a single program.
49434         * lib/gen-uni-tables.c: New file, incorporating
49435         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49436         Add directory prefixes to the names of the generated files.
49437         * lib/unictype/gen-ctype.c: Remove file.
49438         * lib/unilbrk/gen-lbrk.c: Remove file.
49439         * modules/gen-uni-tables: New file.
49440         * modules/unictype/gen-ctype: Remove file.
49441         * modules/unilbrk/gen-lbrk: Remove file.
49442
49443 2009-02-07  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49446
49447         New module 'unistr/u32-strcoll'.
49448         * modules/unistr/u32-strcoll: New file.
49449         * lib/unistr/u32-strcoll.c: New file.
49450
49451         New module 'unistr/u16-strcoll'.
49452         * modules/unistr/u16-strcoll: New file.
49453         * lib/unistr/u16-strcoll.c: New file.
49454
49455         New module 'unistr/u8-strcoll'.
49456         * modules/unistr/u8-strcoll: New file.
49457         * lib/unistr/u8-strcoll.c: New file.
49458         * lib/unistr/u-strcoll.h: New file.
49459
49460 2009-02-07  Bruno Haible  <bruno@clisp.org>
49461
49462         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49463         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49464         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49465         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49466         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49467         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49468
49469 2009-02-07  Bruno Haible  <bruno@clisp.org>
49470
49471         Make 64-bit clean.
49472         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49473         output_combclass, output_bidi_category, output_decimal_digit,
49474         output_digit, output_numeric, output_mirror, output_scripts,
49475         output_ident_category): Use proper width specifier in format strings.
49476
49477 2009-02-07  Bruno Haible  <bruno@clisp.org>
49478
49479         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49480         failure behaviour.
49481
49482 2009-02-07  Jim Meyering  <meyering@redhat.com>
49483
49484         regex: avoid compilation failure with upcoming gcc-4.4
49485         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49486         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49487         "... error: integer overflow in preprocessor expression".
49488
49489 2009-02-05  Ben Pfaff  <blp@gnu.org>
49490
49491         Fix link errors on Windows when close module is used.
49492         * modules/close: Add $(LIB_CLOSE) to Link section.
49493         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49494         $(LIB_CLOSE) on Windows.
49495
49496 2009-02-05  Jim Meyering  <meyering@redhat.com>
49497
49498         still avoid unused-parameter warnings, but do it cleanly
49499         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49500         (get_fs_usage): Cast to void instead.
49501         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49502         (dev_from_mount_options, read_file_system_list): Cast to void.
49503         Prompted by Bruno Haible.
49504
49505 2009-02-04  Jim Meyering  <meyering@redhat.com>
49506
49507         fsusage.c: correct copyright year
49508         * lib/fsusage.c: Reflect year in which the change is pushed into
49509
49510         avoid misc. warnings
49511         * lib/fsusage.c (UNUSED_PARAM): Define.
49512         (get_fs_usage): Mark parameter "disk" as unused.
49513         * lib/getugroups.c (getgrent): Use "void" in prototype.
49514         * lib/mountlist.c: Mark unused parameters.
49515         (read_file_system_list): Declare a local with "const".
49516         * lib/nanosleep.c (getnow): Declare static.
49517         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49518
49519         dirfd: set errno upon failure
49520         * lib/dirfd.c: Include <errno.h>.
49521         Set errno to ENOTSUP when returning -1.
49522         * modules/dirfd (Depends-on): Add errno.
49523         Suggested by John Kodis <kodis@comcast.net>.
49524
49525 2009-02-01  Bruno Haible  <bruno@clisp.org>
49526
49527         Don't assume sizeof (long) >= sizeof (void *).
49528         * lib/memcmp.c: Include stdint.h.
49529         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49530         srcp2 to 'const byte *'.
49531         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49532         types to uintptr_t.
49533         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49534         * modules/memcmp (Depends-on): Add stdint.
49535         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49536
49537 2009-01-30  Eric Blake  <ebb9@byu.net>
49538
49539         fix more require-before-expand issues
49540         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49541         expand, AC_PROG_AWK.
49542         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49543
49544 2009-01-28  Eric Blake  <ebb9@byu.net>
49545
49546         version-etc: use consistent URL formatting
49547         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49548         Improve formatting.  Use fputs for string without %.
49549
49550 2009-01-28  Jim Meyering  <meyering@redhat.com>
49551
49552         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49553         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49554         "underquoted definition of NAME" from autoconf-2.59.
49555
49556 2009-01-28  Bruno Haible  <bruno@clisp.org>
49557
49558         * doc/gnulib.texi: Add "Obsolete modules" to index.
49559
49560 2009-01-28  Jim Meyering  <meyering@redhat.com>
49561
49562         useless-if-before-free: recognize more variants
49563         * build-aux/useless-if-before-free: Also recognize e.g.,
49564         if (NULL != p) free (p);
49565
49566 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49567
49568         test-getaddrinfo: skip (don't fail) this test when there's no network
49569         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49570         on the presumption that it means you lack network access.
49571
49572 2009-01-26  Jim Meyering  <meyering@redhat.com>
49573
49574         fflush: avoid warnings on modern systems
49575         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49576         pos and result, into scopes where they're used.
49577
49578 2009-01-26  Eric Blake  <ebb9@byu.net>
49579
49580         Silence warning reintroduced by recent extensions patch.
49581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49582         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49583         autoconf.
49584
49585         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49586         * m4/00gnulib.m4: New file.
49587         * gnulib-tool (func_get_filelist): Always use it.
49588         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49589         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49590
49591 2009-01-25  Bruno Haible  <bruno@clisp.org>
49592
49593         Make test-quotearg work on MacOS X and AIX.
49594         * tests/test-quotearg.sh: New file.
49595         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49596         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49597         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49598         include <libintl.h>.
49599         (fake_locale): Remove variable.
49600         (gettext, dgettext, dcgettext): Remove functions.
49601         (main): Instead of setting a fake locale, set a real locale. Call
49602         textdomain and bindtextdomain.
49603         * modules/quotearg-tests (Files): Add the new files.
49604         (Depends-on): Add gettext, setenv, unsetenv.
49605         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49606         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49607         Augment TESTS_ENVIRONMENT.
49608
49609 2009-01-25  Bruno Haible  <bruno@clisp.org>
49610
49611         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49612         fr_FR.ISO8859-1 locale on MacOS X.
49613         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49614         ja_JP.eucJP locale on MacOS X.
49615         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49616         zh_CN.GB18030 locale on MacOS X.
49617
49618 2009-01-25  Bruno Haible  <bruno@clisp.org>
49619
49620         Avoid link errors on MacOS X 10.3.
49621         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49622         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49623
49624 2009-01-25  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49627         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49628         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49629         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49630         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49631         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49632         posix_spawnattr_init, posix_spawnattr_setsigmask,
49633         posix_spawnattr_setflags, posix_spawnattr_destroy.
49634
49635         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49636         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49637         * modules/execute (Files): Remove m4/posix_spawn.m4.
49638         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49639         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49640         posix_spawnattr_init, posix_spawnattr_setsigmask,
49641         posix_spawnattr_setflags, posix_spawnattr_destroy.
49642
49643 2009-01-25  Bruno Haible  <bruno@clisp.org>
49644
49645         * lib/glthread/threadlib.c: Include <stdlib.h>.
49646
49647 2009-01-25  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/glthread/threadlib.c (dummy): New declaration.
49650
49651 2009-01-25  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49654         multibyte characters also for the GB18030 encoding. Don't crash when
49655         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49656
49657 2009-01-25  Bruno Haible  <bruno@clisp.org>
49658
49659         Avoid redefining 'struct random_data' on OSF/1 5.1.
49660         * lib/stdlib.in.h: Include <random.h> if it exists.
49661         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49662         HAVE_RANDOM_H. Include <random.h> when testing whether
49663         'struct random_data' exists.
49664         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49665
49666 2009-01-25  Bruno Haible  <bruno@clisp.org>
49667
49668         Don't install charset.alias on MacOS X >= 10.3.
49669         * lib/localcharset.c (DARWIN7): New macro.
49670         (get_charset_aliases): Hardcode the result for Darwin7.
49671         * modules/localcharset (install-exec-local): Don't install
49672         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49673
49674 2009-01-25  Bruno Haible  <bruno@clisp.org>
49675
49676         Don't install charset.alias on mingw and Cygwin.
49677         * modules/localcharset (install-exec-local): Don't install
49678         charset.alias on mingw and Cygwin, if the file does not yet exist.
49679         The result for these platforms is hardcoded in localcharset.c.
49680
49681 2009-01-25  Bruno Haible  <bruno@clisp.org>
49682
49683         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49685         before requiring AC_USE_SYSTEM_EXTENSIONS.
49686
49687 2009-01-25  Jim Meyering  <meyering@redhat.com>
49688
49689         c-strtod: avoid warnings
49690         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49691         "assignment discards qualifiers from pointer target type" warnings.
49692
49693 2009-01-24  Bruno Haible  <bruno@clisp.org>
49694
49695         Add support for non-UTF-8 locales on MacOS X.
49696         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49697         canonical encodings. For Darwin 7 and newer, don't map traditional
49698         encodings to UTF-8.
49699         Reported by Vincent Lefevre <vincent@vinc17.org>
49700         at <http://savannah.gnu.org/bugs/?25235>.
49701
49702 2009-01-24  Bruno Haible  <bruno@clisp.org>
49703
49704         * doc/gnulib.texi (Obsolete modules): New section.
49705         Reported by Mike Frysinger <vapier@gentoo.org>.
49706
49707 2009-01-24  Bruno Haible  <bruno@clisp.org>
49708
49709         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49710         (%.dvi): New rule.
49711
49712 2009-01-24  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49715         Reported by Eric Blake.
49716
49717 2009-01-24  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49720         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49721         Reported by Gary V. Vaughan <gary@gnu.org>.
49722
49723 2009-01-24  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49726
49727 2009-01-23  Bruno Haible  <bruno@clisp.org>
49728
49729         Make c-strtod, c-strtold usable in libraries.
49730         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49731         (C_STRTOD): Call strdup instead of xstrdup.
49732         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49733         * modules/c-strtold (Depends-on): Likewise.
49734         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49735         * NEWS: Mention the change.
49736         Reported by Michael Gold <mgold@ncf.ca>.
49737
49738 2009-01-23  Jim Meyering  <meyering@redhat.com>
49739
49740         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49741         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49742         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49743
49744 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49745
49746         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49747         GNU CoreUtils.
49748         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49749         * modules/version-etc (Description): Update.
49750
49751 2009-01-22  Bruno Haible  <bruno@clisp.org>
49752
49753         Cache the C locale object.
49754         * lib/c-strtod.c (c_locale_cache): New variable.
49755         (c_locale): New function.
49756         (C_STRTOD): Use it, and don't call freelocale.
49757         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49758         Suggested by Paolo Bonzini.
49759
49760 2009-01-21  Bruno Haible  <bruno@clisp.org>
49761
49762         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49763         conditions other than overflow.
49764
49765 2009-01-21  Bruno Haible  <bruno@clisp.org>
49766
49767         * lib/c-strtod.c: Include errno.h.
49768         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49769         value from STRTOD_L and STRTOD.
49770
49771 2009-01-21  Bruno Haible  <bruno@clisp.org>
49772         and Jim Meyering  <meyering@redhat.com>
49773
49774         nanosleep: skip configure test (fail it) for apple universal builds
49775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49776         universal builds, assume that nanosleep does not work.
49777         * modules/nanosleep (Depends-on): Add multiarch.
49778
49779         mktime: skip configure test (fail it) for apple universal builds
49780         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49781         universal builds, assume that mktime does not work.
49782         * modules/mktime (Depends-on): Add multiarch.
49783
49784 2009-01-21  Eric Blake  <ebb9@byu.net>
49785
49786         multiarch: avoid expand-before-require warning
49787         * modules/multiarch (configure.ac): Require, rather than expand,
49788         gl_MULTIARCH.
49789         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49790         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49791         enforce that all clients require it.  Partial reversion of
49792         2008-12-29 patch.
49793
49794         error: avoid expand-before-require warning
49795         * modules/errno (configure.ac): Require, rather than expand,
49796         gl_HEADER_ERRNO_H.
49797         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49798         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49799         enforce that all clients require it.
49800
49801         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49802         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49803         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49804         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49805
49806 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49807
49808         Revert:
49809         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49810
49811         regex: do not depend on obsolete modules.
49812         * modules/regex: Remove memcmp and memmove.
49813
49814 2009-01-20  Bruno Haible  <bruno@clisp.org>
49815
49816         Make the 'link' module link on Windows NT 4.
49817         * lib/link.c (_WIN32_WINNT): Don't define.
49818         (CreateHardLinkFuncType): New type.
49819         (CreateHardLinkFunc, initialized): New variables.
49820         (initialize): New function.
49821         (link): Invoke CreateHardLink indirectly through the function pointer.
49822
49823 2009-01-20  Bruno Haible  <bruno@clisp.org>
49824
49825         Fix compilation failure on mingw.
49826         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49827
49828 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49829
49830         * doc/c-strtod.texi: Mention a couple of restrictions.
49831
49832 2009-01-20  Jim Meyering  <meyering@redhat.com>
49833
49834         gettimeofday: move more declarations out of functions
49835         * lib/gettimeofday.c: Move extern declarations of tzset and
49836         gmtime out of containing functions.  Prompted by Bruno Haible.
49837
49838 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49839
49840         regex: do not depend on obsolete modules.
49841         * modules/regex: Remove memcmp and memmove.
49842
49843 2009-01-19  Bruno Haible  <bruno@clisp.org>
49844
49845         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49846         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49847         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49848         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49849         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49850
49851 2009-01-19  Bruno Haible  <bruno@clisp.org>
49852
49853         * tests/test-link.c: Include <errno.h>.
49854         (main): Exit with code 77 when a hard link cannot be created due to
49855         the file system.
49856         * tests/test-link.sh: Skip test when a hard link cannot be created due
49857         to the file system.
49858         Suggested by Eric Blake.
49859
49860 2009-01-19  Martin Lambers  <marlam@marlam.de>
49861
49862         * modules/link-tests: New file.
49863         * tests/test-link.sh: New file.
49864         * tests/test-link.c: New file.
49865
49866 2009-01-19  Eric Blake  <ebb9@byu.net>
49867
49868         doc: mention another function added in cygwin 1.7.0
49869         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49870         Another new function in cygwin 1.7.
49871
49872 2009-01-19  Bruno Haible  <bruno@clisp.org>
49873
49874         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49875         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49876         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49877         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49878         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49879         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49881         * m4/md4.m4 (gl_MD4): Likewise.
49882         * m4/md5.m4 (gl_MD5): Likewise.
49883         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49884         * m4/sha1.m4 (gl_SHA1): Likewise.
49885         * m4/sha256.m4 (gl_SHA256): Likewise.
49886         * m4/sha512.m4 (gl_SHA512): Likewise.
49887
49888 2009-01-19  Bruno Haible  <bruno@clisp.org>
49889
49890         * modules/uniname/uniname-tests (Depends-on): Add progname.
49891         * tests/uniname/test-uninames.c: Include progname.h.
49892         (main): Call set_program_name.
49893
49894         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49895         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49896         (main): Call set_program_name.
49897
49898         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49899         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49900         (main): Call set_program_name.
49901
49902         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49903         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49904         (main): Call set_program_name.
49905
49906         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49907         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49908         (main): Call set_program_name.
49909
49910         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49911         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49912         (main): Call set_program_name.
49913
49914         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49915         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49916         (main): Call set_program_name.
49917
49918         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49919         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49920         (main): Call set_program_name.
49921
49922         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49923         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49924         (main): Call set_program_name.
49925
49926 2009-01-19  Eric Blake  <ebb9@byu.net>
49927
49928         test-unistd: test previous patch
49929         * tests/test-unistd.c: Test *_FILENO macros.
49930
49931         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49932         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49933         Guarantee a definition.
49934         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49935         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49936         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49937         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49938         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49939         Likewise.
49940         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49941         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49942         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49943         Likewise.
49944         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49945         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49946         (STDERR_FILENO): Likewise.
49947         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49948         (STDERR_FILENO): Likewise.
49949         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49950         (STDERR_FILENO): Likewise.
49951         Reported by Elbert Pol.
49952
49953 2009-01-19  Eric Blake  <ebb9@byu.net>
49954
49955         doc: mention more functions added in cygwin 1.7.0
49956         * doc/posix-functions/abort.texi (abort): Update wording related
49957         to cygwin.
49958         * doc/posix-functions/daylight.texi (daylight): Likewise.
49959         * doc/posix-functions/optarg.texi (optarg): Likewise.
49960         * doc/posix-functions/optarg.texi (opterr): Likewise.
49961         * doc/posix-functions/optarg.texi (optind): Likewise.
49962         * doc/posix-functions/optarg.texi (optopt): Likewise.
49963         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49964         worked in 1.5.x, and was withdrawn in 1.7.
49965         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49966         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49967         cygwin versions.
49968         * doc/posix-functions/perror.texi (perror): Likewise.
49969         * doc/posix-functions/printf.texi (printf): Likewise.
49970         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49971         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49972         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49973         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49974         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49975         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49976         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49977         Likewise.
49978         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49979         Likewise.
49980         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49981         this function.
49982         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49983         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49984         Likewise.
49985         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49986         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49987         * doc/posix-functions/confstr.texi (confstr): Likewise.
49988         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49989         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49990         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49991         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49992         * doc/posix-functions/fputws.texi (fputws): Likewise.
49993         * doc/posix-functions/fwide.texi (fwide): Likewise.
49994         * doc/posix-functions/getwc.texi (getwc): Likewise.
49995         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49996         * doc/posix-functions/putwc.texi (putwc): Likewise.
49997         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49998         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49999         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50000         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50001         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50002         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50003         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50004         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50005         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50006         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50007         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50008
50009 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50010
50011         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50012         * lib/ioctl.c: Include <sys/ioctl.h>.
50013
50014 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50015
50016         * modules/getdate-tests (Depends-on): Add progname.
50017         * tests/test-getdate.c: Use progname module, to avoid link errors
50018         on non-glibc systems.
50019
50020 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50021
50022         * modules/filenamecat-tests (Depends-on): Add progname.
50023         * modules/fstrcmp-tests (Depends-on): Likewise.
50024
50025         * tests/test-filenamecat.c: Use progname module, to avoid link
50026         errors on non-glibc systems.
50027         * tests/test-fstrcmp.c: Likewise.
50028
50029 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50030
50031         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50032         * lib/gettimeofday.c: Move extern declaration out of function.
50033
50034 2009-01-18  Bruno Haible  <bruno@clisp.org>
50035
50036         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50037         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50038         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50039
50040 2009-01-18  Bruno Haible  <bruno@clisp.org>
50041
50042         * lib/strftime.c (MEMPCPY): Remove unused macro.
50043         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50044
50045 2009-01-18  Martin Lambers  <marlam@marlam.de>
50046
50047         New module 'link'.
50048         * lib/unistd.in.h (link): New declaration.
50049         * lib/link.c: New file.
50050         * m4/link.m4: New file.
50051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50052         HAVE_LINK.
50053         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50054         * modules/link: New file.
50055         * doc/posix-functions/link.texi: Mention the new module.
50056
50057 2009-01-18  Bruno Haible  <bruno@clisp.org>
50058
50059         * tests/test-avltree_list.c (main): Call set_program_name.
50060         * tests/test-avltree_oset.c (main): Likewise.
50061         * tests/test-obstack-printf.c: Include progname.h.
50062         (main): Call set_program_name.
50063         * tests/test-quotearg.c: Include progname.h.
50064         (main): Call set_program_name.
50065         * tests/test-xmemdup0.c: Include progname.h.
50066         (main): Call set_program_name.
50067
50068 2009-01-18  Bruno Haible  <bruno@clisp.org>
50069
50070         New module 'alphasort'.
50071         * lib/dirent.in.h (alphasort): New declaration.
50072         * lib/alphasort.c: New file, from glibc with modifications.
50073         * m4/alphasort.m4: New file.
50074         * modules/alphasort: New file.
50075         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50076         HAVE_ALPHASORT.
50077         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50078         HAVE_ALPHASORT.
50079         * doc/posix-functions/alphasort.texi: Mention the new module and the
50080         portability problems.
50081
50082 2009-01-18  Bruno Haible  <bruno@clisp.org>
50083
50084         New module 'scandir'.
50085         * lib/dirent.in.h (scandir): New declaration.
50086         * lib/scandir.c: New file, from glibc with modifications.
50087         * m4/scandir.m4: New file.
50088         * modules/scandir: New file.
50089         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50090         HAVE_SCANDIR.
50091         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50092         HAVE_SCANDIR.
50093         * doc/posix-functions/scandir.texi: Mention the new module and the
50094         portability problems.
50095
50096 2009-01-17  Bruno Haible  <bruno@clisp.org>
50097
50098         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50099         Update documentation.
50100         (func_remove_suffix): Escape all dots in the suffix. Update
50101         documentation.
50102         (func_filter_filelist): Update documentation.
50103         Reported by Ralf Wildenhues.
50104
50105 2009-01-17  Bruno Haible  <bruno@clisp.org>
50106
50107         * modules/dprintf-posix-tests: New file.
50108         * tests/test-dprintf-posix.sh: New file.
50109         * tests/test-dprintf-posix.c: New file.
50110
50111         New modules 'dprintf', 'dprintf-posix'.
50112         * lib/stdio.in.h (dprintf): New declaration.
50113         * lib/dprintf.c: New file.
50114         * m4/dprintf.m4: New file.
50115         * m4/dprintf-posix.m4: New file.
50116         * modules/dprintf: New file.
50117         * modules/dprintf-posix: New file.
50118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50119         HAVE_DPRINTF, REPLACE_DPRINTF.
50120         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50121         HAVE_DPRINTF, REPLACE_DPRINTF.
50122         * doc/posix-functions/dprintf.texi: Mention the new modules.
50123
50124 2009-01-17  Bruno Haible  <bruno@clisp.org>
50125
50126         * modules/vdprintf-posix-tests: New file.
50127         * tests/test-vdprintf-posix.sh: New file.
50128         * tests/test-vdprintf-posix.c: New file.
50129
50130         New modules 'vdprintf', 'vdprintf-posix'.
50131         * lib/stdio.in.h (vdprintf): New declaration.
50132         * lib/vdprintf.c: New file.
50133         * m4/vdprintf.m4: New file.
50134         * m4/vdprintf-posix.m4: New file.
50135         * modules/vdprintf: New file.
50136         * modules/vdprintf-posix: New file.
50137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50138         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50139         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50140         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50141         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50142
50143 2009-01-17  Bruno Haible  <bruno@clisp.org>
50144
50145         Fix replacement of fopen on mingw.
50146         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50147         mingw.
50148
50149 2009-01-17  Bruno Haible  <bruno@clisp.org>
50150
50151         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50152         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50153
50154 2009-01-17  Bruno Haible  <bruno@clisp.org>
50155
50156         Avoid test-fflush2.sh failure on mingw.
50157         * tests/test-fflush2.c: Include binary-io.h.
50158         (main): Put standard input into binary mode.
50159         * modules/fflush-tests (Depends-on): Add binary-io.
50160
50161 2009-01-17  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/wchar.in.h: In another particular situation, include only the
50164         system's <wchar.h> file.
50165         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50166         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50167         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50168
50169 2009-01-17  Bruno Haible  <bruno@clisp.org>
50170
50171         Support for stripping executables in --enable-relocatable.
50172         * build-aux/install-reloc: Expect one more argument, or an environment
50173         variable RELOC_STRIP_PROG. If set, strip the destination program and
50174         its wrapper.
50175         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50176         RELOC_STRIP_PROG.
50177         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50178         to set RELOCATABLE_STRIP.
50179         * NEWS: Mention the new Makefile requirement.
50180
50181 2009-01-17  Bruno Haible  <bruno@clisp.org>
50182
50183         * build-aux/install-reloc: Remove debugging information left over by
50184         C compiler on MacOS X.
50185
50186 2009-01-17  Bruno Haible  <bruno@clisp.org>
50187
50188         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50189         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50190         _NSGetExecutablePath.
50191
50192 2009-01-16  Jim Meyering  <meyering@redhat.com>
50193
50194         strerror: avoid warnings about discarding "const"
50195         * lib/strerror.c (rpl_strerror): Instead of returning a const
50196         string from each and every "case", use a variable, and add a single
50197         cast after the switch.
50198
50199 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50200
50201         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50202
50203 2009-01-16  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50206         array initializer syntax that also works in C++ mode.
50207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50208
50209 2009-01-16  Jim Meyering  <meyering@redhat.com>
50210
50211         poll: suppress a warning
50212         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50213         to ignore "...unsigned expression < 0 is always false" warnings.
50214
50215 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50216
50217         poll: remove declarations of unused variables
50218         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50219         sockbuf and optlen.
50220
50221 2009-01-15  Bruno Haible  <bruno@clisp.org>
50222
50223         Make fflush-after-ungetc POSIX compliant on BSD systems.
50224         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50225         (clear_ungetc_buffer): Implement also for other systems.
50226         (rpl_fflush): On glibc systems, invoke
50227         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50228         clear_ungetc_buffer after fetching the stream's position, not before.
50229
50230 2009-01-15  Bruno Haible  <bruno@clisp.org>
50231
50232         Make fflush-after-ungetc POSIX compliant on glibc systems.
50233         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50234         after ungetc.
50235         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50236         (rpl_fflush): On glibc systems, simply call the system's fflush
50237         function after clearing the ungetc buffer.
50238         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50239         Instead, lseek only to the end of file, then use the system's fseeko
50240         for the rest. On glibc systems, reset the EOF indicator bit.
50241
50242 2009-01-15  Jim Meyering  <meyering@redhat.com>
50243
50244         openmp.m4: revert quote-adding change, for portability to older autoconf
50245         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50246         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50247         Simon Josefsson noticed the problem when using autoconf-2.61.
50248
50249 2009-01-15  Bruno Haible  <bruno@clisp.org>
50250
50251         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50252         * tests/test-fflush2.c (ASSERT): Always fail.
50253         (main): Add two tests for fflush() after ungetc(), taking into account
50254         the Austin Group's clarification.
50255         Suggested by Eric Blake.
50256
50257 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50258
50259         mktime.m4: remove K&R-style function prototypes
50260         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50261         for the Sun C++ compiler.
50262
50263 2009-01-14  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50266         while including <wchar.h>.
50267         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50268         the system's <wchar.h> file.
50269         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50270
50271 2009-01-14  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/csharp.m4: Don't mention gettext on the serial number line.
50274         * m4/csharpexec.m4: Likewise.
50275         * m4/eaccess.m4: Likewise.
50276         * m4/javaexec.m4: Likewise.
50277         * m4/sig_atomic_t.m4: Likewise.
50278         * m4/tmpdir.m4: Likewise.
50279         * m4/intldir.m4: Bump gettext version.
50280         * m4/lib-ld.m4: Likewise.
50281
50282 2009-01-14  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/progname.c (set_program_name): Add more comments.
50285         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50286
50287 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50288
50289         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50290         were sys/stat.h does not define it.
50291
50292 2009-01-14  Jim Meyering  <meyering@redhat.com>
50293
50294         many *.m4 files: improve m4 quoting
50295         99% of this change was performed by running the following commands:
50296         git ls-files | grep '\.m4$' | xargs perl -pi \
50297           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50298           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50299           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50300           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50301         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50302         The remainder were to add Copyright dates, increment serial numbers,
50303         undo some changes in comments, exclude m4/intl.m4, and add quotes
50304         around the "1" in ",1" where the unusual spacing prohibited the
50305         above regexps from doing the job.  For more details, see
50306         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50307         * m4/acl.m4: Modified.
50308         * m4/afs.m4: Likewise.
50309         * m4/alloca.m4: Likewise.
50310         * m4/argp.m4: Likewise.
50311         * m4/argz.m4: Likewise.
50312         * m4/atexit.m4: Likewise.
50313         * m4/bison-i18n.m4: Likewise.
50314         * m4/bison.m4: Likewise.
50315         * m4/byteswap.m4: Likewise.
50316         * m4/c-stack.m4: Likewise.
50317         * m4/c-strtod.m4: Likewise.
50318         * m4/calloc.m4: Likewise.
50319         * m4/canonicalize-lgpl.m4: Likewise.
50320         * m4/chown.m4: Likewise.
50321         * m4/clock_time.m4: Likewise.
50322         * m4/codeset.m4: Likewise.
50323         * m4/copy-file.m4: Likewise.
50324         * m4/csharp.m4: Likewise.
50325         * m4/csharpcomp.m4: Likewise.
50326         * m4/csharpexec.m4: Likewise.
50327         * m4/d-ino.m4: Likewise.
50328         * m4/d-type.m4: Likewise.
50329         * m4/dirfd.m4: Likewise.
50330         * m4/double-slash-root.m4: Likewise.
50331         * m4/eaccess.m4: Likewise.
50332         * m4/eealloc.m4: Likewise.
50333         * m4/environ.m4: Likewise.
50334         * m4/errno_h.m4: Likewise.
50335         * m4/euidaccess.m4: Likewise.
50336         * m4/execute.m4: Likewise.
50337         * m4/fatal-signal.m4: Likewise.
50338         * m4/fchdir.m4: Likewise.
50339         * m4/fcntl_h.m4: Likewise.
50340         * m4/fileblocks.m4: Likewise.
50341         * m4/filenamecat.m4: Likewise.
50342         * m4/findprog.m4: Likewise.
50343         * m4/flexmember.m4: Likewise.
50344         * m4/fnmatch.m4: Likewise.
50345         * m4/fopen.m4: Likewise.
50346         * m4/fpending.m4: Likewise.
50347         * m4/fprintf-posix.m4: Likewise.
50348         * m4/free.m4: Likewise.
50349         * m4/frexp.m4: Likewise.
50350         * m4/frexpl.m4: Likewise.
50351         * m4/fsusage.m4: Likewise.
50352         * m4/ftruncate.m4: Likewise.
50353         * m4/gc-camellia.m4: Likewise.
50354         * m4/gc-random.m4: Likewise.
50355         * m4/gc.m4: Likewise.
50356         * m4/getaddrinfo.m4: Likewise.
50357         * m4/getcwd-abort-bug.m4: Likewise.
50358         * m4/getcwd-path-max.m4: Likewise.
50359         * m4/getdate.m4: Likewise.
50360         * m4/getdomainname.m4: Likewise.
50361         * m4/getgroups.m4: Likewise.
50362         * m4/gethostname.m4: Likewise.
50363         * m4/gethrxtime.m4: Likewise.
50364         * m4/getline.m4: Likewise.
50365         * m4/getloadavg.m4: Likewise.
50366         * m4/getndelim2.m4: Likewise.
50367         * m4/getpass.m4: Likewise.
50368         * m4/gettext.m4: Likewise.
50369         * m4/gettime.m4: Likewise.
50370         * m4/gettimeofday.m4: Likewise.
50371         * m4/gnulib-common.m4: Likewise.
50372         * m4/group-member.m4: Likewise.
50373         * m4/host-os.m4: Likewise.
50374         * m4/iconv.m4: Likewise.
50375         * m4/iconv_open.m4: Likewise.
50376         * m4/inet_ntop.m4: Likewise.
50377         * m4/inet_pton.m4: Likewise.
50378         * m4/inline.m4: Likewise.
50379         * m4/intldir.m4: Likewise.
50380         * m4/intlmacosx.m4: Likewise.
50381         * m4/intmax.m4: Likewise.
50382         * m4/intmax_t.m4: Likewise.
50383         * m4/inttypes.m4: Likewise.
50384         * m4/inttypes_h.m4: Likewise.
50385         * m4/inttypes-pri.m4: Likewise.
50386         * m4/isapipe.m4: Likewise.
50387         * m4/isnand.m4: Likewise.
50388         * m4/isnanf.m4: Likewise.
50389         * m4/isnanl.m4: Likewise.
50390         * m4/javacomp.m4: Likewise.
50391         * m4/javaexec.m4: Likewise.
50392         * m4/jm-winsz1.m4: Likewise.
50393         * m4/jm-winsz2.m4: Likewise.
50394         * m4/lchown.m4: Likewise.
50395         * m4/lcmessage.m4: Likewise.
50396         * m4/ldexpl.m4: Likewise.
50397         * m4/lib-ld.m4: Likewise.
50398         * m4/lib-link.m4: Likewise.
50399         * m4/libsigsegv.m4: Likewise.
50400         * m4/link-follow.m4: Likewise.
50401         * m4/localcharset.m4: Likewise.
50402         * m4/locale-fr.m4: Likewise.
50403         * m4/locale-ja.m4: Likewise.
50404         * m4/locale-tr.m4: Likewise.
50405         * m4/locale-zh.m4: Likewise.
50406         * m4/lock.m4: Likewise.
50407         * m4/longlong.m4: Likewise.
50408         * m4/ls-mntd-fs.m4: Likewise.
50409         * m4/lstat.m4: Likewise.
50410         * m4/malloc.m4: Likewise.
50411         * m4/mathl.m4: Likewise.
50412         * m4/mbrtowc.m4: Likewise.
50413         * m4/mbstate_t.m4: Likewise.
50414         * m4/mbswidth.m4: Likewise.
50415         * m4/memchr.m4: Likewise.
50416         * m4/memcmp.m4: Likewise.
50417         * m4/memcpy.m4: Likewise.
50418         * m4/memmem.m4: Likewise.
50419         * m4/memmove.m4: Likewise.
50420         * m4/mempcpy.m4: Likewise.
50421         * m4/memrchr.m4: Likewise.
50422         * m4/memset.m4: Likewise.
50423         * m4/minmax.m4: Likewise.
50424         * m4/mkdir-slash.m4: Likewise.
50425         * m4/mkdtemp.m4: Likewise.
50426         * m4/mktime.m4: Likewise.
50427         * m4/mmap-anon.m4: Likewise.
50428         * m4/mountlist.m4: Likewise.
50429         * m4/nanosleep.m4: Likewise.
50430         * m4/nls.m4: Likewise.
50431         * m4/nocrash.m4: Likewise.
50432         * m4/open.m4: Likewise.
50433         * m4/openat.m4: Likewise.
50434         * m4/openmp.m4: Likewise.
50435         * m4/pathmax.m4: Likewise.
50436         * m4/perl.m4: Likewise.
50437         * m4/physmem.m4: Likewise.
50438         * m4/pipe.m4: Likewise.
50439         * m4/po.m4: Likewise.
50440         * m4/poll.m4: Likewise.
50441         * m4/posixtm.m4: Likewise.
50442         * m4/posixver.m4: Likewise.
50443         * m4/printf-frexp.m4: Likewise.
50444         * m4/printf-frexpl.m4: Likewise.
50445         * m4/printf-posix.m4: Likewise.
50446         * m4/printf-posix-rpl.m4: Likewise.
50447         * m4/printf.m4: Likewise.
50448         * m4/progtest.m4: Likewise.
50449         * m4/putenv.m4: Likewise.
50450         * m4/readline.m4: Likewise.
50451         * m4/readlink.m4: Likewise.
50452         * m4/readutmp.m4: Likewise.
50453         * m4/realloc.m4: Likewise.
50454         * m4/regex.m4: Likewise.
50455         * m4/relocatable.m4: Likewise.
50456         * m4/relocatable-lib.m4: Likewise.
50457         * m4/rename-dest-slash.m4: Likewise.
50458         * m4/rename.m4: Likewise.
50459         * m4/rmdir-errno.m4: Likewise.
50460         * m4/rmdir.m4: Likewise.
50461         * m4/roundf.m4: Likewise.
50462         * m4/roundl.m4: Likewise.
50463         * m4/rpmatch.m4: Likewise.
50464         * m4/save-cwd.m4: Likewise.
50465         * m4/selinux-selinux-h.m4: Likewise.
50466         * m4/setenv.m4: Likewise.
50467         * m4/settime.m4: Likewise.
50468         * m4/sig2str.m4: Likewise.
50469         * m4/sig_atomic_t.m4: Likewise.
50470         * m4/signalblocking.m4: Likewise.
50471         * m4/signbit.m4: Likewise.
50472         * m4/sigpipe.m4: Likewise.
50473         * m4/sockets.m4: Likewise.
50474         * m4/sockpfaf.m4: Likewise.
50475         * m4/st_dm_mode.m4: Likewise.
50476         * m4/stat-time.m4: Likewise.
50477         * m4/stdbool.m4: Likewise.
50478         * m4/stdint.m4: Likewise.
50479         * m4/stdint_h.m4: Likewise.
50480         * m4/stpcpy.m4: Likewise.
50481         * m4/stpncpy.m4: Likewise.
50482         * m4/strcase.m4: Likewise.
50483         * m4/strchrnul.m4: Likewise.
50484         * m4/strcspn.m4: Likewise.
50485         * m4/strdup.m4: Likewise.
50486         * m4/strftime.m4: Likewise.
50487         * m4/strndup.m4: Likewise.
50488         * m4/strnlen.m4: Likewise.
50489         * m4/strpbrk.m4: Likewise.
50490         * m4/strptime.m4: Likewise.
50491         * m4/strsep.m4: Likewise.
50492         * m4/strtod.m4: Likewise.
50493         * m4/strtoimax.m4: Likewise.
50494         * m4/strtok_r.m4: Likewise.
50495         * m4/strtol.m4: Likewise.
50496         * m4/strtoll.m4: Likewise.
50497         * m4/strtoul.m4: Likewise.
50498         * m4/strtoull.m4: Likewise.
50499         * m4/strtoumax.m4: Likewise.
50500         * m4/strverscmp.m4: Likewise.
50501         * m4/threadlib.m4: Likewise.
50502         * m4/timegm.m4: Likewise.
50503         * m4/tm_gmtoff.m4: Likewise.
50504         * m4/tmpdir.m4: Likewise.
50505         * m4/tmpfile.m4: Likewise.
50506         * m4/tzset.m4: Likewise.
50507         * m4/uintmax_t.m4: Likewise.
50508         * m4/unlinkdir.m4: Likewise.
50509         * m4/unlocked-io.m4: Likewise.
50510         * m4/uptime.m4: Likewise.
50511         * m4/userspec.m4: Likewise.
50512         * m4/utimbuf.m4: Likewise.
50513         * m4/utime.m4: Likewise.
50514         * m4/utimes-null.m4: Likewise.
50515         * m4/utimes.m4: Likewise.
50516         * m4/vararrays.m4: Likewise.
50517         * m4/vasnprintf.m4: Likewise.
50518         * m4/vfprintf-posix.m4: Likewise.
50519         * m4/vprintf-posix.m4: Likewise.
50520         * m4/wait-process.m4: Likewise.
50521         * m4/wchar_t.m4: Likewise.
50522         * m4/wint_t.m4: Likewise.
50523         * m4/write-any-file.m4: Likewise.
50524         * m4/yield.m4: Likewise.
50525
50526 2009-01-13  Bruno Haible  <bruno@clisp.org>
50527
50528         Avoid test-copy-file.sh failures when ACL support insufficient.
50529         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50530         TESTS_ENVIRONMENT.
50531         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50532         Reported by Jim Meyering.
50533
50534 2009-01-13  Bruno Haible  <bruno@clisp.org>
50535
50536         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50537         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50538         * modules/unistdio/u8-printf-parse (Files): Likewise.
50539         * modules/unistdio/u32-printf-parse (Files): Likewise.
50540         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50541
50542 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50543
50544         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50545         and m4/inttypes_h.m4 too.
50546
50547 2009-01-12  Eric Blake  <ebb9@byu.net>
50548
50549         tests: IRIX 6.2 cc can't compile -0.0 into .data
50550         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50551         rather than at compile-time.
50552         * tests/test-floorl.c (minus_zero): Likewise.
50553         * tests/test-frexpl.c (minus_zero): Likewise.
50554         * tests/test-isnan.c (minus_zerol): Likewise.
50555         * tests/test-isnanl.h (minus_zero): Likewise.
50556         * tests/test-ldexpl.c (minus_zero): Likewise.
50557         * tests/test-roundl.c (minus_zero): Likewise.
50558         * tests/test-signbit.c (minus_zerol): Likewise.
50559         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50560         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50561         * tests/test-truncl.c (minus_zero): Likewise.
50562         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50563         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50564         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50565
50566 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50567
50568         regex: fix glibc bug 9697
50569         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50570         handling.
50571
50572 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50573
50574         regex: fix glibc bug 697
50575         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50576         being NULL also if there are no backreferences.
50577
50578 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50579
50580         regex: merge glibc changes
50581         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50582         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50583         re_string_skip_chars, re_string_reconstruct): Likewise.
50584         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50585
50586 2009-01-07  Jim Meyering  <meyering@redhat.com>
50587
50588         poll: filter through cppi
50589         * lib/poll.c: Indent cpp directives to reflect nesting.
50590
50591 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50592
50593         poll: don't return uninitialized
50594         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50595
50596 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50597
50598         avoid compile failure on AIX 6.1
50599         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50600         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50601
50602 2009-01-04  Jim Meyering  <meyering@redhat.com>
50603
50604         remove duplicate inclusion of <stdio.h>
50605         * tests/test-fprintf-posix.c: Likewise.
50606         * tests/test-printf-posix.c: Likewise.
50607         * tests/test-snprintf-posix.c: Likewise.
50608         * tests/test-sprintf-posix.c: Likewise.
50609         * tests/test-vasprintf-posix.c: Likewise.
50610         * tests/test-vfprintf-posix.c: Likewise.
50611         * tests/test-vprintf-posix.c: Likewise.
50612         * tests/test-vsnprintf-posix.c: Likewise.
50613         * tests/test-vsprintf-posix.c: Likewise.
50614
50615 2009-01-03  Jim Meyering  <meyering@redhat.com>
50616
50617         gnulib-tool: fix sed-based filtering
50618         * gnulib-tool (func_filter_filelist): Remove extra backslash
50619         in sed_fff_filter definition.
50620
50621 2009-01-02  Jim Meyering  <meyering@redhat.com>
50622
50623         strftime: avoid compilation failure on Solaris 2.6
50624         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50625         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50626         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50627         be available.  Reported by Tom G. Christensen.  Details in
50628         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50629
50630 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50631             Bruno Haible  <bruno@clisp.org>
50632
50633         Speed up gnulib-tool by doing more string processing through shell
50634         built-ins.
50635         * gnulib-tool (fast_func_append): New variable.
50636         (func_remove_prefix, func_remove_suffix): New functions.
50637         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50638         (func_filter_filelist): New function.
50639         (func_get_dependencies): Use func_remove_suffix instead of sed.
50640         (func_get_automake_snippet): Use func_filter_filelist instead of a
50641         subshell and sed invocation.
50642
50643 2009-01-01  Bruno Haible  <bruno@clisp.org>
50644
50645         Fix a security bug.
50646         * gnulib-tool (func_import, import, update): Don't allow the characters
50647         '"', '$', '`', '\' in macro arguments that become part of commands that
50648         are evaluated.
50649
50650 2009-01-01  Bruno Haible  <bruno@clisp.org>
50651
50652         * gnulib-tool (func_reset_sigpipe): Add more comments.
50653
50654 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50655
50656         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50657         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50658         already know the answer.
50659
50660 2009-01-01  Jim Meyering  <meyering@redhat.com>
50661
50662         * lib/version-etc.c (version_etc_va): Update copyright year.
50663
50664 2008-12-30  Bruno Haible  <bruno@clisp.org>
50665
50666         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50667         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50668         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50669
50670 2008-12-29  Eric Blake  <ebb9@byu.net>
50671
50672         multiarch: avoid autoconf AC_REQUIRE bug
50673         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50674         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50675         2.63 and older.
50676         Reported by Bruno Haible, and analyzed in
50677         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50678
50679 2008-12-29  Bruno Haible  <bruno@clisp.org>
50680
50681         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50682         files in subdirectories correctly.
50683         Reported by Ralf Wildenhues.
50684
50685 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50686
50687         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50688         rather than 'join FILE -', for Solaris join.
50689
50690 2008-12-29  Bruno Haible  <bruno@clisp.org>
50691
50692         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50693         quoting.
50694         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50695         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50696         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50697         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50698         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50699         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50700         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50701         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50702         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50703         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50704         * m4/nls.m4 (AM_NLS): Likewise.
50705         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50706         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50707         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50708         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50709         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50710         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50711         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50712         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50713         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50714         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50715         * m4/xsize.m4 (gl_XSIZE): Likewise.
50716         Suggested by Jim Meyering.
50717
50718 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50719
50720         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50721         * lib/parse-duration.c: use a switch instead of cascading if's.
50722
50723 2008-12-29  Eric Blake  <ebb9@byu.net>
50724
50725         wchar.h: supply WEOF on Irix 5.3
50726         * lib/wchar.in.h (wint_t): Also supply WEOF.
50727         * lib/wctype.in.h (wint_t): Likewise.
50728         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50729         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50730         Reported by Tom G. Christensen.
50731
50732 2008-12-26  Bruno Haible  <bruno@clisp.org>
50733
50734         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50735         i486, i586, i686.
50736
50737 2008-12-26  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50740
50741 2008-12-26  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50744         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50745         not __STDC_CONSTANT_MACROS.
50746         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50747
50748 2008-12-25  Bruno Haible  <bruno@clisp.org>
50749
50750         Add support for universal builds to vasnprintf.
50751         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50752         universal builds, guess no.
50753         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50754         * modules/vasprintf-posix (Depends-on): Likewise.
50755         * modules/fprintf-posix (Depends-on): Likewise.
50756         * modules/vfprintf-posix (Depends-on): Likewise.
50757         * modules/snprintf-posix (Depends-on): Likewise.
50758         * modules/vsnprintf-posix (Depends-on): Likewise.
50759         * modules/sprintf-posix (Depends-on): Likewise.
50760         * modules/vsprintf-posix (Depends-on): Likewise.
50761         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50762         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50763         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50764         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50765         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50766         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50767         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50768
50769         Add support for universal builds to <inttypes.h>.
50770         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50771         _SCNu64_PREFIX): In Apple
50772         universal builds, define directly, using _LP64.
50773         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50774         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50775         * modules/inttypes (Depends-on): Add multiarch.
50776         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50777
50778         Add support for universal builds to <stdint.h>.
50779         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50780         universal builds, define directly, using _LP64.
50781         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50782         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50783         and size_t.
50784         * modules/stdint (Depends-on): Add multiarch.
50785         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50786
50787         New module 'multiarch'.
50788         * modules/multiarch: New file.
50789         * m4/multiarch.m4: New file.
50790
50791 2008-12-25  Bruno Haible  <bruno@clisp.org>
50792
50793         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50794
50795 2008-12-25  Bruno Haible  <bruno@clisp.org>
50796
50797         * modules/btowc (License): Relicense under LGPLv2+.
50798         * modules/mbsinit (License): Likewise.
50799         * modules/mbrtowc (License): Likewise.
50800         * modules/wcrtomb (License): Likewise.
50801         * modules/streq (License): Likewise.
50802         Reported by David Lutterkort <lutter@redhat.com>.
50803
50804 2008-12-23  Bruno Haible  <bruno@clisp.org>
50805
50806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50807
50808 2008-12-23  Bruno Haible  <bruno@clisp.org>
50809
50810         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50812         GETADDRINFO_LIB, not in LIBS.
50813         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50814         * modules/canon-host (Link): Likewise.
50815         * NEWS: Mention the change.
50816         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50817         GETADDRINFO_LIB.
50818
50819 2008-12-22  Bruno Haible  <bruno@clisp.org>
50820
50821         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50822         * doc/posix-functions/iswalpha_l.texi: Likewise.
50823         * doc/posix-functions/iswblank_l.texi: Likewise.
50824         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50825         * doc/posix-functions/iswctype_l.texi: Likewise.
50826         * doc/posix-functions/iswdigit_l.texi: Likewise.
50827         * doc/posix-functions/iswgraph_l.texi: Likewise.
50828         * doc/posix-functions/iswlower_l.texi: Likewise.
50829         * doc/posix-functions/iswprint_l.texi: Likewise.
50830         * doc/posix-functions/iswpunct_l.texi: Likewise.
50831         * doc/posix-functions/iswspace_l.texi: Likewise.
50832         * doc/posix-functions/iswupper_l.texi: Likewise.
50833         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50834         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50835         * doc/posix-functions/open_wmemstream.texi: Likewise.
50836         * doc/posix-functions/swscanf.texi: Likewise.
50837         * doc/posix-functions/towctrans_l.texi: Likewise.
50838         * doc/posix-functions/towlower.texi: Likewise.
50839         * doc/posix-functions/towlower_l.texi: Likewise.
50840         * doc/posix-functions/towupper.texi: Likewise.
50841         * doc/posix-functions/towupper_l.texi: Likewise.
50842         * doc/posix-functions/vfwprintf.texi: Likewise.
50843         * doc/posix-functions/vfwscanf.texi: Likewise.
50844         * doc/posix-functions/vswscanf.texi: Likewise.
50845         * doc/posix-functions/vwprintf.texi: Likewise.
50846         * doc/posix-functions/vwscanf.texi: Likewise.
50847         * doc/posix-functions/wcpcpy.texi: Likewise.
50848         * doc/posix-functions/wcpncpy.texi: Likewise.
50849         * doc/posix-functions/wcscasecmp.texi: Likewise.
50850         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50851         * doc/posix-functions/wcscoll_l.texi: Likewise.
50852         * doc/posix-functions/wcsdup.texi: Likewise.
50853         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50854         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50855         * doc/posix-functions/wcsnlen.texi: Likewise.
50856         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50857         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50858         * doc/posix-functions/wctrans_l.texi: Likewise.
50859         * doc/posix-functions/wctype_l.texi: Likewise.
50860         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50861         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50862         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50863         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50864         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50865         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50866         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50867         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50868         * doc/glibc-functions/wcschrnul.texi: Likewise.
50869         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50870         * doc/glibc-functions/wcstod_l.texi: Likewise.
50871         * doc/glibc-functions/wcstof_l.texi: Likewise.
50872         * doc/glibc-functions/wcstol_l.texi: Likewise.
50873         * doc/glibc-functions/wcstold_l.texi: Likewise.
50874         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50875         * doc/glibc-functions/wcstoq.texi: Likewise.
50876         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50877         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50878         * doc/glibc-functions/wcstouq.texi: Likewise.
50879         * doc/glibc-functions/wmempcpy.texi: Likewise.
50880
50881 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50882             Eric Blake  <ebb9@byu.net>
50883             Paolo Bonzini  <bonzini@gnu.org>
50884             Bruno Haible  <bruno@clisp.org>
50885
50886         Make c-stack work on Haiku.
50887         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50888         (c_stack_action): Use SA_ONSTACK flag.
50889
50890 2008-12-22  Bruno Haible  <bruno@clisp.org>
50891
50892         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50893
50894 2008-12-22  Bruno Haible  <bruno@clisp.org>
50895
50896         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50897         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50898         being overridden.
50899         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50900         New macros.
50901         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50903         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50904         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50905
50906 2008-12-22  Bruno Haible  <bruno@clisp.org>
50907
50908         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50909         from test code.
50910
50911 2008-12-22  Eric Blake  <ebb9@byu.net>
50912
50913         Avoid gcc warnings on cygwin.
50914         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50915         Avoid unused variable.
50916         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50917         Likewise.
50918
50919 2008-12-22  Bruno Haible  <bruno@clisp.org>
50920
50921         Remove HAVE_MBRTOWC conditionals.
50922         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50923         (mbscasecmp): Assume mbrtowc function.
50924         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50925         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50926         * lib/mbschr.c: Include mbuiter.h unconditionally.
50927         (mbschr): Assume mbrtowc function.
50928         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50929         (mbscspn): Assume mbrtowc function.
50930         * lib/mbslen.c: Include mbuiter.h unconditionally.
50931         (mbslen): Assume mbrtowc function.
50932         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50933         (mbsncasecmp): Assume mbrtowc function.
50934         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50935         (mbsnlen): Assume mbrtowc function.
50936         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50937         (mbspbrk): Assume mbrtowc function.
50938         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50939         (mbspcasecmp): Assume mbrtowc function.
50940         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50941         (mbsrchr): Assume mbrtowc function.
50942         * lib/mbssep.c: Include mbuiter.h unconditionally.
50943         (mbssep): Assume mbrtowc function.
50944         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50945         (mbsspn): Assume mbrtowc function.
50946         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50947         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50948         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50949         (mbstok_r): Assume mbrtowc function.
50950         * lib/propername.c: Include mbuiter.h unconditionally.
50951         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50952         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50953         (trim2): Assume mbrtowc function.
50954         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50955         (mbsnwidth): Assume mbrtowc function.
50956         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50957         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50958         fallback definitions.
50959         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50960
50961 2008-12-22  Bruno Haible  <bruno@clisp.org>
50962
50963         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50964
50965 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50966
50967         * modules/regex: Request emulations for the mb*/wc* functions we need.
50968         * m4/regex.m4: Don't look for those functions here.
50969         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50970
50971 2008-12-22  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50974
50975 2008-12-21  Bruno Haible  <bruno@clisp.org>
50976
50977         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50978         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50979         (Include): Remove conditionalization.
50980         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50981         (Include): Remove conditionalization.
50982         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50983         (Include): Remove conditionalization.
50984         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50985         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50986         * NEWS: Mention the change.
50987         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50988         via Sergey Poznyakoff <gray@gnu.org.ua>.
50989
50990 2008-12-21  Bruno Haible  <bruno@clisp.org>
50991
50992         * MODULES.html.sh (Extended multibyte and wide character utilities
50993         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50994         wcrtomb, wcsrtombs.
50995         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50996         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50997         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50998         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50999
51000 2008-12-21  Bruno Haible  <bruno@clisp.org>
51001
51002         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51003
51004 2008-12-21  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/wcsnrtombs-tests: New file.
51007         * tests/test-wcsnrtombs1.sh: New file.
51008         * tests/test-wcsnrtombs2.sh: New file.
51009         * tests/test-wcsnrtombs3.sh: New file.
51010         * tests/test-wcsnrtombs4.sh: New file.
51011         * tests/test-wcsnrtombs.c: New file.
51012
51013         New module 'wcsnrtombs'.
51014         * lib/wchar.in.h (wcsnrtombs): New declaration.
51015         * lib/wcsnrtombs.c: New file.
51016         * lib/wcsrtombs-state.c: New file.
51017         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51018         (internal_state): Remove variable.
51019         * m4/wcsnrtombs.m4: New file.
51020         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51021         compilation units.
51022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51023         HAVE_WCSNRTOMBS.
51024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51025         HAVE_WCSNRTOMBS.
51026         * modules/wcsnrtombs: New file.
51027         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51028         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51029
51030 2008-12-21  Bruno Haible  <bruno@clisp.org>
51031
51032         * modules/wcsrtombs-tests: New file.
51033         * tests/test-wcsrtombs1.sh: New file.
51034         * tests/test-wcsrtombs2.sh: New file.
51035         * tests/test-wcsrtombs3.sh: New file.
51036         * tests/test-wcsrtombs4.sh: New file.
51037         * tests/test-wcsrtombs.c: New file.
51038
51039         New module 'wcsrtombs'.
51040         * lib/wchar.in.h (wcsrtombs): New declaration.
51041         * lib/wcsrtombs.c: New file.
51042         * m4/wcsrtombs.m4: New file.
51043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51044         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51046         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51047         * modules/wcsrtombs: New file.
51048         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51049         bugs.
51050
51051 2008-12-21  Bruno Haible  <bruno@clisp.org>
51052
51053         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51054         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51056         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51057         if not correct.
51058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51059         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51060         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51061         m4/locale-zh.m4, m4/codeset.m4.
51062         * doc/posix-functions/wcrtomb.texi: Document the bug.
51063
51064 2008-12-21  Bruno Haible  <bruno@clisp.org>
51065
51066         Work around a btowc() bug on IRIX 6.5.
51067         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51068         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51069         REPLACE_WTOBC if not.
51070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51071         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51072         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51073
51074 2008-12-21  Bruno Haible  <bruno@clisp.org>
51075
51076         * modules/wcrtomb-tests: New file.
51077         * tests/test-wcrtomb.sh: New file.
51078         * tests/test-wcrtomb.c: New file.
51079
51080         New module 'wcrtomb'.
51081         * lib/wchar.in.h (wcrtomb): New declaration.
51082         * lib/wcrtomb.c: New file.
51083         * m4/wcrtomb.m4: New file.
51084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51085         HAVE_WCRTOMB.
51086         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51087         HAVE_WCRTOMB.
51088         * modules/wcrtomb: New file.
51089         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51090
51091 2008-12-21  Bruno Haible  <bruno@clisp.org>
51092
51093         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51094         * modules/mbsrtowcs (Files): Likewise.
51095         * modules/wctob (Files): Likewise.
51096         * modules/c-strcase-tests (Files): Likewise.
51097         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51098         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51099         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51100         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51101         * modules/vasnprintf-posix-tests (Files): Likewise.
51102
51103 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51104
51105         gitlog-to-changelog: pass all command-line arguments to git-log
51106         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51107         it is sometimes convenient to filter the commits in various ways.
51108         gitlog-to-changelog only allows --since to specify a start date,
51109         but git-log itself supports many other filtering mechanisms.
51110         At the moment, I want to filter by branch name.  Rather than
51111         adding a --branch option to gitlog-to-changelog, it seems more
51112         flexible to simply pass all options directly to git-log and let
51113         git do the work.  Notice that this effectively makes --since a
51114         redundant option for gitlog-to-changelog, but removing it would
51115         require current usage to change since calls would then require
51116         an additional '--'.
51117
51118 2008-12-21  Bruno Haible  <bruno@clisp.org>
51119
51120         * modules/mbsnrtowcs-tests: New file.
51121         * tests/test-mbsnrtowcs1.sh: New file.
51122         * tests/test-mbsnrtowcs2.sh: New file.
51123         * tests/test-mbsnrtowcs3.sh: New file.
51124         * tests/test-mbsnrtowcs4.sh: New file.
51125         * tests/test-mbsnrtowcs.c: New file.
51126
51127         New module 'mbsnrtowcs'.
51128         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51129         * lib/mbsnrtowcs.c: New file.
51130         * lib/mbsrtowcs-state.c: New file.
51131         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51132         (internal_state): Remove variable.
51133         * m4/mbsnrtowcs.m4: New file.
51134         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51135         compilation units.
51136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51137         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51138         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51139         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51140         * modules/mbsnrtowcs: New file.
51141         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51142         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51143         portability problem.
51144
51145 2008-12-21  Bruno Haible  <bruno@clisp.org>
51146
51147         Work around mbsrtowcs bug.
51148         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51149         (gl_FUNC_MBSRTOWCS): Invoke it.
51150         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51151         m4/locale-zh.m4.
51152         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51153
51154 2008-12-21  Bruno Haible  <bruno@clisp.org>
51155
51156         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51157
51158 2008-12-21  Bruno Haible  <bruno@clisp.org>
51159
51160         Update doc for AIX.
51161         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51162         16-bit wchar_t type.
51163         * doc/posix-functions/btowc.texi: Likewise.
51164         * doc/posix-functions/fgetwc.texi: Likewise.
51165         * doc/posix-functions/fgetws.texi: Likewise.
51166         * doc/posix-functions/fputwc.texi: Likewise.
51167         * doc/posix-functions/fputws.texi: Likewise.
51168         * doc/posix-functions/fwide.texi: Likewise.
51169         * doc/posix-functions/fwprintf.texi: Likewise.
51170         * doc/posix-functions/fwscanf.texi: Likewise.
51171         * doc/posix-functions/getwchar.texi: Likewise.
51172         * doc/posix-functions/getwc.texi: Likewise.
51173         * doc/posix-functions/iswalnum.texi: Likewise.
51174         * doc/posix-functions/iswalpha.texi: Likewise.
51175         * doc/posix-functions/iswblank.texi: Likewise.
51176         * doc/posix-functions/iswcntrl.texi: Likewise.
51177         * doc/posix-functions/iswctype.texi: Likewise.
51178         * doc/posix-functions/iswdigit.texi: Likewise.
51179         * doc/posix-functions/iswgraph.texi: Likewise.
51180         * doc/posix-functions/iswlower.texi: Likewise.
51181         * doc/posix-functions/iswprint.texi: Likewise.
51182         * doc/posix-functions/iswpunct.texi: Likewise.
51183         * doc/posix-functions/iswspace.texi: Likewise.
51184         * doc/posix-functions/iswupper.texi: Likewise.
51185         * doc/posix-functions/iswxdigit.texi: Likewise.
51186         * doc/posix-functions/mbrtowc.texi: Likewise.
51187         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51188         * doc/posix-functions/mbstowcs.texi: Likewise.
51189         * doc/posix-functions/mbtowc.texi: Likewise.
51190         * doc/posix-functions/putwchar.texi: Likewise.
51191         * doc/posix-functions/putwc.texi: Likewise.
51192         * doc/posix-functions/swprintf.texi: Likewise.
51193         * doc/posix-functions/tolower.texi: Likewise.
51194         * doc/posix-functions/toupper.texi: Likewise.
51195         * doc/posix-functions/towctrans.texi: Likewise.
51196         * doc/posix-functions/ungetwc.texi: Likewise.
51197         * doc/posix-functions/vswprintf.texi: Likewise.
51198         * doc/posix-functions/wcrtomb.texi: Likewise.
51199         * doc/posix-functions/wcscat.texi: Likewise.
51200         * doc/posix-functions/wcschr.texi: Likewise.
51201         * doc/posix-functions/wcscmp.texi: Likewise.
51202         * doc/posix-functions/wcscoll.texi: Likewise.
51203         * doc/posix-functions/wcscpy.texi: Likewise.
51204         * doc/posix-functions/wcscspn.texi: Likewise.
51205         * doc/posix-functions/wcsftime.texi: Likewise.
51206         * doc/posix-functions/wcslen.texi: Likewise.
51207         * doc/posix-functions/wcsncat.texi: Likewise.
51208         * doc/posix-functions/wcsncmp.texi: Likewise.
51209         * doc/posix-functions/wcsncpy.texi: Likewise.
51210         * doc/posix-functions/wcspbrk.texi: Likewise.
51211         * doc/posix-functions/wcsrchr.texi: Likewise.
51212         * doc/posix-functions/wcsrtombs.texi: Likewise.
51213         * doc/posix-functions/wcsspn.texi: Likewise.
51214         * doc/posix-functions/wcsstr.texi: Likewise.
51215         * doc/posix-functions/wcstod.texi: Likewise.
51216         * doc/posix-functions/wcstof.texi: Likewise.
51217         * doc/posix-functions/wcstoimax.texi: Likewise.
51218         * doc/posix-functions/wcstok.texi: Likewise.
51219         * doc/posix-functions/wcstold.texi: Likewise.
51220         * doc/posix-functions/wcstoll.texi: Likewise.
51221         * doc/posix-functions/wcstol.texi: Likewise.
51222         * doc/posix-functions/wcstombs.texi: Likewise.
51223         * doc/posix-functions/wcstoull.texi: Likewise.
51224         * doc/posix-functions/wcstoul.texi: Likewise.
51225         * doc/posix-functions/wcstoumax.texi: Likewise.
51226         * doc/posix-functions/wcswidth.texi: Likewise.
51227         * doc/posix-functions/wcsxfrm.texi: Likewise.
51228         * doc/posix-functions/wctob.texi: Likewise.
51229         * doc/posix-functions/wctomb.texi: Likewise.
51230         * doc/posix-functions/wctrans.texi: Likewise.
51231         * doc/posix-functions/wctype.texi: Likewise.
51232         * doc/posix-functions/wcwidth.texi: Likewise.
51233         * doc/posix-functions/wmemchr.texi: Likewise.
51234         * doc/posix-functions/wmemcmp.texi: Likewise.
51235         * doc/posix-functions/wmemcpy.texi: Likewise.
51236         * doc/posix-functions/wmemmove.texi: Likewise.
51237         * doc/posix-functions/wmemset.texi: Likewise.
51238         * doc/posix-functions/wprintf.texi: Likewise.
51239         * doc/posix-functions/wscanf.texi: Likewise.
51240
51241 2008-12-21  Bruno Haible  <bruno@clisp.org>
51242
51243         Update doc for HP-UX 11.11.
51244         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51245         in HP-UX version 11.00, not in all versions of HP-UX 11.
51246         * doc/posix-functions/fwide.texi: Likewise.
51247         * doc/posix-functions/fwprintf.texi: Likewise.
51248         * doc/posix-functions/fwscanf.texi: Likewise.
51249         * doc/posix-functions/inet_ntop.texi: Likewise.
51250         * doc/posix-functions/inet_pton.texi: Likewise.
51251         * doc/posix-functions/mbrlen.texi: Likewise.
51252         * doc/posix-functions/mbrtowc.texi: Likewise.
51253         * doc/posix-functions/mbsinit.texi: Likewise.
51254         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51255         * doc/posix-functions/swprintf.texi: Likewise.
51256         * doc/posix-functions/swscanf.texi: Likewise.
51257         * doc/posix-functions/towctrans.texi: Likewise.
51258         * doc/posix-functions/vfwprintf.texi: Likewise.
51259         * doc/posix-functions/vswprintf.texi: Likewise.
51260         * doc/posix-functions/vwprintf.texi: Likewise.
51261         * doc/posix-functions/wcrtomb.texi: Likewise.
51262         * doc/posix-functions/wcsrtombs.texi: Likewise.
51263         * doc/posix-functions/wcsstr.texi: Likewise.
51264         * doc/posix-functions/wctob.texi: Likewise.
51265         * doc/posix-functions/wctrans.texi: Likewise.
51266         * doc/posix-functions/wmemchr.texi: Likewise.
51267         * doc/posix-functions/wmemcmp.texi: Likewise.
51268         * doc/posix-functions/wmemcpy.texi: Likewise.
51269         * doc/posix-functions/wmemmove.texi: Likewise.
51270         * doc/posix-functions/wmemset.texi: Likewise.
51271         * doc/posix-functions/wprintf.texi: Likewise.
51272         * doc/posix-functions/wscanf.texi: Likewise.
51273
51274 2008-12-21  Bruno Haible  <bruno@clisp.org>
51275
51276         Work around a portability problem.
51277         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51278         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51279
51280 2008-12-20  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51283         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51284         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51286         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51287
51288         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51289         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51290         set.
51291         (GNULIB_defined_mbstate_t): New macro.
51292         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51293         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51294         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51295         reuses the system's mbrtowc function but works around the bugs.
51296         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51297         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51298         macros.
51299         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51300         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51301         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51302         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51303         REPLACE_MBSINIT if mbsinit needs to be overridden.
51304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51305         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51306         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51307         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51308         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51309         m4/locale-zh.m4.
51310         (Depends): Add mbsinit.
51311         * modules/mbsinit (Depends): Add mbrtowc.
51312         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51313
51314 2008-12-20  Bruno Haible  <bruno@clisp.org>
51315
51316         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51317         so that there are no conversion errors on AIX.
51318         * tests/test-mbsrtowcs.c (main): LIkewise.
51319
51320 2008-12-20  Bruno Haible  <bruno@clisp.org>
51321
51322         Work around wctob bug on Solaris <= 9.
51323         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51324         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51326         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51327         * modules/wctob (Files): Add m4/locale-fr.m4.
51328         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51329
51330 2008-12-20  Bruno Haible  <bruno@clisp.org>
51331
51332         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51333         /dev/null.
51334         * tests/test-select-in.sh: Likewise.
51335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51336
51337 2008-12-20  Bruno Haible  <bruno@clisp.org>
51338
51339         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51340         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51341         Cygwin 1.5.x.
51342
51343 2008-12-20  Bruno Haible  <bruno@clisp.org>
51344
51345         Ensure mbstate_t is defined on HP-UX 11.11.
51346         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51347         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51348         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51349         AC_USE_SYSTEM_EXTENSIONS.
51350         * modules/fnmatch (Depends-on): Add extensions.
51351         * modules/mbrlen (Depends-on): Likewise.
51352         * modules/mbrtowc (Depends-on): Likewise.
51353         * modules/mbsinit (Depends-on): Likewise.
51354         * modules/mbsrtowcs (Depends-on): Likewise.
51355         * modules/mbswidth (Depends-on): Likewise.
51356         * modules/quotearg (Depends-on): Likewise.
51357         * modules/strftime (Depends-on): Likewise.
51358
51359 2008-12-20  Bruno Haible  <bruno@clisp.org>
51360
51361         Ensure wctob is declared on IRIX 6.5.
51362         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51363         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51364         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51366         of HAVE_WCTOB.
51367         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51368         HAVE_WCTOB.
51369         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51370
51371 2008-12-19  Bruno Haible  <bruno@clisp.org>
51372
51373         * modules/mbsrtowcs-tests: New file.
51374         * tests/test-mbsrtowcs1.sh: New file.
51375         * tests/test-mbsrtowcs2.sh: New file.
51376         * tests/test-mbsrtowcs3.sh: New file.
51377         * tests/test-mbsrtowcs4.sh: New file.
51378         * tests/test-mbsrtowcs.c: New file.
51379
51380         New module 'mbsrtowcs'.
51381         * lib/wchar.in.h (mbsrtowcs): New declaration.
51382         * lib/mbsrtowcs.c: New file.
51383         * m4/mbsrtowcs.m4: New file.
51384         * modules/mbsrtowcs: New file.
51385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51386         HAVE_MBSRTOWCS.
51387         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51388         HAVE_MBSRTOWCS.
51389         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51390
51391 2008-12-19  Bruno Haible  <bruno@clisp.org>
51392
51393         New module 'mbrlen'.
51394         * lib/wchar.in.h (mbrlen): New declaration.
51395         * lib/mbrlen.c: New file.
51396         * m4/mbrlen.m4: New file.
51397         * modules/mbrlen: New file.
51398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51399         HAVE_MBRLEN.
51400         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51401         HAVE_MBRLEN.
51402         * doc/posix-functions/mbrlen.texi: Document the new module.
51403
51404 2008-12-19  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51407         * modules/mbrtowc (Depends-on): Add verify.
51408         Suggested by Paul Eggert.
51409
51410 2008-12-18  Bruno Haible  <bruno@clisp.org>
51411
51412         * modules/mbsinit-tests: New file.
51413         * tests/test-mbsinit.sh: New file.
51414         * tests/test-mbsinit.c: New file.
51415
51416 2008-12-18  Bruno Haible  <bruno@clisp.org>
51417
51418         * modules/mbrtowc-tests: New file.
51419         * tests/test-mbrtowc1.sh: New file.
51420         * tests/test-mbrtowc2.sh: New file.
51421         * tests/test-mbrtowc3.sh: New file.
51422         * tests/test-mbrtowc4.sh: New file.
51423         * tests/test-mbrtowc.c: New file.
51424
51425         New module 'mbrtowc'.
51426         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51427         mbsinit and mbrtowc.
51428         (mbrtowc): New declaration.
51429         * lib/mbrtowc.c: New file.
51430         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51431         * modules/mbrtowc: New file.
51432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51433         HAVE_MBRTOWC.
51434         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51435         HAVE_MBRTOWC.
51436         * doc/posix-functions/mbrtowc.texi: Document the new module.
51437
51438 2008-12-18  Bruno Haible  <bruno@clisp.org>
51439
51440         New module 'wctob'.
51441         * lib/wchar.in.h (wctob): New declaration.
51442         * lib/wctob.c: New file.
51443         * m4/wctob.m4: New file.
51444         * modules/wctob: New file.
51445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51446         HAVE_WCTOB.
51447         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51448         * doc/posix-functions/wctob.texi: Document the new module.
51449
51450 2008-12-18  Bruno Haible  <bruno@clisp.org>
51451
51452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51453         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51454
51455 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51456
51457         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51458         G. Christensen" <tgc@jupiterrise.com>.
51459
51460         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51461         G. Christensen" <tgc@jupiterrise.com>.
51462
51463         * lib/flock.c: Need to include string.h.  Reported by "Tom
51464         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51465         <ebb9@byu.net>.
51466
51467 2008-12-18  Bruno Haible  <bruno@clisp.org>
51468
51469         * m4/locale-ja.m4: New file, from GNU gettext.
51470
51471 2008-12-17  Bruno Haible  <bruno@clisp.org>
51472
51473         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51474         Suggested by Eric Blake.
51475
51476 2008-12-17  Bruno Haible  <bruno@clisp.org>
51477
51478         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51479
51480 2008-12-17  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51483         * modules/mbsinit (Depends-on): Add verify.
51484         Suggested by Paul Eggert.
51485
51486 2008-12-17  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51489         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51490         gl_FUNC_MBRTOWC.
51491         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51492         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51493         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51494         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51495         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51496         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51497         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51498         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51499         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51500         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51501         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51502         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51503         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51504         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51505         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51506         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51507         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51508         * modules/trim (configure.ac): Likewise.
51509
51510 2008-12-17  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/btowc-tests: New file.
51513         * tests/test-btowc1.sh: New file.
51514         * tests/test-btowc2.sh: New file.
51515         * tests/test-btowc.c: New file.
51516
51517         New module 'btowc'.
51518         * lib/wchar.in.h (btowc): New declaration.
51519         * lib/btowc.c: New file.
51520         * m4/btowc.m4: New file.
51521         * modules/btowc: New file.
51522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51523         HAVE_BTOWC.
51524         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51525         * doc/posix-functions/btowc.texi: Document the new module.
51526
51527 2008-12-17  Bruno Haible  <bruno@clisp.org>
51528
51529         New module 'mbsinit'.
51530         * lib/wchar.in.h (mbsinit): New declaration.
51531         * lib/mbsinit.c: New file.
51532         * m4/mbsinit.m4: New file.
51533         * modules/mbsinit: New file.
51534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51535         HAVE_MBSINIT.
51536         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51537         HAVE_MBSINIT.
51538         * doc/posix-functions/mbsinit.texi: Document the new module.
51539
51540 2008-12-16  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/unistd.in.h: Add comment.
51543         * tests/test-environ.c: Don't include <stdlib.h>.
51544
51545 2008-12-16  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/parse-duration.h (parse_duration): Document return value
51548         convention.
51549         * lib/parse-duration.c: Include specification header first. Add
51550         comments.
51551         (_): Remove macro.
51552         (parse_year_month_day, parse_hour_minute_second): Move side effects
51553         outside of strchr call.
51554         (parse_non_iso8601): Move side effects outside of isspace call.
51555         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51556         call.
51557
51558 2008-12-16  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-parse-duration.sh: Produce no output when the test
51561         succeeds.
51562
51563 2008-12-16  Bruno Haible  <bruno@clisp.org>
51564
51565         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51566         expressions.
51567
51568 2008-12-15  Bruno Haible  <bruno@clisp.org>
51569
51570         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51571         * doc/glibc-functions/flistxattr.texi: Likewise.
51572         * doc/glibc-functions/fopencookie.texi: Likewise.
51573         * doc/glibc-functions/fremovexattr.texi: Likewise.
51574         * doc/glibc-functions/fsetxattr.texi: Likewise.
51575         * doc/glibc-functions/getxattr.texi: Likewise.
51576         * doc/glibc-functions/lgetxattr.texi: Likewise.
51577         * doc/glibc-functions/listxattr.texi: Likewise.
51578         * doc/glibc-functions/llistxattr.texi: Likewise.
51579         * doc/glibc-functions/lremovexattr.texi: Likewise.
51580         * doc/glibc-functions/lsetxattr.texi: Likewise.
51581         * doc/glibc-functions/removexattr.texi: Likewise.
51582         * doc/glibc-functions/setxattr.texi: Likewise.
51583         * doc/posix-functions/open_memstream.texi: Likewise.
51584
51585 2008-12-15  Eric Blake  <ebb9@byu.net>
51586
51587         Update doc for cygwin 1.7.
51588         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51589         functions.
51590         * doc/posix-functions/fchmodat.texi: Likewise.
51591         * doc/posix-functions/fchownat.texi: Likewise.
51592         * doc/posix-functions/fdopendir.texi: Likewise.
51593         * doc/posix-functions/fmemopen.texi: Likewise.
51594         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51595         * doc/posix-functions/fstatat.texi: Likewise.
51596         * doc/posix-functions/futimens.texi: Likewise.
51597         * doc/posix-functions/gai_strerror.texi: Likewise.
51598         * doc/posix-functions/getaddrinfo.texi: Likewise.
51599         * doc/posix-functions/getnameinfo.texi: Likewise.
51600         * doc/posix-functions/if_freenameindex.texi: Likewise.
51601         * doc/posix-functions/if_indextoname.texi: Likewise.
51602         * doc/posix-functions/if_nameindex.texi: Likewise.
51603         * doc/posix-functions/if_nametoindex.texi: Likewise.
51604         * doc/posix-functions/insque.texi: Likewise.
51605         * doc/posix-functions/linkat.texi: Likewise.
51606         * doc/posix-functions/llrint.texi: Likewise.
51607         * doc/posix-functions/llrintf.texi: Likewise.
51608         * doc/posix-functions/llrintl.texi: Likewise.
51609         * doc/posix-functions/lockf.texi: Likewise.
51610         * doc/posix-functions/lrintl.texi: Likewise.
51611         * doc/posix-functions/mkdirat.texi: Likewise.
51612         * doc/posix-functions/mkfifoat.texi: Likewise.
51613         * doc/posix-functions/mknodat.texi: Likewise.
51614         * doc/posix-functions/mq_close.texi: Likewise.
51615         * doc/posix-functions/mq_getattr.texi: Likewise.
51616         * doc/posix-functions/mq_notify.texi: Likewise.
51617         * doc/posix-functions/mq_open.texi: Likewise.
51618         * doc/posix-functions/mq_receive.texi: Likewise.
51619         * doc/posix-functions/mq_send.texi: Likewise.
51620         * doc/posix-functions/mq_setattr.texi: Likewise.
51621         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51622         * doc/posix-functions/mq_timedsend.texi: Likewise.
51623         * doc/posix-functions/mq_unlink.texi: Likewise.
51624         * doc/posix-functions/open_memstream.texi: Likewise.
51625         * doc/posix-functions/openat.texi: Likewise.
51626         * doc/posix-functions/posix_fadvise.texi: Likewise.
51627         * doc/posix-functions/posix_fallocate.texi: Likewise.
51628         * doc/posix-functions/posix_madvise.texi: Likewise.
51629         * doc/posix-functions/posix_memalign.texi: Likewise.
51630         * doc/posix-functions/posix_openpt.texi: Likewise.
51631         * doc/posix-functions/readlinkat.texi: Likewise.
51632         * doc/posix-functions/remque.texi: Likewise.
51633         * doc/posix-functions/renameat.texi: Likewise.
51634         * doc/posix-functions/rintl.texi: Likewise.
51635         * doc/posix-functions/sem_unlink.texi: Likewise.
51636         * doc/posix-functions/shm_open.texi: Likewise.
51637         * doc/posix-functions/shm_unlink.texi: Likewise.
51638         * doc/posix-functions/signgam.texi: Likewise.
51639         * doc/posix-functions/sigset.texi: Likewise.
51640         * doc/posix-functions/stpcpy.texi: Likewise.
51641         * doc/posix-functions/stpncpy.texi: Likewise.
51642         * doc/posix-functions/strerror.texi: Likewise.
51643         * doc/posix-functions/strtod.texi: Likewise.
51644         * doc/posix-functions/symlinkat.texi: Likewise.
51645         * doc/posix-functions/unlinkat.texi: Likewise.
51646         * doc/posix-functions/utimensat.texi: Likewise.
51647         * doc/glibc-functions/bindresvport.texi: Likewise.
51648         * doc/glibc-functions/dn_expand.texi: Likewise.
51649         * doc/glibc-functions/exp10.texi: Likewise.
51650         * doc/glibc-functions/exp10f.texi: Likewise.
51651         * doc/glibc-functions/fgetxattr.texi: Likewise.
51652         * doc/glibc-functions/flistxattr.texi: Likewise.
51653         * doc/glibc-functions/fopencookie.texi: Likewise.
51654         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51655         * doc/glibc-functions/fremovexattr.texi: Likewise.
51656         * doc/glibc-functions/fsetxattr.texi: Likewise.
51657         * doc/glibc-functions/getifaddrs.texi: Likewise.
51658         * doc/glibc-functions/getxattr.texi: Likewise.
51659         * doc/glibc-functions/lgetxattr.texi: Likewise.
51660         * doc/glibc-functions/listxattr.texi: Likewise.
51661         * doc/glibc-functions/llistxattr.texi: Likewise.
51662         * doc/glibc-functions/lremovexattr.texi: Likewise.
51663         * doc/glibc-functions/lsetxattr.texi: Likewise.
51664         * doc/glibc-functions/pow10.texi: Likewise.
51665         * doc/glibc-functions/pow10f.texi: Likewise.
51666         * doc/glibc-functions/rcmd_af.texi: Likewise.
51667         * doc/glibc-functions/removexattr.texi: Likewise.
51668         * doc/glibc-functions/res_init.texi: Likewise.
51669         * doc/glibc-functions/res_mkquery.texi: Likewise.
51670         * doc/glibc-functions/res_query.texi: Likewise.
51671         * doc/glibc-functions/res_querydomain.texi: Likewise.
51672         * doc/glibc-functions/res_send.texi: Likewise.
51673         * doc/glibc-functions/rresvport_af.texi: Likewise.
51674         * doc/glibc-functions/setxattr.texi: Likewise.
51675         * doc/glibc-functions/strcasestr.texi: Likewise.
51676
51677 2008-12-15  Bruno Haible  <bruno@clisp.org>
51678
51679         Fix compilation error on OSF/1 4.0.
51680         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51681         <sys/time.h>, simply delegate to the system header.
51682         Reported by Daniel Richard G. <oss@teragram.com>.
51683
51684 2008-12-15  Bruno Haible  <bruno@clisp.org>
51685
51686         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51687         * doc/posix-functions/fchmodat.texi: Likewise.
51688         * doc/posix-functions/fchownat.texi: Likewise.
51689         * doc/posix-functions/fdopendir.texi: Likewise.
51690         * doc/posix-functions/fstatat.texi: Likewise.
51691         * doc/posix-functions/mkdirat.texi: Likewise.
51692         * doc/posix-functions/unlinkat.texi: Likewise.
51693
51694 2008-12-14  Bruno Haible  <bruno@clisp.org>
51695
51696         Update doc for POSIX:2008.
51697         * doc/posix-functions/faccessat.texi: New file.
51698         * doc/posix-functions/fchmodat.texi: New file.
51699         * doc/posix-functions/fchownat.texi: New file.
51700         * doc/posix-functions/fdopendir.texi: New file.
51701         * doc/posix-functions/fstatat.texi: New file.
51702         * doc/posix-functions/futimens.texi: New file.
51703         * doc/posix-functions/linkat.texi: New file.
51704         * doc/posix-functions/mkdirat.texi: New file.
51705         * doc/posix-functions/mkfifoat.texi: New file.
51706         * doc/posix-functions/mknodat.texi: New file.
51707         * doc/posix-functions/open_wmemstream.texi: New file.
51708         * doc/posix-functions/openat.texi: New file.
51709         * doc/posix-functions/psiginfo.texi: New file.
51710         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51711         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51712         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51713         * doc/posix-functions/readlinkat.texi: New file.
51714         * doc/posix-functions/renameat.texi: New file.
51715         * doc/posix-functions/strerror_l.texi: New file.
51716         * doc/posix-functions/symlinkat.texi: New file.
51717         * doc/posix-functions/unlinkat.texi: New file.
51718         * doc/posix-functions/utimensat.texi: New file.
51719         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51720
51721 2008-12-14  Bruno Haible  <bruno@clisp.org>
51722
51723         Update doc for POSIX:2008.
51724         * doc/posix-functions/alphasort.texi: Renamed from
51725         doc/glibc-functions/alphasort.texi.
51726         * doc/posix-functions/dirfd.texi: Renamed from
51727         doc/glibc-functions/dirfd.texi.
51728         * doc/posix-functions/dprintf.texi: Renamed from
51729         doc/glibc-functions/dprintf.texi.
51730         * doc/posix-functions/duplocale.texi: Renamed from
51731         doc/glibc-functions/duplocale.texi.
51732         * doc/posix-functions/fexecve.texi: Renamed from
51733         doc/glibc-functions/fexecve.texi.
51734         * doc/posix-functions/fmemopen.texi: Renamed from
51735         doc/glibc-functions/fmemopen.texi.
51736         * doc/posix-functions/freelocale.texi: Renamed from
51737         doc/glibc-functions/freelocale.texi.
51738         * doc/posix-functions/getdate_err.texi: Renamed from
51739         doc/glibc-functions/getdate_err.texi.
51740         * doc/posix-functions/isalnum_l.texi: Renamed from
51741         doc/glibc-functions/isalnum_l.texi.
51742         * doc/posix-functions/isalpha_l.texi: Renamed from
51743         doc/glibc-functions/isalpha_l.texi.
51744         * doc/posix-functions/isblank_l.texi: Renamed from
51745         doc/glibc-functions/isblank_l.texi.
51746         * doc/posix-functions/iscntrl_l.texi: Renamed from
51747         doc/glibc-functions/iscntrl_l.texi.
51748         * doc/posix-functions/isdigit_l.texi: Renamed from
51749         doc/glibc-functions/isdigit_l.texi.
51750         * doc/posix-functions/isgraph_l.texi: Renamed from
51751         doc/glibc-functions/isgraph_l.texi.
51752         * doc/posix-functions/islower_l.texi: Renamed from
51753         doc/glibc-functions/islower_l.texi.
51754         * doc/posix-functions/isprint_l.texi: Renamed from
51755         doc/glibc-functions/isprint_l.texi.
51756         * doc/posix-functions/ispunct_l.texi: Renamed from
51757         doc/glibc-functions/ispunct_l.texi.
51758         * doc/posix-functions/isspace_l.texi: Renamed from
51759         doc/glibc-functions/isspace_l.texi.
51760         * doc/posix-functions/isupper_l.texi: Renamed from
51761         doc/glibc-functions/isupper_l.texi.
51762         * doc/posix-functions/iswalnum_l.texi: Renamed from
51763         doc/glibc-functions/iswalnum_l.texi.
51764         * doc/posix-functions/iswalpha_l.texi: Renamed from
51765         doc/glibc-functions/iswalpha_l.texi.
51766         * doc/posix-functions/iswblank_l.texi: Renamed from
51767         doc/glibc-functions/iswblank_l.texi.
51768         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51769         doc/glibc-functions/iswcntrl_l.texi.
51770         * doc/posix-functions/iswctype_l.texi: Renamed from
51771         doc/glibc-functions/iswctype_l.texi.
51772         * doc/posix-functions/iswdigit_l.texi: Renamed from
51773         doc/glibc-functions/iswdigit_l.texi.
51774         * doc/posix-functions/iswgraph_l.texi: Renamed from
51775         doc/glibc-functions/iswgraph_l.texi.
51776         * doc/posix-functions/iswlower_l.texi: Renamed from
51777         doc/glibc-functions/iswlower_l.texi.
51778         * doc/posix-functions/iswprint_l.texi: Renamed from
51779         doc/glibc-functions/iswprint_l.texi.
51780         * doc/posix-functions/iswpunct_l.texi: Renamed from
51781         doc/glibc-functions/iswpunct_l.texi.
51782         * doc/posix-functions/iswspace_l.texi: Renamed from
51783         doc/glibc-functions/iswspace_l.texi.
51784         * doc/posix-functions/iswupper_l.texi: Renamed from
51785         doc/glibc-functions/iswupper_l.texi.
51786         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51787         doc/glibc-functions/iswxdigit_l.texi.
51788         * doc/posix-functions/isxdigit_l.texi: Renamed from
51789         doc/glibc-functions/isxdigit_l.texi.
51790         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51791         doc/glibc-functions/mbsnrtowcs.texi.
51792         * doc/posix-functions/mkdtemp.texi: Renamed from
51793         doc/glibc-functions/mkdtemp.texi.
51794         * doc/posix-functions/newlocale.texi: Renamed from
51795         doc/glibc-functions/newlocale.texi.
51796         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51797         doc/glibc-functions/nl_langinfo_l.texi.
51798         * doc/posix-functions/open_memstream.texi: Renamed from
51799         doc/glibc-functions/open_memstream.texi.
51800         * doc/posix-functions/opterr.texi: Renamed from
51801         doc/glibc-functions/opterr.texi.
51802         * doc/posix-functions/optind.texi: Renamed from
51803         doc/glibc-functions/optind.texi.
51804         * doc/posix-functions/optopt.texi: Renamed from
51805         doc/glibc-functions/optopt.texi.
51806         * doc/posix-functions/psignal.texi: Renamed from
51807         doc/glibc-functions/psignal.texi.
51808         * doc/posix-functions/scandir.texi: Renamed from
51809         doc/glibc-functions/scandir.texi.
51810         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51811         doc/glibc-functions/sched_get_priority_min.texi.
51812         * doc/posix-functions/signgam.texi: Renamed from
51813         doc/glibc-functions/signgam.texi.
51814         * doc/posix-functions/stpcpy.texi: Renamed from
51815         doc/glibc-functions/stpcpy.texi.
51816         * doc/posix-functions/stpncpy.texi: Renamed from
51817         doc/glibc-functions/stpncpy.texi.
51818         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51819         doc/glibc-functions/strcasecmp_l.texi.
51820         * doc/posix-functions/strcoll_l.texi: Renamed from
51821         doc/glibc-functions/strcoll_l.texi.
51822         * doc/posix-functions/strfmon_l.texi: Renamed from
51823         doc/glibc-functions/strfmon_l.texi.
51824         * doc/posix-functions/strftime_l.texi: Renamed from
51825         doc/glibc-functions/strftime_l.texi.
51826         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51827         doc/glibc-functions/strncasecmp_l.texi.
51828         * doc/posix-functions/strndup.texi: Renamed from
51829         doc/glibc-functions/strndup.texi.
51830         * doc/posix-functions/strnlen.texi: Renamed from
51831         doc/glibc-functions/strnlen.texi.
51832         * doc/posix-functions/strsignal.texi: Renamed from
51833         doc/glibc-functions/strsignal.texi.
51834         * doc/posix-functions/strxfrm_l.texi: Renamed from
51835         doc/glibc-functions/strxfrm_l.texi.
51836         * doc/posix-functions/timer_gettime.texi: Renamed from
51837         doc/glibc-functions/timer_gettime.texi.
51838         * doc/posix-functions/tolower_l.texi: Renamed from
51839         doc/glibc-functions/tolower_l.texi.
51840         * doc/posix-functions/toupper_l.texi: Renamed from
51841         doc/glibc-functions/toupper_l.texi.
51842         * doc/posix-functions/towctrans_l.texi: Renamed from
51843         doc/glibc-functions/towctrans_l.texi.
51844         * doc/posix-functions/towlower_l.texi: Renamed from
51845         doc/glibc-functions/towlower_l.texi.
51846         * doc/posix-functions/towupper_l.texi: Renamed from
51847         doc/glibc-functions/towupper_l.texi.
51848         * doc/posix-functions/uselocale.texi: Renamed from
51849         doc/glibc-functions/uselocale.texi.
51850         * doc/posix-functions/vdprintf.texi: Renamed from
51851         doc/glibc-functions/vdprintf.texi.
51852         * doc/posix-functions/wcpcpy.texi:
51853         Renamed from doc/glibc-functions/wcpcpy.texi.
51854         * doc/posix-functions/wcpncpy.texi: Renamed from
51855         doc/glibc-functions/wcpncpy.texi.
51856         * doc/posix-functions/wcscasecmp.texi: Renamed from
51857         doc/glibc-functions/wcscasecmp.texi.
51858         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51859         doc/glibc-functions/wcscasecmp_l.texi.
51860         * doc/posix-functions/wcscoll_l.texi: Renamed from
51861         doc/glibc-functions/wcscoll_l.texi.
51862         * doc/posix-functions/wcsdup.texi: Renamed from
51863         doc/glibc-functions/wcsdup.texi.
51864         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51865         doc/glibc-functions/wcsncasecmp.texi.
51866         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51867         doc/glibc-functions/wcsncasecmp_l.texi.
51868         * doc/posix-functions/wcsnlen.texi: Renamed from
51869         doc/glibc-functions/wcsnlen.texi.
51870         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51871         doc/glibc-functions/wcsnrtombs.texi.
51872         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51873         doc/glibc-functions/wcsxfrm_l.texi.
51874         * doc/posix-functions/wctrans_l.texi: Renamed from
51875         doc/glibc-functions/wctrans_l.texi.
51876         * doc/posix-functions/wctype_l.texi: Renamed from
51877         doc/glibc-functions/wctype_l.texi.
51878         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51879         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51880         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51881         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51882         these subsections.
51883         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51884         Remove sections.
51885
51886 2008-12-14  Bruno Haible  <bruno@clisp.org>
51887
51888         Update doc for POSIX:2008.
51889         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51890
51891 2008-12-14  Bruno Haible  <bruno@clisp.org>
51892
51893         Update doc for POSIX:2008.
51894         * doc/pastposix-functions/bcmp.texi: Renamed from
51895         doc/posix-functions/bcmp.texi.
51896         * doc/pastposix-functions/bcopy.texi: Renamed from
51897         doc/posix-functions/bcopy.texi.
51898         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51899         doc/posix-functions/bsd_signal.texi.
51900         * doc/pastposix-functions/bzero.texi: Renamed from
51901         doc/posix-functions/bzero.texi.
51902         * doc/pastposix-functions/ecvt.texi: Renamed from
51903         doc/posix-functions/ecvt.texi.
51904         * doc/pastposix-functions/fcvt.texi: Renamed from
51905         doc/posix-functions/fcvt.texi.
51906         * doc/pastposix-functions/ftime.texi: Renamed from
51907         doc/posix-functions/ftime.texi.
51908         * doc/pastposix-functions/gcvt.texi: Renamed from
51909         doc/posix-functions/gcvt.texi.
51910         * doc/pastposix-functions/getcontext.texi: Renamed from
51911         doc/posix-functions/getcontext.texi.
51912         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51913         doc/posix-functions/gethostbyaddr.texi.
51914         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51915         doc/posix-functions/gethostbyname.texi.
51916         * doc/pastposix-functions/getwd.texi: Renamed from
51917         doc/posix-functions/getwd.texi.
51918         * doc/pastposix-functions/h_errno.texi: Renamed from
51919         doc/posix-functions/h_errno.texi.
51920         * doc/pastposix-functions/index.texi: Renamed from
51921         doc/posix-functions/index.texi.
51922         * doc/pastposix-functions/makecontext.texi: Renamed from
51923         doc/posix-functions/makecontext.texi.
51924         * doc/pastposix-functions/mktemp.texi: Renamed from
51925         doc/posix-functions/mktemp.texi.
51926         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51927         doc/posix-functions/pthread_attr_getstackaddr.texi.
51928         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51929         doc/posix-functions/pthread_attr_setstackaddr.texi.
51930         * doc/pastposix-functions/rindex.texi: Renamed from
51931         doc/posix-functions/rindex.texi.
51932         * doc/pastposix-functions/scalb.texi: Renamed from
51933         doc/posix-functions/scalb.texi.
51934         * doc/pastposix-functions/setcontext.texi: Renamed from
51935         doc/posix-functions/setcontext.texi.
51936         * doc/pastposix-functions/swapcontext.texi: Renamed from
51937         doc/posix-functions/swapcontext.texi.
51938         * doc/pastposix-functions/ualarm.texi: Renamed from
51939         doc/posix-functions/ualarm.texi.
51940         * doc/pastposix-functions/usleep.texi: Renamed from
51941         doc/posix-functions/usleep.texi.
51942         * doc/pastposix-functions/vfork.texi: Renamed from
51943         doc/posix-functions/vfork.texi.
51944         * doc/pastposix-functions/wcswcs.texi: Renamed from
51945         doc/posix-functions/wcswcs.texi.
51946         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51947         (Function Substitutes): Update.
51948
51949 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51950
51951         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51952         m4/strerror.m4.
51953
51954 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51955             Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51958
51959 2008-12-13  Bruno Haible  <bruno@clisp.org>
51960
51961         * modules/strtoull (Depends-on): Remove unistd.
51962
51963 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51964
51965         * modules/strtoull (Depends-on): Add stdlib.
51966
51967 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51968
51969         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51970
51971 2008-12-10  Jim Meyering  <meyering@redhat.com>
51972
51973         gl_ASSERT: don't say assertions are disabled when they're not
51974         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51975         "checking whether to enable assertions... no", when they are in
51976         fact enabled.  This is solely a bug in the output of configure.
51977         In spite of saying "no", NDEBUG was not defined in that case.
51978         Also, as noted by Eric Blake, leave assertions enabled upon
51979         --enable-assert=INVALID.
51980
51981 2008-12-10  Bruno Haible  <bruno@clisp.org>
51982
51983         Change MODULES.html to refer to POSIX:2008 where possible.
51984         * MODULES.html.sh (POSIX2008_URL): New variable.
51985         (posix_headers): Remove sys/timeb, ucontext.
51986         (posix2001_headers): New variable.
51987         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51988         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51989         index, makecontext, mktemp, pthread_attr_getstackaddr,
51990         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51991         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51992         (posix2001_functions): New variable.
51993         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51994         otherwise.
51995
51996 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51997
51998         add missing include to parse-duration.c
51999         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52000         * modules/parse-duration (Depends-on): Add xalloc.
52001
52002         fix sed script reading maint.mk
52003         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52004         (syntax-check-rules): Use it.
52005
52006 2008-12-09  Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52009         MacOS X 10.4/PowerPC.
52010         Reported by Simon Josefsson.
52011
52012 2008-12-08  Jim Meyering  <meyering@redhat.com>
52013
52014         work around mingw's lack of some S_IF definitions
52015         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52016         Reported by Simon Josefsson.
52017
52018 2008-12-08  Bruno Haible  <bruno@clisp.org>
52019
52020         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52021         applied to variables. Needed on MacOS X 10.4/PowerPC.
52022         Reported by Simon Josefsson.
52023
52024 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52025         and Eric Blake  <ebb9@byu.net>
52026
52027         assert: honor --enable-assert
52028         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52029         order to honor --enable-assert, rather than treating it as a
52030         synonym for --disable-assert.
52031
52032 2008-12-08  Jim Meyering  <meyering@redhat.com>
52033
52034         * lib/posixtm.c: Remove now-useless declaration of mktime.
52035
52036         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52037
52038 2008-12-07  Bruno Haible  <bruno@clisp.org>
52039
52040         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52041         test_once): Mark functions as static.
52042         * tests/test-tls.c (test_tls): Likewise.
52043
52044 2008-12-07  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52047         iconv_register_autodetect.
52048
52049 2008-12-07  Jim Meyering  <meyering@redhat.com>
52050
52051         posixtm.c: avoid a warning
52052         * lib/posixtm.c (posixtime): Don't initialize tm0.
52053         It's no longer needed to placate gcc4's -Wuninitialized,
52054         and the attempt to placate would elicit a new warning.
52055
52056         unicodeio.c: mark unused parameters
52057         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52058         (fallback_failure_callback): Likewise.
52059
52060 2008-12-07  Bruno Haible  <bruno@clisp.org>
52061
52062         * gnulib-tool (func_create_testdir): When building the tests
52063         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52064         Reported by Simon Josefsson.
52065
52066 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52067
52068         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52069
52070 2008-12-06  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52073         Suggested by Eric Blake.
52074
52075 2008-12-06  Bruno Haible  <bruno@clisp.org>
52076
52077         Fix a c-stack test failure on MacOS X.
52078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52079         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52080         handler for SIGBUS as well.
52081         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52082         install a signal handler for SIGBUS as well.
52083         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52084
52085 2008-12-06  Bruno Haible  <bruno@clisp.org>
52086
52087         Advocacy documentation.
52088         * doc/gnulib-intro.texi (Benefits): New section.
52089         * doc/gnulib.texi: Update.
52090
52091 2008-12-06  Bruno Haible  <bruno@clisp.org>
52092
52093         Document the 'manywarnings' module.
52094         * doc/manywarnings.texi: New file.
52095         * doc/gnulib.texi: Include it.
52096
52097 2008-12-05  Eric Blake  <ebb9@byu.net>
52098
52099         tests: silence some gcc warnings
52100         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52101         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52102         type mismatches.
52103
52104 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52105             Bruno Haible  <bruno@clisp.org>
52106
52107         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52108
52109 2008-11-29  Jim Meyering  <meyering@redhat.com>
52110
52111         unicodeio.c: mark unused parameters
52112         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52113         (fallback_failure_callback): Likewise.
52114
52115         fts: fix a thinko
52116         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52117         (set_stat_type): Return S_IF*-valued "type" directly.
52118         Prompted by James Youngman's spotting a related bug.
52119         Confirmed by further testing through find.
52120
52121         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52122         * lib/fts.c (D_TYPE): Define.
52123         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52124         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52125         (s_ifmt_shift_bits): New function.
52126         (set_stat_type): New function.
52127         (fts_build): When not calling fts_stat, call set_stat_type
52128         to propagate dirent.d_type info to fts_read caller.
52129         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52130         fts_statp->st_mode type information may be valid.
52131
52132 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52133
52134         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52135         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52136         <sds@gnu.org>.
52137
52138 2008-11-20  Bruno Haible  <bruno@clisp.org>
52139
52140         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52141         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52142         INCLUDE_NEXT.
52143         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52144         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52145         * modules/math (Makefile.am): Substitute
52146         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52147         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52148
52149 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52150             Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/stdint.in.h: Define all type macros so that their expansion is
52153         a single typedef'ed token. Fixes a compilation failure in Boost which
52154         does "using ::int8_t;".
52155
52156 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52157
52158         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52159         gl_MANYWARN_ALL_GCC.
52160         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52161         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52162         * modules/manywarnings: New file.
52163         * MODULES.html.sh: Mention manywarnings module.
52164
52165 2008-11-18  Bruno Haible  <bruno@clisp.org>
52166
52167         * doc/gnulib-tool.texi (Unit tests): New section.
52168
52169 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52170
52171         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52172         paths like 'lib/po/foo.po'.
52173
52174 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52175
52176         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52177         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52178
52179 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52180
52181         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52182         parameter works.
52183
52184 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52185
52186         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52187
52188 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52189
52190         * modules/parse-duration-tests: New file.
52191         * tests/test-parse-duration.sh: New file.
52192         * tests/test-parse-duration.c: New file.
52193
52194         New module 'parse-duration'.
52195         * lib/parse-duration.h: New file.
52196         * lib/parse-duration.c: New file.
52197         * modules/parse-duration: New file.
52198
52199 2008-11-17  Bruno Haible  <bruno@clisp.org>
52200
52201         * tests/test-select-out.sh: Comment out the first pipe test.
52202         Reported by Simon Josefsson.
52203
52204 2008-11-17  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52208         gl_HOSTENT.
52209
52210 2008-11-17  Bruno Haible  <bruno@clisp.org>
52211
52212         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52213         -lnetwork and -lnet. Needed for Haiku and BeOS.
52214
52215 2008-11-16  Bruno Haible  <bruno@clisp.org>
52216
52217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52218
52219 2008-11-16  Bruno Haible  <bruno@clisp.org>
52220
52221         Avoid test failure on Haiku.
52222         * tests/test-fsync.c: Include <errno.h>.
52223         (main): Don't require that fsync (0) fails.
52224
52225 2008-11-15  Bruno Haible  <bruno@clisp.org>
52226
52227         New module 'hostent'.
52228         * modules/hostent: New file.
52229         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52230
52231 2008-11-15  Bruno Haible  <bruno@clisp.org>
52232
52233         New module 'servent'.
52234         * modules/servent: New file.
52235         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52236
52237 2008-11-15  Bruno Haible  <bruno@clisp.org>
52238
52239         Avoid generating same test program with two different rules.
52240         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52241         test-frexp to test-frexp-nolibm.
52242         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52243         test-frexpl to test-frexpl-nolibm.
52244
52245 2008-11-15  Bruno Haible  <bruno@clisp.org>
52246
52247         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52248         $(FREXPL_LIBM).
52249
52250 2008-11-15  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/netdb.in.h: Activate the definitions also when the system's
52253         <netdb.h> has 'struct addrinfo'.
52254         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52255         EAI_OVERFLOW or AI_NUMERICSERV.
52256         * doc/posix-headers/netdb.texi: Document the problem.
52257
52258 2008-11-15  Bruno Haible  <bruno@clisp.org>
52259
52260         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52261
52262         Make the 'sched' module work on platforms where <sched.h> exists but
52263         is incomplete (such as Haiku).
52264         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52265         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52266         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52267         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52268         HAVE_STRUCT_SCHED_PARAM.
52269         * modules/sched (Depends-on): Add include_next.
52270         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52271         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52272         * doc/posix-headers/sched.texi: Document the issue.
52273
52274 2008-11-13  Jim Meyering  <meyering@redhat.com>
52275
52276         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52277         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52278         test would fail due to the difference in the Report bugs to ...
52279         line.  The expected address is empty, "<>", while the actual
52280         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52281
52282 2008-11-12  Bruno Haible  <bruno@clisp.org>
52283
52284         lstat: don't compile lstat.c on systems lacking lstat
52285         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52286         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52287         Reported by Daniel P. Berrange via Jim Meyering.
52288
52289 2008-11-12  Jim Meyering  <meyering@redhat.com>
52290
52291         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52292
52293 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52294
52295         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52296         instead.
52297
52298 2008-11-12  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/unicodeio.c: Include unistr.h.
52301         (utf8_wctomb): Remove function.
52302         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52303
52304 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52305
52306         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52307         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52308         <bruno@clisp.org>.
52309         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52310
52311 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52312
52313         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52314         * doc/gnulib.texi: Add section for warnings.
52315
52316 2008-11-11  Bruno Haible  <bruno@clisp.org>
52317
52318         * lib/sockets.h: Add a comment.
52319
52320 2008-11-11  Karl Berry  <karl@gnu.org>
52321
52322         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52323
52324 2008-11-11  Eric Blake  <ebb9@byu.net>
52325
52326         fdl.texi: avoid git symlinks
52327         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52328
52329 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52330
52331         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52332
52333 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52334
52335         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52336         (gl_WARN_ADD): Substitute $2 if literal.
52337
52338 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52339
52340         * m4/warning.m4: Remove.
52341
52342 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52343
52344         * m4/warnings.m4: Almost complete rewrite. :-)
52345
52346 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52347
52348         * modules/warnings: New module.
52349         * m4/warnings.m4: New file.
52350         * MODULES.html.sh: Mention warnings module.
52351         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52352         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52353
52354 2008-11-10  Eric Blake  <ebb9@byu.net>
52355
52356         fdl.texi: make a symlink to the latest version
52357         * doc/standards.texi: Revert today's earlier change.
52358         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52359         * doc/fdl.texi: ...and replace this with a symlink to the newer
52360         fdl-1.3.texi.
52361
52362 2008-11-10  Bruno Haible  <bruno@clisp.org>
52363
52364         * tests/test-select-fd.c (main): Accept the result file name as fourth
52365         argument.
52366         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52367         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52368
52369 2008-11-10  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52372         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52373         as autoconf-substituted macros.
52374         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52376         gl_NETDB_H_DEFAULTS. Set these variables.
52377         * modules/netdb (Makefile.am): Substitute these variables.
52378
52379 2008-11-10  Eric Blake  <ebb9@byu.net>
52380
52381         standards.texi: include correct file for FDL 1.3
52382         * doc/standards.texi (GNU Free Documentation License): Change
52383         include file to pull in FDL 1.3, not 1.2.
52384
52385         fdl.texi: revert accidental change to license
52386         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52387
52388 2008-11-10  Bruno Haible  <bruno@clisp.org>
52389
52390         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52391         cross-compiling guesses also when the native compile gives no result.
52392
52393 2008-11-10  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/spawni.c (__spawni): Force variable into the stack.
52396
52397 2008-11-10  Bruno Haible  <bruno@clisp.org>
52398
52399         Add support for Haiku.
52400         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52401         glibc and BeOS, but also on Haiku.
52402         * lib/fpurge.c (fpurge): Likewise.
52403         * lib/freadable.c (freadable): Likewise.
52404         * lib/freadahead.c (freadahead): Likewise.
52405         * lib/freading.c (freading): Likewise.
52406         * lib/freadptr.c (freadptr): Likewise.
52407         * lib/freadseek.c (freadptrinc): Likewise.
52408         * lib/fseeko.c (rpl_fseeko): Likewise.
52409         * lib/fseterr.c (fseterr): Likewise.
52410         * lib/fwritable.c (fwritable): Likewise.
52411         * lib/fwriting.c (fwriting): Likewise.
52412         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52413
52414 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52415
52416         * lib/config.charset: Treat Haiku like BeOS.
52417
52418 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52419
52420         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52421         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52422
52423 2008-11-08  Bruno Haible  <bruno@clisp.org>
52424
52425         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52426         AC_CACHE_CHECK.
52427
52428 2008-11-08  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52431
52432 2008-11-08  Bruno Haible  <bruno@clisp.org>
52433
52434         * tests/test-select-fd.c: New file.
52435         * tests/test-select-in.sh: New file.
52436         * tests/test-select-out.sh: New file.
52437         * tests/test-select-stdin.c: New file.
52438         * modules/select-tests (Files): Add the new files.
52439         (Depends-on): Add gettimeofday.
52440         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52441         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52442         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52443
52444 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52445             Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52448
52449 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52450
52451         * build-aux/pmccabe2html: Added support for C++ source files.
52452
52453 2008-11-05  Ben Pfaff  <blp@gnu.org>
52454
52455         Fix lib/close.c build on Windows.
52456         * modules/close (Files): Add lib/w32sock.h.
52457
52458 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52459
52460         Accept Bison's NEWS format.
52461         * build-aux/announce-gen (print_news_deltas): Tweak
52462         $re_prefix.
52463
52464 2008-11-04  Bruno Haible  <bruno@clisp.org>
52465
52466         * modules/random_r (Maintainer): Add glibc.
52467
52468 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52469
52470         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52471         by karl@freefriends.org (Karl Berry).
52472         * doc/alloca.texi: Likewise.
52473         * doc/c-ctype.texi: Likewise.
52474         * doc/c-strcase.texi: Likewise.
52475         * doc/c-strcaseeq.texi: Likewise.
52476         * doc/c-strcasestr.texi: Likewise.
52477         * doc/c-strstr.texi: Likewise.
52478         * doc/c-strtod.texi: Likewise.
52479         * doc/c-strtold.texi: Likewise.
52480         * doc/ctime.texi: Likewise.
52481         * doc/error.texi: Likewise.
52482         * doc/fdl.texi: Likewise.
52483         * doc/gcd.texi: Likewise.
52484         * doc/getdate.texi: Likewise.
52485         * doc/gnulib-intro.texi: Likewise.
52486         * doc/gnulib-tool.texi: Likewise.
52487         * doc/gnulib.texi: Likewise.
52488         * doc/inet_ntoa.texi: Likewise.
52489         * doc/maintain.texi: Likewise.
52490         * doc/make-stds.texi: Likewise.
52491         * doc/quote.texi: Likewise.
52492         * doc/regexprops-generic.texi: Likewise.
52493         * doc/standards.texi: Likewise.
52494         * doc/verify.texi: Likewise.
52495         * doc/visibility.texi: Likewise.
52496         * doc/gnulib.texi (GNU Free Documentation License): Include
52497         fdl-1.3.texi instead of fdl.texi.
52498
52499 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52500
52501         * doc/fdl-1.3.texi: New file, from
52502         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52503         * modules/fdl-1.3: Add.
52504         * MODULES.html.sh: Add fdl-1.3.
52505
52506 2008-11-03  Bruno Haible  <bruno@clisp.org>
52507
52508         Make determination of absolute name of header file work with AIX xlc.
52509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52510         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52511         preprocessing.
52512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52513         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52514
52515 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52516
52517         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52518         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52519         <ludo@gnu.org>.
52520
52521 2008-11-02  Bruno Haible  <bruno@clisp.org>
52522
52523         Mark 'strpbrk' obsolete.
52524         * modules/strpbrk (Status, Notice): New sections.
52525         * modules/strtok_r (Depends-on): Add strpbrk.
52526
52527 2008-11-02  Bruno Haible  <bruno@clisp.org>
52528
52529         Mark 'strdup' obsolete.
52530         * modules/strdup (Status, Notice): New sections.
52531         * modules/findprog (Depends-on): Add strdup.
52532         * modules/getaddrinfo (Depends-on): Likewise.
52533         * modules/localename (Depends-on): Likewise.
52534         * modules/relocatable-lib (Depends-on): Likewise.
52535         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52536         * modules/relocatable-prog (Depends-on): Likewise.
52537         * modules/trim (Depends-on): Likewise.
52538         * modules/unictype/gen-ctype (Depends-on): Likewise.
52539         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52540
52541 2008-11-02  Bruno Haible  <bruno@clisp.org>
52542
52543         Mark 'strcspn' obsolete.
52544         * modules/strcspn (Status, Notice): New sections.
52545
52546 2008-11-02  Bruno Haible  <bruno@clisp.org>
52547
52548         Mark 'rmdir' obsolete.
52549         * modules/rmdir (Status, Notice): New sections.
52550         * modules/clean-temp (Depends-on): Add rmdir.
52551         * modules/openat (Depends-on): Likewise.
52552
52553 2008-11-02  Bruno Haible  <bruno@clisp.org>
52554
52555         Mark 'raise' obsolete.
52556         * modules/raise (Status, Notice): New sections.
52557         (Include): Specify <signal.h>.
52558         * modules/stdio (Depends-on): Add raise.
52559         * modules/write (Depends-on): Likewise.
52560
52561 2008-11-02  Bruno Haible  <bruno@clisp.org>
52562
52563         Mark 'memset' obsolete.
52564         * modules/memset (Status, Notice): New sections.
52565
52566 2008-11-02  Bruno Haible  <bruno@clisp.org>
52567
52568         Mark 'memmove' obsolete.
52569         * modules/memmove (Status, Notice): New sections.
52570         * modules/argp (Depends-on): Add memmove.
52571         * modules/argz (Depends-on): Likewise.
52572         * modules/canonicalize (Depends-on): Likewise.
52573         * modules/canonicalize-lgpl (Depends-on): Likewise.
52574         * modules/fts (Depends-on): Likewise.
52575         * modules/getcwd (Depends-on): Likewise.
52576         * modules/human (Depends-on): Likewise.
52577         * modules/regex (Depends-on): Likewise.
52578         * modules/striconveh (Depends-on): Likewise.
52579         * modules/trim (Depends-on): Likewise.
52580         * modules/unistr/u8-move (Depends-on): Likewise.
52581         * modules/unistr/u16-move (Depends-on): Likewise.
52582         * modules/unistr/u32-move (Depends-on): Likewise.
52583
52584 2008-11-02  Bruno Haible  <bruno@clisp.org>
52585
52586         Mark 'memcpy' obsolete.
52587         * modules/memcpy (Status, Notice): New sections.
52588
52589 2008-11-02  Bruno Haible  <bruno@clisp.org>
52590
52591         Mark 'memcmp' obsolete.
52592         * modules/memcmp (Status, Notice): New sections.
52593         * modules/argmatch (Depends-on): Add memchr.
52594         * modules/backupfile (Depends-on): Likewise.
52595         * modules/c-strcasestr (Depends-on): Likewise.
52596         * modules/crypto/des (Depends-on): Likewise.
52597         * modules/csharpcomp (Depends-on): Likewise.
52598         * modules/fnmatch (Depends-on): Likewise.
52599         * modules/git-merge-changelog (Depends-on): Likewise.
52600         * modules/isnand (Depends-on): Likewise.
52601         * modules/isnand-nolibm (Depends-on): Likewise.
52602         * modules/isnanf (Depends-on): Likewise.
52603         * modules/isnanf-nolibm (Depends-on): Likewise.
52604         * modules/isnanl (Depends-on): Likewise.
52605         * modules/isnanl-nolibm (Depends-on): Likewise.
52606         * modules/mbchar (Depends-on): Likewise.
52607         * modules/memcoll (Depends-on): Likewise.
52608         * modules/quotearg (Depends-on): Likewise.
52609         * modules/regex (Depends-on): Likewise.
52610         * modules/relocatable-prog (Depends-on): Likewise.
52611         * modules/same (Depends-on): Likewise.
52612         * modules/signbit (Depends-on): Likewise.
52613         * modules/strcasestr-simple (Depends-on): Likewise.
52614         * modules/unictype/gen-ctype (Depends-on): Likewise.
52615         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52616         * modules/uniname/uniname (Depends-on): Likewise.
52617         * modules/unistr/u8-cmp (Depends-on): Likewise.
52618
52619 2008-11-02  Bruno Haible  <bruno@clisp.org>
52620
52621         Mark 'memchr' obsolete.
52622         * modules/memchr (Status, Notice): New sections.
52623         * modules/argp (Depends-on): Add memchr.
52624         * modules/base64 (Depends-on): Likewise.
52625         * modules/c-strcasestr (Depends-on): Likewise.
52626         * modules/chdir-long (Depends-on): Likewise.
52627         * modules/fnmatch (Depends-on): Likewise.
52628         * modules/getsubopt (Depends-on): Likewise.
52629         * modules/git-merge-changelog (Depends-on): Likewise.
52630         * modules/glob (Depends-on): Likewise.
52631         * modules/strcasestr-simple (Depends-on): Likewise.
52632         * modules/strnlen (Depends-on): Likewise.
52633
52634 2008-11-02  Bruno Haible  <bruno@clisp.org>
52635
52636         Mark 'atexit' obsolete.
52637         * modules/atexit (Status, Notice): New sections.
52638         * modules/chdir-long (Depends-on): Add atexit.
52639         * modules/wait-process (Depends-on): Likewise.
52640
52641 2008-11-02  Bruno Haible  <bruno@clisp.org>
52642
52643         * gnulib-tool: New option --with-obsolete.
52644         (func_usage): Document it.
52645         (func_modules_transitive_closure): Drop obsolete dependencies if
52646         incobsolete is not true.
52647         (func_import): Read and save the incobsolete variable to the cache.
52648
52649 2008-11-02  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52652         * gnulib-tool: New option --extract-status.
52653         (func_usage): Document it.
52654         (sed_extract_prog): Recognize it.
52655         (func_get_status): New function.
52656
52657 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52658
52659         * modules/sockets (License): Change from LGPL to LGPLv2+.
52660
52661 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52662
52663         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52664
52665 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52666
52667         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52668         Mention times and sys_times.
52669         * modules/sys_times, modules/sys_times-tests: New modules.
52670         * modules/times, modules/times-tests: Likewise
52671         * m4/sys_times_h.m4: New file.
52672         * lib/sys_times.in.h: Likewise
52673         * lib/times.c: Likewise.
52674         * tests/test-sys_times.c: Likewise.
52675         * tests/test-times.c: Likewise.
52676         * doc/posix-headers/sys_times.texi: Update.
52677         * doc/posix-functions/times.texi: Update.
52678
52679 2008-10-28  Jim Meyering  <meyering@redhat.com>
52680
52681         * modules/tempname (Depends-on): Add lstat.
52682
52683         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52684
52685 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52686
52687         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52688         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52689         using idiom used elsewhere in gnulib.
52690
52691 2008-10-27  Jim Meyering  <meyering@redhat.com>
52692
52693         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52694
52695 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52696
52697         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52698         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52699         programs.
52700         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52701
52702 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52703
52704         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52705
52706 2008-10-27  Bruno Haible  <bruno@clisp.org>
52707
52708         * tests/test-lstat.c: Include <stdio.h>.
52709
52710 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52711
52712         * modules/lstat-tests: New module.
52713         * tests/test-lstat.c: New file.
52714
52715 2008-10-26  Jim Meyering  <meyering@redhat.com>
52716
52717         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52718
52719 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52720             Bruno Haible  <bruno@clisp.org>
52721
52722         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52723         * modules/configmake (Include): Add a note that the include must come
52724         after all system headers.
52725         * lib/javaversion.c: Include configmake.h after all other includes.
52726
52727 2008-10-26  Bruno Haible  <bruno@clisp.org>
52728
52729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52730         HAVE_STRUCT_RANDOM_DATA to 1.
52731         (gl_STDLIB_H): Simplify.
52732
52733 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52734
52735         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52736         substitute HAVE_STRUCT_RANDOM_DATA.
52737         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52738         random_data.
52739         * modules/stdlib (Makefile.am): Substitute
52740         HAVE_STRUCT_RANDOM_DATA.
52741
52742 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52743
52744         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52745         * doc/gnulib-intro.texi (Copyright): Likewise.
52746
52747 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52748
52749         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52750         findings.
52751
52752 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52753             Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/unistd.in.h: Include <winsock2.h>.
52756         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52757         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52758         Provide dummy declarations.
52759         (gethostname): Override.
52760         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52761         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52762         gl_PREREQ_SYS_H_WINSOCK2.
52763         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52764         * doc/posix-functions/gethostname.texi: More details.
52765
52766 2008-10-25  Bruno Haible  <bruno@clisp.org>
52767
52768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52769         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52770         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52771
52772         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52773         here ...
52774         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52775         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52776         gl_UNISTD_H_DEFAULTS.
52777
52778 2008-10-25  Eric Blake  <ebb9@byu.net>
52779
52780         signbit: avoid spurious compiler failure
52781         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52782         declarations inside function.
52783
52784 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52785             Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52788         * modules/random_r (Depends-on): Add stdint.
52789
52790 2008-10-24  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52793         Eggert.
52794         * modules/strerror (License): Likewise.
52795
52796 2008-10-24  Jim Meyering  <meyering@redhat.com>
52797
52798         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52799         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52800
52801 2008-10-24  Eric Blake  <ebb9@byu.net>
52802
52803         getgroups: fix compilation when getgroups is available
52804         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52805         but with <config.h> override of getgroups disabled.
52806
52807 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52808
52809         * doc/gnulib.texi (Header files): Add note about C++ problems.
52810         Explained by Bruno Haible <bruno@clisp.org>.
52811
52812 2008-10-23  Bruno Haible  <bruno@clisp.org>
52813
52814         Define a dummy SA_NODEFER macro on Interix.
52815         * lib/signal.in.h (SA_NODEFER): Define fallback.
52816         Reported by Aleksey Cheusov <cheusov@tut.by> via
52817         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52818
52819 2008-10-23  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/freadahead (License): Change to LGPLv2+.
52822         Suggested by Simon Josefsson.
52823
52824 2008-10-23  Jim Meyering  <meyering@redhat.com>
52825
52826         random_r: new module
52827         * modules/random_r: New file.
52828         * m4/random_r.m4: New file.
52829         * lib/random_r.c: New file, from glibc.
52830         * modules/random_r-tests: New file.
52831         * tests/test-random_r.c: New file.
52832         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52833          Declare.
52834         (RAND_MAX): Define.
52835         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52836         * modules/stdlib: Substitute them, too.
52837         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52838         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52839         * doc/glibc-functions/random_r.texi: Likewise.
52840         * doc/glibc-functions/setstate_r.texi: Likewise.
52841         * doc/glibc-functions/srandom_r.texi: Likewise.
52842         * config/srclist.txt: Mention it.
52843
52844 2008-10-23  David Lutterkort  <lutter@redhat.com>
52845
52846         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52847         link requirement
52848
52849 2008-10-23  Jim Meyering  <meyering@redhat.com>
52850
52851         selinux-h: mark parameters of stub functions as intentionally unused
52852         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52853         * lib/se-context.in.h: Likewise.
52854
52855 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52856
52857         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52858
52859 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52860
52861         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52862
52863 2008-10-22  Eric Blake  <ebb9@byu.net>
52864
52865         glthread/thread: avoid compiler warning
52866         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52867         Add unreachable abort to silence compiler.
52868
52869 2008-10-22  Eric Blake  <ebb9@byu.net>
52870
52871         netdb: also supply struct addrinfo for cygwin 1.5.x
52872         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52873         older cygwin.
52874         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52875         cygwin.
52876         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52877
52878 2008-10-22  Bruno Haible  <bruno@clisp.org>
52879
52880         * users.txt: Update entry about pspp.
52881
52882 2008-10-21  Bruno Haible  <bruno@clisp.org>
52883
52884         Simplification.
52885         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52886         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52887
52888         Simplification.
52889         * lib/ioctl.c (ioctl): Don't undefine.
52890         * lib/socket.c (socket): Don't undefine.
52891
52892         Remove unused module indicator macros.
52893         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52894         GNULIB_$1 as a C macro.
52895
52896         * doc/posix-functions/close.texi: Undo last change.
52897         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52898         Windows platforms.
52899
52900 2008-10-21  Bruno Haible  <bruno@clisp.org>
52901
52902         Add gethostname() declaration to <unistd.h>.
52903         * lib/unistd.in.h (gethostname): New declaration.
52904         * lib/gethostname.c: Include <unistd.h>.
52905         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52906         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52908         and HAVE_GETHOSTNAME.
52909         * modules/gethostname (Depends-on): Add unistd.
52910         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52911         (Include): Specify <unistd.h>.
52912         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52913         HAVE_GETHOSTNAME.
52914         * tests/test-gethostname.c: Include <unistd.h> first.
52915
52916 2008-10-21  Bruno Haible  <bruno@clisp.org>
52917
52918         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52919         * modules/select-tests (Depends-on): Likewise.
52920         Reported by Simon Josefsson.
52921
52922 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52923
52924         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52925         * lib/accept.c: New file, based on winsock.c.
52926         * lib/bind.c: New file, based on winsock.c.
52927         * lib/connect.c: New file, based on winsock.c.
52928         * lib/getpeername.c: New file, based on winsock.c.
52929         * lib/getsockname.c: New file, based on winsock.c.
52930         * lib/getsockopt.c: New file, based on winsock.c.
52931         * lib/ioctl.c: New file, based on winsock.c.
52932         * lib/listen.c: New file, based on winsock.c.
52933         * lib/recv.c: New file, based on winsock.c.
52934         * lib/recvfrom.c: New file, based on winsock.c.
52935         * lib/send.c: New file, based on winsock.c.
52936         * lib/sendto.c: New file, based on winsock.c.
52937         * lib/setsockopt.c: New file, based on winsock.c.
52938         * lib/shutdown.c: New file, based on winsock.c.
52939         * lib/socket.c: New file, based on winsock.c.
52940         * lib/w32sock.h: New file, based on winsock.c.
52941         * lib/winsock.c: Remove file.
52942         * modules/accept: Likewise.
52943         * modules/bind: Likewise.
52944         * modules/connect: Likewise.
52945         * modules/getpeername: Likewise.
52946         * modules/getsockname: Likewise.
52947         * modules/getsockopt: Likewise.
52948         * modules/ioctl: Likewise.
52949         * modules/listen: Likewise.
52950         * modules/recv: Likewise.
52951         * modules/recvfrom: Likewise.
52952         * modules/send: Likewise.
52953         * modules/sendto: Likewise.
52954         * modules/setsockopt: Likewise.
52955         * modules/shutdown: Likewise.
52956         * modules/socket: Use socket.c instead of winsock.c.
52957         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52958         * doc/posix-functions/accept.texi: Doc fix.
52959         * doc/posix-functions/bind.texi: Doc fix.
52960         * doc/posix-functions/close.texi: Doc fix.
52961         * doc/posix-functions/connect.texi: Doc fix.
52962         * doc/posix-functions/getpeername.texi: Doc fix.
52963         * doc/posix-functions/getsockname.texi: Doc fix.
52964         * doc/posix-functions/getsockopt.texi: Doc fix.
52965         * doc/posix-functions/ioctl.texi: Doc fix.
52966         * doc/posix-functions/listen.texi: Doc fix.
52967         * doc/posix-functions/recv.texi: Doc fix.
52968         * doc/posix-functions/recvfrom.texi: Doc fix.
52969         * doc/posix-functions/send.texi: Doc fix.
52970         * doc/posix-functions/sendto.texi: Doc fix.
52971         * doc/posix-functions/setsockopt.texi: Doc fix.
52972         * doc/posix-functions/shutdown.texi: Doc fix.
52973         * doc/posix-functions/socket.texi: Doc fix.
52974
52975 2008-10-20  Bruno Haible  <bruno@clisp.org>
52976
52977         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52978         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52979         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52980         as an alias for SIGABRT.
52981         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52982         (sigaction): Map it to SIGABRT.
52983         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52984
52985 2008-10-20  Bruno Haible  <bruno@clisp.org>
52986
52987         * lib/fts.c: Don't include lstat.h.
52988         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52989
52990         Move the lstat() declaration to <sys/stat.h>.
52991         * lib/lstat.h: Remove file.
52992         * lib/sys_stat.in.h: Add special invocation convention.
52993         (lstat): New declaration.
52994         * lib/lstat.c (orig_lstat): New function.
52995         (rpl_lstat): Use orig_lstat instead of lstat.
52996         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52997         AC_C_INLINE. Set REPLACE_LSTAT.
52998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52999         and REPLACE_LSTAT.
53000         * modules/lstat (Files): Remove lib/lstat.h.
53001         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53002         (Include): Specify <sys/stat.h> instead of lstat.h.
53003         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53004         REPLACE_LSTAT.
53005         * NEWS: Mention the change.
53006
53007 2008-10-20  Bruno Haible  <bruno@clisp.org>
53008
53009         * modules/posix_spawn-tests: New file.
53010         * tests/test-posix_spawn3.c: New file.
53011
53012 2008-10-20  Bruno Haible  <bruno@clisp.org>
53013
53014         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53015         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53016         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53017         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53018         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53019
53020 2008-10-20  Bruno Haible  <bruno@clisp.org>
53021
53022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53023         of posix_spawn on AIX 5.3.
53024
53025 2008-10-20  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53028
53029 2008-10-20  Bruno Haible  <bruno@clisp.org>
53030
53031         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53032         of AC_LANG_PROGRAM.
53033
53034 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53035
53036         * lib/netdb.in.h: Don't define GNU specific constants until they
53037         are supported or needed.  Reported by Bruno Haible
53038         <bruno@clisp.org>.
53039
53040 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53041
53042         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53043
53044 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53045
53046         * lib/getaddrinfo.h: Remove file.
53047         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53048         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53049         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53050         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53051         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53052         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53053         * tests/test-getaddrinfo.c: Likewise.
53054         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53055         * NEWS: Mention change.
53056
53057 2008-10-19  Bruno Haible  <bruno@clisp.org>
53058
53059         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53060
53061 2008-10-19  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/wait-process.c: Include simply <sys/wait.h>.
53064         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53065         WIFSTOPPED): Remove fallback definitions.
53066         * modules/wait-process (Depends-on): Add sys_wait.
53067
53068         New module 'sys_wait'.
53069         * modules/sys_wait: New file.
53070         * lib/sys_wait.in.h: New file, partially copied from
53071         lib/wait-process.c.
53072         * m4/sys_wait_h.m4: New file.
53073         * doc/posix-headers/sys_wait.texi: Mention the new module.
53074
53075 2008-10-19  Bruno Haible  <bruno@clisp.org>
53076
53077         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53078
53079 2008-10-19  Bruno Haible  <bruno@clisp.org>
53080
53081         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53082         * lib/wait-process.c (WAIT_T): Remove type.
53083         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53084         (wait_subprocess): Update.
53085
53086 2008-10-19  Bruno Haible  <bruno@clisp.org>
53087
53088         New module 'atoll'.
53089         * modules/atoll: New file.
53090         * lib/stdlib.in.h (atoll): New declaration.
53091         * lib/atoll.c: New file, from glibc with modifications.
53092         * m4/atoll.m4: New file.
53093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53094         HAVE_ATOLL.
53095         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53096         * doc/posix-functions/atoll.texi: Mention the new module.
53097
53098 2008-10-19  Bruno Haible  <bruno@clisp.org>
53099
53100         Add strtoull() declaration to <stdlib.h>.
53101         * lib/stdlib.in.h (strtoull): New declaration.
53102         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53103         Set HAVE_STRTOULL.
53104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53105         HAVE_STRTOULL.
53106         * modules/strtoull (Depends-on): Add stdlib.
53107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53108         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53109         HAVE_STRTOULL.
53110
53111 2008-10-19  Bruno Haible  <bruno@clisp.org>
53112
53113         Add strtoll() declaration to <stdlib.h>.
53114         * lib/stdlib.in.h (strtoll): New declaration.
53115         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53116         Set HAVE_STRTOLL.
53117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53118         HAVE_STRTOLL.
53119         * modules/strtoll (Depends-on): Add stdlib.
53120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53121         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53122
53123 2008-10-19  Bruno Haible  <bruno@clisp.org>
53124
53125         * modules/bcopy (Depends-on): Add strings.
53126         (Include): Specify <strings.h>.
53127
53128 2008-10-19  Bruno Haible  <bruno@clisp.org>
53129
53130         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53131
53132 2008-10-19  Bruno Haible  <bruno@clisp.org>
53133
53134         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53135         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53136         mingw.
53137
53138 2008-10-19  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/atanl.c: Don't include isnanl.h.
53141         * lib/cosl.c: Likewise.
53142         * lib/ldexpl.c: Likewise.
53143         * lib/logl.c: Likewise.
53144         * lib/sinl.c: Likewise.
53145         * lib/sqrtl.c: Likewise.
53146         * lib/tanl.c: Likewise.
53147
53148         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53149         * lib/isnanf.h: Remove file.
53150         * lib/isnand.h: Remove file.
53151         * lib/isnanl.h: Remove file.
53152         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53153         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53154         macros.
53155         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53156         HAVE_ISNANF, don't define it as a C macro.
53157         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53158         HAVE_ISNAND, don't define it as a C macro.
53159         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53160         HAVE_ISNANL, don't define it as a C macro.
53161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53162         HAVE_ISNAN[FDL].
53163         * modules/isnanf (Files): Remove lib/isnanf.h.
53164         (Depends-on): Add math.
53165         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53166         (Include): Specify <math.h> instead of isnanf.h.
53167         * modules/isnand (Files): Remove lib/isnand.h.
53168         (Depends-on): Add math.
53169         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53170         (Include): Specify <math.h> instead of isnand.h.
53171         * modules/isnanl (Files): Remove lib/isnanl.h.
53172         (Depends-on): Add math.
53173         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53174         (Include): Specify <math.h> instead of isnanl.h.
53175         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53176         HAVE_ISNAN[FDL].
53177         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53178         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53179         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53180         * NEWS: Mention the change.
53181
53182 2008-10-18  Bruno Haible  <bruno@clisp.org>
53183
53184         Add getusershell(), setusershell(), endusershell() declarations to
53185         <unistd.h>.
53186         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53187         declarations.
53188         * lib/getusershell.c: Include unistd.h.
53189         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53190         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53191         HAVE_GETUSERSHELL.
53192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53193         and HAVE_GETUSERSHELL.
53194         * modules/getusershell (Depends-on): Add unistd, extensions.
53195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53196         (Include): Specify <unistd.h>.
53197         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53198         HAVE_GETUSERSHELL.
53199
53200 2008-10-18  Bruno Haible  <bruno@clisp.org>
53201
53202         Add a getloadavg() declaration to <stdlib.h>.
53203         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53204         getloadavg declaration.
53205         (getloadavg): New declaration.
53206         * lib/getloadavg.c: Include <stdlib.h> first.
53207         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53208         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53209         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53211         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53212         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53214         (Include): Specify <stdlib.h>.
53215         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53216         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53217
53218 2008-10-18  Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/dirchownmod.c: Don't include lchmod.h.
53221
53222         Move the lchmod() declaration to <sys/stat.h>.
53223         * lib/lchmod.h: Remove file.
53224         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53225         (lchmod): New declaration, moved here from lib/lchown.h.
53226         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53227         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53229         and HAVE_LCHMOD.
53230         * modules/lchmod (Files): Remove lib/lchmod.h.
53231         (Depends-on): Add sys_stat, extensions.
53232         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53233         (Include): Specify <sys/stat.h> instead of lchmod.h.
53234         * modules/sys_stat (Depends-on): Add link-warning.
53235         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53236         definition of GL_LINK_WARNING.
53237         * NEWS: Mention the change.
53238
53239 2008-10-18  Bruno Haible  <bruno@clisp.org>
53240
53241         * lib/fchdir.c: Don't include dirfd.h.
53242         * lib/fts.c: Likewise.
53243         * lib/getcwd.c: Likewise.
53244         * lib/glob.c: Likewise.
53245
53246         Move the dirfd() declaration to <dirent.h>.
53247         * lib/dirfd.h: Remove file.
53248         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53249         (dirfd): New declaration.
53250         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53251         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53252         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53253         HAVE_DECL_DIRFD.
53254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53255         HAVE_DECL_DIRFD.
53256         * modules/dirfd (Files): Remove lib/dirfd.h.
53257         (Depends-on): Add dirent, extensions.
53258         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53259         (Include): Specify <dirent.h> instead of dirfd.h.
53260         * modules/dirent (Depends-on): Add link-warning.
53261         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53262         definition of GL_LINK_WARNING.
53263         * NEWS: Mention the change.
53264
53265 2008-10-18  Bruno Haible  <bruno@clisp.org>
53266
53267         Move the euidaccess() declaration to <unistd.h>.
53268         * lib/euidaccess.h: Remove file.
53269         * lib/unistd.in.h (euidaccess): New declaration.
53270         * lib/euidaccess.c: Don't include euidaccess.h.
53271         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53272         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53274         and HAVE_EUIDACCESS.
53275         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53276         (Depends-on): Add unistd.
53277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53278         (Include): Specify <unistd.h> instead of euidaccess.h.
53279         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53280         HAVE_EUIDACCESS.
53281         * NEWS: Mention the change.
53282
53283 2008-10-18  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53286
53287         Move the getdomainname() declaration to <unistd.h>.
53288         * lib/getdomainname.h: Remove file.
53289         * lib/unistd.in.h (getdomainname): New declaration.
53290         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53291         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53292         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53293         HAVE_GETDOMAINNAME.
53294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53295         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53296         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53297         (Depends-on): Add unistd, extensions.
53298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53299         (Includes): Specify <unistd.h> instead of getdomainname.h.
53300         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53301         HAVE_GETDOMAINNAME.
53302         * NEWS: Mention the change.
53303
53304 2008-10-18  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/dirent: New file.
53307         * m4/dirent_h.m4: New file.
53308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53309         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53310         * modules/fchdir (Files): Remove lib/dirent.in.h.
53311         (Depends-on): Add dirent.
53312         (Makefile.am): Move rules to modules/dirent.
53313         * doc/posix-headers/dirent.texi: Mention the new module.
53314
53315 2008-10-18  Bruno Haible  <bruno@clisp.org>
53316
53317         Avoid -Wunused-parameter warnings in public gnulib header files.
53318         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53319         macro.
53320         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53321
53322 2008-10-18  Bruno Haible  <bruno@clisp.org>
53323
53324         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53325         * doc/glibc-functions/error.texi: Mention the module 'error'.
53326         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53327         * doc/glibc-functions/getdomainname.texi: Mention the module
53328         'getdomainname'.
53329         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53330         * doc/glibc-functions/getpagesize.texi: Mention the module
53331         'getpagesize'.
53332         * doc/glibc-functions/getusershell.texi: Mention the module
53333         'getusershell'.
53334         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53335         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53336         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53337         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53338         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53339         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53340         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53341         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53342         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53343         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53344         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53345         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53346         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53347         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53348
53349 2008-10-17  Bruno Haible  <bruno@clisp.org>
53350
53351         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53352         HP-UX and IRIX, use -0.0L.
53353         * tests/test-ceill.c (minus_zero): Likewise.
53354         * tests/test-floorl.c (minus_zero): Likewise.
53355         * tests/test-frexpl.c (minus_zero): Likewise.
53356         * tests/test-isnan.c (minus_zerol): Likewise.
53357         * tests/test-isnanl.h (minus_zero): Likewise.
53358         * tests/test-ldexpl.c (minus_zero): Likewise.
53359         * tests/test-roundl.c (minus_zero): Likewise.
53360         * tests/test-signbit.c (minus_zerol): Likewise.
53361         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53362         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53363         * tests/test-truncl.c (minus_zero): Likewise.
53364         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53365         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53366         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53367         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53368
53369 2008-10-17  Bruno Haible  <bruno@clisp.org>
53370
53371         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53372         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53373         that it gets activated only for gcc >= 3.0.
53374         * lib/dirent.in.h: Likewise.
53375         * lib/errno.in.h: Likewise.
53376         * lib/fcntl.in.h: Likewise.
53377         * lib/float.in.h: Likewise.
53378         * lib/iconv.in.h: Likewise.
53379         * lib/inttypes.in.h: Likewise.
53380         * lib/locale.in.h: Likewise.
53381         * lib/math.in.h: Likewise.
53382         * lib/netdb.in.h: Likewise.
53383         * lib/netinet_in.in.h: Likewise.
53384         * lib/search.in.h: Likewise.
53385         * lib/signal.in.h: Likewise.
53386         * lib/spawn.in.h: Likewise.
53387         * lib/stdarg.in.h: Likewise.
53388         * lib/stdint.in.h: Likewise.
53389         * lib/stdio.in.h: Likewise.
53390         * lib/stdlib.in.h: Likewise.
53391         * lib/string.in.h: Likewise.
53392         * lib/strings.in.h: Likewise.
53393         * lib/sys_file.in.h: Likewise.
53394         * lib/sys_ioctl.in.h: Likewise.
53395         * lib/sys_select.in.h: Likewise.
53396         * lib/sys_socket.in.h: Likewise.
53397         * lib/sys_stat.in.h: Likewise.
53398         * lib/sys_time.in.h: Likewise.
53399         * lib/sysexits.in.h: Likewise.
53400         * lib/time.in.h: Likewise.
53401         * lib/unistd.in.h: Likewise.
53402         * lib/wchar.in.h: Likewise.
53403         * lib/wctype.in.h: Likewise.
53404         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53405
53406 2008-10-17  Jim Meyering  <meyering@redhat.com>
53407
53408         ignore-value: don't depend on inline module
53409         * modules/ignore-value (Depends-on): Remove 'inline'.
53410         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53411         Suggestion from Bruno Haible.
53412
53413 2008-10-17  Bruno Haible  <bruno@clisp.org>
53414
53415         New implementation of condition variables for Win32.
53416         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53417         (gl_linked_waitqueue_t): New type.
53418         (gl_cond_t): Use it.
53419         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53420         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53421         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53422         (glthread_cond_init_func, glthread_cond_wait_func,
53423         glthread_cond_timedwait_func, glthread_cond_signal_func,
53424         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53425         Reimplemented on the basis of gl_linked_waitqueue_t.
53426         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53427         gl_waitqueue_t.
53428         (gl_rwlock_t): Update.
53429         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53430
53431 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53432
53433         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53434         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53435
53436 2008-10-17  Jim Meyering  <meyering@redhat.com>
53437
53438         ignore-value: new module
53439         * modules/ignore-value: New file.
53440         * lib/ignore-value.h: New file.
53441         * MODULES.html.sh (Compiler warning management): New section,
53442         just for this module.  More to come.
53443
53444 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53447         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53448         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53449
53450 2008-10-16  Jim Meyering  <meyering@redhat.com>
53451
53452         openat-die.c: avoid 'no previous prototype' warning
53453         * lib/openat-die.c: Include "openat.h".
53454         Reported by Reuben Thomas <rrt@sc3d.org>.
53455
53456 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53457
53458         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53459         * lib/netdb.in.h: Fix typo.
53460         Reported by Bruno Haible  <bruno@clisp.org>
53461
53462         * lib/netdb.in.h: Include sys/socket.h for platforms without
53463         netdb.h, to get structures like hostent on MinGW.
53464         * modules/netdb (Depends-on): Add sys_socket.
53465
53466 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53467
53468         * modules/netdb, modules/netdb-tests: New file.
53469         * m4/netdb_h.m4: New file.
53470         * lib/netdb.in.h: Add, currently just an empty file pending
53471         definitions.
53472         * tests/test-netdb.c: New file.
53473         * doc/posix-headers/netdb.texi: Mention that we replace it if
53474         needed.
53475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53476         netdb.
53477
53478 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53479
53480         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53481         with code.
53482
53483 2008-10-13  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/glthread/cond.c (glthread_cond_wait_func,
53486         glthread_cond_timedwait_func): Add a comment.
53487
53488 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53489
53490         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53491         * tests/test-select.c: Likewise,
53492
53493 2008-10-13  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/glthread/cond.c (glthread_cond_wait_func,
53496         glthread_cond_timedwait_func): Fix variable name.
53497         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53498
53499 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53500
53501         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53502         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53503         struct sockaddr.sa_len.
53504         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53505
53506 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53507
53508         * build-aux/pmccabe2html: Add css and css_url parameters.
53509
53510 2008-10-12  Bruno Haible  <bruno@clisp.org>
53511
53512         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53513         calling aclx_get.
53514         Reported by Rainer Tammer <tammer@tammer.net>.
53515
53516 2008-10-12  Bruno Haible  <bruno@clisp.org>
53517
53518         Use msvcrt aware primitives for creation/termination of Win32 threads.
53519         * lib/glthread/thread.c: Include <process.h>.
53520         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53521         (wrapper_func): Update signature.
53522         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53523
53524 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53525             Bruno Haible  <bruno@clisp.org>
53526
53527         Provide a Win32 implementation of the 'cond' module.
53528         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53529         * lib/glthread/cond.c (glthread_cond_init_func,
53530         glthread_cond_wait_func, glthread_cond_timedwait_func,
53531         glthread_cond_signal_func, glthread_cond_broadcast_func,
53532         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53533         * modules/cond (Dependencies): Add gettimeofday.
53534
53535 2008-10-11  Bruno Haible  <bruno@clisp.org>
53536
53537         Make sleep work on older versions of mingw.
53538         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53539         only whether it exists.
53540         * doc/posix-functions/sleep.texi: Mention the problem with older
53541         versions of mingw.
53542
53543 2008-10-11  Bruno Haible  <bruno@clisp.org>
53544
53545         New module 'shutdown'.
53546         * modules/shutdown: New file.
53547         * lib/sys_socket.in.h (shutdown): New declaration.
53548         * lib/winsock.c (shutdown): New function.
53549         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53550         GNULIB_SHUTDOWN.
53551         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53552         * doc/posix-functions/shutdown.texi: Document the new module.
53553
53554 2008-10-11  Jim Meyering  <meyering@redhat.com>
53555
53556         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53557
53558 2008-10-11  Bruno Haible  <bruno@clisp.org>
53559
53560         New module 'fclose'.
53561         * modules/fclose: New file.
53562         * lib/stdio.in.h (fclose): New declaration.
53563         * lib/fclose.c: New file.
53564         * m4/fclose.m4: New file.
53565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53566         REPLACE_FCLOSE.
53567         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53568         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53569         REPLACE_FCLOSE.
53570         * modules/close (Depends-on): fclose.
53571         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53572
53573 2008-10-11  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53576         set errno and don't call _close.
53577
53578 2008-10-10  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53581         ACL, not afterwards. Fixes test failure on Cygwin.
53582
53583 2008-10-09  Ben Pfaff  <blp@gnu.org>
53584
53585         * build-aux/announce-gen: Fix gnulib version related part of usage
53586         message.  Die with a useful error message if no tarballs are
53587         found.
53588
53589 2008-10-10  Jim Meyering  <meyering@redhat.com>
53590
53591         bootstrap: use git's --depth=N option only if it's supported
53592         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53593         recognize the --depth option.  Reported by Pádraig Brady.
53594
53595 2008-10-09  Bruno Haible  <bruno@clisp.org>
53596
53597         New module 'ioctl'.
53598         * modules/ioctl: New file.
53599         * lib/sys_socket.in.h (ioctl): Remove declaration.
53600         * lib/winsock.c: Include <sys/ioctl.h>.
53601         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53602         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53603         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53604         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53605         * doc/posix-functions/ioctl.texi: Mention the new module.
53606
53607 2008-10-09  Bruno Haible  <bruno@clisp.org>
53608
53609         New module 'sys_ioctl'.
53610         * lib/sys_ioctl.in.h: New file.
53611         * m4/sys_ioctl_h.m4: New file.
53612         * modules/sys_ioctl: New file.
53613         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53614
53615 2008-10-09  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53618         * lib/winsock.c: Include <stdarg.h>.
53619         (rpl_ioctl): Change to second argument 'int' and then varargs.
53620
53621 2008-10-09  Bruno Haible  <bruno@clisp.org>
53622
53623         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53624         when the sys_socket module is present and the system has <winsock2.h>.
53625
53626 2008-10-09  Bruno Haible  <bruno@clisp.org>
53627
53628         * doc/posix-functions/close.texi: Mention module 'close' instead of
53629         module 'sys_socket'.
53630
53631 2008-10-09  Bruno Haible  <bruno@clisp.org>
53632
53633         * doc/glibc-headers/sys_ioctl.texi: New file.
53634         * doc/gnulib.texi: Include it.
53635
53636 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53637             Bruno Haible  <bruno@clisp.org>
53638
53639         Combine the two replacements of 'close'.
53640         * lib/sys_socket.in.h (close): Define to a reminder to include
53641         <unistd.h>.
53642         (_gl_close_fd_maybe_socket): New declaration.
53643         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53644         * lib/winsock.c (close): Remove undefinition.
53645         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53646         needed for the gnulib module 'close'.
53647         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53648         define to an error symbol or to a warning, if suitable.
53649         * lib/close.c: Include <sys/socket.h>.
53650         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53651         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53652         UNISTD_H_HAVE_WINSOCK2_H.
53653         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53655         UNISTD_H_HAVE_WINSOCK2_H.
53656         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53657         (configure.ac): Set a module indicator.
53658         (Makefile.am): Substitute GNULIB_CLOSE.
53659         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53660         * modules/poll-tests (Depends-on): Add close.
53661         * modules/select-tests (Depends-on): Likewise.
53662
53663 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53664             Bruno Haible  <bruno@clisp.org>
53665
53666         New module 'close'.
53667         * modules/close: New file.
53668         * lib/unistd.in.h (close): Move declaration out of the
53669         FCHDIR_REPLACEMENT scope.
53670         (_gl_unregister_fd): New declaration.
53671         * lib/close.c: New file.
53672         * lib/fchdir.c (rpl_close): Remove function.
53673         * m4/close.m4: New file.
53674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53675         close.
53676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53677         REPLACE_CLOSE.
53678         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53679         REPLACE_CLOSE.
53680         * modules/fchdir (Depends-on): Add close.
53681
53682 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53683             Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/fcntl.in.h (open): Simplify conditionals.
53686         (_gl_register_fd): New declaration.
53687         * lib/fchdir.c (rpl_open): Remove function.
53688         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53689         also.
53690         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53692         open.
53693
53694 2008-10-09  Jim Meyering  <meyering@redhat.com>
53695
53696         GNUmakefile: use the more name-space-friendly "_version"
53697         * top/GNUmakefile (_dummy): Update.
53698         (_version): Rename from "version".
53699
53700 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53701             Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53704         rpl_close.
53705         (_gl_register_fd): New function, extracted from rpl_open.
53706         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53707         (rpl_open, rpl_opendir): Use _gl_register_fd.
53708
53709 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53710
53711         Fix organization of 'open' replacement.
53712         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53713         (gl_FUNC_OPEN): Use it.
53714         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53715
53716 2008-10-08  Bruno Haible  <bruno@clisp.org>
53717
53718         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53719
53720 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53721
53722         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53723         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53724         listen).
53725
53726 2008-10-08  Eric Blake  <ebb9@byu.net>
53727
53728         GNUmakefile: add 'make version' target
53729         * top/GNUmakefile (_curr-ver): Split version update rules...
53730         (version): ...into a target.
53731
53732 2008-10-07  Bruno Haible  <bruno@clisp.org>
53733
53734         Use a more portable replacement expression for -0.0L.
53735         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53736         instead of -0.0L. Fix m4 quotation.
53737
53738         * tests/test-signbit.c: Include <float.h>.
53739         (minus_zero): New variable.
53740         (test_signbitl): Use minus_zero instead of -zero.
53741         * modules/signbit-tests (Depends-on): Add float.
53742
53743         * tests/test-ceill.c: Include <float.h>.
53744         (zero): Remove variable.
53745         (minus_zero): New variable.
53746         (main): Use minus_zero instead of -zero.
53747         * modules/ceill-tests (Depends-on): Add float.
53748
53749         * tests/test-floorl.c: Include <float.h>.
53750         (zero): Remove variable.
53751         (minus_zero): New variable.
53752         (main): Use minus_zero instead of -zero.
53753         * modules/floorl-tests (Depends-on): Add float.
53754
53755         * tests/test-roundl.c: Include <float.h>.
53756         (zero): Remove variable.
53757         (minus_zero): New variable.
53758         (main): Use minus_zero instead of -zero.
53759         * modules/roundl-tests (Depends-on): Add float.
53760
53761         * tests/test-truncl.c: Include <float.h>.
53762         (zero): Remove variable.
53763         (minus_zero): New variable.
53764         (main): Use minus_zero instead of -zero.
53765         * modules/truncl-tests (Depends-on): Add float.
53766
53767         * tests/test-frexpl.c (zero): Remove variable.
53768         (minus_zero): New variable.
53769         (main): Use minus_zero instead of -zero.
53770         * modules/frexpl-tests (Depends-on): Add float.
53771
53772         * tests/test-isnan.c (zerol): Remove variable.
53773         (minus_zerol): New variable.
53774         (test_long_double): Use minus_zerol instead of -zerol.
53775         * modules/isnan-tests (Depends-on): Add float.
53776
53777         * tests/test-isnanl.h (zero): Remove variable.
53778         (minus_zero): New variable.
53779         (main): Use minus_zero instead of -zero.
53780         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53781         * modules/isnanl-tests (Depends-on): Add float.
53782
53783         * tests/test-ldexpl.c (zero): Remove variable.
53784         (minus_zero): New variable.
53785         (main): Use minus_zero instead of -zero.
53786         * modules/ldexpl-tests (Depends-on): Add float.
53787
53788         * tests/test-snprintf-posix.h (zerol): Remove variable.
53789         (minus_zerol): New variable.
53790         (test_function): Use minus_zerol instead of -zerol.
53791         * modules/snprintf-posix-tests (Depends-on): Add float.
53792         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53793
53794         * tests/test-sprintf-posix.h (zerol): Remove variable.
53795         (minus_zerol): New variable.
53796         (test_function): Use minus_zerol instead of -zerol.
53797         * modules/sprintf-posix-tests (Depends-on): Add float.
53798         * modules/vsprintf-posix-tests (Depends-on): Add float.
53799
53800         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53801         (minus_zerol): New variable.
53802         (test_function): Use minus_zerol instead of -zerol.
53803         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53804
53805         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53806         (minus_zerol): New variable.
53807         (test_function): Use minus_zerol instead of -zerol.
53808         * modules/vasprintf-posix-tests (Depends-on): Add float.
53809
53810 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53811
53812         * MODULES.html.sh (Support for building documentation): Mention
53813         pmccabe2html.  Sort entries.
53814
53815         Add pmccabe2html module, from gnupdf.
53816         * build-aux/pmccabe.css: New file.
53817         * build-aux/pmccabe2html: New file.
53818         * m4/pmccabe2html.m4: New file.
53819         * modules/pmccabe2html: New file.
53820
53821 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53822
53823         flock: new module
53824         * MODULES.html.sh: Add to list of modules.
53825         * lib/flock.c: flock implementation for Windows and Unix systems
53826         which have fcntl.
53827         * doc/glibc-functions/flock.texi: Update documentation.
53828         * lib/sys_file.in.h: <sys/file.h> header file.
53829         * m4/flock.m4: M4 macros.
53830         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53831         * modules/flock: flock module.
53832         * modules/flock-tests: flock tests module.
53833         * modules/sys_file: sys/file.h module.
53834         * tests/test-flock.c: test suite for flock.
53835
53836 2008-10-06  Jim Meyering  <meyering@redhat.com>
53837
53838         bootstrap: check for LT_INIT more portably still ;-)
53839         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53840         Spotted by Bruno Haible.
53841
53842 2008-10-06  Eric Blake  <ebb9@byu.net>
53843
53844         test-signbit: avoid tripping Irix cc bug on -0.0L
53845         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53846         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53847         entire testsuite consistent and avoids an Irix 6.2 bug.
53848
53849 2008-10-05  Bruno Haible  <bruno@clisp.org>
53850             Jim Meyering  <jim@meyering.net>
53851
53852         Add an option for ignoring EPIPE during close_stdout.
53853         * lib/closeout.h: Include <stdbool.h>.
53854         (close_stdout_set_ignore_EPIPE): New declaration.
53855         * lib/closeout.c: Include <stdbool.h>.
53856         (ignore_EPIPE): New variable.
53857         (close_stdout_set_ignore_EPIPE): New function.
53858         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53859         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53860         failure.
53861         * modules/closeout (Depends-on): Add stdbool.
53862
53863 2008-10-05  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/accept: New file.
53866         * modules/bind: New file.
53867         * modules/connect: New file.
53868         * modules/getpeername: New file.
53869         * modules/getsockname: New file.
53870         * modules/getsockopt: New file.
53871         * modules/listen: New file.
53872         * modules/recv: New file.
53873         * modules/recvfrom: New file.
53874         * modules/send: New file.
53875         * modules/sendto: New file.
53876         * modules/setsockopt: New file.
53877         * modules/socket: New file.
53878         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53879         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53880         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53881         the particular module is requested. Add a link warning when the
53882         particular module is not requested.
53883         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53884         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53885         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53886         the particular module is requested.
53887         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53888         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53889         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53890         * modules/sys_socket (Depends-on): Add link-warning.
53891         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53892         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53893         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53894         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53895         GL_LINK_WARNING.
53896         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53897         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53898         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53899         * doc/posix-functions/getpeername.texi: Mention the new module
53900         'getpeername'.
53901         * doc/posix-functions/getsockname.texi: Mention the new module
53902         'getsockname'.
53903         * doc/posix-functions/getsockopt.texi: Mention the new module
53904         'getsockopt'.
53905         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53906         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53907         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53908         * doc/posix-functions/send.texi: Mention the new module 'send'.
53909         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53910         * doc/posix-functions/setsockopt.texi: Mention the new module
53911         'setsockopt'.
53912         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53913         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53914         listen, connect, accept.
53915         * modules/select-tests (Depends-on): Likewise.
53916
53917 2008-10-05  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/winsock.c (strerror): Remove unused #undef.
53920         (rpl_close): Remove unused local variable.
53921
53922         * modules/sys_socket (Depends-on); Add errno.
53923
53924 2008-10-05  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53927         (select): Add a link warning when the 'select' module is not used.
53928         * modules/sys_select (Depends-on): Add link-warning.
53929         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53930         Suggested by Paolo Bonzini.
53931
53932 2008-10-05  Jim Meyering  <meyering@redhat.com>
53933
53934         bootstrap: check for LT_INIT more portably
53935         * build-aux/bootstrap: Avoid using grep -E, since it's not
53936         portable enough.  Suggestion from Bruno Haible.
53937
53938 2008-10-05  Bruno Haible  <bruno@clisp.org>
53939
53940         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53941         as being fixed by gnulib.
53942
53943 2008-10-05  Bruno Haible  <bruno@clisp.org>
53944
53945         * modules/select-tests: New file, mostly copied from
53946         modules/sys_select-tests.
53947         * tests/test-select.c: New file, mostly copied from
53948         tests/test-sys_select.c.
53949         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53950         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53951         (Makefile.am): Remove test_sys_select_LDADD.
53952
53953         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53954         to an undefined symbol, for an error message.
53955         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53956         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53957         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53958         winsock-select.c here.
53959         * modules/sys_select (Files): Remove lib/winsock-select.c.
53960         (Depends-on): Remove alloca.
53961         (Makefile.am): Substitute GNULIB_SELECT.
53962         * modules/select: New file.
53963         * doc/posix-functions/select.texi: Update.
53964
53965 2008-10-05  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53968         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53969         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53970         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53971         getdtablesize.
53972         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53973         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53974
53975 2008-10-05  Bruno Haible  <bruno@clisp.org>
53976
53977         * modules/getdtablesize-tests: New file.
53978         * tests/test-getdtablesize.c: New file.
53979
53980         New module 'getdtablesize'.
53981         * lib/unistd.in.h (getdtablesize): New declaration.
53982         * lib/getdtablesize.c: New file.
53983         * m4/getdtablesize.m4: New file.
53984         * modules/getdtablesize: New file.
53985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53986         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53987         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53988         HAVE_GETDTABLESIZE.
53989         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53990
53991 2008-10-05  Bruno Haible  <bruno@clisp.org>
53992
53993         * modules/sched (Makefile.am): Fix typo.
53994         Reported by Simon Josefsson.
53995
53996 2008-10-05  Jim Meyering  <meyering@redhat.com>
53997
53998         bootstrap: check for LT_INIT, too
53999         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54000         are deprecated.  Suggestion from Ralf Wildenhues.
54001
54002 2008-10-05  Bruno Haible  <bruno@clisp.org>
54003
54004         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54005         overriding them by ours.
54006         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54007
54008 2008-10-05  Jim Meyering  <meyering@redhat.com>
54009
54010         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54011         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54012         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54013
54014 2008-10-04  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/dup2 (License): Change to LGPLv2+.
54017         * modules/sleep (License): Likewise.
54018         * modules/perror (License): Likewise.
54019         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54020         Blake.
54021         * modules/signal (License): Likewise.
54022         * modules/sigprocmask (License): Likewise.
54023         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54024         Meyering.
54025
54026 2008-10-04  Bruno Haible  <bruno@clisp.org>
54027
54028         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54029         Reported by Rainer Tammer <tammer@tammer.net>.
54030
54031 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54032             Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54035         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54036         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54037
54038 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54039
54040         filevercmp: new module
54041         * lib/filevercmp.h: New function filevercmp comparing version strings.
54042         * lib/filevercmp.c: Implementation of filevercmp function.
54043         * modules/filevercmp: Module metadata.
54044         * tests/test-filevercmp.c: Unit test for new module.
54045         * modules/filevercmp-tests: Unit test metadata.
54046         * MODULES.html.sh: Add filevercmp module.
54047
54048 2008-10-03  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/c-ctype.h: Add comment.
54051         Reported by Jim Meyering.
54052
54053 2008-10-02  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54056
54057 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54058
54059         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54060         name of bootstrap.conf accordingly.
54061
54062 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54063
54064         * build-aux/bootstrap: Install git-merge-changelog configuration
54065         items into .gitconfig if needed.
54066
54067 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54068
54069         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54070         git repository, and initialize/update it accordingly.
54071
54072 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54073
54074         * modules/fsync-tests: New file.
54075         * tests/test-fsync.c: New file.
54076
54077         New module 'fsync'.
54078         * lib/fsync.c: New file.
54079         * m4/fsync.m4: New file.
54080         * modules/fsync: New file.
54081         * lib/unistd.in.h (fsync): New declaration.
54082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54083         GNULIB_FSYNC and HAVE_FSYNC.
54084         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54085         * MODULES.html.sh (posix_functions): Add fsync.
54086         * doc/posix-functions/fsync.texi: Mention the new module.
54087
54088 2008-10-02  Jim Meyering  <meyering@redhat.com>
54089
54090         fts.c: sync with similar code from coreutils' remove.c
54091         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54092         Guard also with "#if defined __linux__", since for now at least,
54093         this code is Linux-kernel-specific.
54094
54095 2008-10-02  Jim Meyering  <meyering@redhat.com>
54096
54097         fts: bug fixes
54098         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54099         Include <sys/vfs.h>, not <sys/statfs.h>.
54100
54101         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54102         Include <sys/vfs.h>, not <sys/statfs.h>.
54103
54104 2008-10-01  Bruno Haible  <bruno@clisp.org>
54105
54106         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54108         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54109         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54110         * doc/posix-functions/posix_spawnp.texi: Likewise.
54111         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54112         whether posix_spawn actually works.
54113         * m4/pipe.m4 (gl_PIPE): Likewise.
54114         * modules/execute (Files): Add m4/posix_spawn.m4.
54115         * modules/pipe (Files): Add m4/posix_spawn.m4.
54116         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54117
54118 2008-10-01  Jim Meyering  <meyering@redhat.com>
54119
54120         remove trailing spaces
54121         * NEWS: Likewise.
54122         * lib/poll.c (poll): Likewise.
54123         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54124         * lib/winsock.c (rpl_close): Likewise.
54125         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54126         * modules/yield: Likewise.
54127         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54128         * tests/test-sys_select.c (connect_to_socket): Likewise.
54129
54130         fts.c: adjust a new interface to be more generally useful
54131         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54132         (fts_build): Adjust caller.
54133
54134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54135
54136         * modules/cond-tests: New file.
54137         * tests/test-cond.c: New file.
54138
54139 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54140             Bruno Haible  <bruno@clisp.org>
54141
54142         * modules/cond (Dependencies): Add errno, time.
54143         * lib/glthread/cond.h: Include <time.h>.
54144         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54145         across platforms.
54146
54147 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54148             Bruno Haible  <bruno@clisp.org>
54149
54150         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54151
54152 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54153             Bruno Haible  <bruno@clisp.org>
54154
54155         * modules/tls-tests (Depends-on): Add thread, yield.
54156         (configure.ac): Remove all checks.
54157         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54158         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54159         gl_thread_self): Remove definitions. Include glthread/thread.h and
54160         glthread/yield.h instead.
54161         (test_tls): Pass an additional NULL argument to gl_thread_join.
54162
54163 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54164             Bruno Haible  <bruno@clisp.org>
54165
54166         * modules/lock-tests (Depends-on): Add thread, yield.
54167         (configure.ac): Remove all checks.
54168         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54169         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54170         gl_thread_self): Remove definitions. Include glthread/thread.h and
54171         glthread/yield.h instead.
54172         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54173         additional NULL argument to gl_thread_join.
54174
54175 2008-09-30  Bruno Haible  <bruno@clisp.org>
54176
54177         Fix the Win32 implementation of the 'thread' module.
54178         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54179         pointer type.
54180         (gl_thread_self): Invoke gl_thread_self_func.
54181         (gl_thread_self_func): New declaration.
54182         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54183         (do_init_self_key, init_self_key): New functions.
54184         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54185         Remove some fields.
54186         (running_threads, running_lock): Remove variables.
54187         (get_current_thread_handle): New function.
54188         (gl_thread_self_func, wrapper_func, glthread_create_func,
54189         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54190         simplified.
54191
54192 2008-09-30  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54195         files.
54196
54197 2008-09-30  Jim Meyering  <meyering@redhat.com>
54198
54199         fts.m4: correct the test for statfs.f_type
54200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54201         when checking for statfs.f_type.
54202
54203 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54204
54205         tests: avoid some compiler warnings
54206         * tests/test-memchr.c (main): Pass NULL indirectly.
54207         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54208
54209 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
54210
54211         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54212         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54213         exactly specified dayshifts.
54214         (dayshift): New rule.
54215         (rel): Add dayshift.
54216         (relative_time_table) [tomorrow, yesterday, today, now]:
54217         Use tDAY_SHIFT in place of tDAY_UNIT.
54218         * tests/test-getdate.c: Add tests for now-disallowed countable
54219         dayshifts, e.g., "4 yesterday ago".
54220
54221 2008-09-29  Bruno Haible  <bruno@clisp.org>
54222
54223         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54224         * tests/test-posix_spawn1.in.sh: Renamed from
54225         tests/test-posix_spawn.in.sh.
54226         * tests/test-posix_spawn2.c: New file.
54227         * tests/test-posix_spawn2.in.sh: New file.
54228         * modules/posix_spawnp-tests (Files): Update.
54229         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54230
54231 2008-09-29  Bruno Haible  <bruno@clisp.org>
54232
54233         Propagate effects of putenv/setenv/unsetenv to child processes.
54234         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54235         * lib/pipe.c (create_pipe): Likewise.
54236
54237 2008-09-29  Bruno Haible  <bruno@clisp.org>
54238
54239         Enable use of shell scripts as executables in mingw.
54240         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54241         run the program as a shell script.
54242         * lib/pipe.c (create_pipe): Likewise.
54243         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54244         resulting array.
54245
54246 2008-09-29  Eric Blake  <ebb9@byu.net>
54247
54248         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54249
54250 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54251
54252         * doc/posix-functions/accept.texi: Update mingw problems.
54253         * doc/posix-functions/bind.texi: Update mingw problems.
54254         * doc/posix-functions/close.texi: Update mingw problems.
54255         * doc/posix-functions/connect.texi: Update mingw problems.
54256         * doc/posix-functions/getpeername.texi: Update mingw problems.
54257         * doc/posix-functions/getsockname.texi: Update mingw problems.
54258         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54259         * doc/posix-functions/ioctl.texi: Update mingw problems.
54260         * doc/posix-functions/listen.texi: Update mingw problems.
54261         * doc/posix-functions/recv.texi: Update mingw problems.
54262         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54263         * doc/posix-functions/select.texi: Update mingw problems.
54264         * doc/posix-functions/send.texi: Update mingw problems.
54265         * doc/posix-functions/sendto.texi: Update mingw problems.
54266         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54267         * doc/posix-functions/socket.texi: Update mingw problems.
54268
54269 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54270             Bruno Haible  <bruno@clisp.org>
54271
54272         * lib/sys_select.in.h: Include sys/time.h.
54273         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54274         * modules/sys_select: Depend on sys_time.
54275         * tests/test-sys_select.c: Test that sys/select.h defines struct
54276         timeval fully.
54277
54278 2008-09-29  Bruno Haible  <bruno@clisp.org>
54279
54280         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54281         * lib/sys_select.in.h: Likewise.
54282
54283 2008-09-29  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54286
54287 2008-09-29  Bruno Haible  <bruno@clisp.org>
54288
54289         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54290         Set LIBSOCKET instead of augmenting LIBS.
54291         * modules/sockets (Link): New section.
54292         * modules/sockets-tests (test_sockets_LDADD): New variable.
54293         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54294         * modules/poll-tests (test_poll_LDADD): New variable.
54295         * NEWS: Document the change.
54296
54297 2008-09-29  Bruno Haible  <bruno@clisp.org>
54298
54299         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54300         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54301         ARPA_INET_H directly.
54302         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54303
54304 2008-09-28  Bruno Haible  <bruno@clisp.org>
54305
54306         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54307         from gl_HEADER_SYS_SOCKET.
54308         (gl_HEADER_SYS_SOCKET): Invoke it.
54309         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54310
54311 2008-09-28  Bruno Haible  <bruno@clisp.org>
54312
54313         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54314         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54315         Needed on OSF/1 4.0.
54316
54317 2008-09-28  Bruno Haible  <bruno@clisp.org>
54318
54319         Override open more carefully.
54320         * lib/open.c (orig_open): New function.
54321         (rpl_open): Use orig_open instead of open.
54322         * lib/fcntl.in.h: Add special invocation convention.
54323         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54324         (gl_FUNC_OPEN): Invoke it.
54325
54326         Override freopen more carefully.
54327         * lib/freopen.c (orig_freopen): New function.
54328         (rpl_freopen): Use orig_freopen instead of freopen.
54329         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54330         (gl_FUNC_FREOPEN): Invoke it.
54331
54332         Override fopen more carefully.
54333         * lib/fopen.c (orig_fopen): New function.
54334         (rpl_fopen): Use orig_fopen instead of fopen.
54335         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54336         (gl_FUNC_FOPEN): Invoke it.
54337         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54338
54339 2008-09-28  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54342         SIGPIPE.
54343
54344 2008-09-28  Bruno Haible  <bruno@clisp.org>
54345
54346         * tests/test-sigaction.c (handler, main): Disable the check whether
54347         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54348         glibc systems with LinuxThreads.
54349
54350 2008-09-28  Bruno Haible  <bruno@clisp.org>
54351
54352         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54353
54354         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54355         with AIX xlc.
54356         * lib/fcntl.in.h (open): Likewise.
54357         Reported by Rainer Tammer <tammer@tammer.net>.
54358
54359 2008-09-28  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/posix_spawnp-tests: New file.
54362         * tests/test-posix_spawn.c: New file.
54363         * tests/test-posix_spawn.in.sh: New file.
54364
54365         New module 'posix_spawnp'.
54366         * modules/posix_spawnp: New file.
54367         * lib/spawnp.c: New file, from GNU libc with modifications.
54368         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54369
54370         New module 'posix_spawn'.
54371         * modules/posix_spawn: New file.
54372         * lib/spawn.c: New file, from GNU libc with modifications.
54373         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54374
54375         New module 'posix_spawnattr_destroy'.
54376         * modules/posix_spawnattr_destroy: New file.
54377         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54378         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54379         module.
54380
54381         New module 'posix_spawnattr_setsigmask'.
54382         * modules/posix_spawnattr_setsigmask: New file.
54383         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54384         modifications.
54385         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54386         new module.
54387
54388         New module 'posix_spawnattr_getsigmask'.
54389         * modules/posix_spawnattr_getsigmask: New file.
54390         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54391         modifications.
54392         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54393         new module.
54394
54395         New module 'posix_spawnattr_setsigdefault'.
54396         * modules/posix_spawnattr_setsigdefault: New file.
54397         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54398         modifications.
54399         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54400         new module.
54401
54402         New module 'posix_spawnattr_getsigdefault'.
54403         * modules/posix_spawnattr_getsigdefault: New file.
54404         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54405         modifications.
54406         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54407         new module.
54408
54409         New module 'posix_spawnattr_setschedpolicy'.
54410         * modules/posix_spawnattr_setschedpolicy: New file.
54411         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54412         modifications.
54413         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54414         new module.
54415
54416         New module 'posix_spawnattr_getschedpolicy'.
54417         * modules/posix_spawnattr_getschedpolicy: New file.
54418         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54419         modifications.
54420         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54421         new module.
54422
54423         New module 'posix_spawnattr_setschedparam'.
54424         * modules/posix_spawnattr_setschedparam: New file.
54425         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54426         modifications.
54427         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54428         new module.
54429
54430         New module 'posix_spawnattr_getschedparam'.
54431         * modules/posix_spawnattr_getschedparam: New file.
54432         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54433         modifications.
54434         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54435         new module.
54436
54437         New module 'posix_spawnattr_setpgroup'.
54438         * modules/posix_spawnattr_setpgroup: New file.
54439         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54440         modifications.
54441         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54442         module.
54443
54444         New module 'posix_spawnattr_getpgroup'.
54445         * modules/posix_spawnattr_getpgroup: New file.
54446         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54447         modifications.
54448         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54449         module.
54450
54451         New module 'posix_spawnattr_setflags'.
54452         * modules/posix_spawnattr_setflags: New file.
54453         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54454         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54455         module.
54456
54457         New module 'posix_spawnattr_getflags'.
54458         * modules/posix_spawnattr_getflags: New file.
54459         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54460         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54461         module.
54462
54463         New module 'posix_spawnattr_init'.
54464         * modules/posix_spawnattr_init: New file.
54465         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54466         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54467         module.
54468
54469         New module 'posix_spawn_file_actions_destroy'.
54470         * modules/posix_spawn_file_actions_destroy: New file.
54471         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54472         modifications.
54473         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54474         the new module.
54475
54476         New module 'posix_spawn_file_actions_addopen'.
54477         * modules/posix_spawn_file_actions_addopen: New file.
54478         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54479         modifications.
54480         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54481         the new module.
54482
54483         New module 'posix_spawn_file_actions_adddup2'.
54484         * modules/posix_spawn_file_actions_adddup2: New file.
54485         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54486         modifications.
54487         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54488         the new module.
54489
54490         New module 'posix_spawn_file_actions_addclose'.
54491         * modules/posix_spawn_file_actions_addclose: New file.
54492         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54493         modifications.
54494         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54495         the new module.
54496
54497         New module 'posix_spawn_file_actions_init'.
54498         * modules/posix_spawn_file_actions_init: New file.
54499         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54500         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54501         new module.
54502
54503         New module 'posix_spawn-internal'.
54504         * modules/posix_spawn-internal: New file.
54505         * lib/spawn_int.h: New file, from GNU libc with modifications.
54506         * lib/spawni.c: New file, from GNU libc with modifications.
54507         * m4/posix_spawn.m4: New file.
54508
54509         New module 'spawn'.
54510         * modules/spawn: New file.
54511         * lib/spawn.in.h: New file, from GNU libc with modifications.
54512         * m4/spawn_h.m4: New file.
54513         * doc/posix-headers/spawn.texi: Mention the new module.
54514
54515 2008-09-28  Bruno Haible  <bruno@clisp.org>
54516
54517         * modules/sched-tests: New file.
54518         * tests/test-sched.c: New file.
54519
54520         New module 'sched'.
54521         * modules/sched: New file.
54522         * lib/sched.in.h: New file.
54523         * m4/sched_h.m4: New file.
54524         * doc/posix-headers/sched.texi: Mention the new module.
54525
54526 2008-09-27  Eric Blake  <ebb9@byu.net>
54527
54528         Fix previous patch, and tweak references to $0.
54529         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54530         (func_version, func_gnulib_dir): Don't call this program
54531         gnulib-tool.
54532         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54533         with using $0 in function.
54534         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54535         (func_fatal_error): Reuse the name the user invoked us with.
54536
54537 2008-09-27  Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54540         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54541         (gl_ICONV_H): Not here.
54542         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54543         instead of assigning ICONV_H directly.
54544
54545         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54547         WCHAR_H directly.
54548
54549 2008-09-27  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54552         * modules/arpa_inet (Depends-on): Add link-warning.
54553         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54554         * modules/unistd (Makefile.am): Likewise.
54555
54556 2008-09-26  Bruno Haible  <bruno@clisp.org>
54557
54558         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54559         variables.
54560         (func_version): Essentially copied from gnulib-tool.
54561         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54562         func_readlink): Copied from gnulib-tool.
54563
54564 2008-09-26  Bruno Haible  <bruno@clisp.org>
54565
54566         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54567         invoking git-version-gen.
54568
54569 2008-09-26  Bruno Haible  <bruno@clisp.org>
54570
54571         * posix-modules: Update to directory names changed on 2008-01-19.
54572         Remove commas in output before splitting into words. No more need to
54573         avoid 'ftruncate' since 2007-02-19.
54574
54575 2008-09-26  Bruno Haible  <bruno@clisp.org>
54576
54577         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54578
54579 2008-09-26  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54582         * modules/fwriteerror (Depends-on): Add errno.
54583
54584 2008-09-26  Bruno Haible  <bruno@clisp.org>
54585
54586         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54587         * tests/test-vc-list-files-cvs.sh: Likewise.
54588
54589 2008-09-26  Bruno Haible  <bruno@clisp.org>
54590
54591         * doc/posix-headers/sys_resource.texi: Reorder items.
54592
54593 2008-09-26  Jim Meyering  <meyering@redhat.com>
54594
54595         fts: tweak inode comparison function
54596         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54597         inode numbers, as documented.
54598
54599         fts: sort dirent entries on inode number before traversing
54600         This avoids a quadratic, seek-related performance penalty when
54601         operating on a directory containing many entries (measurable at 10k;
54602         3.5 hours at 2 million entries with a cold cache) on certain types
54603         of file systems, including ext3 and ext4, but not tmpfs.
54604         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54605         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54606         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54607         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54608         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54609         (fts_build): Set the stat.st_ino member from D_INO.
54610         If it is likely to be useful, sort dirent entries on inode number.
54611
54612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54613         and the struct statfs.f_type member.
54614         * modules/fts (Depends-on): Add d-ino.
54615
54616 2008-09-26  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/sigpipe-die (Depends-on): Add sigpipe.
54619
54620         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54621         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54622         and GNULIB_STDIO_H_SIGPIPE are set.
54623         * lib/stdio-write.c: New file.
54624         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54625         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54626         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54627         REPLACE_STDIO_WRITE_FUNCS.
54628         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54629         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54630         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54631         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54632         * modules/stdio (Files): Add lib/stdio-write.c.
54633         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54634         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54635         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54636         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54637         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54638         REPLACE_FPRINTF_POSIX.
54639         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54640         REPLACE_PRINTF_POSIX.
54641         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54642         REPLACE_VFPRINTF_POSIX.
54643         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54644         REPLACE_VPRINTF_POSIX.
54645         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54646         SIGPIPE issue.
54647         * doc/posix-functions/fputc.texi: Likewise.
54648         * doc/posix-functions/fputs.texi: Likewise.
54649         * doc/posix-functions/fwrite.texi: Likewise.
54650         * doc/posix-functions/printf.texi: Likewise.
54651         * doc/posix-functions/putc.texi: Likewise.
54652         * doc/posix-functions/putchar.texi: Likewise.
54653         * doc/posix-functions/puts.texi: Likewise.
54654         * doc/posix-functions/vfprintf.texi: Likewise.
54655         * doc/posix-functions/vprintf.texi: Likewise.
54656
54657         * modules/safe-write (Depends-on): Add write.
54658
54659         * modules/sigpipe-tests: New file.
54660         * tests/test-sigpipe.c: New file.
54661         * tests/test-sigpipe.sh: New file.
54662
54663         * modules/write: New file.
54664         * lib/unistd.in.h: Include <sys/types.h>.
54665         (write): New declaration.
54666         * lib/write.c: New file.
54667         * m4/write.m4: New file.
54668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54669         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54670         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54671         GNULIB_WRITE, REPLACE_WRITE.
54672         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54673         and the SIGPIPE issue.
54674
54675         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54676         (raise): New declaration.
54677         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54678         (ext_signal): New function.
54679         (rpl_raise): New function.
54680         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54681         GNULIB_SIGNAL_H_SIGPIPE.
54682         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54683         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54684
54685         * modules/sigpipe: New file.
54686         * m4/sigpipe.m4: New file.
54687
54688 2008-09-25  Derek Price  <derek@ximbiot.com>
54689             Bruno Haible  <bruno@clisp.org>
54690
54691         * gnulib-tool (func_import): Report all license incompatibilities, not
54692         just the first one.
54693
54694 2008-09-25  Bruno Haible  <bruno@clisp.org>
54695
54696         * gnulib-tool (func_import): When computing the edits, consider not
54697         only the Makefile.ams that exist but also those that will be generated.
54698
54699 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54700
54701         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54702         fixes gnulib-tool --test warning about duplicate dependency.
54703
54704 2008-09-25  Bruno Haible  <bruno@clisp.org>
54705
54706         * gnulib-tool: Don't ask the user to perform edits in the generated
54707         Makefile.ams.
54708         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54709         apply to the Makefile.am being generated.
54710         (func_emit_tests_Makefile_am): Execute edits that apply to the
54711         Makefile.am being generated.
54712         (func_import): Setup list of Makefile.am edits before emitting the
54713         Makefile.ams, not at the end.
54714         (func_create_testdir): Update.
54715         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54716
54717 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54718
54719         * gnulib-tool (func_import): Store the --tests-base option in the
54720         comment in gnulib-cache.m4.
54721
54722 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54723
54724         * NEWS: Document increased portability that sys_select now provides.
54725
54726         * lib/sys_select.in.h: Install select wrapper.
54727         * lib/sys_socket.in.h: Use more descriptive name when there is no
54728         select wrapper.
54729         * lib/winsock-select.c: New.
54730         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54731         Require gl_HEADER_SYS_SOCKET.
54732         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54733         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54734         * tests/test-sys_select.c: Add functional tests.
54735
54736 2008-09-24  Eric Blake  <ebb9@byu.net>
54737
54738         open, fopen: close fd leak in last patch
54739         * lib/open.c (rpl_open): Close fd before returning error.
54740         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54741         * doc/posix-functions/open.texi (open): Document that Irix also
54742         has the bug.
54743         * doc/posix-functions/fopen.texi (fopen): Likewise.
54744         Reported by Paolo Bonzini.
54745
54746 2008-09-24  Bruno Haible  <bruno@clisp.org>
54747
54748         Ensure that a filename ending in a slash cannot be used to access a
54749         non-directory.
54750         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54751         to check whether it's really a directory.
54752         * lib/fopen.c: Include fcntl.h, unistd.h.
54753         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54754         and fdopen().
54755         * modules/fopen (Depends-on): Add unistd.
54756         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54757         * tests/test-fopen.c (main): Likewise.
54758         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54759         * doc/posix-functions/fopen.texi: Likewise.
54760         Reported by Eric Blake.
54761
54762 2008-09-23  Eric Blake  <ebb9@byu.net>
54763
54764         c-stack: avoid compiler optimizations when provoking overflow
54765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54766         recursion harder to optimize, to ensure a stack overflow occurs.
54767         * tests/test-c-stack.c (recurse): Likewise.
54768         Borrowed from libsigsegv.
54769
54770         c-stack: work around Irix sigaltstack bug
54771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54772         whether sigaltstack uses wrong end of stack_t (copied in part from
54773         libsigsegv).
54774         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54775         Irix bug, without requiring an over-allocation.
54776         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54777         bug.
54778
54779         fopen: document mingw bug on directories
54780         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54781         not allowing a stream visiting a directory, even though reading
54782         from such a stream is not portable.
54783
54784 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54785
54786         * lib/poll.c: Rewrite.
54787         * modules/poll: Depend on alloca.
54788
54789 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54790
54791         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54792         instead define prototypes for a full set of wrappers.  Ensure
54793         that Cygwin does not use the compatibility code, which is only
54794         for MinGW.
54795         * lib/winsock.c: New.
54796         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54797         * modules/sys_socket: Add lib/winsock.c.
54798
54799         * modules/poll-tests: Add errno and perror.
54800         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54801
54802 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54803
54804         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54805
54806 2008-09-23  Bruno Haible  <bruno@clisp.org>
54807
54808         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54809         * doc/glibc-functions/*: Likewise.
54810
54811 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54812
54813         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54814         success.
54815
54816 2008-09-22  Eric Blake  <ebb9@byu.net>
54817             Bruno Haible  <bruno@clisp.org>
54818
54819         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54820         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54821         supply %A but mishandle pseudo-NaN.
54822         Reported by Simon Josefsson.
54823
54824 2008-09-21  Bruno Haible  <bruno@clisp.org>
54825
54826         * tests/test-lock.c (main): Tweak skip message.
54827         * tests/test-tls.c (main): Likewise.
54828
54829 2008-09-21  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54832         whether 'struct sigaction' has sa_sigaction here...
54833         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54834         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54835
54836 2008-09-21  Bruno Haible  <bruno@clisp.org>
54837
54838         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54839         section.
54840         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54841         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54842         the new section.
54843         (Support for obsolete systems lacking POSIX:2001): New section.
54844         (String handling <string.h>): Move strdup to the new section.
54845         Suggested by Simon Josefsson and Paolo Bonzini.
54846
54847 2008-09-21  Bruno Haible  <bruno@clisp.org>
54848
54849         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54850         exponents in %e and %g results on 'long double'. Needed for mingw's
54851         improved *printf functions.
54852         * tests/test-vasprintf-posix.c (test_function): Likewise.
54853         * tests/test-snprintf-posix.h (test_function): Likewise.
54854         * tests/test-sprintf-posix.h (test_function): Likewise.
54855         Reported by Eric Blake.
54856
54857 2008-09-21  Bruno Haible  <bruno@clisp.org>
54858
54859         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54860         * tests/test-sprintf-posix.h (test_function): Likewise.
54861
54862 2008-09-21  Bruno Haible  <bruno@clisp.org>
54863
54864         * modules/getpass (Depends-on): Add strdup-posix.
54865
54866         New module 'strdup-posix'.
54867         * modules/strdup-posix: New file.
54868         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54869         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54871         REPLACE_STRDUP.
54872         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54873         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54875         strdup-posix.
54876
54877         * modules/strdup (Depends-on): Remove malloc-posix.
54878
54879 2008-09-20  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54882         Wildenhues.
54883
54884 2008-09-20  Bruno Haible  <bruno@clisp.org>
54885
54886         Ensure that wint_t gets defined on IRIX 5.3.
54887         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54888         * lib/wctype.in.h (wint_t): Likewise.
54889         (__wctype_wint_t): Remove type.
54890         (isw*): Use wint_t instead of __wctype_wint_t.
54891         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54892         * modules/wchar (Files): Add m4/wint_t.m4.
54893         (Makefile.am): Substitute HAVE_WINT_T.
54894         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54895         * tests/test-wctype.c: Check that wint_t is defined.
54896         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54897         * doc/posix-headers/wctype.texi: Likewise.
54898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54899
54900 2008-09-18  Bruno Haible  <bruno@clisp.org>
54901
54902         * gnulib-tool (func_exit): Update comment.
54903
54904 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54905
54906         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54907         assumes strdup exists and does not depend on strdup to return
54908         ENOMEM on out of memory conditions.
54909
54910 2008-09-18  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
54913         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54914         digits for the exponent.
54915
54916 2008-09-18  Jim Meyering  <meyering@redhat.com>
54917             Bruno Haible  <bruno@clisp.org>
54918
54919         * lib/vasnprintf.c (decimal_point_char): Define also if
54920         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54921
54922 2008-09-16  Bruno Haible  <bruno@clisp.org>
54923         and Eric Blake  <ebb9@byu.net>
54924
54925         vasnprintf: support Irix 5.3
54926         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54927         that mishandle long double infinity.
54928         Reported by Tom G. Christensen.
54929
54930 2008-09-16  Bruno Haible  <bruno@clisp.org>
54931
54932         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54933         Solaris 9.
54934         * doc/glibc-functions/alphasort.texi: Likewise.
54935         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54936
54937 2008-09-16  Jim Meyering  <meyering@redhat.com>
54938
54939         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54940         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54941         a umask modification leak out of a subshell.  Otherwise, the
54942         opensolaris /bin/sh would be accepted and thus cause unwarranted
54943         failures in the coreutils test suite.
54944
54945 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54946
54947         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54948         to succeed.
54949
54950 2008-09-16  Jim Meyering  <meyering@redhat.com>
54951
54952         avoid spurious test failure when library is built without ACL support
54953         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54954         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54955         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54956         * tests/test-copy-acl.sh: Likewise.
54957
54958 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54959
54960         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54961         based on character occurrence counts.
54962
54963 2008-09-15  Eric Blake  <ebb9@byu.net>
54964
54965         tests: avoid some compiler warnings
54966         * tests/test-memchr.c (main): Pass NULL indirectly.
54967         * tests/test-closein.c (main): Avoid unused variable.
54968
54969 2008-09-15  Bruno Haible  <bruno@clisp.org>
54970
54971         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54972         are missing on OpenBSD 4.0 individually.
54973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54974
54975 2008-09-15  Bruno Haible  <bruno@clisp.org>
54976
54977         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54978         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54979         * doc/posix-functions/perror.texi: Likewise.
54980         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54981         is missing.
54982         Reported by Eric Blake.
54983
54984         * lib/errno.in.h: Use replacement values >= 2000.
54985         Reported by Eric Blake.
54986
54987 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54988
54989         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54990         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54991         limit.
54992         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54993         compareseq was aborted.
54994
54995 2008-09-14  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54998         yvec_edit_count.
54999         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55000         (fstrcmp_bounded): Simplify result computation accordingly.
55001
55002 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55003
55004         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55005         (fstrcmp): Define in terms of fstrcmp_bounded.
55006         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55007         lower_bound argument.
55008         Return quickly if the result is certainly < lower_bound.
55009         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55010
55011 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55012
55013         * lib/diffseq.h (EARLY_ABORT): New macro.
55014         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55015         evaluates to true.
55016
55017 2008-09-14  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/perror-tests: New file.
55020         * tests/test-perror.sh: New file.
55021         * tests/test-perror.c: New file.
55022
55023         New module 'perror'.
55024         * lib/stdio.in.h (perror): New declaration.
55025         * lib/perror.c: New file.
55026         * m4/perror.m4: New file.
55027         * modules/perror: New file.
55028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55029         * doc/posix-functions/perror.texi: Mention the perror module.
55030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55031         REPLACE_PERROR.
55032         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55033         REPLACE_PERROR.
55034
55035 2008-09-14  Bruno Haible  <bruno@clisp.org>
55036
55037         * modules/stdio (Makefile.am): Reorder to match the order in
55038         lib/stdio.in.h.
55039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55040
55041 2008-09-13  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55044
55045 2008-09-13  Bruno Haible  <bruno@clisp.org>
55046
55047         Extend strerror to cover the added errno values.
55048         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55049         (rpl_strerror): Provide error messages for the added errno values and
55050         for the WSA* values.
55051         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55052         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55053         strerror.
55054         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55055         * modules/strerror (Depends-on): Add errno.
55056         * doc/posix-functions/strerror.texi: Document the change.
55057         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55058         and EOVERFLOW.
55059
55060 2008-09-13  Bruno Haible  <bruno@clisp.org>
55061
55062         * modules/EOVERFLOW: Remove file.
55063         * m4/eoverflow.m4: Remove file.
55064         * modules/EOVERFLOW-tests: Remove file.
55065         * tests/test-EOVERFLOW.c: Remove file.
55066         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55067         * modules/ftell (Depends-on): Likewise.
55068         * modules/getdelim (Depends-on): Likewise.
55069         * modules/getugroups (Depends-on): Likewise.
55070         * modules/poll (Depends-on): Likewise.
55071         * modules/snprintf (Depends-on): Likewise.
55072         * modules/sprintf-posix (Depends-on): Likewise.
55073         * modules/vasnprintf (Depends-on): Likewise.
55074         * modules/vasprintf (Depends-on): Likewise.
55075         * modules/vfprintf-posix (Depends-on): Likewise.
55076         * modules/vsnprintf (Depends-on): Likewise.
55077         * modules/vsprintf-posix (Depends-on): Likewise.
55078         * modules/xvasprintf (Depends-on): Likewise.
55079         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55080         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55081         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55082         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55083         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55084         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55085         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55086         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55088         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55089         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55090         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55091         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55092         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55093         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55094         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55095         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55096         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55097         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55098         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55099         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55100         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55101         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55102         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55103         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55104         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55105         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55106         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55107         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55108         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55109         * MODULES.html.sh: Remove EOVERFLOW.
55110         * NEWS: Mention the change.
55111
55112 2008-09-13  Bruno Haible  <bruno@clisp.org>
55113
55114         * modules/errno-tests: New file.
55115         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55116
55117         * lib/errno.in.h: New file.
55118         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55119         * modules/errno: New file.
55120         * doc/posix-headers/errno.texi: Update documentation.
55121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55122
55123 2008-09-13  Bruno Haible  <bruno@clisp.org>
55124
55125         * tests/test-poll.c: Use #if for native Windows, rather than testing
55126         __MSVCRT__.
55127
55128 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55129             Bruno Haible  <bruno@clisp.org>
55130
55131         * lib/glob.c: Don't include <pwd.h> on native Windows.
55132         (WINDOWS32): New macro.
55133         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55134
55135 2008-09-13  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55138         (ETIMEDOUT): Remove macro.
55139         (glthread_cond_timedwait_multithreaded): New declaration.
55140         (glthread_cond_timedwait): Use it.
55141         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55142         (glthread_cond_timedwait_multithreaded): New function.
55143
55144 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55145
55146         * modules/poll-tests: Do not check for io.h.
55147         * tests/test-poll.c: Check for __MSVCRT__ instead.
55148
55149 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55150
55151         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55152         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55153         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55154
55155 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55156
55157         * modules/poll-tests: New.
55158         * tests/test-poll.c: New.
55159
55160 2008-09-12  Eric Blake  <ebb9@byu.net>
55161
55162         frexp: test for NetBSD failure on -0.0
55163         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55164         not all, bugs from NetBSD 3.0 have been fixed.
55165         * doc/posix-functions/frexp.texi (frexp): Document bug.
55166         Reported by Thomas Klausner.
55167
55168         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55169         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55170         literal -0.0.
55171         Reported by Jonathan C. Patschke <jp@centtech.com>.
55172
55173 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55174
55175         * lib/glthread/cond.h: Use dummy implementation also if
55176         USE_WIN32_THREADS.
55177
55178 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55179
55180         * modules/fnmatch-posix (License): Change to LGPLv2+.
55181         * modules/fnmatch-gnu (License): Likewise.
55182
55183 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55184
55185         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55186
55187 2008-09-11  Jim Meyering  <meyering@redhat.com>
55188
55189         * users.txt: Add gtk-vnc.
55190
55191 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55192
55193         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55194         rotate amounts.
55195
55196         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55197         required for 16-bit and 8-bit rotates.
55198         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55199         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55200         UINT8_MAX instead of hard-coded constants.
55201         Suggested by Paul Eggert.
55202
55203 2008-09-07  Bruno Haible  <bruno@clisp.org>
55204
55205         * tests/test-striconveh.c (main): Check behaviour when converting from
55206         UTF-7.
55207
55208         Make striconveh work better with stateful encodings.
55209         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55210         that iconv does not increment the inptr when returning -1/EINVAL.
55211
55212 2008-09-07  Bruno Haible  <bruno@clisp.org>
55213
55214         * build-aux/config.rpath: Update according to libtool-2.2.6.
55215         * build-aux/config.libpath: Likewise.
55216
55217 2008-09-06  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55220         * lib/freadptr.c (freadptr): Likewise.
55221         * lib/freadseek.c (freadptrinc): Likewise.
55222         Reported by Simon Josefsson.
55223
55224 2008-09-06  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/freadptr (License): Change to LGPLv2+.
55227         * modules/freadseek (License): Likewise.
55228         Suggested by Eric Blake.
55229
55230         * modules/memchr2 (License): Change to LGPLv2+.
55231         Approved by Eric Blake.
55232
55233 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55234             Bruno Haible  <bruno@clisp.org>
55235
55236         Make gnulib-tool work with native 'sed' on AIX.
55237         * gnulib-tool (sed_noop): New variable.
55238         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55239         func_add_or_update, func_create_testdir): Use it to initialize sed
55240         script variables.
55241         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55242
55243 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55244             Bruno Haible  <bruno@clisp.org>
55245
55246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55247         also works after #include directives.
55248
55249 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
55250
55251         getdate.y: reject an out-of-range timezone value
55252         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55253         the range [-24...+24].  When specified with only one or two digits,
55254         * tests/test-getdate.c: Tests for the fix.
55255         * doc/getdate.texi: Document this change.
55256
55257 2008-09-03  Bruno Haible  <bruno@clisp.org>
55258
55259         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55260
55261 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55262
55263         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55264         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55265         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55266         Blake <ebb9@byu.net>.
55267
55268         * tests/test-bitrotate.c: Add more test vectors.
55269
55270 2008-09-02  Eric Blake  <ebb9@byu.net>
55271
55272         vasnprintf-posix: handle large precision via %.*d
55273         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55274         when handling it ourselves.
55275         * tests/test-vasnprintf-posix.c (test_function): Add test.
55276         * tests/test-snprintf-posix.h (test_function): Likewise.
55277         * tests/test-sprintf-posix.h (test_function): Likewise.
55278         * tests/test-vasprintf-posix.c (test_function): Likewise.
55279         Reported by Alain Guibert.
55280
55281 2008-09-01  Eric Blake  <ebb9@byu.net>
55282
55283         c-stack: make configure-time check more robust
55284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55285         successful sigaction call.
55286         Reported by Tom G. Christensen.
55287
55288 2008-09-01  Bruno Haible  <bruno@clisp.org>
55289
55290         New module 'findprog-lgpl'.
55291         * modules/findprog-lgpl: New file.
55292         * lib/findprog-lgpl.c: New file.
55293         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55294         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55295         to decide whether to use strdup or xstrdup, concatenated_filename or
55296         xconcatenated_filename.
55297
55298 2008-09-01  Bruno Haible  <bruno@clisp.org>
55299
55300         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55301         'xconcat-filename' (GPL).
55302         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55303         (License): Change to LGPLv2+.
55304         * modules/xconcat-filename: New file.
55305         * lib/concat-filename.h (concatenated_filename): Change specification.
55306         (xconcatenated_filename): New declaration.
55307         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55308         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55309         memory situations.
55310         * lib/xconcat-filename.c: New file.
55311         * NEWS: Mention the change.
55312         * lib/findprog.c: Include concat-filename.h, not filename.h.
55313         (find_in_path): Use xconcatenated_filename instead of
55314         concatenated_filename.
55315         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55316         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55317         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55318         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55319         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55320         instead of concatenated_filename.
55321         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55322         (execute_java_class): Use xconcatenated_filename instead of
55323         concatenated_filename.
55324         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55325         * modules/javacomp (Depends-on): Likewise.
55326         * modules/javaexec (Depends-on): Likewise.
55327
55328 2008-09-01  Bruno Haible  <bruno@clisp.org>
55329
55330         Split module 'filename' into 'filename' and 'concat-filename'.
55331         * modules/filename: Keep only lib/filename.h.
55332         (License): Change to LGPLv2+.
55333         * modules/concat-filename: New file, extracted from modules/filename.
55334         * lib/filename.h (concatenated_filename): Remove declaration.
55335         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55336         * lib/concat-filename.c: Include concat-filename.h.
55337         * NEWS: Mention the change.
55338
55339 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55340
55341         * lib/bitrotate.h (rotl8, rotr8): Add.
55342
55343         * modules/bitrotate (configure.ac): Need
55344         AC_REQUIRE([AC_C_INLINE]).
55345         (Description): Mention stdint.h.  Reported by Bruno Haible
55346         <bruno@clisp.org>.
55347
55348         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55349         Paolo Bonzini <bonzini@gnu.org>.
55350
55351 2008-08-31  Bruno Haible  <bruno@clisp.org>
55352
55353         Assume Solaris specific bi-arch conventions on Solaris systems.
55354         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55355         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55357         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55358         like acl_libdirstem.
55359         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55360         acl_libdirstem.
55361         * NEWS: Mention the change.
55362         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55363
55364 2008-08-31  Jim Meyering  <meyering@redhat.com>
55365
55366         * lib/strftime.h: Add comments describing the two added arguments.
55367
55368         remove duplicate #include directives
55369         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55370         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55371
55372 2008-08-31  Bruno Haible  <bruno@clisp.org>
55373
55374         New module 'sigpipe-die'.
55375         * modules/sigpipe-die: New file.
55376         * lib/sigpipe-die.h: New file.
55377         * lib/sigpipe-die.c: New file.
55378         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55379
55380 2008-08-31  Bruno Haible  <bruno@clisp.org>
55381
55382         Don't override previously installed signal handlers.
55383         * lib/fatal-signal.c (saved_sigactions): New variable.
55384         (uninstall_handlers): Reset the signal to the saved handler, not
55385         to SIG_DFL (except when ignored).
55386         (install_handlers): Save the previous handlers.
55387
55388 2008-08-30  Bruno Haible  <bruno@clisp.org>
55389
55390         * gnulib-tool (func_reset_sigpipe): New function.
55391         (func_get_automake_snippet, func_modules_transitive_closure,
55392         func_import): Invoke it before a join command that reads from stdin,
55393         to avoid "echo: write error: Broken pipe" error messages on stderr.
55394         Reported by Sam Steingold <sds@gnu.org>.
55395
55396 2008-08-30  Bruno Haible  <bruno@clisp.org>
55397
55398         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55399         Code copied from m4/open.m4.
55400         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55401         access and the filename ends in a slash. Code copied from lib/open.c.
55402         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55403         * tests/test-fopen.c (main): Check against bug with trailing slash.
55404
55405 2008-08-29  Bruno Haible  <bruno@clisp.org>
55406
55407         Avoid some "gcc -pedantic" warnings.
55408         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55409         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55410         * lib/dirent.in.h: Likewise.
55411         * lib/fcntl.in.h: Likewise.
55412         * lib/float.in.h: Likewise.
55413         * lib/iconv.in.h: Likewise.
55414         * lib/inttypes.in.h: Likewise.
55415         * lib/locale.in.h: Likewise.
55416         * lib/math.in.h: Likewise.
55417         * lib/netinet_in.in.h: Likewise.
55418         * lib/search.in.h: Likewise.
55419         * lib/signal.in.h: Likewise.
55420         * lib/stdarg.in.h: Likewise.
55421         * lib/stdint.in.h: Likewise.
55422         * lib/stdio.in.h: Likewise.
55423         * lib/stdlib.in.h: Likewise.
55424         * lib/string.in.h: Likewise.
55425         * lib/strings.in.h: Likewise.
55426         * lib/sys_select.in.h: Likewise.
55427         * lib/sys_socket.in.h: Likewise.
55428         * lib/sys_stat.in.h: Likewise.
55429         * lib/sys_time.in.h: Likewise.
55430         * lib/sysexits.in.h: Likewise.
55431         * lib/time.in.h: Likewise.
55432         * lib/unistd.in.h: Likewise.
55433         * lib/wchar.in.h: Likewise.
55434         * lib/wctype.in.h: Likewise.
55435         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55436         * modules/fchdir (Makefile.am): Likewise.
55437         * modules/fcntl (Makefile.am): Likewise.
55438         * modules/float (Makefile.am): Likewise.
55439         * modules/iconv_open (Makefile.am): Likewise.
55440         * modules/inttypes (Makefile.am): Likewise.
55441         * modules/locale (Makefile.am): Likewise.
55442         * modules/math (Makefile.am): Likewise.
55443         * modules/netinet_in (Makefile.am): Likewise.
55444         * modules/search (Makefile.am): Likewise.
55445         * modules/signal (Makefile.am): Likewise.
55446         * modules/stdarg (Makefile.am): Likewise.
55447         * modules/stdint (Makefile.am): Likewise.
55448         * modules/stdio (Makefile.am): Likewise.
55449         * modules/stdlib (Makefile.am): Likewise.
55450         * modules/string (Makefile.am): Likewise.
55451         * modules/strings (Makefile.am): Likewise.
55452         * modules/sys_select (Makefile.am): Likewise.
55453         * modules/sys_socket (Makefile.am): Likewise.
55454         * modules/sys_stat (Makefile.am): Likewise.
55455         * modules/sys_time (Makefile.am): Likewise.
55456         * modules/sysexits (Makefile.am): Likewise.
55457         * modules/time (Makefile.am): Likewise.
55458         * modules/unistd (Makefile.am): Likewise.
55459         * modules/wchar (Makefile.am): Likewise.
55460         * modules/wctype (Makefile.am): Likewise.
55461         Reported by Reuben Thomas <rrt@sc3d.org>.
55462
55463 2008-08-29  Bruno Haible  <bruno@clisp.org>
55464
55465         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55466         any more.
55467
55468 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55469
55470         * MODULES.html.sh (Misc): Add bitrotate.
55471
55472         * modules/bitrotate: New file.
55473
55474         * lib/bitrotate.h: New file.
55475
55476         * modules/bitrotate-tests: New file.
55477
55478         * tests/test-bitrotate.c: New file.
55479
55480         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55481         on the bitrotate module.
55482
55483         * lib/arctwo.c: Use new bitrotate module.
55484
55485 2008-08-29  Jim Meyering  <meyering@redhat.com>
55486
55487         bootstrap: merge changes from coreutils
55488         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55489         of copied files.  Remove a kludge, now that this is fixed.
55490         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55491         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55492         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55493
55494 2008-08-29  Bruno Haible  <bruno@clisp.org>
55495
55496         * MODULES.html.sh: Remove --cvs-urls option.
55497
55498 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55499
55500         maint.mk: adjust to file name change
55501         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55502
55503 2008-08-28  Jim Meyering  <meyering@redhat.com>
55504
55505         * modules/getndelim2 (License): Relicense to LGPLv2+.
55506         Approved by Richard Stallman for the version of 1995, and by
55507         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55508
55509 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55510
55511         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55512         dummy if one is not available.  Do not touch them if
55513         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55514         (getc_maybe_unlocked): New.
55515         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55516
55517 2008-08-26  Eric Blake  <ebb9@byu.net>
55518
55519         doc/INSTALL: resync from autoconf
55520         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55521         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55522         moving...
55523         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55524         * INSTALL: Regenerate.
55525         * INSTALL.ISO: New file.
55526         * INSTALL.UTF-8: Likewise.
55527
55528 2008-08-26  Jim Meyering  <meyering@redhat.com>
55529
55530         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55531         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55532         these definitions conditional, so that they may be overridden, too.
55533
55534 2008-08-26  Bruno Haible  <bruno@clisp.org>
55535
55536         Generate INSTALL file variants with prettier quotes.
55537         * doc/Makefile (INSTALL_PRELUDE): New macro.
55538         (INSTALL): Use it.
55539         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55540
55541 2008-08-26  Bruno Haible  <bruno@clisp.org>
55542
55543         Run makeinfo in an English locale.
55544         * doc/Makefile (MAKEINFO): New variable.
55545
55546 2008-08-26  Bruno Haible  <bruno@clisp.org>
55547
55548         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55549         Suggested by Eric Blake.
55550
55551 2008-08-25  Bruno Haible  <bruno@clisp.org>
55552
55553         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55554
55555 2008-08-25  Eric Blake  <ebb9@byu.net>
55556
55557         c-stack: test that stack overflow can be caught
55558         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55559         that platform allows handling stack overflow; at least OS/2 EMX
55560         has sigaltstack, but crashes before transferring control to
55561         handler on stack overflow.
55562         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55563         check for HAVE_STACK_OVERFLOW_HANDLING.
55564         Reported by Elbert Pol.
55565
55566 2008-08-25  Bruno Haible  <bruno@clisp.org>
55567
55568         * doc/posix-functions/strftime.texi: Fix description of strftime
55569         module.
55570
55571 2008-08-24  Bruno Haible  <bruno@clisp.org>
55572
55573         * tests/uniwidth/test-uc_width2.c: New file.
55574         * tests/uniwidth/test-uc_width2.sh: New file.
55575         * modules/uniwidth/width-tests (Files): Add the new files.
55576         (TESTS): Add uniwidth/test-uc_width2.sh.
55577         (TESTS_ENVIRONMENT): New variable.
55578         (check_PROGRAMS): Add test-uc_width2.
55579         (test_uc_width2_SOURCES): New variable.
55580
55581         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55582         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55583         not 0x00AB.
55584         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55585
55586 2008-08-22  Eric Blake  <ebb9@byu.net>
55587
55588         test-lock, test-tls: mention why a test is skipped
55589         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55590         skipped.
55591         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55592
55593         count-one-bits: relax license
55594         * modules/count-one-bits (License): Relicense to LGPLv2+.
55595         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55596
55597 2008-08-22  Andreas Schwab  <schwab@suse.de>
55598
55599         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55600         Remove spurious space in assignment.
55601
55602 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55603
55604         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55605         Paul Eggert <eggert@CS.UCLA.EDU>.
55606
55607 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55608
55609         * modules/gettext: Add m4/threadlib.m4.
55610
55611 2008-08-19  Eric Blake  <ebb9@byu.net>
55612
55613         test-c-stack: fix compilation failure on FreeBSD 5.0
55614         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55615         headers before <sys/resource.h>.
55616         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55617         the bug.
55618         Reported by Nelson H. F. Beebe.
55619
55620         strverscmp: migrate from "strverscmp.h" to <string.h>
55621         * modules/string (Makefile.am): Add new hooks.
55622         * modules/strverscmp (Files): Remove strverscmp.h.
55623         (Depends-on): Add string.
55624         (configure.ac): Add indicator.
55625         (Include): Mention new header.
55626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55627         defaults.
55628         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55629         results.
55630         * lib/strverscmp.h: Delete.
55631         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55632         * tests/test-strverscmp.c (includes): Adjust client.
55633         * lib/check-version.c (includes): Likewise.
55634         * NEWS: Document the change.
55635
55636         strverscmp: add unit test
55637         * modules/strverscmp-tests: New file.
55638         * tests/test-strverscmp.c: Likewise.
55639
55640 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55641
55642         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55643         regarding Windows crypto stuff, from Mono.
55644
55645 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55646
55647         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55648         if present, for intel RND.  Return error on failures.
55649
55650 2008-08-18  Ben Pfaff  <blp@gnu.org>
55651
55652         gitlog-to-changelog: give better diagnostic for failed pipe-open
55653         * build-aux/gitlog-to-changelog: Improve error message: suggest
55654         that the version of Git may be too old.
55655
55656 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55657
55658         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55659         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55660
55661 2008-08-18  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55664         pthread_in_use().
55665
55666 2008-08-18  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/glthread/threadlib.c: Include <pthread.h>.
55669
55670 2008-08-18  Bruno Haible  <bruno@clisp.org>
55671
55672         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55673         glthread_recursive_lock_* macros.
55674         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55675         Fix syntax error.
55676
55677 2008-08-18  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/glthread/thread.c: Avoid forcing a context switch right after
55680         thread creation.
55681
55682 2008-08-17  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55685         * lib/glthread/thread.h: Provide Win32 specific implementation.
55686         * modules/thread (Files): Add lib/glthread/thread.c.
55687         (Depends-on): Add lock.
55688         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55689
55690 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55691
55692         New module 'yield'.
55693         * modules/yield: New file.
55694         * lib/glthread/yield.h: New file.
55695         * m4/yield.m4: New file.
55696         * MODULES.html.sh (Multithreading): Add yield.
55697
55698 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55699
55700         New module 'thread'.
55701         * modules/thread: New file.
55702         * lib/glthread/thread.h: New file.
55703         * m4/thread.m4: New file.
55704         * MODULES.html.sh (Multithreading): Add thread.
55705
55706 2008-08-17  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/glthread/lock.h: Include <stdlib.h> always.
55709         * lib/glthread/tls.h: Likewise.
55710         * lib/glthread/cond.h: Likewise.
55711
55712 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55713
55714         New module 'cond'.
55715         * modules/cond: New file.
55716         * lib/glthread/cond.h: New file.
55717         * lib/glthread/cond.c: New file.
55718         * m4/cond.m4: New file.
55719         * MODULES.html.sh (Multithreading): Add cond.
55720
55721 2008-08-16  Eric Blake  <ebb9@byu.net>
55722
55723         c-stack: fix regression on Irix 5.3 from 2008-06-21
55724         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55725         sa_sigaction...
55726         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55727         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55728         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55729         * modules/signal (Makefile.am): Use the value.
55730         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55731         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55732         * doc/posix-headers/signal.texi (signal.h): Document this
55733         portability issue.
55734         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55735         Reported by Tom G. Christensen.
55736
55737 2008-08-17  Bruno Haible  <bruno@clisp.org>
55738
55739         New module 'threadlib'.
55740         * modules/threadlib: New file.
55741         * lib/glthread/threadlib.c: New file, extracted from
55742         lib/glthread/lock.c.
55743         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55744         functions.
55745         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55746         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55747         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55748         macros.
55749         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55750         (gl_DISABLE_THREADS): Remove macro.
55751         * modules/lock (Files): Remove build-aux/config.rpath.
55752         (Depends-on): Remove havelib. Add threadlib.
55753         (configure.ac-early): Remove section.
55754         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55755         * modules/tls (Depends-on): Remove lock. Add threadlib.
55756         (Link): New section, copied from threadlib.
55757         * MODULES.html.sh (Multithreading): Add threadlib.
55758
55759 2008-08-14  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55762         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55763         glthread_rwlock_unlock, glthread_rwlock_destroy,
55764         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55765         glthread_recursive_lock_destroy): Define as macros always.
55766         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55767         glthread_lock_lock.
55768         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55769         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55770         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55771         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55772         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55773         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55774         (glthread_recursive_lock_lock_func): Renamed from
55775         glthread_recursive_lock_lock.
55776         (glthread_recursive_lock_unlock_func): Renamed from
55777         glthread_recursive_lock_unlock.
55778         (glthread_recursive_lock_destroy_func): Renamed from
55779         glthread_recursive_lock_destroy.
55780
55781 2008-08-14  Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/glthread/lock.h: Renamed from lib/lock.h.
55784         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55785         * lib/glthread/tls.h: Renamed from lib/tls.h.
55786         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55787         * lib/fstrcmp.c: Update includes.
55788         * lib/strsignal.c: Update includes.
55789         * modules/lock (Files, Makefile.am): Update.
55790         (Include): Change to "glthread/lock.h".
55791         * modules/tls (Files, Makefile.am): Update.
55792         (Include): Change to "glthread/tls.h".
55793         * tests/test-lock.c: Update includes.
55794         * tests/test-tls.c: Update includes.
55795         * NEWS: Mention the renamed header files.
55796
55797 2008-08-11  Jim Meyering  <meyering@redhat.com>
55798
55799         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55800
55801 2008-08-11  Eric Blake  <ebb9@byu.net>
55802
55803         test-c-stack: avoid C99-ism
55804         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55805         before statement.
55806         Reported by Alain Guibert.
55807
55808 2008-08-10  Jim Meyering  <meyering@redhat.com>
55809
55810         ensure that return value of uinttostr et al are not ignored
55811         * lib/inttostr.h (__GNUC_PREREQ): Define.
55812         (__attribute_warn_unused_result__): Define.
55813         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55814
55815 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55816
55817         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55818         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55819
55820 2008-08-07  Jim Meyering  <meyering@redhat.com>
55821
55822         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55823
55824         * modules/mkstemp (License): Relicense under LGPLv2+.
55825         * modules/tempname (License): Likewise.
55826
55827 2008-08-06  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/poll.c (poll): Further micro-optimization.
55830
55831 2008-08-06  Jim Meyering  <meyering@redhat.com>
55832
55833         inet_pton.c: use locale-independent tolower
55834         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55835         (inet_pton6): Use c_tolower rather than tolower.
55836         * modules/inet_pton (Depends-on): Add c-ctype.
55837
55838 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55839
55840         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55841         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55842
55843 2008-08-06  Jim Meyering  <meyering@redhat.com>
55844
55845         * modules/inet_pton (License): Relicense under LGPLv2+.
55846
55847 2008-08-03  Bruno Haible  <bruno@clisp.org>
55848
55849         Additional non-aborting API for lock and tls.
55850         * lib/lock.h: Include <errno.h>.
55851         (glthread_lock_init): New macro/function.
55852         (gl_lock_init): Define as wrapper around glthread_lock_init.
55853         (glthread_lock_lock): New macro/function.
55854         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55855         (glthread_lock_unlock): New macro/function.
55856         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55857         (glthread_lock_destroy): New macro/function.
55858         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55859         (glthread_rwlock_init): New macro/function.
55860         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55861         (glthread_rwlock_rdlock): New macro/function.
55862         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55863         (glthread_rwlock_wrlock): New macro/function.
55864         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55865         (glthread_rwlock_unlock): New macro/function.
55866         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55867         (glthread_rwlock_destroy): New macro/function.
55868         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55869         (glthread_recursive_lock_init): New macro/function.
55870         (gl_recursive_lock_init): Define as wrapper around
55871         glthread_recursive_lock_init.
55872         (glthread_recursive_lock_lock): New macro/function.
55873         (gl_recursive_lock_lock): Define as wrapper around
55874         glthread_recursive_lock_lock.
55875         (glthread_recursive_lock_unlock): New macro/function.
55876         (gl_recursive_lock_unlock): Define as wrapper around
55877         glthread_recursive_lock_unlock.
55878         (glthread_recursive_lock_destroy): New macro/function.
55879         (gl_recursive_lock_destroy): Define as wrapper around
55880         glthread_recursive_lock_destroy.
55881         (glthread_once): New macro/function.
55882         (gl_once): Define as wrapper around glthread_once.
55883         Update function declarations.
55884         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55885         glthread_rwlock_init. Return error code.
55886         (glthread_rwlock_rdlock_multithreaded): Renamed from
55887         glthread_rwlock_rdlock. Return error code.
55888         (glthread_rwlock_wrlock_multithreaded): Renamed from
55889         glthread_rwlock_wrlock. Return error code.
55890         (glthread_rwlock_unlock_multithreaded): Renamed from
55891         glthread_rwlock_unlock. Return error code.
55892         (glthread_rwlock_destroy_multithreaded): Renamed from
55893         glthread_rwlock_destroy. Return error code.
55894         (glthread_recursive_lock_init_multithreaded): Renamed from
55895         glthread_recursive_lock_init. Return error code.
55896         (glthread_recursive_lock_lock_multithreaded): Renamed from
55897         glthread_recursive_lock_lock. Return error code.
55898         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55899         glthread_recursive_lock_unlock. Return error code.
55900         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55901         glthread_recursive_lock_destroy. Return error code.
55902         (glthread_once_call): Make static.
55903         (glthread_once_multithreaded): Renamed from glthread_once.
55904         * lib/tls.h: Include <errno.h>.
55905         (glthread_tls_key_init): New macro/function.
55906         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55907         (glthread_tls_set): New macro/function.
55908         (gl_tls_set): Define as wrapper around glthread_tls_set.
55909         (glthread_tls_key_destroy): New macro/function.
55910         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55911         Update function declarations.
55912         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55913         glthread_tls_get.
55914         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55915
55916 2008-08-04  Eric Blake  <ebb9@byu.net>
55917
55918         gnumakefile: use space, not TAB, outside of targets
55919         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55920
55921 2008-08-02  Jim Meyering  <meyering@redhat.com>
55922
55923         getdate.y: avoid locale-dependent date parsing failure
55924         In Turkish locales, getdate would fail to recognize keywords
55925         containing a lowercase "i".  The solution is not to rely on
55926         locale-sensitive case-conversion.
55927         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55928         (lookup_word): Use c_toupper in place of toupper.
55929         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55930         Reported by Vefa Bicakci <bicave@superonline.com> in
55931         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55932         * modules/getdate (Depends-on): Add c-ctype.
55933
55934 2008-08-02  Bruno Haible  <bruno@clisp.org>
55935
55936         * gnulib-tool (func_import): When updating or creating a .gitignore
55937         file, prepend each added line with a slash, and ignore leading slashes
55938         from the existing lines.
55939         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55940
55941 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55942
55943         Portability fix for GNU make 3.79.1.
55944         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55945         versions do not understand.
55946
55947 2008-08-01  Bruno Haible  <bruno@clisp.org>
55948
55949         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55950         * tests/test-isnanf.h (zero): New variable.
55951         (main): Avoid literal -0.0f.
55952         * tests/test-isnand.h (zero): New variable.
55953         (main): Avoid literal -0.0.
55954         * tests/test-isnanl.h (zero): New variable.
55955         (main): Avoid literal -0.0L.
55956         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55957         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55958         -0.0, -0.0L.
55959         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55960         (test_signbitd): Avoid literal -0.0.
55961         (test_signbitl): Avoid literal -0.0L.
55962         * tests/test-ceilf1.c (zero): New variable.
55963         (main): Avoid literal -0.0f.
55964         * tests/test-ceill.c (zero): New variable.
55965         (main): Avoid literal -0.0L.
55966         * tests/test-floorf1.c (zero): New variable.
55967         (main): Avoid literal -0.0f.
55968         * tests/test-floorl.c (zero): New variable.
55969         (main): Avoid literal -0.0L.
55970         * tests/test-roundf1.c (zero): New variable.
55971         (main): Avoid literal -0.0f.
55972         * tests/test-round1.c (zero): New variable.
55973         (main): Avoid literal -0.0.
55974         * tests/test-roundl.c (zero): New variable.
55975         (main): Avoid literal -0.0L.
55976         * tests/test-truncf1.c (zero): New variable.
55977         (main): Avoid literal -0.0f.
55978         * tests/test-trunc1.c (zero): New variable.
55979         (main): Avoid literal -0.0.
55980         * tests/test-truncl.c (zero): New variable.
55981         (main): Avoid literal -0.0L.
55982         * tests/test-frexp.c (zero): New variable.
55983         (main): Avoid literal -0.0.
55984         * tests/test-frexpl.c (zero): New variable.
55985         (main): Avoid literal -0.0L.
55986         * tests/test-ldexpl.c (zero): New variable.
55987         (main): Avoid literal -0.0L.
55988         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55989         (zerod, zerol): New variables.
55990         (test_function): Avoid literals -0.0, -0.0L.
55991         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55992         (zerod, zerol): New variables.
55993         (test_function): Avoid literals -0.0, -0.0L.
55994         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55995         (zerod, zerol): New variables.
55996         (test_function): Avoid literals -0.0, -0.0L.
55997         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55998         (zerod, zerol): New variables.
55999         (test_function): Avoid literals -0.0, -0.0L.
56000         * tests/test-strtod.c (zero): New variable.
56001         (main): Avoid literal -0.0.
56002         Reported by Jonathan C. Patschke <jp@centtech.com>.
56003
56004 2008-07-31  Jim Meyering  <meyering@redhat.com>
56005
56006         sha256.h: correct definition of SHA224_DIGEST_SIZE
56007         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56008         Reported by Paulie Pena IV <paulie4@gmail.com>.
56009         Define as 224 / 8, rather than as a literal.
56010         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56011         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56012         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56013
56014 2008-07-31  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56017         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56018         Reported by Jonathan Patschke <jp@centtech.com>.
56019
56020 2008-07-31  Bruno Haible  <bruno@clisp.org>
56021
56022         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56023         Reported by Paolo Bonzini <bonzini@gnu.org>.
56024
56025 2008-07-30  Eric Blake  <ebb9@byu.net>
56026
56027         test-strtod: allow compilation without -lm
56028         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56029         Reported by Dennis Clarke <blastwave@gmail.com>.
56030
56031 2008-07-28  Jim Meyering  <meyering@redhat.com>
56032
56033         bootstrap: work also when there are no .po files in po/
56034         * build-aux/bootstrap (update_po_files): Complete the change
56035         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56036
56037 2008-07-27  Jim Meyering  <meyering@redhat.com>
56038
56039         * users.txt: Add zile.
56040
56041 2008-07-26  Ben Pfaff  <blp@gnu.org>
56042
56043         Add missing dependencies on new m4/exponent[fdl].m4 files.
56044         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56045         * modules/isnand-nolibm: Add m4/exponentd.m4.
56046         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56047         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56048         m4/isnan[fdl].m4, because the macros actually used moved.
56049         Reported by Jim Meyering.
56050
56051 2008-07-14  Ben Pfaff  <blp@gnu.org>
56052
56053         Add isinf module.
56054         * lib/isinf.c: New file.
56055         * lib/math.in.h: Define isinf macro if we have decided to replace
56056         it.
56057         * m4/isinf.m4: New file.
56058         * m4/math_h.m4: Initialize and substitute variables for isinf
56059         module.
56060         * modules/isinf: New file.
56061         * modules/isinf-tests: New file.
56062         * modules/math: Add substitutions for new module.
56063         * tests/test-isinf.c: New file.
56064         * doc/posix-functions/isinf.texi: Mention new module.
56065         * MODULES.html.sh: Mention new module.
56066
56067 2008-07-14  Ben Pfaff  <blp@gnu.org>
56068
56069         Factor out some macros for use by additional modules.
56070         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56071         exponentf.m4.
56072         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56073         exponentd.m4.
56074         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56075         file exponentl.m4.
56076         * m4/exponentf.m4: New file.
56077         * m4/exponentd.m4: New file.
56078         * m4/exponentl.m4: New file.
56079         * modules/isnanf: Use new file m4/exponentf.m4.
56080         * modules/isnand: Use new file m4/exponentd.m4.
56081         * modules/isnanl: Use new file m4/exponentl.m4.
56082
56083 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56084
56085         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56086         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56087         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56088         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56089
56090         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56091         readlink on platforms without PATH_MAX.
56092
56093 2008-07-21  Eric Blake  <ebb9@byu.net>
56094
56095         Warn, not fail, on stale version.
56096         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56097
56098         Don't allow installation with stale devel version number.
56099         * top/GNUmakefile (_is-install-target): New macro.
56100         (_curr-ver): Forbid installation with stale version number.
56101
56102 2008-07-20  Bruno Haible  <bruno@clisp.org>
56103
56104         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56105         TESTS_ENVIRONMENT.
56106         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56107
56108 2008-07-20  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/c-stack.h (c_stack_action): Add documentation.
56111         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56112
56113 2008-07-20  Bruno Haible  <bruno@clisp.org>
56114
56115         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56116         * modules/readlink (License): Likewise.
56117
56118 2008-07-17  Eric Blake  <ebb9@byu.net>
56119
56120         * modules/c-stack (Link): Fix typo.
56121
56122         Make c-stack use libsigsegv, when available.
56123         * modules/c-stack (Depends-on): Add libsigsegv.
56124         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56125         needed.
56126         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56127         (segv_handler, overflow_handler, c_stack_action)
56128         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56129         implementation when libsigsegv is available, but only when using
56130         the library is necessary.
56131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56132         comment, explaining why XSI check fails on Linux.
56133         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56134         * tests/test-c-stack2.sh: Tweak skip message.
56135         * NEWS: Document new link-time requirements.
56136
56137 2008-07-16  Eric Blake  <ebb9@byu.net>
56138
56139         c-stack: Expose false positives when not using libsigsegv.
56140         * modules/c-stack-tests (Files): Expand test.
56141         * tests/test-c-stack.c (main): Add means to conditionally trigger
56142         non-overflow SIGSEGV.
56143         * tests/test-c-stack2.sh: New file.
56144
56145 2008-07-14  Bruno Haible  <bruno@clisp.org>
56146
56147         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56148         Reported by Eric Blake.
56149
56150 2008-07-14  Sam Steingold  <sds@gnu.org>
56151             Bruno Haible  <bruno@clisp.org>
56152
56153         New module libsigsegv.
56154         * modules/libsigsegv: New file.
56155         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56156         modifications.
56157         * MODULES.html.sh (Signal handling): New section.
56158
56159 2008-07-14  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/unictype/ctype-* (Description): Add the word "function".
56162         Improves the resulting doc in MODULES.html.
56163
56164 2008-07-12  Ben Pfaff  <blp@gnu.org>
56165
56166         Add longlong module.
56167         * modules/longlong: New file.
56168
56169 2008-07-12  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56172         to empty.
56173
56174 2008-07-10  Ben Pfaff  <blp@gnu.org>
56175
56176         Add isnan module.
56177         * doc/posix-functions/isnan.texi: Mention new module.
56178         * lib/math.in.h: Define isnan macro if we have decided to replace
56179         it.
56180         * m4/isnan.m4: New file.
56181         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56182         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56183         also.
56184         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56185         redundancy.
56186         * m4/math_h.m4: Initialize and substitute variables for isnan
56187         module.
56188         * modules/isnan: New file.
56189         * modules/isnan-tests: New file.
56190         * modules/math: Add substitutions for new module.
56191         * tests/test-isnan.c: New file.
56192         * MODULES.html.sh: Mention new module.
56193
56194 2008-07-10  Ben Pfaff  <blp@gnu.org>
56195
56196         Add isnanf module.
56197         * lib/isnanf.m4: New file.
56198         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56199         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56200         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56201         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56202         * modules/isnanf: New file.
56203         * modules/isnanf-tests: New file.
56204         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56205         files.
56206         * tests/test-isnanf-nolibm.c: factored most of its contents into
56207         new file tests/test-isnanf.h.
56208         * tests/test-isnanf.h: New file.
56209         * tests/test-isnanf.c: New file.
56210         * MODULES.html.sh: Mention new module.
56211         * doc/glibc-functions/isnanf.texi: Mention new module.
56212
56213 2008-07-10  Ben Pfaff  <blp@gnu.org>
56214
56215         Add isnand module.
56216         * lib/isnand.h: New file.
56217         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56218         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56219         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56220         functionality also.
56221         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56222         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56223         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56224         * modules/isnand: New file.
56225         * modules/isnand-tests: New file.
56226         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56227         files.
56228         * tests/test-isnand-nolibm.c: factored most of its contents into
56229         new file tests/test-isnand.h.
56230         * tests/test-isnand.h: New file.
56231         * tests/test-isnand.c: New file.
56232         * MODULES.html.sh: Mention new module.
56233
56234 2008-07-10  Ben Pfaff  <blp@gnu.org>
56235
56236         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56237         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56238         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56239         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56240         * modules/isnanf-nolibm: Update references to renamed files.
56241         * modules/isnand-nolibm: Likewise.
56242         * modules/isnanf-nolibm-tests: Likewise.
56243         * modules/isnand-nolibm-tests: Likewise.
56244         * lib/frexp.c: Likewise.
56245         * lib/isfinite.c: Likewise.
56246         * lib/signbitd.c: Likewise.
56247         * lib/signbitf.c: Likewise.
56248         * lib/vasnprintf.c: Likewise.
56249         * tests/test-ceilf1.c: Likewise.
56250         * tests/test-ceilf2.c: Likewise.
56251         * tests/test-floorf1.c: Likewise.
56252         * tests/test-floorf2.c: Likewise.
56253         * tests/test-frexp.c: Likewise.
56254         * tests/test-round1.c: Likewise.
56255         * tests/test-round2.c: Likewise.
56256         * tests/test-roundf1.c: Likewise.
56257         * tests/test-strtod.c: Likewise.
56258         * tests/test-trunc1.c: Likewise.
56259         * tests/test-trunc2.c: Likewise.
56260         * tests/test-truncf1.c: Likewise.
56261         * tests/test-truncf2.c: Likewise.
56262         * NEWS: Mention the renamed header files.
56263
56264 2008-07-11  Jim Meyering  <meyering@redhat.com>
56265
56266         vc-list-files: make the last-resort awk code more portable
56267         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56268         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56269         does not support it.
56270
56271 2008-07-10  Eric Blake  <ebb9@byu.net>
56272
56273         Work with tar's bootstrap.
56274         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56275         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56276         an m4 comment.
56277
56278 2008-07-09  Jim Meyering  <meyering@redhat.com>
56279
56280         posix-shell.m4: fix typo that made this test malfunction
56281         * m4/posix-shell.m4: Remove capitalization in variable name.
56282
56283 2008-07-08  Bruno Haible  <bruno@clisp.org>
56284
56285         * m4/onceonly.m4: Update comments.
56286         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56287
56288 2008-07-04  Jim Meyering  <meyering@redhat.com>
56289
56290         * users.txt: Add vc-dwim.
56291         (bison, coreutils): Use the gitweb URL.
56292
56293 2008-07-03  Jim Meyering  <meyering@redhat.com>
56294
56295         * users.txt: Add libffcall.  From Sam Steingold.
56296
56297 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
56298
56299         getdate.y: do not ignore TZ with relative day, month or year offset
56300         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56301         relative-date-handling, since otherwise, the latter would clobber the
56302         sole output (an updated Start value) of the tz-handling block.
56303         * tests/test-getdate.c: Tests for the fix
56304
56305 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56306
56307         Recognize 'foo_LIBRARIES += libgnu.a'.
56308         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56309         makefile snippet has already specified an installation location,
56310         also using '+='.
56311
56312 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
56313
56314         getdate.y: factor out common actions
56315         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56316         Use them in place of open-coded actions.
56317
56318 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56319
56320         Add self-test for getdate module.
56321         * modules/getdate-tests: New file.
56322         * tests/test-getdate.c: New file.
56323
56324 2008-06-29  Bruno Haible  <bruno@clisp.org>
56325
56326         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56327         .gitignore.
56328         Reported by Sylvain Beucler <beuc@beuc.net>.
56329
56330 2008-06-29  Bruno Haible  <bruno@clisp.org>
56331
56332         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56333         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56334
56335 2008-06-29  Bruno Haible  <bruno@clisp.org>
56336
56337         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56338         EXTRA_DIST.
56339         Reported by Sylvain Beucler <beuc@beuc.net>.
56340
56341 2008-06-26  Jim Meyering  <meyering@redhat.com>
56342
56343         make several modules depend on the "open" module
56344         This provides slightly increased consistency when opening-for-write
56345         the name of a non-directory spelled with a trailing slash.
56346         * modules/chdir-safer: Likewise.
56347         * modules/chown: Likewise.
56348         * modules/clean-temp: Likewise.
56349         * modules/copy-file: Likewise.
56350         * modules/fchdir: Likewise.
56351         * modules/fcntl-safer: Likewise.
56352         * modules/pipe: Likewise.
56353         * modules/utime: Likewise.
56354         Prompted by Eric Blake and Bruno Haible.
56355
56356 2008-06-24  Andreas Schwab  <schwab@suse.de>
56357
56358         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56359         literals can be used as initializers for global variables.
56360
56361 2008-06-23  Eric Blake  <ebb9@byu.net>
56362
56363         Make gnulib-cache.m4 easier to diff.
56364         * gnulib-tool (func_import): Allow newlines when reading cached
56365         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56366
56367 2008-06-23  Bruno Haible  <bruno@clisp.org>
56368
56369         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56370         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56371         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56372         m4/signalblocking.m4.
56373         (gl_PREREQ_SIGACTION): Don't invoke it.
56374         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56375         gl_PREREQ_SIG_HANDLER_H.
56376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56377         Don't check for sigaction here.
56378
56379 2008-06-23  Bruno Haible  <bruno@clisp.org>
56380
56381         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56382         (install_handlers): Don't set the SA_RESETHAND flag.
56383
56384 2008-06-23  Bruno Haible  <bruno@clisp.org>
56385
56386         * m4/sigaction.m4: Comment fixes.
56387         * lib/signal.in.h: Likewise.
56388
56389 2008-06-23  Eric Blake  <ebb9@byu.net>
56390
56391         Fix typo.
56392         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56393
56394         Avoid SA_ namespace.
56395         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56396         Reported by Ralf Wildenhues.
56397
56398         Avoid test failure due to SA_RESTORER.
56399         * tests/test-sigaction.c (SA_MASK): New macro.
56400         (main): Avoid failing due to extension flags being set.
56401         Reported by Jim Meyering.
56402
56403         Revert use of sig-handler.h in sigprocmask.c.
56404         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56405         it requires the existence of struct sigaction.
56406         * lib/sigprocmask.c (handler_t): Restore typedef.
56407         (rpl_signal, old_handlers): Use local type.
56408
56409 2008-06-22  Bruno Haible  <bruno@clisp.org>
56410
56411         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56412         conditionally.
56413         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56414
56415 2008-06-22  Bruno Haible  <bruno@clisp.org>
56416
56417         * doc/posix-functions/siginterrupt.texi: Move note.
56418
56419         * lib/signal.in.h (SA_RESTART): New macro.
56420         * lib/sigaction.c: Update comment.
56421
56422         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56423
56424         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56425         (gl_PREREQ_SIGPROCMASK): Invoke it.
56426         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56427
56428         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56429
56430         * lib/sigprocmask.c: Update a comment.
56431
56432 2008-06-21  Eric Blake  <ebb9@byu.net>
56433
56434         Use sigaction module rather than signal().
56435         * modules/c-stack (Depends-on): Add sigaction.
56436         * modules/fatal-signal (Depends-on): Likewise.
56437         * modules/nanosleep (Depends-on): Likewise.
56438         * modules/sigprocmask (Files): Add sig-handler.h.
56439         * modules/sigaction (Files): Likewise.
56440         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56441         Eggert.
56442         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56443         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56444         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56445         (init_fatal_signals): Likewise.
56446         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56447         (siginterrupt): Delete fallback.
56448         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56449         instead.
56450         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56451         siginterrupt.
56452
56453         New module sigaction, for mingw.
56454         * modules/sigaction: New module...
56455         * modules/sigaction-tests: ...and its test.
56456         * m4/sigaction.m4: New file.
56457         * lib/sigaction.c: Likewise.
56458         * tests/test-sigaction.c: Likewise.
56459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56460         * modules/signal (Makefile.am): Likewise.
56461         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56462         needed.
56463         * doc/posix-headers/signal.texi (signal.h): Mention provided
56464         types.
56465         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56466         that sigaction is preferable.
56467         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56468         module.
56469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56470         sigaction.
56471
56472         Improve robustness of sigprocmask by overriding signal.
56473         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56474         is in use.
56475         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56476         (SIGKILL, SIGSTOP): Provide fallbacks.
56477         (rpl_signal): Implement.
56478         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56479         signal can be called inside handlers.
56480
56481         Fix nanosleep module on mingw.
56482         * modules/nanosleep (Depends-on): Add sys_select.
56483         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56484
56485         Fix licensing of sigprocmask.
56486         * modules/raise (License): Relicense as LGPL.
56487
56488 2008-06-21  Bruno Haible  <bruno@clisp.org>
56489
56490         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56491         result if it contains question marks.
56492         Reported by Michael Geng <linux@michaelgeng.de>.
56493
56494 2008-06-19  Bruno Haible  <bruno@clisp.org>
56495
56496         Fix CVS-ism.
56497         * doc/gnulib.texi: Include updated-stamp.texi.
56498         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56499         (updated-stamp.texi): New rule.
56500         (gnulib.info): Depend on it.
56501         * doc/.gitignore: Add updated-stamp.texi.
56502         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56503
56504 2008-06-19  Bruno Haible  <bruno@clisp.org>
56505
56506         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56507         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56508
56509 2008-06-19  Eric Blake  <ebb9@byu.net>
56510
56511         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56512         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56513         Reported by Stepan Kasal.
56514
56515 2008-06-18  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56518         Reported by Eric Blake.
56519
56520 2008-06-18  Eric Blake  <ebb9@byu.net>
56521
56522         Work around cygwin 1.5.25 strsignal bug.
56523         * tests/test-strsignal.c: Allow for const char *.
56524         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56525
56526 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56527
56528         * users.txt: Update URL to article and add author/date
56529         information.
56530
56531 2008-06-17  Bruno Haible  <bruno@clisp.org>
56532
56533         New macro gl_DISABLE_THREADS.
56534         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56535         if the user did not pass --enable-threads or --disable-threads option.
56536         (gl_DISABLE_THREADS): New macro.
56537         Reported by Eric Blake <ebb9@byu.net>.
56538
56539 2008-06-17  Bruno Haible  <bruno@clisp.org>
56540
56541         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56542         when the macro ignores it.
56543         Based on a patch by Eric Blake <ebb9@byu.net>.
56544
56545 2008-06-17  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/tls (License): Change to LGPLv2+.
56548         Reported by Eric Blake.
56549
56550 2008-06-17  Eric Blake  <ebb9@byu.net>
56551
56552         Simplify c-stack prerequisites.
56553         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56555         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56556         check.
56557         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56558         <sys/resource.h>.
56559
56560         Move c-stack test into testsuite.
56561         * modules/c-stack-tests: New file.
56562         * lib/c-stack.c [DEBUG]: Move test program...
56563         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56564         fail test if sigaltstack is lacking.
56565         * tests/test-c-stack.sh: New driver file.
56566
56567 2008-06-16  Eric Blake  <ebb9@byu.net>
56568
56569         Use raise module consistently.
56570         * modules/fatal-signal (Depends-on): Add raise.
56571         * modules/sigprocmask (Depends-on): Likewise.
56572         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56573         * lib/sigprocmask.c (sigprocmask): Likewise.
56574         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56575         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56576
56577         Fix compliance bug in sigpending.
56578         * lib/sigprocmask.c (sigpending): Return pending array via
56579         parameter, not return value.
56580
56581 2008-06-14  Eric Blake  <ebb9@byu.net>
56582
56583         Improve obstack-printf test code.
56584         * tests/test-obstack-printf.c (test_function): Fix comment, and
56585         simplify usage of obstack_* in macros.  Add a test for coverage.
56586         Reported by Bruno Haible.
56587
56588 2008-06-14  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56591         array size as a constant, not as a const variable.
56592         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56593         AC_USE_SYSTEM_EXTENSIONS.
56594         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56595         Test whether the obstack_printf function actually exists.
56596         * modules/obstack-printf (Depends-on): Add extensions.
56597         (Include): Remove obstack.h.
56598         * modules/obstack-printf-posix (Depends-on): Add extensions.
56599         (Include): Remove obstack.h.
56600
56601 2008-06-13  Eric Blake  <ebb9@byu.net>
56602
56603         Add obstack-printf and obstack-printf-posix modules.
56604         * modules/obstack-printf: New file.
56605         * modules/obstack-printf-posix: Likewise.
56606         * MODULES.html.sh (Misc): Mention them.
56607         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56608         Likewise.
56609         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56610         Likewise.
56611         * modules/stdio (Makefile.am): Accomodate new modules.
56612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56613         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56614         Declare.
56615         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56616         functions.
56617         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56618         (gl_REPLACE_OBSTACK_PRINTF): New macros
56619         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56620         * tests/test-obstack-printf.c: New file.
56621         * modules/obstack-printf-tests: Likewise.
56622         * modules/obstack-printf-posix-tests: Likewise.
56623
56624 2008-06-11  Bruno Haible  <bruno@clisp.org>
56625
56626         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56627         * lib/open.c: Include errno.h.
56628         (open): Fail when attempting to write to a file that has a trailing
56629         slash.
56630         * tests/test-open.c (main): Test against trailing slash bug.
56631         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56632
56633 2008-06-10  Bruno Haible  <bruno@clisp.org>
56634
56635         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56636         for $? to work inside the trap command, with various /bin/sh-s.
56637         * tests/test-vc-list-files-cvs.sh: Likewise.
56638
56639 2008-06-10  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/acl-internal.h: Don't include gettext.h here.
56642         * lib/set-mode-acl.c: Include gettext.h here.
56643         * lib/copy-acl.c: Likewise.
56644
56645 2008-06-10  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56648         * lib/wait-process.c (wait_subprocess): Likewise.
56649         * lib/execute.h (execute): Add termsigp argument.
56650         * lib/execute.c (execute): Likewise.
56651         * lib/csharpcomp.c (compile_csharp_using_pnet,
56652         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56653         * lib/csharpexec.c (execute_csharp_using_pnet,
56654         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56655         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56656         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56657         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56658         is_jikes_present): Update.
56659         * lib/javaexec.c (execute_java_class): Update.
56660         * lib/javaversion.c (execute_and_read_line): Update.
56661         * NEWS: Document the changes.
56662         Reported by Eric Blake.
56663
56664 2008-06-10  Eric Blake  <ebb9@byu.net>
56665
56666         Add missing include.
56667         * tests/test-strstr.c (includes): Add <signal.h>.
56668         * tests/test-strcasestr.c (includes): Likewise.
56669         * tests/test-memmem.c (includes): Likewise.
56670
56671 2008-06-10  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/wait-process.c (wait_subprocess): Add an assertion.
56674
56675 2008-06-10  Bruno Haible  <bruno@clisp.org>
56676
56677         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56678
56679 2008-06-10  Bruno Haible  <bruno@clisp.org>
56680
56681         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56682         using alarm().
56683         * tests/test-strcasestr.c (main): Likewise.
56684         * tests/test-strstr.c (main): Likewise.
56685
56686 2008-06-09  Bruno Haible  <bruno@clisp.org>
56687
56688         Work around the Solaris 10 ACE ACLs ABI change.
56689         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56690         declare if ACL_NO_TRIVIAL is present.
56691         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56692         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56693         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56694         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56695         define if ACL_NO_TRIVIAL is present.
56696         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56697         and use the current ABI.
56698         (file_has_acl): Use same #if condition as elsewhere.
56699         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56700         in use, and use the current ABI.
56701         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56702         Reported by Jim Meyering.
56703
56704 2008-06-09  Eric Blake  <ebb9@byu.net>
56705
56706         Work around environments that (stupidly) ignore SIGALRM.
56707         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56708         before using alarm().
56709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56711         Reported by Ian Beckwith <ianb@erislabs.net>.
56712
56713         Produce autobuild blurb earlier in log.
56714         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56715
56716 2008-06-09  Jim Meyering  <meyering@redhat.com>
56717         and Ondřej Vašík  <ovasik@redhat.com>
56718
56719         utimens.c: correct kernel bug work-around
56720         Ondřej Vašík found that the invalid return value of 280 indicates
56721         failure, not success, and the kernel bug we're trying to work
56722         around affects not just the utimensat call, but also the fallback
56723         futimens call.
56724         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56725         not success.
56726         [HAVE_FUTIMENS]: Use the same work-around, here.
56727
56728 2008-06-09  Jim Meyering  <meyering@redhat.com>
56729
56730         add more guards around definition of ACE_-related code
56731         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56732         ALLOW and ACE_OWNER are also defined.
56733
56734 2008-06-08  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/acl-internal.h: Add me as co-author.
56737         * lib/file-has-acl.c: Likewise.
56738         * lib/set-mode-acl.c: Likewise.
56739         * lib/copy-acl.c: Likewise.
56740
56741 2008-06-08  Bruno Haible  <bruno@clisp.org>
56742
56743         Add support for AIX ACLs.
56744         * lib/acl-internal.h (acl_nontrivial): New declaration.
56745         * lib/file-has-acl.c (acl_nontrivial): New function.
56746         (file_has_acl): Add implementation using AIX 4 ACL API.
56747         * lib/set-mode-acl.c (qset_acl): Likewise.
56748         * lib/copy-acl.c (qcopy_acl): Likewise.
56749
56750 2008-06-08  Bruno Haible  <bruno@clisp.org>
56751
56752         Add support for HP-UX ACLs.
56753         * lib/acl-internal.h (acl_nontrivial): New declaration.
56754         * lib/file-has-acl.c (acl_nontrivial): New function.
56755         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56756         * lib/set-mode-acl.c (qset_acl): Likewise.
56757         * lib/copy-acl.c (qcopy_acl): Likewise.
56758
56759 2008-06-08  Bruno Haible  <bruno@clisp.org>
56760
56761         Add support for Cygwin ACLs.
56762         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56763         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56764         the chmod_or_fchmod call.
56765         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56766
56767 2008-06-08  Bruno Haible  <bruno@clisp.org>
56768
56769         Fix bug with setuid modes in Solaris 10+ code.
56770         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56771         succeeded, when the mode contains some special bits.
56772
56773 2008-06-08  Bruno Haible  <bruno@clisp.org>
56774
56775         Add support for Solaris 7..10 ACLs.
56776         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56777         declarations.
56778         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56779         functions.
56780         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56781         * lib/set-mode-acl.c (qset_acl): Likewise.
56782         * lib/copy-acl.c (qcopy_acl): Likewise.
56783
56784 2008-06-08  Bruno Haible  <bruno@clisp.org>
56785
56786         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56787         declaration.
56788         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56789         (acl_access_nontrivial): Remove MacOS X case.
56790         (file_has_acl): Use acl_extended_nontrivial.
56791         * lib/copy-acl.c (qcopy_acl): Likewise.
56792
56793 2008-06-08  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56796
56797 2008-06-08  Jim Meyering  <meyering@redhat.com>
56798
56799         * modules/acl (Maintainer): Add Bruno Haible.
56800
56801 2008-06-07  Bruno Haible  <bruno@clisp.org>
56802
56803         Improve support for Tru64 ACLs.
56804         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56805         ACL on OSF/1.
56806
56807 2008-06-07  Bruno Haible  <bruno@clisp.org>
56808
56809         Add support for MacOS X ACLs.
56810         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56811         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56812         * lib/set-mode-acl.c (qset_acl): Likewise.
56813         * lib/copy-acl.c (qcopy_acl): Likewise.
56814
56815 2008-06-07  Bruno Haible  <bruno@clisp.org>
56816
56817         Fix memory leak introduced on 2008-05-22.
56818         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56819         use.
56820
56821 2008-06-07  Bruno Haible  <bruno@clisp.org>
56822
56823         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56824         to construct an empty ACL.
56825
56826 2008-06-07  Bruno Haible  <bruno@clisp.org>
56827
56828         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56829         precisely.
56830         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56831
56832 2008-06-07  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56835         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56836
56837 2008-06-07  Bruno Haible  <bruno@clisp.org>
56838
56839         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56840         regardless of POSIX.
56841         * doc/posix-functions/_longjmp.texi: Likewise.
56842         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56843         SystemV platform in this case.
56844
56845 2008-06-06  Eric Blake  <ebb9@byu.net>
56846
56847         Document abort() bugs.
56848         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56849
56850         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56851         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56852         sigsetjmp.
56853         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56854         siglongjmp, but only as a macro.
56855         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56856         is obsolete.
56857         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56858
56859         Tweak documentation to cover cygwin argz bugs.
56860         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56861         argz bug fix; no code change needed since no cygwin releases
56862         occurred between the last fix and the bug being tested.
56863         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56864         module and recently fixed cygwin bugs.
56865         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56866         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56867         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56868         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56869         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56870         Likewise.
56871         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56872         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56873         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56874         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56875         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56876         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56877         Likewise.
56878
56879         Avoid gcc warning on cygwin.
56880         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56881         !ACL_NO_TRIVIAL]: Avoid unused variable.
56882
56883 2008-06-05  Eric Blake  <ebb9@byu.net>
56884
56885         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56886         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56887         git-version-gen fails to come up with a version.
56888         Reported by Simon Josefsson.
56889
56890 2008-06-05  Jim Meyering  <meyering@redhat.com>
56891             Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         utimens.c: work around a probable Linux kernel bug
56894         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56895         appears to be a kernel bug that causes utimensat to return 280
56896         instead of 0, indicating success.
56897
56898 2008-06-04  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56901         2008-06-01 commit.
56902
56903 2008-06-04  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56906         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56907         (file_has_acl): Use it. Save errno afterwards.
56908         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56909
56910 2008-06-03  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56913         draft code. Simplify #ifs.
56914         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56915         Put Solaris code after POSIX-draft code. Fix comments regarding
56916         Solaris 10, HP-UX. Mention Cygwin.
56917         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56918
56919 2008-06-03  Eric Blake  <ebb9@byu.net>
56920
56921         Provide fallback for older kernels.
56922         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56923         Provide runtime fallback if kernel lacks support.
56924         Reported by Mike Frysinger.
56925
56926 2008-06-02  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56929         it exists.
56930
56931 2008-06-02  Bruno Haible  <bruno@clisp.org>
56932
56933         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56934         * lib/copy-acl.c (qcopy_acl): Update comment.
56935
56936 2008-06-02  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56939         like ACL APIs.
56940
56941 2008-06-02  Bruno Haible  <bruno@clisp.org>
56942
56943         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56944         * tests/test-set-mode-acl.sh: Likewise.
56945         * tests/test-copy-acl.sh: Likewise.
56946         * tests/test-copy-file.sh: Likewise.
56947
56948 2008-06-02  Bruno Haible  <bruno@clisp.org>
56949
56950         * tests/test-file-has-acl.sh: Remove unused code.
56951
56952 2008-06-01  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56955         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56956         messages.
56957         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56958
56959 2008-06-01  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56962         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56963         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56964         APIs.
56965         * modules/acl-tests (configure.ac): Remove tests now contained in
56966         m4/acl.m4.
56967
56968 2008-06-02  Jim Meyering  <meyering@redhat.com>
56969
56970         announce-gen: use a better key-server host name
56971         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56972         it may be more consistently reliable.  Suggested by Werner Koch
56973         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56974
56975 2008-06-01  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56978         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56979
56980 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56981
56982         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56983
56984 2008-06-01  Bruno Haible  <bruno@clisp.org>
56985
56986         New ACL tests.
56987         * tests/test-file-has-acl.sh: New file.
56988         * tests/test-file-has-acl.c: New file.
56989         * tests/test-set-mode-acl.sh: New file.
56990         * tests/test-set-mode-acl.c: New file.
56991         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56992         * tests/test-copy-acl.c: New file.
56993         * modules/acl-tests: New file, based on modules/copy-file-tests.
56994         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56995         (Depends-on): Add acl-tests.
56996         (configure.ac): Remove checks.
56997         (Makefile.am): Don't create test-sameacls program here any more.
56998
56999 2008-06-01  Bruno Haible  <bruno@clisp.org>
57000
57001         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57002         * tests/test-sameacls.c: Include progname.h.
57003         (main): Invoke set_program_name. Portability fixes for MacOS X,
57004         Solaris, HP-UX.
57005
57006 2008-06-01  Bruno Haible  <bruno@clisp.org>
57007
57008         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57009         function.
57010         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57011
57012 2008-06-01  Bruno Haible  <bruno@clisp.org>
57013
57014         * modules/rpmatch (Depends-on): Add strdup.
57015
57016 2008-06-01  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/pipe.c: Include unistd-safer.h.
57019         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57020         * modules/pipe (Depends-on): Add unistd-safer.
57021
57022 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57023
57024         * modules/autobuild (configure.ac): Call AB_INIT.
57025
57026 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57027
57028         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57029         Suggested by Bruno Haible <bruno@clisp.org>.
57030
57031 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57032
57033         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57034         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57035         <bruno@clisp.org>.
57036
57037 2008-05-29  Eric Blake  <ebb9@byu.net>
57038
57039         Prefer new POSIX 200x interfaces over futimesat.
57040         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57041         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57042         when available.
57043         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57044
57045 2008-05-28  Bruno Haible  <bruno@clisp.org>
57046
57047         * modules/stpcpy (License): Change to LGPLv2+.
57048         Requested by David Lutterkort <dlutter@redhat.com>.
57049
57050 2008-05-27  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57053         current mingw.
57054         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57055
57056 2008-05-27  Bruno Haible  <bruno@clisp.org>
57057
57058         * modules/iconv_open (Link): New section, from module 'iconv'.
57059         * modules/striconv (Link): Likewise.
57060         * modules/striconveh (Link): Likewise.
57061         * modules/xstriconv (Link): Likewise.
57062         * modules/unicodeio (Link): Likewise.
57063         * modules/propername (Link): Likewise.
57064         Reported by Jim Meyering.
57065
57066 2008-05-26  Jim Meyering  <meyering@redhat.com>
57067
57068         sha256: do not artificially restrict buffer length to be < 2^32
57069         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57070         uint32_t to size_t.
57071         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57072         to match.
57073
57074         avoid unaligned access errors, e.g., on sparc
57075         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57076         direct access through a possibly-unaligned uint64* pointer.
57077         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57078         direct access through a possibly-unaligned uint32* pointer.
57079         Prompted by this patch from Tom "spot" Callaway:
57080         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57081
57082         sha512.c: fix typo in comment
57083         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57084
57085 2008-05-25  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57088         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57089         (Makefile.am): Update lib_SOURCES.
57090
57091 2008-05-25  Bruno Haible  <bruno@clisp.org>
57092
57093         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57094
57095 2008-05-25  Jim Meyering  <meyering@redhat.com>
57096
57097         useless-if-before-free: freed expr may have white-space differences
57098         * build-aux/useless-if-before-free: Recognize cases in which the
57099         freed expression differs from the tested one in embedded white
57100         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57101         $1 was used, so we can't make any regexp shy.  Improved tests now
57102         detect this.
57103
57104         useless-if-before-free: accept white space in the expression.
57105         * build-aux/useless-if-before-free: For now, any white space
57106         in the expression must be identical in the free argument.
57107
57108         useless-if-before-free: efficiency tweak
57109         * build-aux/useless-if-before-free: Make the expression-matching
57110         regexp "shy".
57111         Make the *outer* regexp shy, not the expr-matching one.
57112
57113         update code-in-comment to accept cast of free arg
57114         * build-aux/useless-if-before-free: Update regexp.
57115
57116 2008-05-25  Bruno Haible  <bruno@clisp.org>
57117
57118         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57119         * modules/copy-file-tests (Files, Makefile.am): Update.
57120         * tests/test-copy-file.c (func_test_copy): Update.
57121
57122 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57123
57124         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57125
57126 2008-05-23  Bruno Haible  <bruno@clisp.org>
57127
57128         Improve support for ACLs on OSF/1.
57129         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57130         Remove fallback for unknown flavors of ACLs.
57131
57132 2008-05-22  Bruno Haible  <bruno@clisp.org>
57133
57134         Add support for ACLs on OSF/1.
57135         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57136         replacements.
57137         (acl_free_text): New macro fallback.
57138         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57139         acl_free.
57140         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57141         acl_free_text function. Require AC_C_INLINE.
57142
57143 2008-05-22  Bruno Haible  <bruno@clisp.org>
57144
57145         Make copy_acl work on MacOS X 10.5.
57146         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57147         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57148         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57149         If MODE_INSIDE_ACL, don't assume that every system has the same text
57150         representation for ACLs as FreeBSD.
57151         * lib/copy-acl.c (copy_acl): Add support for platforms with
57152         !MODE_INSIDE_ACL.
57153         * lib/file-has-acl.c (file_has_acl): Likewise.
57154         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57155         FreeBSD, MacOS X, or IRIX, respectively.
57156
57157 2008-05-22  Bruno Haible  <bruno@clisp.org>
57158
57159         * lib/acl.h: Don't include <sys/acl.h>.
57160         (GETACLCNT): Move fallback to lib/acl-internal.h.
57161         * lib/acl-internal.h: Include <sys/acl.h> here.
57162         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57163
57164 2008-05-22  Bruno Haible  <bruno@clisp.org>
57165
57166         Split off copy_acl function to separate file.
57167         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57168         * lib/acl.c (copy_acl): Moved function to separate file.
57169         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57170         * modules/acl (Files): Add lib/copy-acl.c.
57171         (Makefiles.am): Augment lib_SOURCES.
57172
57173 2008-05-22  Bruno Haible  <bruno@clisp.org>
57174
57175         * modules/copy-file-tests: New file.
57176         * tests/test-copy-file.sh: New file.
57177         * tests/test-copy-file.c: New file.
57178         * tests/test-copy-file-sameacls.c: New file.
57179
57180 2008-05-22  Eric Blake  <ebb9@byu.net>
57181
57182         Avoid gcc warning.
57183         * tests/test-memcmp.c (main): Pass NULL indirectly.
57184
57185 2008-05-21  Bruno Haible  <bruno@clisp.org>
57186
57187         Add reference doc about ACLs.
57188         * doc/acl-resources.txt: New file.
57189         * doc/acl-cygwin.txt: New file.
57190
57191 2008-05-21  Bruno Haible  <bruno@clisp.org>
57192
57193         Avoid one more warning from gcc.
57194         * lib/vasnprintf.c (IF_LINT): Update comments.
57195         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57196
57197 2008-05-21  Jim Meyering  <meyering@redhat.com>
57198
57199         avoid a warning from gcc
57200         * lib/vasnprintf.c (IF_LINT): Define.
57201         (scale10_round_decimal_long_double):
57202         Use it to avoid a "may be used uninitialized" warning.
57203         (scale10_round_decimal_double): Likewise.
57204
57205 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57206
57207         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57208         declared.
57209
57210 2008-05-20  Bruno Haible  <bruno@clisp.org>
57211
57212         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57213         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57214
57215 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57216
57217         * modules/memcmp-tests: New file.
57218         * tests/test-memcmp.c: New file.
57219
57220 2008-05-19  Bruno Haible  <bruno@clisp.org>
57221
57222         * modules/propername (Notice, configure.ac): Put quoted "..." into
57223         --keyword option.
57224         * lib/propername.h: Update comments accordingly.
57225         Reported by Eric Blake.
57226
57227 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57228
57229         * modules/getpass-gnu (Depends-on): Add fseeko.
57230
57231 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57232
57233         * modules/base64-tests: New file.
57234
57235 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57236
57237         * lib/base64.c (base64_decode_ctx): If a decode context structure
57238         was passed in use it to ignore newlines.  If a context structure
57239         was _not_ passed in, continue to treat newlines as garbage (this
57240         is the historical behavior).  Formerly base64_decode.
57241         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57242         takes a decode context structure.
57243         * lib/base64.h (base64_decode): Macro for four-argument calls.
57244         (base64_decode_alloc): Likewise.
57245         * lib/base64.c (base64_decode_ctx): If a decode context structure
57246         was passed in use it to ignore newlines.  If a context structure
57247         was _not_ passed in, continue to treat newlines as garbage (this
57248         is the historical behavior).  Formerly base64_decode.
57249         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57250         takes a decode context structure.
57251         * lib/base64.h (base64_decode): Macro for four-argument calls.
57252         (base64_decode_alloc): Likewise.
57253
57254 2008-05-19  Jim Meyering  <meyering@redhat.com>
57255
57256         avoid a warning from gcc
57257         * lib/trim.c (IF_LINT): Define.
57258         (trim2): Use it to avoid a "may be used uninitialized" warning.
57259
57260         Fix doc typo.
57261         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57262
57263 2008-05-19  Bruno Haible  <bruno@clisp.org>
57264
57265         * doc/glibc-functions/getpass.texi: Document limits of other
57266         implementations.
57267
57268 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57269             Bruno Haible <bruno@clisp.org>
57270
57271         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57272
57273 2008-05-18  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/propername: New file, from GNU gettext.
57276         * lib/propername.h: New file, from GNU gettext.
57277         * lib/propername.c: New file, from GNU gettext.
57278         * MODULES.html.sh (Internationalization functions): Add propername.
57279
57280 2008-05-16  Jim Meyering  <meyering@redhat.com>
57281             Bruno Haible  <bruno@clisp.org>
57282
57283         Avoid some warnings from "gcc -Wshadow".
57284         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57285
57286 2008-05-15  Eric Blake  <ebb9@byu.net>
57287
57288         Extend previous patch to cygwin 1.7.0.
57289         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57290         fast implementation in cygwin >= 1.7.0.
57291         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57293
57294 2008-05-15  Bruno Haible  <bruno@clisp.org>
57295
57296         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57297         implementation in glibc >= 2.9.
57298         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57300
57301 2008-05-15  Bruno Haible  <bruno@clisp.org>
57302
57303         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57304         (Unicode string functions): Add unilbrk/*.
57305         Reported by Karl Berry.
57306
57307 2008-05-15  Eric Blake  <ebb9@byu.net>
57308
57309         Fix violation of <stdbool.h> replacement in regex.
57310         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57311         * lib/regexec.c (re_search_internal): Likewise.
57312         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57313
57314 2008-05-15  Jim Meyering  <meyering@redhat.com>
57315
57316         avoid distracting test output when git or cvs is not found
57317         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57318         * tests/test-vc-list-files-git.sh: Likewise.
57319
57320 2008-05-15  Eric Blake  <ebb9@byu.net>
57321
57322         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57323         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57324         glibc version.
57325         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57326         * doc/posix-functions/strstr.texi (strstr): Likewise.
57327         * lib/str-two-way.h (MAX): Sychronize with glibc.
57328
57329 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57330
57331         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57332         opr.ctx_type.
57333         (calc_first): Initialize constraint field.
57334         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57335         Fix grammar.
57336         (duplicate_node): Merge constraint field for all node types.
57337         (calc_eclosure_iter): Look at constraint field for all node types.
57338         * lib/regex_internal.c (create_cd_newstate): Don't look at
57339         opr.ctx_type.
57340
57341 2008-05-14  Bruno Haible  <bruno@clisp.org>
57342
57343         Help GCC to do better code generation.
57344         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57345         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57346         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57347         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57348         Declare with attribute 'malloc' if supported.
57349
57350 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57351
57352         use "echo STR|wc -c" rather than unportable "expr length STR"
57353         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57354         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57355
57356 2008-05-14  Jim Meyering  <meyering@redhat.com>
57357
57358         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57359         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57360         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57361         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57362         via Collin Lasse.
57363
57364 2008-05-14  Eric Blake  <ebb9@byu.net>
57365
57366         Avoid quadratic growth in gl_LIBSOURCES.
57367         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57368         Suggested by Bruno Haible.
57369
57370         Test xmemdup0.
57371         * modules/xmemdup0-tests: New file.
57372         * tests/test-xmemdup0.c: Likewise.
57373
57374 2008-05-13  Eric Blake  <ebb9@byu.net>
57375
57376         Split xmemdup0 into its own module.
57377         * modules/xmemdup0: New file.
57378         * lib/xmemdup0.h: Likewise.
57379         * lib/xmemdup0.c: Likewise.
57380         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57381         * lib/xalloc.h (xmemdup0): Remove.
57382         * lib/xmalloc.c (xmemdup0): Likewise.
57383
57384 2008-05-13  Eric Blake  <ebb9@byu.net>
57385             Bruno Haible  <bruno@clisp.org>
57386
57387         Reduce number of forks required during autoconf.
57388         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57389         and gl_LIBSOURCES_DIR.
57390         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57391         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57392         m4_syscmd per file.
57393         <m4_foreach_w>: Move...
57394         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57395
57396 2008-05-13  Eric Blake  <ebb9@byu.net>
57397
57398         * gnulib-tool: Fix various comment typos.
57399
57400 2008-05-12  Bruno Haible  <bruno@clisp.org>
57401
57402         Tailor the linebreaking algorithm.
57403         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57404
57405 2008-05-12  Bruno Haible  <bruno@clisp.org>
57406
57407         Update to Unicode 5.0.0.
57408         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57409         LBP_JV, LBP_JT. Redistribute values.
57410         (unilbrk_table): Change size.
57411         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57412         Unicode TR#14 rev. 22.
57413         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57414         LBP_JV, LBP_JT. Redistribute values.
57415         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57416         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57417         Update.
57418         * lib/unilbrk/lbrkprop1.h: Regenerated.
57419         * lib/unilbrk/lbrkprop2.h: Regenerated.
57420         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57421         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57422         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57423         Likewise.
57424         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57425         Likewise.
57426         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57427         result.
57428         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57429         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57430         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57431         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57432         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57433         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57434
57435 2008-05-11  Bruno Haible  <bruno@clisp.org>
57436
57437         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57438
57439 2008-05-11  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57442         * modules/unilbrk/gen-lbrk: New file.
57443
57444 2008-05-11  Bruno Haible  <bruno@clisp.org>
57445
57446         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57447         * m4/sha512.m4 (gl_SHA512): Likewise.
57448
57449 2008-05-11  Jim Meyering  <meyering@redhat.com>
57450
57451         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57452         * modules/crypto/sha256: New file.
57453         * modules/crypto/sha512: Likewise.
57454         * lib/sha256.c: Likewise.
57455         * lib/sha256.h: Likewise.
57456         * lib/sha512.c: Likewise.
57457         * lib/sha512.h: Likewise.
57458         * lib/u64.h: Likewise.
57459         * m4/sha256.m4: Likewise.
57460         * m4/sha512.m4: Likewise.
57461         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57462
57463 2008-05-10  Bruno Haible  <bruno@clisp.org>
57464
57465         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57466         (Input/Output <stdio.h>): Add xprintf.
57467         (Signal handling <signal.h>): Add strsignal.
57468         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57469         (Core language properties): Add func.
57470         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57471         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57472         strings.
57473         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57474         (Input/output): New section.
57475         (File system functions): Add openat-die, stat-macros.
57476         (Networking functions): Add sockets.
57477         (Unicode string functions): Add unictype/*.
57478         (Support for building libraries and executables): Add gperf.
57479         (Support for building documentation): Add agpl-3.0.
57480         (Misc): Add nocrash.
57481
57482 2008-05-10  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/unictype/gen-ctype: New file.
57485
57486 2008-05-10  Jim Meyering  <meyering@redhat.com>
57487
57488         Make chdir-safer.c more efficient on a system with no symlinks.
57489         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57490         also if ELOOP is zero.  Suggested by Bruno Haible.
57491
57492         Make chdir-safer.c slightly safer.
57493         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57494         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57495
57496         Avoid compile failure on systems without ELOOP (like mingw).
57497         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57498         Reported by Bruno Haible.
57499
57500 2008-05-10  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57503         (is_utf8_encoding): Use a case-insensitive comparison.
57504         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57505         streq.
57506
57507 2008-05-10  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57510         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57511         * lib/unilbrk/ulc-common.h (iconv_string_length,
57512         iconv_string_keeping_offsets): Remove declarations.
57513         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57514         Don't include <iconv.h>, streq.h, xsize.h.
57515         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57516         conversion.
57517         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57518         <iconv.h>, streq.h, xsize.h.
57519         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57520         conversion.
57521         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57522         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57523         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57524         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57525
57526 2008-05-10  Bruno Haible  <bruno@clisp.org>
57527
57528         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57529         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57530
57531         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57532         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57533
57534         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57535         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57536
57537         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57538         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57539
57540         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57541         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57542
57543         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57544         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57545
57546         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57547         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57548
57549         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57550         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57551
57552 2008-05-10  Bruno Haible  <bruno@clisp.org>
57553
57554         Split up 'linebreak' module.
57555         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57556         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57557         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57558         modifications.
57559         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57560         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57561         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57562         lib/linebreak.c.
57563         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57564         lib/linebreak.c.
57565         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57566         lib/linebreak.c.
57567         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57568         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57569         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57570         lib/linebreak.c.
57571         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57572         lib/linebreak.c.
57573         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57574         lib/linebreak.c.
57575         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57576         lib/linebreak.c.
57577         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57578         lib/linebreak.c.
57579         * modules/unilbrk/base: New file.
57580         * modules/unilbrk/tables: New file.
57581         * modules/unilbrk/u8-possible-linebreaks: New file.
57582         * modules/unilbrk/u16-possible-linebreaks: New file.
57583         * modules/unilbrk/u32-possible-linebreaks: New file.
57584         * modules/unilbrk/ulc-common: New file.
57585         * modules/unilbrk/ulc-possible-linebreaks: New file.
57586         * modules/unilbrk/u8-width-linebreaks: New file.
57587         * modules/unilbrk/u16-width-linebreaks: New file.
57588         * modules/unilbrk/u32-width-linebreaks: New file.
57589         * modules/unilbrk/ulc-width-linebreaks: New file.
57590         * lib/linebreak.h: Remove file.
57591         * lib/linebreak.c: Remove file.
57592         * m4/linebreak.m4: Remove file.
57593         * modules/linebreak: Remove file.
57594         * NEWS: Mention the changes.
57595
57596 2008-05-09  Eric Blake  <ebb9@byu.net>
57597
57598         Add xmemdup0.
57599         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57600         implementation.
57601         * lib/xmalloc.c (xmemdup0): New C implementation.
57602
57603 2008-05-08  Bruno Haible  <bruno@clisp.org>
57604
57605         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57606
57607 2008-05-07  Eric Blake  <ebb9@byu.net>
57608
57609         Support cross-compilation of <wctype.h>.
57610         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57611         AC_CACHE_CHECK.
57612
57613 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57614
57615         * build-aux/vc-list-files: Add support for bzr.
57616
57617 2008-05-03  Jim Meyering  <meyering@redhat.com>
57618
57619         avoid failed assertion with tight malloc
57620         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57621
57622 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57623
57624         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57625         are needed from arpa/inet.h.
57626         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57627         Reported by Bruno Haible.
57628
57629 2008-05-02  Jim Meyering  <meyering@redhat.com>
57630
57631         avoid compilation error on FreeBSD 6
57632         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57633
57634 2008-05-01  Jim Meyering  <meyering@redhat.com>
57635
57636         useless-if-before-free: correct --help's exit status description
57637         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57638         for one or more matches, etc.  Reported by Bruno Haible.
57639
57640         vc-list-files: make the stand-alone gnulib test work
57641         * modules/vc-list-files-tests (configure.ac):
57642         Define and AC_SUBST abs_aux_dir.
57643         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57644         $(abs_top_srcdir) to each script and having each of them
57645         duplicate the work of setting PATH, set PATH here, using
57646         the new variable, abs_aux_dir instead.
57647         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57648         * tests/test-vc-list-files-git.sh: Likewise.
57649         Reported by Bruno Haible.
57650
57651 2008-05-01  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57654         reallocation. Rename 'done' to 'found_delimiter'.
57655
57656 2008-05-01  Jim Meyering  <meyering@redhat.com>
57657
57658         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57659         * build-aux/vc-list-files: Use `...`, not $(...).
57660
57661 2008-04-30  Jim Meyering  <meyering@redhat.com>
57662
57663         add tests for vc-list-files
57664         * modules/vc-list-files-tests: New module.
57665         * tests/test-vc-list-files-cvs.sh: New file.
57666         * tests/test-vc-list-files-git.sh: New file.
57667
57668         avoid a warning from gcc
57669         * lib/getndelim2.c (IF_LINT): Define.
57670         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57671
57672         vc-list-files: work properly with build-aux/cvsu, too
57673         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57674         to all cvs-based clauses.
57675
57676         vc-list-files: work properly in the CVS+awk case, too
57677         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57678
57679         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57680         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57681         take more than one file argument, so .  Add quotes, just in case $dir
57682         ever contains a shell meta-character.  Prompted by Soren Hansen in
57683         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57684
57685 2008-04-29  Eric Blake  <ebb9@byu.net>
57686
57687         Optimize getndelim2 to use block operations when possible.
57688         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57689         freadseek, and memchr2.
57690         * lib/getndelim2.c (getndelim2): Use them for block reads.
57691
57692 2008-04-29  Bruno Haible  <bruno@clisp.org>
57693
57694         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57695         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57696         * modules/inet_ntop (Depends-on): Add extensions.
57697         * modules/inet_pton (Depends-on): Likewise.
57698         Reported by Simon Josefsson.
57699
57700 2008-04-29  Jim Meyering  <meyering@redhat.com>
57701
57702         When the is more than one match in a block, match all of them.
57703         * build-aux/useless-if-before-free: Iterate through each block
57704         until there are no more matches.
57705
57706         Fix broken useless-if-before-free script.
57707         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57708         the expression to match cast of argument to free-like function.
57709
57710 2008-04-29  Eric Blake  <ebb9@byu.net>
57711
57712         Use new header.
57713         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57714
57715 2008-04-29  Jim Meyering  <meyering@redhat.com>
57716
57717         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57718         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57719         by gnulib to exist and to declare e.g., inet_ntop.
57720         Don't include "inet_ntop.h", now removed.
57721
57722         * m4/arpa_inet_h.m4: Remove trailing blanks.
57723
57724 2008-04-29  Eric Blake  <ebb9@byu.net>
57725
57726         Silence valgrind on safe reads beyond potential array bounds.
57727         * lib/rawmemchr.valgrind: New file.
57728         * lib/strchrnul.valgrind: Likewise.
57729         * modules/rawmemchr (Files): Distribute new file.
57730         * modules/strchrnul (Files): Likewise.
57731         Suggested by Bruno Haible.
57732
57733 2008-04-29  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57736         (inet_ntop, inet_pton): Change portability warning's wording.
57737         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57738         Invoke gl_CHECK_NEXT_HEADERS.
57739         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57740         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57741         set ARPA_INET_H.
57742         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57743         * modules/arpa_inet (Description): No longer only for systems that
57744         lack it.
57745         (Depends-on): Add include_next.
57746         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57747         HAVE_ARPA_INET_H.
57748
57749 2008-04-29  Jim Meyering  <meyering@redhat.com>
57750
57751         * modules/mkdir (License): Re-license as LGPLv2+.
57752
57753 2008-04-29  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/rawmemchr (Maintainer): Set to Eric.
57756         * modules/strchrnul (Maintainer): Likewise.
57757
57758 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57759
57760         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57761         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57762
57763         * modules/arpa_inet (arpa/inet.h): Use them.
57764
57765 2008-04-28  Eric Blake  <ebb9@byu.net>
57766
57767         Test getndelim2.
57768         * modules/getndelim2-tests: New file.
57769         * tests/test-getndelim2.c: Likewise.
57770         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57771         stream.
57772         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57773
57774         * MODULES.html.sh: Document new module.
57775
57776 2008-04-20  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/c-stack.c (die): Use raise.
57779         * modules/c-stack (Depends-on): Add raise.
57780
57781 2008-04-28  Bruno Haible  <bruno@clisp.org>
57782
57783         Expect rpmatch to be declared.
57784         * lib/yesno.c (rpmatch): Remove declaration.
57785
57786         Declare rpmatch.
57787         * lib/stdlib.in.h (rpmatch): New declaration.
57788         * lib/rpmatch.c: Include <stdlib.h> first.
57789         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57790         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57792         HAVE_RPMATCH.
57793         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57795         (Include): Set to <stdlib.h>.
57796         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57797         HAVE_RPMATCH.
57798         * NEWS: Document the change.
57799
57800 2008-04-28  Bruno Haible  <bruno@clisp.org>
57801
57802         Change rpmatch to use nl_langinfo when appropriate.
57803         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57804         (N_): New macro.
57805         (localized_pattern): New function/macro.
57806         (try): Remove match, nomatch arguments. Copy the pattern into safe
57807         memory before caching it.
57808         (rpmatch): Use localized_pattern. Add translator comments.
57809         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57810         Suggested by Eric Blake.
57811         * modules/rpmatch (Depends-on): Add stdbool.
57812
57813 2008-04-28  Eric Blake  <ebb9@byu.net>
57814
57815         Add rawmemchr module, matching glibc.
57816         * modules/string (Makefile.am): New indicator.
57817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57818         * lib/string.in.h (rawmemchr): Declare when appropriate.
57819         * modules/rawmemchr: New file.
57820         * m4/rawmemchr.m4: Likewise.
57821         * lib/rawmemchr.c: Likewise.
57822         * modules/rawmemchr-tests: Likewise.
57823         * tests/test-rawmemchr.c: Likewise.
57824         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57825         module.
57826         * modules/strchrnul (Depends-on): Add rawmemchr.
57827         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57828
57829         Whitespace cleanup.
57830         * tests/test-strchrnul.c: Reindent.
57831         * lib/strchrnul.c: Likewise.
57832
57833         Optimize and test strchrnul.
57834         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57835         * modules/strchrnul-tests: New file.
57836         * tests/test-strchrnul.c: Likewise.
57837
57838         Remove intprops dependency.
57839         * modules/memchr (Depends-on): Remove intprops.
57840         * modules/memrchr (Depends-on): Likewise.
57841         * modules/memchr2 (Depends-on): Likewise.
57842         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57843         * lib/memrchr.c (__memrchr): Likewise.
57844         * lib/memrchr2.c (memchr2): Likewise.
57845         Reported by Simon Josefsson.
57846
57847 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57848
57849         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57850         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57851
57852 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57853
57854         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57855
57856         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57857
57858         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57859
57860         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57861         declarations.
57862         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57863
57864         * m4/inet_pton.m4: Don't check for header files.
57865
57866         * m4/inet_ntop.m4: Don't check for header files.
57867
57868 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57869
57870         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57871         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57872         trigger for cygwin).
57873         Reported by Bruno Haible  <bruno@clisp.org>.
57874
57875 2008-04-28  Bruno Haible  <bruno@clisp.org>
57876
57877         * doc/posix-functions/strdup.texi: Mention mingw problem.
57878
57879 2008-04-27  Bruno Haible  <bruno@clisp.org>
57880
57881         * modules/stat-time-tests (Depends-on): Add sleep.
57882         * tests/test-stat-time.c (force_unlink): New function.
57883         (cleanup): Use it.
57884         (test_mtime): Remove the ctime related tests.
57885         (test_ctime): New function, containing the ctime related tests.
57886         (main): Call test_ctime, except on native Windows platforms.
57887
57888 2008-04-27  Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/rpmatch.c (rpmatch): Add some comments.
57891         Reported by James Youngman <jay@gnu.org>.
57892
57893 2008-04-27  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57896         quiet NaNs.
57897
57898 2008-04-27  Bruno Haible  <bruno@clisp.org>
57899
57900         Make test-yesno.sh work on mingw.
57901         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57902         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57903         (main): Set stdin to binary mode.
57904         * modules/yesno-tests (Depends-on): Add binary-io.
57905
57906 2008-04-27  Bruno Haible  <bruno@clisp.org>
57907
57908         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57909         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57910         argument that lie outside the IEEE 854 domain.
57911         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57912         (gl_ISFINITE): Use it.
57913         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57914
57915 2008-04-27  Bruno Haible  <bruno@clisp.org>
57916
57917         Allow local renaming in config.h.
57918         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57919
57920 2008-04-27  Bruno Haible  <bruno@clisp.org>
57921
57922         * lib/memchr.c (__memchr): Change type of 'i'.
57923         * lib/memchr2.c (memchr2): Likewise.
57924
57925 2008-04-26  Eric Blake  <ebb9@byu.net>
57926         and Bruno Haible  <bruno@clisp.org>
57927
57928         Optimize and test memrchr.
57929         * modules/memrchr (Depends-on): Add intprops.
57930         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57931         * modules/memrchr-tests: New file.
57932         * tests/test-memrchr.c: New file.
57933
57934 2008-04-26  Bruno Haible  <bruno@clisp.org>
57935
57936         Add tentative support for DragonFly BSD.
57937         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57938         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57939         fp.
57940         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57941         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57942         * lib/fpurge.c (fpurge): Likewise.
57943         * lib/freadable.c (freaadable): Likewise.
57944         * lib/freadahead.c (freadahead): Likewise.
57945         * lib/freading.c (freading): Likewise.
57946         * lib/freadptr.c (freadptr): Likewise.
57947         * lib/freadseek.c (freadptrinc): Likewise.
57948         * lib/fseeko.c (fseeko): Likewise.
57949         * lib/fseterr.c (fseterr): Likewise.
57950         * lib/fwritable.c (fwritable): Likewise.
57951         * lib/fwriting.c (fwriting): Likewise.
57952
57953 2008-04-26  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/stdio-impl.h: New file.
57956         * lib/fbufmode.c: Include stdio-impl.h.
57957         (fbufmode): Use fp_, remove redundant #defines.
57958         * lib/fflush.c: Include stdio-impl.h.
57959         (clear_ungetc_buffer): Remove redundant #defines.
57960         * lib/fpurge.c: Include stdio-impl.h.
57961         (fpurge): Remove redundant #defines.
57962         * lib/freadable.c: Include stdio-impl.h.
57963         (freadable): Remove redundant #defines.
57964         * lib/freadahead.c: Include stdio-impl.h.
57965         (freadahead): Remove redundant #defines.
57966         * lib/freading.c: Include stdio-impl.h.
57967         (freading): Remove redundant #defines.
57968         * lib/freadptr.c: Include stdio-impl.h.
57969         (freadptr): Remove redundant #defines.
57970         * lib/freadseek.c: Include stdio-impl.h.
57971         (freadptrinc): Remove redundant #defines.
57972         * lib/fseeko.c: Include stdio-impl.h.
57973         (rpl_fseeko): Remove redundant #defines.
57974         * lib/fseterr.c: Include stdio-impl.h.
57975         (fseterr): Remove redundant #defines.
57976         * lib/fwritable.c: Include stdio-impl.h.
57977         (fwritable: Remove redundant #defines.
57978         * lib/fwriting.c: Include stdio-impl.h.
57979         (fwriting): Remove redundant #defines.
57980         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57981         * modules/fflush (Files): Likewise.
57982         * modules/fpurge (Files): Likewise.
57983         * modules/freadable (Files): Likewise.
57984         * modules/freadahead (Files): Likewise.
57985         * modules/freading (Files): Likewise.
57986         * modules/freadptr (Files): Likewise.
57987         * modules/freadseek (Files): Likewise.
57988         * modules/fseeko (Files): Likewise.
57989         * modules/fseterr (Files): Likewise.
57990         * modules/fwritable (Files): Likewise.
57991         * modules/fwriting (Files): Likewise.
57992
57993 2008-04-26  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57996         restore_seek_optimization, update_fpos_cache): New functions, extracted
57997         from rpl_fflush.
57998         (rpl_fflush): Use them.
57999         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58000         (gl_REPLACE_FFLUSH): Use it.
58001
58002 2008-04-26  Bruno Haible  <bruno@clisp.org>
58003
58004         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58005         on Solaris.
58006         * tests/test-xstrtoimax.sh: Likewise.
58007         * tests/test-xstrtoumax.sh: Likewise.
58008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58009
58010 2008-04-26  Bruno Haible  <bruno@clisp.org>
58011
58012         * modules/memchr-tests: New file.
58013         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58014
58015 2008-04-26  Eric Blake  <ebb9@byu.net>
58016             Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/memchr.c: Include intprops.h.
58019         (__memchr): Optimize parallel detection of matching bytes. Rename local
58020         variables. Add explanatory comments.
58021
58022 2008-04-26  Bruno Haible  <bruno@clisp.org>
58023
58024         Fix module 'memchr', broken since 2000-10-28.
58025         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58026
58027 2008-04-26  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58030         comments.
58031
58032 2008-04-25  Eric Blake  <ebb9@byu.net>
58033
58034         Use native fstatat on cygwin 1.7.0.
58035         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58036         first.
58037
58038 2008-04-23  Eric Blake  <ebb9@byu.net>
58039
58040         Improve memchr2 performance.
58041         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58042         NUL bytes.
58043         * modules/memchr2 (Depends-on): Use intprops.h.
58044
58045 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58046
58047         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58048         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58049         <blp@cs.stanford.edu>.
58050
58051 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58052
58053         * lib/arpa_inet.in.h: New file.
58054
58055         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58056         (Makefile.am): Sed in substitute header file.
58057
58058         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58059         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58060
58061         * modules/inet_ntop (configure.ac): Use
58062         gl_ARPA_INET_MODULE_INDICATOR.
58063
58064         * modules/inet_pton (configure.ac): Use
58065         gl_ARPA_INET_MODULE_INDICATOR.
58066
58067 2008-04-22  Jim Meyering  <meyering@redhat.com>
58068
58069         * modules/verify (License): Re-license as LGPLv2+.
58070
58071 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58072
58073         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58074         parameter to void* as per POSIX standard (MinGW uses char*).
58075
58076 2008-04-21  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58079         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58080         Define to replacements if REPLACE_ISWCNTRL is 1.
58081         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58082         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58083         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58084         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58085         what it fixes.
58086         * doc/posix-functions/iswalpha.texi: Likewise.
58087         * doc/posix-functions/iswblank.texi: Likewise.
58088         * doc/posix-functions/iswcntrl.texi: Likewise.
58089         * doc/posix-functions/iswdigit.texi: Likewise.
58090         * doc/posix-functions/iswgraph.texi: Likewise.
58091         * doc/posix-functions/iswlower.texi: Likewise.
58092         * doc/posix-functions/iswprint.texi: Likewise.
58093         * doc/posix-functions/iswpunct.texi: Likewise.
58094         * doc/posix-functions/iswspace.texi: Likewise.
58095         * doc/posix-functions/iswupper.texi: Likewise.
58096         * doc/posix-functions/iswxdigit.texi: Likewise.
58097         Reported by Alain Guibert.
58098
58099 2008-04-21  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58102         Patch by Alain Guibert.
58103
58104 2008-04-21  Bruno Haible  <bruno@clisp.org>
58105
58106         Fix test failures on mingw.
58107         * tests/test-xstrtol.c (print_no_progname): New function.
58108         (main): Install it in error_print_progname hook.
58109         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58110         * tests/test-xstrtoimax.sh: Likewise.
58111         * tests/test-xstrtoumax.sh: Likewise.
58112
58113 2008-04-21  Bruno Haible  <bruno@clisp.org>
58114
58115         Fix test failure on mingw.
58116         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58117
58118 2008-04-21  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58121         Actually assign a value.
58122
58123 2008-04-20  Bruno Haible  <bruno@clisp.org>
58124
58125         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58126         take 2.
58127         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58128         'canonicalize-lgpl' module is also used.
58129         * lib/canonicalize-lgpl.c: Undo last change.
58130         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58131
58132 2008-04-20  Bruno Haible  <bruno@clisp.org>
58133
58134         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58135         config.h. Provide _mkdir based fallback for mingw.
58136         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58137         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58138         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58139         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58140         rather than defining mkdir in config.h.
58141         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58142         (gl_SYS_STAT_H_DEFAULTS): New macro.
58143         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58144         HAVE_IO_H any more.
58145         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58146         HAVE_DECL_MKDIR and HAVE_IO_H.
58147
58148 2008-04-20  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/isapipe.c: Port to native Windows platforms.
58151
58152 2008-04-20  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58155
58156 2008-04-21  Eric Blake  <ebb9@byu.net>
58157
58158         Work around preprocessors that don't handle UINTMAX_MAX.
58159         * lib/memchr2.c (memchr2): Avoid embedded #if.
58160         Reported by Alain Guibert, fix suggested by Bruno Haible.
58161
58162 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58163
58164         * doc/posix-functions/strftime.texi (strftime): Explain better
58165         Windows incompatibility.  Suggested by Micah Cowan
58166         <micah@cowan.name>.
58167
58168 2008-04-20  Bruno Haible  <bruno@clisp.org>
58169
58170         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58171         unistr/u8-mblen.
58172
58173 2008-04-20  Bruno Haible  <bruno@clisp.org>
58174
58175         Fix test failure on platforms with non-GNU iconv.
58176         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58177         (U_TO_U8): Use it, rather than u16_to_u8.
58178         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58179         units at the end of the input string.
58180         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58181
58182 2008-04-20  Bruno Haible  <bruno@clisp.org>
58183
58184         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58185         when the resulting length is 0.
58186         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58187
58188 2008-04-20  Bruno Haible  <bruno@clisp.org>
58189
58190         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58191         works.
58192         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58193
58194 2008-04-20  Bruno Haible  <bruno@clisp.org>
58195
58196         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58197         * modules/tsearch-tests (configure.ac): Test for initstate function.
58198
58199 2008-04-20  Bruno Haible  <bruno@clisp.org>
58200
58201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58202         for nlink_t if missing.
58203         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58204
58205 2008-04-19  Bruno Haible  <bruno@clisp.org>
58206
58207         Work around snprintf bug on Linux libc5.
58208         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58210         gl_SNPRINTF_SIZE1.
58211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58212         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58213         that test failed.
58214         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58215         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58216         * modules/snprintf (Files): Add m4/printf.m4.
58217         * modules/vsnprintf (Files): Likewise.
58218         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58219         * doc/posix-functions/vsnprintf.texi: Likewise.
58220
58221 2008-04-19  Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58224         from 0.0058 to less than 10^-7.
58225
58226 2008-04-19  Bruno Haible  <bruno@clisp.org>
58227
58228         Fix rounding when a precision is given.
58229         * lib/vasnprintf.c (is_borderline): New function.
58230         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58231         9...9x.
58232         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58233         %e, %g.
58234         * tests/test-vasprintf-posix.c (test_function): Likewise.
58235         * tests/test-snprintf-posix.h (test_function): Likewise.
58236         * tests/test-sprintf-posix.h (test_function): Likewise.
58237         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58238         * tests/test-printf-posix.h (test_function): Likewise.
58239         * tests/test-printf-posix.output: Update.
58240         Reported by John Darrington <john@darrington.wattle.id.au> via
58241         Ben Pfaff <blp@cs.stanford.edu>.
58242
58243 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58244
58245         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58246         Suggested by Bruno Haible <bruno@clisp.org>.
58247
58248 2008-04-17  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58251         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58252         implementation.
58253         Patch by Bruce Merry <bmerry@gmail.com>.
58254
58255 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58256
58257         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58258         doesn't work under Windows.
58259
58260 2008-04-16  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58263         New macros.
58264         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58265         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58266         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58267         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58268         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58269         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58270         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58271         macros.
58272         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58273         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58274         Northern Sotho, Uighur.
58275
58276 2008-04-16  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58279         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58280         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58281         Reported by Daniel Bergström <daniel@octocode.com>.
58282
58283 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58284             Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58287         function.
58288         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58289         New functions, mostly extracted from gl_locale_name_default.
58290         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58291
58292 2008-04-16  Eric Blake  <ebb9@byu.net>
58293
58294         Adjust strtod detection to catch glibc 2.7 bug.
58295         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58296         Reported by John Gatewood Ham.
58297
58298 2008-04-16  Bruno Haible  <bruno@clisp.org>
58299
58300         Add tentative support for Linux libc5.
58301         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58302         * lib/fpurge.c (fpurge): Likewise.
58303         * lib/freadable.c (freadable): Likewise.
58304         * lib/freadahead.c (freadahead): Likewise.
58305         * lib/freading.c (freading): Likewise.
58306         * lib/freadptr.c (freadptr): Likewise.
58307         * lib/freadseek.c (freadptrinc): Likewise.
58308         * lib/fseeko.c (rpl_fseeko): Likewise.
58309         * lib/fseterr.c (fseterr): Likewise.
58310         * lib/fwritable.c (fwritable): Likewise.
58311         * lib/fwriting.c (fwriting): Likewise.
58312         Reported by Alain Guibert <alguibert+bts@free.fr>.
58313
58314 2008-04-15  Bruno Haible  <bruno@clisp.org>
58315
58316         * modules/mathl (configure.ac): Define module indicator.
58317
58318 2008-04-15  Bruno Haible  <bruno@clisp.org>
58319
58320         * lib/logl.c (logl): Remove unused variables.
58321
58322 2008-04-15  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58325         fails.
58326
58327 2008-04-15  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/trim.c (trim2): Fix argument of isspace() macro.
58330
58331 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58332
58333         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58334         to 0.
58335         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58336
58337 2008-04-14  Bruno Haible  <bruno@clisp.org>
58338
58339         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58340         AC_LANG_PROGRAM argument.
58341         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58342         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58344         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58345         * m4/math_h.m4 (gl_MATH_H): Likewise.
58346         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58348         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58349         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58350         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58351         * m4/regex.m4 (gl_REGEX): Likewise.
58352         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58353         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58355         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58356         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58359         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58360
58361 2008-04-14  Jim Meyering  <meyering@redhat.com>
58362
58363         test-strtod: fix typos: s/abs/fabs/
58364         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58365
58366 2008-04-13  Bruno Haible  <bruno@clisp.org>
58367
58368         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58369         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58370         module is also used and while not building the reloc-wrapper.
58371
58372 2008-04-13  Bruno Haible  <bruno@clisp.org>
58373
58374         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58375
58376 2008-04-13  Bruno Haible  <bruno@clisp.org>
58377
58378         Fix AIX compilation failure introduced on 2008-04-02.
58379         * tests/test-frexp.c (exp): Undefine before redefining.
58380         * tests/test-frexpl.c (exp): Likewise.
58381
58382 2008-04-13  Bruno Haible  <bruno@clisp.org>
58383
58384         Work around a HP-UX stdio bug.
58385         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58386         * tests/test-ftello.c (main): Likewise.
58387         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58388         * doc/posix-functions/ftello.texi: Likewise.
58389
58390 2008-04-13  Bruno Haible  <bruno@clisp.org>
58391
58392         Make test-signbit pass on HP-UX/hppa.
58393         * tests/test-signbit.c (minus_zerol): New variable.
58394         (test_signbitl): Use it.
58395
58396 2008-04-13  Bruno Haible  <bruno@clisp.org>
58397
58398         Make truncl work on OSF/1 4.0.
58399         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58400         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58401         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58403         HAVE_DECL_TRUNCL.
58404         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58405         HAVE_DECL_TRUNCL.
58406         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58407
58408 2008-04-13  Bruno Haible  <bruno@clisp.org>
58409
58410         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58411
58412 2008-04-13  Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58415         expression, so as to avoid HP-UX 11 cc compiler bug.
58416
58417 2008-04-13  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58420
58421 2008-04-13  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/git-merge-changelog.c: Remove empty declaration outside of
58424         functions.
58425
58426 2008-04-13  Bruno Haible  <bruno@clisp.org>
58427
58428         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58429
58430 2008-04-13  Bruno Haible  <bruno@clisp.org>
58431
58432         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58433         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58435         also if it exists but lacks definitions of the SHUT_* macros.
58436         * modules/sys_socket (Description): Update.
58437         Reported by Elbert Pol <e.pol@chello.nl>.
58438
58439 2008-04-13  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/localcharset.c (OS2): Don't redefine if already defined.
58442         Reported by Elbert Pol <e.pol@chello.nl>.
58443
58444 2008-04-13  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/binary-io.h [__EMX__]: Include <io.h>.
58447         Reported by Elbert Pol <e.pol@chello.nl>.
58448
58449 2008-04-12  Bruno Haible  <bruno@clisp.org>
58450
58451         * lib/fpucw.h: Enable the definitions also for x86_64.
58452         Needed for NetBSD/x86_64.
58453         Reported by Thomas Klausner <tk@giga.or.at>.
58454
58455 2008-04-12  Bruno Haible  <bruno@clisp.org>
58456
58457         * tests/test-strtod.c: Include isnand.h.
58458         (main): Use isnand instead of isnan.
58459         Reported by Jim Meyering.
58460
58461 2008-04-12  Bruno Haible  <bruno@clisp.org>
58462
58463         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58464         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58465
58466 2008-04-12  Jim Meyering  <meyering@redhat.com>
58467
58468         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58469
58470 2008-04-12  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58473         Reported by Elbert Pol <e.pol@chello.nl>.
58474
58475 2008-04-12  Eric Blake  <ebb9@byu.net>
58476
58477         Work around Solaris 10 math.h bug.
58478         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58479         (gl_MATH_H_DEFAULTS): Set up default.
58480         * modules/math (Makefile.am): Replace new indicators.
58481         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58482         * tests/test-math.c (main): Test this.
58483         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58484         * doc/posix-headers/math.texi (math.h): Mention bug.
58485         Reported by Nelson H. F. Beebe and Jim Meyering.
58486
58487 2008-04-11  Bruno Haible  <bruno@clisp.org>
58488
58489         Adapt to future versions of Apple GCC.
58490         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58491         Reported by Peter O'Gorman <peter@pogma.com>.
58492
58493 2008-04-11  Bruno Haible  <bruno@clisp.org>
58494
58495         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58496
58497 2008-04-11  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58500
58501         * modules/getaddrinfo-tests (Makefile.am): Define
58502         test_getaddrinfo_LDADD.
58503
58504 2008-04-11  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58507         (init): Fix syntax error.
58508         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58509         is declared.
58510
58511 2008-04-11  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58514         * modules/glob (Depends-on): Add stdbool.
58515
58516 2008-04-11  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/trim.c: Include <string.h>.
58519
58520 2008-04-11  Eric Blake  <ebb9@byu.net>
58521
58522         Avoid compile failure on OS/2.
58523         * lib/regex_internal.h (internal_function): Disable optimization
58524         on OS/2 (__EMX__), where it caused compiler error.
58525         Reported by Elbert Pol.
58526
58527 2008-04-11  Bruno Haible  <bruno@clisp.org>
58528
58529         Flush the standard error stream before aborting. Needed on mingw.
58530         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58531         * tests/test-array_list.c (ASSERT): Likewise.
58532         * tests/test-array_oset.c (ASSERT): Likewise.
58533         * tests/test-avltree_list.c (ASSERT): Likewise.
58534         * tests/test-avltree_oset.c (ASSERT): Likewise.
58535         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58536         * tests/test-binary-io.c (ASSERT): Likewise.
58537         * tests/test-byteswap.c (ASSERT): Likewise.
58538         * tests/test-c-ctype.c (ASSERT): Likewise.
58539         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58540         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58541         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58542         * tests/test-c-strstr.c (ASSERT): Likewise.
58543         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58544         * tests/test-canonicalize.c (ASSERT): Likewise.
58545         * tests/test-carray_list.c (ASSERT): Likewise.
58546         * tests/test-ceilf1.c (ASSERT): Likewise.
58547         * tests/test-ceilf2.c (ASSERT): Likewise.
58548         * tests/test-ceill.c (ASSERT): Likewise.
58549         * tests/test-count-one-bits.c (ASSERT): Likewise.
58550         * tests/test-fbufmode.c (ASSERT): Likewise.
58551         * tests/test-fflush2.c (ASSERT): Likewise.
58552         * tests/test-floorf1.c (ASSERT): Likewise.
58553         * tests/test-floorf2.c (ASSERT): Likewise.
58554         * tests/test-floorl.c (ASSERT): Likewise.
58555         * tests/test-fopen.c (ASSERT): Likewise.
58556         * tests/test-fpending.c (ASSERT): Likewise.
58557         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58558         * tests/test-fpurge.c (ASSERT): Likewise.
58559         * tests/test-freadable.c (ASSERT): Likewise.
58560         * tests/test-freadahead.c (ASSERT): Likewise.
58561         * tests/test-freading.c (ASSERT): Likewise.
58562         * tests/test-freadptr.c (ASSERT): Likewise.
58563         * tests/test-freadptr2.c (ASSERT): Likewise.
58564         * tests/test-freadseek.c (ASSERT): Likewise.
58565         * tests/test-freopen.c (ASSERT): Likewise.
58566         * tests/test-frexp.c (ASSERT): Likewise.
58567         * tests/test-frexpl.c (ASSERT): Likewise.
58568         * tests/test-fseek.c (ASSERT): Likewise.
58569         * tests/test-fseeko.c (ASSERT): Likewise.
58570         * tests/test-fstrcmp.c (ASSERT): Likewise.
58571         * tests/test-ftell.c (ASSERT): Likewise.
58572         * tests/test-ftello.c (ASSERT): Likewise.
58573         * tests/test-func.c (ASSERT): Likewise.
58574         * tests/test-fwritable.c (ASSERT): Likewise.
58575         * tests/test-fwriting.c (ASSERT): Likewise.
58576         * tests/test-getdelim.c (ASSERT): Likewise.
58577         * tests/test-getline.c (ASSERT): Likewise.
58578         * tests/test-i-ring.c (ASSERT): Likewise.
58579         * tests/test-iconv-utf.c (ASSERT): Likewise.
58580         * tests/test-iconv.c (ASSERT): Likewise.
58581         * tests/test-isfinite.c (ASSERT): Likewise.
58582         * tests/test-isnand.c (ASSERT): Likewise.
58583         * tests/test-isnanf.c (ASSERT): Likewise.
58584         * tests/test-isnanl.h (ASSERT): Likewise.
58585         * tests/test-ldexpl.c (ASSERT): Likewise.
58586         * tests/test-linked_list.c (ASSERT): Likewise.
58587         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58588         * tests/test-localename.c (ASSERT): Likewise.
58589         * tests/test-lseek.c (ASSERT): Likewise.
58590         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58591         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58592         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58593         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58594         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58595         * tests/test-mbschr.c (ASSERT): Likewise.
58596         * tests/test-mbscspn.c (ASSERT): Likewise.
58597         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58598         * tests/test-mbspbrk.c (ASSERT): Likewise.
58599         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58600         * tests/test-mbsrchr.c (ASSERT): Likewise.
58601         * tests/test-mbsspn.c (ASSERT): Likewise.
58602         * tests/test-mbsstr1.c (ASSERT): Likewise.
58603         * tests/test-mbsstr2.c (ASSERT): Likewise.
58604         * tests/test-mbsstr3.c (ASSERT): Likewise.
58605         * tests/test-memchr2.c (ASSERT): Likewise.
58606         * tests/test-memmem.c (ASSERT): Likewise.
58607         * tests/test-open.c (ASSERT): Likewise.
58608         * tests/test-printf-frexp.c (ASSERT): Likewise.
58609         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58610         * tests/test-printf-posix.c (ASSERT): Likewise.
58611         * tests/test-quotearg.c (ASSERT): Likewise.
58612         * tests/test-rbtree_list.c (ASSERT): Likewise.
58613         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58614         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58615         * tests/test-round1.c (ASSERT): Likewise.
58616         * tests/test-roundf1.c (ASSERT): Likewise.
58617         * tests/test-roundl.c (ASSERT): Likewise.
58618         * tests/test-signbit.c (ASSERT): Likewise.
58619         * tests/test-sleep.c (ASSERT): Likewise.
58620         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58621         * tests/test-snprintf.c (ASSERT): Likewise.
58622         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58623         * tests/test-stat-time.c (ASSERT): Likewise.
58624         * tests/test-strcasestr.c (ASSERT): Likewise.
58625         * tests/test-strerror.c (ASSERT): Likewise.
58626         * tests/test-striconv.c (ASSERT): Likewise.
58627         * tests/test-striconveh.c (ASSERT): Likewise.
58628         * tests/test-striconveha.c (ASSERT): Likewise.
58629         * tests/test-strsignal.c (ASSERT): Likewise.
58630         * tests/test-strstr.c (ASSERT): Likewise.
58631         * tests/test-strtod.c (ASSERT): Likewise.
58632         * tests/test-trunc1.c (ASSERT): Likewise.
58633         * tests/test-trunc2.c (ASSERT): Likewise.
58634         * tests/test-truncf1.c (ASSERT): Likewise.
58635         * tests/test-truncf2.c (ASSERT): Likewise.
58636         * tests/test-truncl.c (ASSERT): Likewise.
58637         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58638         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58639         * tests/test-vasnprintf.c (ASSERT): Likewise.
58640         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58641         * tests/test-vasprintf.c (ASSERT): Likewise.
58642         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58643         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58644         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58645         * tests/test-vsnprintf.c (ASSERT): Likewise.
58646         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58647         * tests/test-wcwidth.c (ASSERT): Likewise.
58648         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58649         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58650         * tests/test-xvasprintf.c (ASSERT): Likewise.
58651         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58652         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58653         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58654         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58655         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58656         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58657         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58658         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58659         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58660         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58661         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58662         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58663         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58664         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58665         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58666         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58667         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58668         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58669         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58670         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58671         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58672         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58673         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58674         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58675         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58676         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58677         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58678         * tests/unictype/test-combining.c (ASSERT): Likewise.
58679         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58680         * tests/unictype/test-digit.c (ASSERT): Likewise.
58681         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58682         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58683         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58684         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58685         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58686         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58687         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58688         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58689         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58690         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58691         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58692         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58693         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58694         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58695         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58696         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58697         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58698         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58699         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58700         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58701         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58702         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58703         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58704         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58705         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58706         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58707         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58708         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58709         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58710         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58711         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58712         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58713         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58714         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58715         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58716         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58717         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58718         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58719         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58720         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58721         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58722         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58723         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58724         Reported by Eric Blake.
58725
58726 2008-04-11  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/wchar.in.h: Tweak comment.
58729
58730 2008-04-11  Bruno Haible  <bruno@clisp.org>
58731
58732         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58733         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58734         gl_COMMON.
58735         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58736
58737 2008-04-11  Bruno Haible  <bruno@clisp.org>
58738
58739         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58740
58741 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58742
58743         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58744         of attempting to use non-existing /dev/*random.  Based on patch
58745         from Adam Strzelecki <ono@java.pl> in
58746         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58747
58748 2008-04-08  Bruno Haible  <bruno@clisp.org>
58749
58750         Add tentative support for emx+gcc.
58751         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58752         * lib/fpurge.c (fpurge): Likewise.
58753         * lib/freadable.c (freadable): Likewise.
58754         * lib/freadahead.c (freadahead): Likewise.
58755         * lib/freading.c (freading): Likewise.
58756         * lib/freadptr.c (freadptr): Likewise.
58757         * lib/freadseek.c (freadptrinc): Likewise.
58758         * lib/fseeko.c (rpl_fseeko): Likewise.
58759         * lib/fseterr.c (fseterr): Likewise.
58760         * lib/fwritable.c (fwritable): Likewise.
58761         * lib/fwriting.c (fwriting): Likewise.
58762         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58763
58764 2008-04-09  Eric Blake  <ebb9@byu.net>
58765
58766         Avoid some autoconf warnings.
58767         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58768         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58769         * m4/afs.m4 (gl_AFS): Likewise.
58770         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58771         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58773         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58774         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58775         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58776         (AC_CHECK_DECLS_ONCE): Likewise.
58777         Rename file...
58778         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58779         gnulib-tool requires autoconf 2.59 or better.
58780         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58781
58782 2008-04-08  Eric Blake  <ebb9@byu.net>
58783
58784         Use 'git describe --match' if present (added in git 1.5.5).
58785         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58786         if possible.
58787
58788 2008-04-08  Bruno Haible  <bruno@clisp.org>
58789
58790         Add tentative support for OpenServer.
58791         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58792         _ptr, _cnt.
58793         * lib/fpurge.c (fpurge): Likewise.
58794         * lib/freadable.c (freadable): Likewise.
58795         * lib/freadahead.c (freadahead): Likewise.
58796         * lib/freading.c (freading): Likewise.
58797         * lib/freadptr.c (freadptr): Likewise.
58798         * lib/freadseek.c (freadptrinc): Likewise.
58799         * lib/fseeko.c (rpl_fseeko): Likewise.
58800         * lib/fseterr.c (fseterr): Likewise.
58801         * lib/fwritable.c (fwritable): Likewise.
58802         * lib/fwriting.c (fwriting): Likewise.
58803         Reported by Roger Cornelius <rac@tenzing.org> and
58804         Brian K. White <brian@aljex.com>.
58805
58806 2008-04-06  Jim Meyering  <meyering@redhat.com>
58807
58808         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58809
58810 2008-04-06  Bruno Haible  <bruno@clisp.org>
58811
58812         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58813         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58814         * tests/test-printf-posix.sh: Likewise.
58815         * tests/test-vfprintf-posix.sh: Likewise.
58816         * tests/test-vprintf-posix.sh: Likewise.
58817         * tests/test-xprintf-posix.sh: Likewise.
58818
58819 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58820
58821         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58822         hide error from 'ls', needed on OS/2.
58823         Report by Elbert Pol <elbert.pol@gmail.com>.
58824
58825 2008-04-04  Eric Blake  <ebb9@byu.net>
58826
58827         Make test-fseeko.c failures meaningful.
58828         * tests/test-fseeko.c: Print line number on failure.
58829         * tests/test-fseek.c: Likewise.
58830         Reported by Nelson H. F. Beebe.
58831
58832         Improve strtod bug detection check.
58833         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58834         required for Solaris 10.
58835         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58836
58837 2008-04-04  Bruno Haible  <bruno@clisp.org>
58838
58839         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58840         by m4/setenv.m4.
58841
58842 2008-04-03  Eric Blake  <ebb9@byu.net>
58843
58844         Ensure sane .version contents.
58845         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58846         version string.
58847         * build-aux/git-version-gen: Improve documentation.
58848
58849         Make GNU make output nicer.
58850         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58851         MAKECMDGOALS to enforce message for all command line targets.  Set
58852         srcdir for use in maint.mk.
58853
58854         Another maintainer tweak.
58855         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58856         a target that regenerates version.
58857
58858 2008-04-03  Jim Meyering  <meyering@redhat.com>
58859
58860         vc-list-files: don't cause coreutils "make po-check" failure
58861         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58862
58863 2008-04-03  Eric Blake  <ebb9@byu.net>
58864
58865         Allow VPATH usage of vc-list-files.
58866         * build-aux/vc-list-files (scriptversion): Add timestamp.
58867         (options): Add --help, --version, -C.
58868         (CVS): Support installed cvsu.
58869
58870 2008-04-02  Bruno Haible  <bruno@clisp.org>
58871
58872         Avoid some "statement with no effect" warnings from gcc.
58873         * tests/test-wctype.c (main): Explicitly ignore unused values.
58874         Reported by Jim Meyering.
58875
58876 2008-04-02  Jim Meyering  <meyering@redhat.com>
58877
58878         Avoid some warnings from "gcc -Wshadow".
58879         * tests/test-frexp.c (exp): Define to a different identifier.
58880         * tests/test-frexpl.c (exp): Likewise.
58881
58882 2008-04-03  Jim Meyering  <meyering@redhat.com>
58883
58884         bootstrap: remove dangling *.[ch] symlinks from lib
58885         * build-aux/bootstrap [dangling symlink removal]: Move find's
58886         -depth option to precede all others, to avoid a warning.
58887         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58888
58889 2008-04-02  Bruno Haible  <bruno@clisp.org>
58890
58891         Avoid some warnings from "gcc -Wshadow".
58892         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58893         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58894         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58895         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58896         Reported by Jim Meyering.
58897
58898 2008-04-01  Bruno Haible  <bruno@clisp.org>
58899
58900         Fix test to work on IRIX 6.5 with cc.
58901         * tests/test-math.c (numeric_equal): New function.
58902         (main): Use it.
58903
58904 2008-04-01  Bruno Haible  <bruno@clisp.org>
58905
58906         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58907
58908 2008-04-01  Bruno Haible  <bruno@clisp.org>
58909
58910         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58911         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58912         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58913         (Depends-on): Remove math.
58914
58915         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58916         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58917         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58918         (Depends-on): Remove math.
58919
58920         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58921         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58922         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58923         (Depends-on): Remove math.
58924         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58925         (Depends-on): Remove math.
58926
58927         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58928         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58929         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58930         (Depends-on): Remove math.
58931         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58932         (Depends-on): Remove math.
58933
58934         * tests/test-round1.c: Include nan.h.
58935         (main): Use NaNd instead of NAN.
58936         * modules/round-tests (Files): Add tests/nan.h.
58937
58938         * tests/test-trunc1.c: Include nan.h.
58939         (main): Use NaNd instead of NAN.
58940         * modules/trunc-tests (Files): Add tests/nan.h.
58941
58942         * tests/test-roundf1.c: Include nan.h.
58943         (main): Use NaNf instead of NAN.
58944         * modules/roundf-tests (Files): Add tests/nan.h.
58945
58946         * tests/test-truncf1.c: Include nan.h.
58947         (main): Use NaNf instead of NAN.
58948         * modules/truncf-tests (Files): Add tests/nan.h.
58949
58950         * tests/test-ceilf1.c: Include nan.h.
58951         (main): Use NaNf instead of NAN.
58952         * modules/ceilf-tests (Files): Add tests/nan.h.
58953
58954         * tests/test-floorf1.c: Include nan.h.
58955         (main): Use NaNf instead of NAN.
58956         * modules/floorf-tests (Files): Add tests/nan.h.
58957
58958         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58959         (main): Use NaNf instead of NAN.
58960         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58961
58962         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58963         (main): Use NaNd instead of NAN.
58964         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58965
58966         * tests/test-frexp.c: Include nan.h.
58967         (main): Use NaNd instead of NAN.
58968         * modules/frexp-tests (Files): Add tests/nan.h.
58969
58970         * lib/isnan.c: Don't include <math.h>.
58971         (FUNC): Don't use NAN macro.
58972         * modules/isnand-nolibm (Depends-on): Remove math.
58973         * modules/isnanf-nolibm (Depends-on): Remove math.
58974         * modules/isnanl (Depends-on): Remove math.
58975         * modules/isnanl-nolibm (Depends-on): Remove math.
58976
58977         * tests/nan.h: New file.
58978
58979 2008-04-01  Eric Blake  <ebb9@byu.net>
58980
58981         Fix typos.
58982         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58983         values to be the right type.
58984
58985         For now, cater to gnulib strtod inaccuracies.
58986         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58987         fractional results.  While not as nice from a QoI perspective, it
58988         is a quicker patch than correctly implementing decimal to binary
58989         rounding.
58990
58991 2008-03-31  Eric Blake  <ebb9@byu.net>
58992
58993         Guarantee a definition of NAN.
58994         * lib/math.in.h (NAN): Define if missing.
58995         * tests/test-math.c (main): Test it.
58996         * doc/posix-headers/math.texi (math.h): Document this.
58997         * lib/isnan.c (rpl_isnand): Use it.
58998         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58999         * tests/test-floorf1.c (NaN): Likewise.
59000         * tests/test-frexp.c (NaN): Likewise.
59001         * tests/test-isnand.c (NaN): Likewise.
59002         * tests/test-isnanf.c (NaN): Likewise.
59003         * tests/test-round1.c (NaN): Likewise.
59004         * tests/test-roundf1.c (NaN): Likewise.
59005         * tests/test-snprintf-posix.h (NaN): Likewise.
59006         * tests/test-sprintf-posix.h (NaN): Likewise.
59007         * tests/test-trunc1.c (NaN): Likewise.
59008         * tests/test-truncf1.c (NaN): Likewise.
59009         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59010         * tests/test-vasprintf-posix.c (NaN): Likewise.
59011         * modules/isnand-nolibm (Depends-on): Add math.
59012         * modules/isnanf-nolibm (Depends-on): Likewise.
59013         * modules/isnanl (Depends-on): Likewise.
59014         * modules/isnanl-nolibm (Depends-on): Likewise.
59015         * modules/snprintf-posix-tests (Depends-on): Likewise.
59016         * modules/sprintf-posix-tests (Depends-on): Likewise.
59017         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59018         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59019         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59020         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59021
59022 2008-03-31  Bruno Haible  <bruno@clisp.org>
59023
59024         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59025         * doc/posix-functions/strtod.texi: Likewise.
59026
59027 2008-03-31  Bruno Haible  <bruno@clisp.org>
59028
59029         * tests/test-strtod.c (main): Don't use C99 syntax.
59030
59031 2008-03-31  Bruno Haible  <bruno@clisp.org>
59032
59033         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59034         Reported by Eric Blake.
59035
59036 2008-03-31  Jim Meyering  <meyering@redhat.com>
59037
59038         Don't compare actual signbit return values.
59039         * tests/test-strtod.c (main): Rather, compare only their
59040         zero/non-zero nature.
59041
59042 2008-03-31  Eric Blake  <ebb9@byu.net>
59043
59044         More strtod documentation.
59045         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59046         failures as distinct bugs.
59047
59048 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59049
59050         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59051         Problem reported by Erik Benada in
59052         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59053
59054 2008-03-30  Bruno Haible  <bruno@clisp.org>
59055
59056         * tests/test-strtod.c: Add comments about which assertion fails on which
59057         platform.
59058         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59059
59060 2008-03-30  Eric Blake  <ebb9@byu.net>
59061
59062         Test signbit behavior on zeros.
59063         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59064         (test_signbitd, test_signbitl): Likewise.
59065
59066         More strtod touchups.
59067         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59068         sign of negative underflow, for now.  Use .5, not .1.
59069         * doc/posix-functions/strtod.texi (strtod): Mention these
59070         limitations.
59071         Reported by Jim Meyering.
59072
59073 2008-03-30  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59076         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59077
59078 2008-03-30  Bruno Haible  <bruno@clisp.org>
59079
59080         Avoid failure when attempting to return empty iconv results on some
59081         platforms.
59082         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59083         allocation, don't report ENOMEM when the resulting string is empty.
59084
59085 2008-03-30  Bruno Haible  <bruno@clisp.org>
59086
59087         Fix buffer overrun.
59088         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59089         Don't consider the width for tmp_length. Check count against tmp_length
59090         before doing the padding. Ensure enough allocation during padding.
59091
59092 2008-03-30  Eric Blake  <ebb9@byu.net>
59093
59094         strtod touchups.
59095         * lib/strtod.c (strtod): Avoid compiler warnings.
59096         Reported by Jim Meyering.
59097
59098 2008-03-30  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59101         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59102         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59103         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59104         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59105         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59106         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59107         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59108
59109         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59110         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59111         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59112         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59113         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59114         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59115         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59116         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59117
59118         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59119         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59120         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59121         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59122         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59123         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59124         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59125         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59126
59127         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59128         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59129
59130         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59131         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59132
59133         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59134         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59135
59136         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59137         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59138         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59139
59140         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59142         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59143
59144         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59146         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59147
59148         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59150         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59151
59152         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59153         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59155         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59156         (Depends-on): Add EOVERFLOW.
59157         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59158         (Depends-on): Add EOVERFLOW.
59159         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59160         (Depends-on): Add EOVERFLOW.
59161         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59162         (Depends-on): Add EOVERFLOW.
59163         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59164         (Depends-on): Add EOVERFLOW.
59165         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59166         (Depends-on): Add EOVERFLOW.
59167         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59168         (Depends-on): Add EOVERFLOW.
59169         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59170         (Depends-on): Add EOVERFLOW.
59171
59172         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59174         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59175
59176         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59178         * modules/snprintf (Depends-on): Add EOVERFLOW.
59179
59180         * lib/poll.c (EOVERFLOW): Remove fallback.
59181         * modules/poll (Depends-on): Add EOVERFLOW.
59182
59183         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59184         * modules/getugroups (Depends-on): Add EOVERFLOW.
59185
59186         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59187         * modules/getdelim (Depends-on): Add EOVERFLOW.
59188
59189         * lib/ftell.c (EOVERFLOW): Remove fallback.
59190         * modules/ftell (Depends-on): Add EOVERFLOW.
59191
59192         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59194         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59195
59196         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59197
59198         * modules/EOVERFLOW-tests: New file.
59199         * tests/test-EOVERFLOW.c: New file.
59200
59201         * modules/EOVERFLOW: New file.
59202         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59203
59204 2008-03-30  Bruno Haible  <bruno@clisp.org>
59205
59206         Fix bug introduced on 2007-06-10.
59207         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59208         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59209
59210 2008-03-30  Bruno Haible  <bruno@clisp.org>
59211
59212         Improve freadseek's efficiency after ungetc.
59213         * lib/freadseek.c: Include freadahead.h.
59214         (freadptrinc): New function, extracted from freadseek.
59215         (freadseek): Use it in a loop. Use freadahead to determine the number
59216         of loop iterations.
59217         * modules/freadseek (Depends-on): Add freadahead.
59218         (configure.ac): Require AC_C_INLINE.
59219
59220 2008-03-30  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/freadseek.c (freadseek): Don't ignore the return value of
59223         freadptr.
59224
59225 2008-03-29  Eric Blake  <ebb9@byu.net>
59226
59227         Add hex float support.
59228         * modules/strtod (Depends-on): Add c-ctype.
59229         (Link): Mention POW_LIB.
59230         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59231         whitespace between 'e' and exponent.
59232         * tests/test-strtod.c (main): Enable hex float tests.
59233         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59234         now provides.
59235
59236         Document various strtod bugs, with some fixes.
59237         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59238         "-0x", "inf", "nan", and hex constants.
59239         * doc/posix-functions/atof.texi (atof): Likewise.
59240         * modules/stdlib (Makefile.am): Support strtod.
59241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59242         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59243         detect additional strtod bugs.
59244         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59245         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59246         bool where appropriate.  Parse 'inf' and 'nan'.
59247         * tests/test-strtod.c: New file.
59248         * modules/strtod (Depends-on): Add stdbool, stdlib.
59249         (configure.ac): Turn on module indicator.
59250         * modules/strtod-tests: New module.
59251
59252 2008-03-29  Eric Blake  <ebb9@byu.net>
59253
59254         Fix ftell on mingw.
59255         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59256         * modules/ftell-tests (Depends-on): Add binary-io.
59257         * modules/ftello-tests (Depends-on): Likewise.
59258         * tests/test-ftell.c (main): Enhance test to cover behavior after
59259         ungetc.  Enforce binary mode.
59260         * tests/test-ftello.c (main): Likewise.
59261
59262         Pass test-freadseek on cygwin.
59263         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59264         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59265         ungetc buffer.
59266
59267         * tests/test-fflush2.c (main): Fix typo.
59268
59269 2008-03-29  Bruno Haible  <bruno@clisp.org>
59270
59271         * tests/test-fflush2.c (main): Temporarily disable the contents of
59272         this test.
59273         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59274         Reported by Eric Blake.
59275
59276 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59277
59278         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59279         (GC_SHA224_DIGEST_SIZE): Add.
59280
59281         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59282         (gc_hash_digest_length): Likewise.
59283         (gc_hash_buffer): Likewise.
59284
59285 2008-03-25  Bruno Haible  <bruno@clisp.org>
59286
59287         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59288         detail which gettext release to use.
59289         Reported by Simon Josefsson.
59290
59291 2008-03-26  Jim Meyering  <meyering@redhat.com>
59292
59293         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59294         * modules/gnumakefile (clean-GNUmakefile): Also, use
59295         test ... && ... || : syntax rather than if-then ... fi.
59296
59297         gnumakefile: Don't double-quote-expand $(VPATH) value.
59298         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59299
59300 2008-03-24  Eric Blake  <ebb9@byu.net>
59301
59302         Alter GNUmakefile to install into top directory.
59303         * modules/maintainer-makefile: Split, and add dependency...
59304         * modules/gnumakefile: to this new module.
59305         * build-aux/GNUmakefile: Move...
59306         * top/GNUmakefile: ...here.
59307         * build-aux/maint.mk: Move...
59308         * top/maint.mk: ...here.
59309         * MODULES.html.sh (Support for maintaining...): Document new
59310         module.
59311
59312 2008-03-23  Bruno Haible  <bruno@clisp.org>
59313
59314         * gnulib-tool: New options --vc-files, --no-vc-files.
59315         (func_usage): Document them.
59316         (vc_files): New variable.
59317         (func_import): Consider vc_files.
59318         (func_create_testdir): Set vc_files to empty.
59319         Suggested by Jim Meyering and Karl Berry.
59320
59321 2008-03-23  Bruno Haible  <bruno@clisp.org>
59322
59323         Fix regex compilation error on HP-UX 11.
59324         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59325         * modules/regex (Files): Add m4/mbstate_t.m4.
59326         Reported by Ton Voon <ton.voon@altinity.com>.
59327
59328 2008-03-23  Bruno Haible  <bruno@clisp.org>
59329
59330         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59331
59332 2008-03-23  Eric Blake  <ebb9@byu.net>
59333             Bruno Haible  <bruno@clisp.org>
59334
59335         Install files from top/ in the destination directory.
59336         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59337         augmentation also for the files from top/.
59338         (func_import, func_create_testdir): Rewrite file names:
59339         top/filename -> filename.
59340
59341 2008-03-23  Bruno Haible  <bruno@clisp.org>
59342
59343         Tweak "gnulib --version" output.
59344         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59345
59346 2008-03-23  Bruno Haible  <bruno@clisp.org>
59347
59348         Tweak "gnulib --version" output.
59349         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59350         rather than contents of ChangeLog, when possible.
59351
59352 2008-03-21  Eric Blake  <ebb9@byu.net>
59353
59354         More --version tweaks.
59355         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59356         date of last ChangeLog entry.
59357
59358 2008-03-21  Jim Meyering  <meyering@redhat.com>
59359
59360         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59361
59362 2008-03-20  Eric Blake  <ebb9@byu.net>
59363
59364         VPATH fix.
59365         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59366
59367 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59368
59369         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59370         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59371
59372 2008-03-20  Eric Blake  <ebb9@byu.net>
59373
59374         Sync GNUmakefile with coreutils.
59375         * build-aux/GNUmakefile (have-Makefile): Rename...
59376         (_have-Makefile): ...to this, for namespace consideration.
59377         (GNUmakefile.cfg): Include, if present.
59378         (_autoreconf): Define a default.
59379         (_is-dist-target): New rule for rebuilds to pick up intra-release
59380         version.
59381         (maint-cfg.mk): Rename...
59382         (cfg.mk): ...to this.
59383
59384 2008-03-18  Jim Meyering  <meyering@redhat.com>
59385
59386         New script and module: mktempd
59387         * MODULES.html.sh (maint+release support): Add mktempd.
59388         * build-aux/mktempd: New file.
59389         * modules/mktempd: New file.
59390
59391 2008-03-15  Jim Meyering  <meyering@redhat.com>
59392
59393         Undo last change.
59394         * lib/sha1.c, lib/md5.c: 63 != ~63.
59395         Reported by Andreas Schwab.
59396
59397         sha1.c, md5.c: Hoist a redundant expression.
59398         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59399         "ctx->buflen" only once, before calling *_process_block.
59400         * lib/md5.c (md5_process_bytes): Likewise.
59401
59402 2008-03-14  Eric Blake  <ebb9@byu.net>
59403
59404         Bump copyright year in files generated by gnulib-tool.
59405         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59406         gnulib-tool, rather than hard-coding it.
59407
59408         Fix 'gnulib-tool --version' output to work with git.
59409         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59410         (startup): ...here.
59411         (func_version): Use it to invoke git-version-gen, rather than
59412         relying on CVS keyword expansion.  Modernize wording.
59413         (cvsdatestamp, last_checkin_date, version): Kill unused
59414         variables.
59415
59416 2008-03-12  Jim Meyering  <meyering@redhat.com>
59417
59418         Recognize optional cast of the argument to free.
59419         * build-aux/useless-if-before-free: Update regexps.
59420
59421         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59422
59423 2008-03-11  Bruno Haible  <bruno@clisp.org>
59424
59425         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59426         by a single package.
59427         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59428         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59429         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59430         Reported by Sam Steingold <sds@gnu.org>.
59431
59432 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59433
59434         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59435         repositories.
59436
59437 2008-03-11  Bruno Haible  <bruno@clisp.org>
59438
59439         Avoid conflicts between local macro definitions.
59440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59441         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59442
59443 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59444             Bruno Haible  <bruno@clisp.org>
59445
59446         Make va_copy work with some version of xlc on AIX 5.1.
59447         * lib/stdarg.in.h: New file.
59448         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59449         On AIX, use a <stdarg.h> file substitute.
59450         * modules/stdarg (Files): Add lib/stdarg.in.h.
59451         (Depends-on): Add include_next.
59452         (Makefile.am): Build a stdarg.h substitute if requested.
59453         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59454
59455 2008-03-10  Bruno Haible  <bruno@clisp.org>
59456
59457         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59458         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59459         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59460
59461 2008-03-10  Bruno Haible  <bruno@clisp.org>
59462
59463         * modules/stdlib (Depends-on): Add include_next, remove
59464         absolute-header.
59465
59466 2008-03-09  Bruno Haible  <bruno@clisp.org>
59467
59468         * lib/freadahead.h (freadahead): Document more precisely.
59469         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59470         the sum of both buffer sizes.
59471         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59472         * NEWS: Document the change.
59473
59474 2008-03-09  Bruno Haible  <bruno@clisp.org>
59475
59476         Extend freadptr to return also the buffer size.
59477         * lib/freadptr.h (freadptr): Add sizep argument.
59478         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59479         (freadptr): Add sizep argument. Determine buffer size like freadahead
59480         does.
59481         * tests/test-freadptr.c: Don't include freadahead.h.
59482         (main): Adapt for new calling convention of freadptr.
59483         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59484         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59485         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59486         tests/test-freadptr2.sh.
59487         (Depends): Remove freadahead.
59488         (TESTS): Add test-freadptr2.sh.
59489         (check_PROGRAMS): Add test-freadptr2.
59490
59491 2008-03-09  Bruno Haible  <bruno@clisp.org>
59492
59493         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59494         Report and solution by Simon Josefsson.
59495
59496 2008-03-06  Bruno Haible  <bruno@clisp.org>
59497
59498         Make fflush after ungetc work on BSD platforms.
59499         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59500         * tests/test-fflush2.c: New file.
59501         * tests/test-fflush2.sh: New file.
59502         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59503         tests/test-fflush2.c.
59504         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59505         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59506
59507 2008-03-06  Eric Blake  <ebb9@byu.net>
59508
59509         Likewise for ftello.
59510         * modules/ftello (Dependencies): Add extensions.
59511         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59512
59513 2008-03-06  Bruno Haible  <bruno@clisp.org>
59514
59515         * modules/fseeko (Dependencies): Add extensions.
59516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59517         Needed on glibc systems.
59518
59519 2008-03-06  Bruno Haible  <bruno@clisp.org>
59520
59521         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59522         email address.
59523         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59524
59525 2008-03-06  Bruno Haible  <bruno@clisp.org>
59526
59527         * users.txt: Add libgnupdf.
59528
59529 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59530
59531         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59532         (Header File Substitutes, Function Substitutes,
59533         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59534         (Build robot for gnulib): Fix typo.
59535
59536 2008-03-06  Bruno Haible  <bruno@clisp.org>
59537
59538         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59539         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59540
59541 2008-03-06  Bruno Haible  <bruno@clisp.org>
59542
59543         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59544         * doc/gnulib.texi: Include it.
59545
59546 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59547
59548         * modules/func (License): Change license to unlimited; there was
59549         no LGPL parts in the module anyway.
59550
59551 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59552
59553         * modules/__func__: Renamed to modules/func.
59554         * modules/__func__-tests: Renamed to modules/func-tests.
59555         * tests/test-__func__.c: Renamed to tests/test-func.c.
59556         * m4/__func__.m4: Renamed to m4/func.m4.
59557         * doc/gnulib.texi (__func__): Section renamed to func.
59558         Suggested by Eric Blake <ebb9@byu.net>.
59559
59560 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59561
59562         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59563         about __func__.  Make example self-contained.  Suggested by Eric
59564         Blake <ebb9@byu.net>.
59565
59566         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59567         Suggested by Eric Blake <ebb9@byu.net>.
59568
59569 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59570
59571         * modules/__func__: New file.
59572         * modules/__func__-tests: New file.
59573         * tests/test-__func__.c: New file.
59574         * m4/__func__.m4: New file.
59575         * doc/gnulib.texi (__func__): Document __func__ module.
59576
59577 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59578
59579         * modules/byteswap (License): Re-license as LGPLv2+.
59580
59581 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59582
59583         * doc/Makefile: Add pdf target.
59584
59585 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59586
59587         * modules/inline (License): Use 'unlimited', since there are only
59588         *.m4 files in this module.
59589
59590 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59591             Bruno Haible  <bruno@clisp.org>
59592
59593         Add support for HP C 7.1 on OpenVMS 8.3.
59594         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59595
59596 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59597
59598         Update VMS specifics.
59599         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59600
59601 2008-03-02  Jim Meyering  <meyering@redhat.com>
59602
59603         Remove the last dependency on the "free" module.
59604         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59605         Reported by Bob Proulx.
59606
59607         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59608
59609         Remove useless "if" tests before free.  Deprecate "free" module.
59610         * doc/posix-functions/free.texi: Mention that this
59611         module is no longer useful.
59612         * modules/free (Notice): Say this module is obsolete.
59613         * modules/readutmp (Depends-on): Remove free.
59614         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59615         * lib/putenv.c (putenv): Likewise.
59616         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59617         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59618         * tests/test-c-strcasestr.c (main): Likewise.
59619         * tests/test-c-strstr.c (main): Likewise.
59620         * tests/test-mbscasestr1.c (main): Likewise.
59621         * tests/test-mbscasestr2.c (main): Likewise.
59622         * tests/test-mbsstr1.c (main): Likewise.
59623         * tests/test-mbsstr2.c (main): Likewise.
59624         * tests/test-memmem.c (main): Likewise.
59625         * tests/test-strcasestr.c (main): Likewise.
59626         * tests/test-striconv.c (main): Likewise.
59627         * tests/test-striconveh.c (main): Likewise.
59628         * tests/test-striconveha.c (main): Likewise.
59629         * tests/test-strstr.c (main): Likewise.
59630
59631         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59632
59633         bootstrap: sync from coreutils again
59634         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59635
59636 2008-03-01  Jim Meyering  <meyering@redhat.com>
59637
59638         bootstrap: sync from coreutils
59639         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59640         also when the target doesn't exist.
59641
59642 2008-03-01  Eric Blake  <ebb9@byu.net>
59643
59644         Fix bugs in last patch.
59645         * lib/memchr2.c (memchr2): Fix typo.
59646         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59647         extension.
59648         Reported by Bruce Korb.
59649
59650         New module 'memchr2'.
59651         * modules/memchr2: New file.
59652         * modules/memchr2-tests: Likewise.
59653         * lib/memchr2.h: Likewise.
59654         * lib/memchr2.c: Likewise, based on memchr.c.
59655         * tests/test-memchr2.c: New test.
59656         * MODULES.html.sh (String handling): Add memchr2.
59657
59658 2008-02-29  Bruno Haible  <bruno@clisp.org>
59659
59660         * modules/freadseek-tests: New file.
59661         * tests/test-freadseek.sh: New file.
59662         * tests/test-freadseek.c: New file.
59663
59664         New module 'freadseek'.
59665         * modules/freadseek: New file.
59666         * lib/freadseek.h: New file.
59667         * lib/freadseek.c: New file.
59668         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59669
59670 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59671
59672         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59673         wydawca.
59674
59675         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59676         program_invocation_name and program_invocation_short_name are
59677         present.
59678
59679 2008-02-28  Bruno Haible  <bruno@clisp.org>
59680
59681         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59682         * tests/test-freadptr.sh: Also test non-seekable stdin.
59683
59684 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59685
59686         * build-aux/bootstrap (source_base, m4_base)
59687         (doc_base, tests_base): New variables.
59688         (gnulib_tool_options): Do not hardcode base directories, use
59689         the above variables instead.
59690
59691 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59692
59693         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59694
59695 2008-02-28  Bruno Haible  <bruno@clisp.org>
59696
59697         * modules/freadptr-tests: New file.
59698         * tests/test-freadptr.sh: New file.
59699         * tests/test-freadptr.c: New file.
59700
59701         New module 'freadptr'.
59702         * modules/freadptr: New file.
59703         * lib/freadptr.h: New file.
59704         * lib/freadptr.c: New file.
59705         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59706
59707 2008-02-26  Karl Berry  <karl@freefriends.org>
59708
59709         Sync from Libtool:
59710         * libltdl/argz.c (argz_add, argz_count): New functions.
59711         * libltdl/argz.in.h: Declare them.
59712         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59713
59714 2008-02-22  Bruno Haible  <bruno@clisp.org>
59715
59716         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59717         is a pointer type.  Needed for HP-UX 10.
59718         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59719         * doc/posix-functions/gmtime_r.texi: Likewise.
59720         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59721
59722 2008-02-24  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/environ-tests: New file.
59725         * tests/test-environ.c: New file.
59726
59727         New module 'environ'.
59728         * modules/environ: New file.
59729         * lib/unistd.in.h (environ): New declaration.
59730         * m4/environ.m4: New file.
59731         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59732         after use.
59733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59734         HAVE_DECL_ENVIRON.
59735         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59736         HAVE_DECL_ENVIRON.
59737         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59738         wrong claim that 'environ' is missing on some systems.
59739         * modules/execute (Depends-on): Add environ.
59740         * lib/execute.c (environ): Remove fallback declaration.
59741         * modules/pipe (Depends-on): Add environ.
59742         * lib/pipe.c (environ): Remove fallback declaration.
59743         * modules/setenv (Depends-on): Add environ.
59744         * lib/setenv.c (environ): Remove fallback declaration.
59745         * modules/unsetenv (Depends-on): Add environ.
59746         * lib/unsetenv.c (environ): Remove fallback declaration.
59747         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59748         m4/environ.m4.
59749         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59750         (gl_PREREQ_UNSETENV): Likewise.
59751
59752 2008-02-24  Bruno Haible  <bruno@clisp.org>
59753
59754         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59755
59756 2008-02-20  Bob Proulx  <bob@proulx.com>
59757
59758         Enable use of older two part flavor 'git describe'.
59759         * build-aux/git-version-gen: If using the older two part flavor of
59760         git version then recreate the third part now present in the
59761         newer three part flavor of git describe.
59762
59763 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59764
59765         * lib/fts.c (fts_build): Typo correction to comment.
59766
59767 2008-02-17  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59770         generating no-op conflicts.
59771
59772 2008-02-17  Bruno Haible  <bruno@clisp.org>
59773
59774         Speed up by 10%.
59775         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59776         result_entries, rather than an index-based loop.
59777
59778 2008-02-17  Bruno Haible  <bruno@clisp.org>
59779
59780         Speed up by 25%.
59781         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59782         'hashcode_cached'.
59783         (entry_create): New function.
59784         (entry_hashcode): Use the cached hashcode if possible.
59785         (read_changelog_file, try_split_merged_entry): Use entry_create.
59786
59787 2008-02-17  Bruno Haible  <bruno@clisp.org>
59788
59789         Speed up from O(n^2) to O(n) for long ChangeLog files.
59790         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59791         (read_changelog_file): Change implementation of entries_reversed list
59792         to rbtreehash.
59793         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59794
59795 2008-02-17  Bruno Haible  <bruno@clisp.org>
59796
59797         New option --split-merged-entry.
59798         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59799         (find_paragraph_end, try_split_merged_entry): New functions.
59800         (long_options): Add option --split-merged-entry.
59801         (usage): Document option --split-merged-entry.
59802         (main): Implement option --split-merged-entry.
59803         Reported by Eric Blake.
59804
59805 2008-02-17  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/git-merge-changelog.c: Include c-strstr.h.
59808         (main): Support the "git pull --rebase" situation.
59809         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59810         Reported by Eric Blake.
59811
59812 2008-02-16  Eric Blake  <ebb9@byu.net>
59813
59814         Avoid doubling \ in common case of "c-maybe" quoting style.
59815         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59816         eliding outer quotes.
59817         * lib/quotearg.h: Document this.
59818         * tests/test-quotearg.c (result_strings, inputs, results_g)
59819         (flag_results, locale_results): Test it by adding a new string to
59820         each test group.
59821         (compare_strings): Test new string.
59822
59823 2008-02-13  Eric Blake  <ebb9@byu.net>
59824
59825         Avoid trigraph quoting in default output.
59826         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59827         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59828         unless explicitly requested.
59829         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59830
59831 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59832
59833         Don't rely on signed integer overflowing to negative value.
59834         * lib/getugroups.c (getugroups): Include <limits.h>.
59835         Instead, compare against INT_MAX, and increment only if the test passes.
59836
59837 2008-02-13  Jim Meyering  <meyering@redhat.com>
59838         and Eric Blake  <ebb9@byu.net>
59839
59840         Avoid shadowing warning and compile errors on Linux.
59841         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59842         forwarding macros on Linux.
59843         (dcgettext): Define a stub, for Linux.
59844         (results_g, main): Avoid warnings.
59845
59846 2008-02-12  Eric Blake  <ebb9@byu.net>
59847
59848         Silence warning in last patch.
59849         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59850
59851         Quotearg part 4: add tests, fix c-maybe colon quoting.
59852         * lib/quotearg.h: Improve documentation.
59853         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59854         escapes when adding outer quotes.  When quoting trigraphs, use
59855         valid C notation.  When quoting NUL, omit extra characters if next
59856         character is not digit.  Alter prototype.
59857         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59858         callers.
59859         * modules/quotearg-tests: New module.
59860         * tests/test-quotearg.c: New test.
59861
59862 2008-02-07  Eric Blake  <ebb9@byu.net>
59863
59864         Quotearg part 3: add flag to control outer quote elision.
59865         * lib/quotearg.h (c_maybe_quoting_style): New style.
59866         (enum quoting_flags): Better documentation of flags.
59867         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59868         c-maybe style.
59869         (quotearg_buffer_restyled): Handle new flag to elide outer
59870         quotes.
59871
59872         Quotearg part 2: add flag that can control NUL elision.
59873         * lib/quotearg.h (set_quoting_flags): New prototype.
59874         * lib/quotearg.c (struct quoting_options): Add flag field.
59875         (set_quoting_flags): New function.
59876         (quotearg_buffer_restyled): Add flags parameter.
59877         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59878         (quotearg_n_options): Set the flag, since length cannot be
59879         returned.
59880         (quoting_options_from_style): Default flags correctly.
59881
59882         Quotearg part 1: more wrappers, restore quotearg_char state.
59883         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59884         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59885         (quotearg_colon_mem): New wrappers.
59886         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59887         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59888         functions.
59889         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59890         (quotearg_colon_mem): New functions.
59891
59892 2008-02-11  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59895         library in the current directory: it does not work with parallel make.
59896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59897
59898 2008-02-11  Bruno Haible  <bruno@clisp.org>
59899
59900         * .gitattributes: New file.
59901
59902 2008-02-11  Jim Meyering  <meyering@redhat.com>
59903
59904         useless-if-before-free: Fix reversed exit values.
59905         * build-aux/useless-if-before-free: Use correct values
59906         for EXIT_MATCH and EXIT_NO_MATCH.
59907
59908         * build-aux/useless-if-before-free: Close stdout carefully.
59909
59910 2008-02-10  Bruno Haible  <bruno@clisp.org>
59911
59912         New module 'git-merge-changelog'.
59913         * modules/git-merge-changelog: New file.
59914         * lib/git-merge-changelog.c: New file.
59915
59916 2008-02-10  Jim Meyering  <meyering@redhat.com>
59917
59918         useless-if-before-free: New option: --list (-l).
59919
59920         useless-if-before-free: Don't exit immediately upon open failure.
59921         * build-aux/useless-if-before-free: Exit 2 for errors.
59922         Upon failure to open a file, don't exit immediately.
59923         Rather, just warn and continue with any remaining files.
59924
59925 2008-02-10  Bruno Haible  <bruno@clisp.org>
59926
59927         New abstract list operation 'node_set_value'.
59928         * lib/gl_list.h (gl_list_node_set_value): New function.
59929         (struct gl_list_implementation): New field node_set_value.
59930         * lib/gl_list.c (gl_list_node_set_value): New function.
59931         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59932         (gl_array_list_implementation): Update.
59933         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59934         (gl_carray_list_implementation): Update.
59935         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59936         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59937         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59938         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59939         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59940         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59941         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59942         Update.
59943         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59944         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59945         (gl_sublist_list_implementation): Update.
59946
59947 2008-02-10  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59950         Needed when ELEMENT is #defined to 'some_type *'.
59951
59952 2008-02-10  Jim Meyering  <meyering@redhat.com>
59953
59954         New script and module: useless-if-before-free
59955         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59956         * build-aux/useless-if-before-free: New file.
59957         * modules/useless-if-before-free: New file.
59958
59959         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59960
59961         xstrtol_error: Fix typo.
59962         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59963         s/exit_failure/exit_status/.
59964
59965 2008-02-09  Jim Meyering  <meyering@redhat.com>
59966
59967         New script and module: gitlog-to-changelog
59968         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59969         * modules/gitlog-to-changelog: New file.
59970         * build-aux/gitlog-to-changelog: New file.
59971
59972 2008-02-08  Jim Meyering  <meyering@redhat.com>
59973
59974         Avoid two "parameter unused" warnings.
59975         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59976         Mark "st" as used.
59977
59978         Use "git COMMAND", not "git-COMMAND".
59979         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59980         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59981         * build-aux/git-version-gen: Use "git status", not "git-status".
59982
59983 2008-02-07  Bruno Haible  <bruno@clisp.org>
59984
59985         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59986         Avoids a crash on Windows Vista.
59987         Reported by Adam Strzelecki <ono@java.pl> via
59988         Simon Josefsson <simon@josefsson.org>.
59989
59990 2008-02-06  Bruno Haible  <bruno@clisp.org>
59991
59992         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59993         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59994         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59996         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59998         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59999         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60007         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60008         left-adjust flag.
60009         * tests/test-snprintf-posix.h (test_function): Likewise.
60010         * tests/test-sprintf-posix.h (test_function): Likewise.
60011         * tests/test-vasprintf-posix.c (test_function): Likewise.
60012         * doc/posix-functions/fprintf.texi: Update.
60013         * doc/posix-functions/printf.texi: Update.
60014         * doc/posix-functions/snprintf.texi: Update.
60015         * doc/posix-functions/sprintf.texi: Update.
60016         * doc/posix-functions/vfprintf.texi: Update.
60017         * doc/posix-functions/vprintf.texi: Update.
60018         * doc/posix-functions/vsnprintf.texi: Update.
60019         * doc/posix-functions/vsprintf.texi: Update.
60020         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60021
60022 2008-02-06  Bruno Haible  <bruno@clisp.org>
60023
60024         Fix bug introduced on 2008-01-26.
60025         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60026
60027 2008-02-06  Bruno Haible  <bruno@clisp.org>
60028
60029         Fix bug introduced on 2007-06-10.
60030         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60031         !NEED_PRINTF_FLAG_ZERO.
60032
60033 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60034
60035         getloadavg: use libperfstat on AIX5
60036         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60037
60038 2008-02-03  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/diffseq.h: Add comments about required #includes.
60041         Reported by Michael Biggs <gnulib@doubleplum.net>.
60042
60043 2008-02-01  Bruno Haible  <bruno@clisp.org>
60044
60045         * users.txt: Add gnuit.
60046
60047 2008-01-31  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/md4.c (set_uint32): Mark as inline.
60050         * lib/md5.c (set_uint32): Likewise.
60051         * lib/sha1.c (set_uint32): Likewise.
60052         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60053         * m4/md5.m4 (gl_MD5): Likewise.
60054         * m4/sha1.m4 (gl_SHA1): Likewise.
60055
60056 2008-01-31  Jim Meyering  <meyering@redhat.com>
60057
60058         Use "sizeof VAR", rather than a literal "4".
60059         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60060         * lib/md4.c (md4_read_ctx): Likewise.
60061         * lib/sha1.c (sha1_read_ctx): Likewise.
60062
60063 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60064
60065         * tests/test-sha1.c: New file, based on test-md5.c.
60066
60067         * modules/crypto/sha1-tests: New file.
60068
60069 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60070
60071         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60072
60073 2008-01-31  Jim Meyering  <meyering@redhat.com>
60074
60075         Prefer "sizeof v" over the equivalent "4".
60076         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60077         * lib/md5.c (set_uint32): Likewise.
60078         * lib/sha1.c (set_uint32): Likewise.
60079
60080 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60081
60082         * lib/sha1.c (set_uint32): Mark function as static.
60083
60084 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60085
60086         md2: clarify comments to say that alignment is not required.
60087         * lib/md2.h: Remove warning about alignment in comment.
60088         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60089         never been required.
60090
60091 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60092
60093         md4: adapt alignment constraint fix from sha1.
60094         * lib/md4.c (set_uint32): New function, from sha1.c
60095         (md4_read_ctx): Use it.
60096         (md4_finish_ctx): Doc fix.
60097         * lib/md4.h: Doc fix.
60098
60099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60100
60101         md5: adapt alignment constraint fix from sha1.
60102         * lib/md5.c (set_uint32): New function, from sha1.c
60103         (md5_read_ctx): Use it.
60104         (md5_finish_ctx): Doc fix.
60105         * lib/md5.h: Doc fix.
60106
60107 2008-01-30  Peter Palfrader  <weasel@debian.org>
60108
60109         sha1: remove the result buffer alignment constraint
60110         * lib/sha1.c (set_uint32): New function.
60111         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60112         constraint.
60113         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60114         * lib/sha1.h: Likewise.
60115
60116 2008-01-30  Andreas Schwab  <schwab@suse.de>
60117             Bruno Haible  <bruno@clisp.org>
60118
60119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60120         correct definition of LDBL_MIN_EXP.
60121
60122 2008-01-30  Karl Berry  <karl@gnu.org>
60123
60124         * config/srclist-update: try to preserve x bit on updates.
60125         * config/srclistvars.sh: update for karl.
60126
60127 2008-01-29  Jim Meyering  <meyering@redhat.com>
60128
60129         vasnprintf.c: Avoid warning about unused label
60130         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60131         "overflow" label definition and associated code with the
60132         same cpp condition that guards the sole use of that label.
60133
60134 2008-01-26  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60137         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60138         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60139         * lib/isnanl-nolibm.h (isnanl): Likewise.
60140         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60141
60142 2008-01-26  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60145         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60146
60147 2008-01-26  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60150         GCC >= 4.0 built-in.
60151         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60152
60153 2008-01-26  Bruno Haible  <bruno@clisp.org>
60154
60155         Rename isnan, applicable to 'double' only, to isnand.
60156         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60157         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60158         (configure.ac): Update.
60159         (Include): Replace "isnan.h" with "isnand.h".
60160         * m4/isnand.m4: Renamed from m4/isnan.m4.
60161         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60162         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60163         instead of isnan.c.
60164         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60165         instead of HAVE_ISNAN_IN_LIBC.
60166         (isnand): Renamed from isnan.
60167         * lib/isnand.c: New file.
60168         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60169         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60170         (Makefile.am): Update.
60171         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60172         Include isnand.h instead of isnan.h.
60173         (main): Test isnand instead of isnan.
60174         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60175         isnan-nolibm.
60176         * modules/frexp (Depends-on): Likewise.
60177         * modules/frexp-tests (Depends-on): Likewise.
60178         * modules/frexp-nolibm (Depends-on): Likewise.
60179         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60180         * modules/isfinite (Depends-on): Likewise.
60181         * modules/round-tests (Depends-on): Likewise.
60182         * modules/signbit (Depends-on): Likewise.
60183         * modules/signbit-tests (Depends-on): Likewise.
60184         * modules/snprintf-posix (Depends-on): Likewise.
60185         * modules/sprintf-posix (Depends-on): Likewise.
60186         * modules/trunc-tests (Depends-on): Likewise.
60187         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60194         * modules/vasnprintf-posix (Depends-on): Likewise.
60195         * modules/vasprintf-posix (Depends-on): Likewise.
60196         * modules/vfprintf-posix (Depends-on): Likewise.
60197         * modules/vsnprintf-posix (Depends-on): Likewise.
60198         * modules/vsprintf-posix (Depends-on): Likewise.
60199         * lib/frexp.c: Include isnand.h instead of isnan.h.
60200         (ISNAN): Set to isnand instead of isnan.
60201         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60202         (gl_isfinited): Use isnand instead of isnan.
60203         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60204         (gl_signbitd): Use isnand instead of isnan.
60205         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60206         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60207         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60208         (main): Use isnand instead of isnan.
60209         * tests/test-round1.c: Include isnand.h.
60210         (main): Use isnand instead of isnan.
60211         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60212         (ISNAN): Set to isnand instead of isnan.
60213         * tests/test-trunc1.c: Include isnand.h.
60214         (main): Use isnand instead of isnan.
60215         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60216         (equal): Use isnand instead of isnan.
60217         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60218         isnand-nolibm.
60219         * NEWS: Mention the change.
60220
60221 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60222             Bruno Haible  <bruno@clisp.org>
60223
60224         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60225         the GCC builtins for signbits are present and set
60226         REPLACE_SIGNBIT_USING_GCC if so.
60227         * lib/math.in.h (signbit): Define using GCC builtins if
60228         REPLACE_SIGNBIT_USING_GCC is set.
60229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60230         REPLACE_SIGNBIT_USING_GCC.
60231         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60232
60233 2008-01-25  Jim Meyering  <meyering@redhat.com>
60234
60235         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60236         * lib/poll.c: Include <config.h>, not "config.h".
60237         * tests/test-getaddrinfo.c: Likewise.
60238
60239 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60240
60241         * modules/sockets-tests: New file.
60242
60243 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60244
60245         * modules/sockets: New module, can be used to call WSA_Startup and
60246         WSA_Cleanup when needed.
60247
60248         * lib/sockets.h, lib/sockets.c: New files.
60249
60250         * m4/sockets.m4: New file.
60251
60252         * tests/test-sockets.c: New file.
60253
60254 2008-01-19  Bruno Haible  <bruno@clisp.org>
60255
60256         * doc/posix-headers: Renamed from doc/headers.
60257         * doc/posix-functions: Renamed from doc/functions.
60258         * doc/gnulib.texi: Update.
60259
60260 2008-01-19  Bruno Haible  <bruno@clisp.org>
60261
60262         * doc/glibc-functions/strcasestr.texi: Include contents of
60263         doc/functions/strcasestr.texi, fixing the list of platforms.
60264         * doc/functions/strcasestr.texi: Remove file.
60265
60266 2008-01-19  Bruno Haible  <bruno@clisp.org>
60267
60268         * doc/glibc-functions/memmem.texi: Include contents of
60269         doc/functions/memmem.texi.
60270         * doc/functions/memmem.texi: Remove file.
60271
60272 2008-01-18  Bruno Haible  <bruno@clisp.org>
60273
60274         * doc/glibc-functions/*.texi: New files.
60275         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60276         to use the new files.
60277
60278 2008-01-17  Bruno Haible  <bruno@clisp.org>
60279
60280         * tests/test-gethostname.c (main): Fix printf statement.
60281
60282 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60283
60284         * modules/gethostname-tests: New file.
60285
60286         * tests/test-gethostname.c: New file.
60287
60288 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60289
60290         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60291         used by the UNAME case.  Reported by Bruno Haible
60292         <bruno@clisp.org>.
60293
60294 2008-01-17  Eric Blake  <ebb9@byu.net>
60295
60296         Convert c-strcasestr to be more efficient.
60297         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60298         (Depends-on): Add c-strcase, remove malloca, strnlen.
60299         * tests/test-c-strcasestr.c (main): Enhance test.
60300         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60301
60302 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60303
60304         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60305         Use it in creating po/Makevars.
60306
60307 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60308
60309         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60310         Applications that requires it should initialize libgcrypt
60311         manually.
60312
60313 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60314
60315         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60316
60317 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60318
60319         Fix problem with getdate on mingw32 reported by Simon Josefsson
60320         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60321         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60322         tzname", when deciding whether to declare tzname.
60323         * lib/strftime.c (tzname): Likewise.
60324
60325 2008-01-15  Bruno Haible  <bruno@clisp.org>
60326
60327         Work around a MacOS X 10.5 bug in frexpl().
60328         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60329         * doc/functions/frexpl.texi: Document the bug.
60330         Reported by Elias Pipping <pipping@gentoo.org>.
60331
60332 2008-01-14  Eric Blake  <ebb9@byu.net>
60333
60334         Touch up previous patch.
60335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60336         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60337
60338         Convert strcasestr module to use Two-Way algorithm.
60339         * modules/strcasestr-simple: New module, based on the old
60340         strcasestr, but with Two-Way rather than KMP.
60341         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60342         * lib/string.in.h (rpl_strcasestr): Declare.
60343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60344         performance.
60345         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60346         * modules/string (Makefile.am): Support strcasestr.
60347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60348         * modules/strcasestr-tests (Depends-on): Check for alarm.
60349         * tests/test-strcasestr.c: Augment test.
60350         * lib/str-two-way.h: Clean up stray macro.
60351         * NEWS: Document new module.
60352         * MODULES.html.sh (string handling): Likewise.
60353         * doc/functions/strcasestr.texi: New file.
60354         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60355         here, since it is not a POSIX function.
60356
60357 2008-01-14  Colin Watson  <cjwatson@debian.org>
60358             Bruno Haible  <bruno@clisp.org>
60359
60360         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60361         works fine; if not, set REPLACE_STRSIGNAL.
60362         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60364         REPLACE_STRSIGNAL.
60365         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60366         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60367         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60368
60369 2008-01-14  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/strsignal (Include): Change to <string.h>.
60372
60373 2008-01-14  Colin Watson  <cjwatson@debian.org>
60374
60375         * modules/argp (Notice): Add a notice recommending to change
60376         XGETTEXT_OPTIONS.
60377         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60378
60379 2008-01-13  Colin Watson  <cjwatson@debian.org>
60380
60381         * modules/strsignal-tests: New file.
60382         * tests/test-strsignal.c: New file.
60383
60384         * lib/strsignal.c: New file, from glibc with modifications.
60385         * lib/siglist.h: New file, from glibc with modifications.
60386         * lib/string.in.h (strsignal): New declaration.
60387         * m4/strsignal.m4: New file.
60388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60389         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60390         * modules/strsignal: New file.
60391         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60392         HAVE_DECL_STRSIGNAL.
60393
60394 2008-01-13  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60397         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60398         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60399         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60400
60401 2008-01-13  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60404         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60405         * lib/argp.h (__attribute__): Likewise.
60406         * lib/c-stack.c (__attribute__): Likewise.
60407         * lib/error.h (__attribute__): Likewise.
60408         * lib/fts.c (__attribute__): Likewise.
60409         * lib/openat.h (__attribute__): Likewise.
60410         * lib/stdio.in.h (__attribute__): Likewise.
60411         * lib/string.in.h (__attribute__): Likewise.
60412         * lib/utimens.c (__attribute__): Likewise.
60413         * lib/vasnprintf.h (__attribute__): Likewise.
60414         * lib/xalloc.h (__attribute__): Likewise.
60415         * lib/xprintf.h (__attribute__): Likewise.
60416         * lib/xstrtol.h (__attribute__): Likewise.
60417         * lib/xvasprintf.h (__attribute__): Likewise.
60418
60419 2008-01-12  Bruno Haible  <bruno@clisp.org>
60420
60421         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60422         * doc/glibc-headers/a.out.texi: New file.
60423         * doc/glibc-headers/aliases.texi: New file.
60424         * doc/glibc-headers/alloca.texi: New file.
60425         * doc/glibc-headers/ar.texi: New file.
60426         * doc/glibc-headers/argp.texi: New file.
60427         * doc/glibc-headers/argz.texi: New file.
60428         * doc/glibc-headers/byteswap.texi: New file.
60429         * doc/glibc-headers/crypt.texi: New file.
60430         * doc/glibc-headers/endian.texi: New file.
60431         * doc/glibc-headers/envz.texi: New file.
60432         * doc/glibc-headers/err.texi: New file.
60433         * doc/glibc-headers/error.texi: New file.
60434         * doc/glibc-headers/execinfo.texi: New file.
60435         * doc/glibc-headers/fpu_control.texi: New file.
60436         * doc/glibc-headers/fstab.texi: New file.
60437         * doc/glibc-headers/fts.texi: New file.
60438         * doc/glibc-headers/getopt.texi: New file.
60439         * doc/glibc-headers/ieee754.texi: New file.
60440         * doc/glibc-headers/ifaddrs.texi: New file.
60441         * doc/glibc-headers/libintl.texi: New file.
60442         * doc/glibc-headers/mcheck.texi: New file.
60443         * doc/glibc-headers/mntent.texi: New file.
60444         * doc/glibc-headers/obstack.texi: New file.
60445         * doc/glibc-headers/paths.texi: New file.
60446         * doc/glibc-headers/printf.texi: New file.
60447         * doc/glibc-headers/pty.texi: New file.
60448         * doc/glibc-headers/resolv.texi: New file.
60449         * doc/glibc-headers/shadow.texi: New file.
60450         * doc/glibc-headers/sysexits.texi: New file.
60451         * doc/glibc-headers/ttyent.texi: New file.
60452
60453 2008-01-12  Jim Meyering  <meyering@redhat.com>
60454
60455         announce-gen: emit Gnulib's git-based version string.
60456         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60457         New option --gnulib-version=V, where V is expected to be
60458         the output of running git describe in the gnulib directory.
60459         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60460         not useful, and plan to stop publishing an xdelta file with each
60461         coreutils release.
60462
60463         * build-aux/announce-gen: Also check for lzma-compressed files.
60464
60465 2008-01-11  Bruno Haible  <bruno@clisp.org>
60466
60467         * tests/test-memmem.c (main): Increase maximum allowed time.
60468         * tests/test-strstr.c (main): Likewise.
60469
60470 2008-01-11  Bruno Haible  <bruno@clisp.org>
60471
60472         * doc/functions/memmem.texi: Add more precisions about platforms.
60473         * doc/functions/strstr.texi: Likewise.
60474
60475 2008-01-10  Eric Blake  <ebb9@byu.net>
60476
60477         * m4/strstr.m4: Delete cruft from copy-n-paste.
60478         Reported by Bruno Haible.
60479
60480 2008-01-10  Bruno Haible  <bruno@clisp.org>
60481
60482         Make c-strstr rely on strstr.
60483         * lib/c-strstr.c: Don't include str-kmp.h.
60484         (c_strstr): Define in terms of strstr.
60485         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60486         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60487
60488 2008-01-10  Bruno Haible  <bruno@clisp.org>
60489
60490         * doc/gnulib.texi (String Functions in C Locale): New section.
60491         * doc/c-ctype.texi: New file.
60492         * doc/c-strcase.texi: New file.
60493         * doc/c-strcaseeq.texi: New file.
60494         * doc/c-strcasestr.texi: New file.
60495         * doc/c-strstr.texi: New file.
60496         * doc/c-strtod.texi: New file.
60497         * doc/c-strtold.texi: New file.
60498
60499 2008-01-10  Eric Blake  <ebb9@byu.net>
60500
60501         * lib/relocatable.h: Fix a comment.
60502
60503 2008-01-10  Eric Blake  <ebb9@byu.net>
60504
60505         Share two-way algorithm.
60506         * lib/str-two-way.h: New file, merged from...
60507         * lib/memmem.c: ...here...
60508         * lib/strstr.c: ...and here.
60509         * modules/memmem (Files): Use it.
60510         * modules/strstr (Files): Likewise.
60511
60512         Avoid quadratic strstr implementations.
60513         * lib/strstr.c: New file.
60514         * m4/strstr.m4: Likewise.
60515         * modules/strstr: Likewise.
60516         * modules/strstr-tests: Likewise.
60517         * tests/test-strstr.c: Likewise.
60518         * lib/string.in.h (rpl_strstr): Declare.
60519         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60521         * modules/string (Makefile.am): Likewise.
60522         * MODULES.html.sh (string handling): Mention new module.
60523         * doc/functions/strstr.texi (strstr): Document the bug.
60524
60525 2008-01-10  Bruno Haible  <bruno@clisp.org>
60526
60527         * lib/relocatable.h (relocate): State whether result is freshly
60528         allocated or not.
60529         * lib/relocatable.c (relocate): Return a freshly allocated string
60530         instead of a pointer to a privately held string.
60531         Reported by Sylvain Beucler <beuc@gnu.org>.
60532
60533 2008-01-10  Colin Watson  <cjwatson@debian.org>
60534
60535         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60536         s/S_ISNLK/S_ISLNK/.
60537
60538 2008-01-09  Bruno Haible  <bruno@clisp.org>
60539
60540         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60541         and other files.
60542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60543         if it's only a guess.
60544         * modules/memmem: Simplify by depending on memmem-simple.
60545
60546 2008-01-09  Bruno Haible  <bruno@clisp.org>
60547
60548         Work around OpenBSD 4.0 tdelete() bug.
60549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60550         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60551         macros and don't redefine the enum values.
60552         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60553         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60554         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60555
60556 2008-01-09  Bruno Haible  <bruno@clisp.org>
60557
60558         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60559         (main): Don't perform the tests if setlocale did not install a UTF-8
60560         locale. Needed on OpenBSD 4.0.
60561         * modules/wcwidth-tests (Depends-on): Add localcharset.
60562
60563 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60564
60565         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60566         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60567         * NEWS: announce this.
60568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60569
60570 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60571         and Eric Blake  <ebb9@byu.net>
60572
60573         Add memmem-simple module.
60574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60575         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60576         * modules/memmem-simple: New file.
60577         * modules/memmem (Description): Tweak.
60578         * MODULES.html.sh (string handling): Mention new module.
60579         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60580         addressed by memmem-simple.
60581         * NEWS: Document the difference.
60582
60583 2008-01-09  Eric Blake  <ebb9@byu.net>
60584
60585         Give gcc some memmem optimization hints.
60586         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60587         (strcasestr): Declare as pure.
60588         * modules/memmem (Maintainer): Claim my implementation.
60589
60590 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60591
60592         Support AIX 6.1 and higher.
60593         * build-aux/config.libpath: Likewise.
60594         * build-aux/config.rpath: Likewise.
60595
60596 2008-01-08  Jim Meyering  <meyering@redhat.com>
60597             Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60600         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60601         Reported by Peter Fales in
60602         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60603
60604 2008-01-08  Bruno Haible  <bruno@clisp.org>
60605
60606         * modules/unictype/category-of (Depends-on): Add
60607         unictype/category-none.
60608         * modules/unictype/category-and-tests (Depends-on): Add
60609         unictype/category-{L,N,Lu,Nd}.
60610         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60611         * modules/unictype/category-or-tests (Depends-on): Add
60612         unictype/category-{L,N}.
60613         * modules/unictype/category-name-tests (Depends-on): Add
60614         unictype/category-{Z,Nl}.
60615         Reported by Simon Josefsson.
60616
60617 2008-01-08  Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60620         convention better.
60621         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60622         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60623         Reported by Peter Miller <millerp@canb.auug.org.au>.
60624
60625 2008-01-08  Eric Blake  <ebb9@byu.net>
60626
60627         Rewrite memmem to guarantee linear complexity without malloc.
60628         * lib/memmem.c (memmem): Use Two-Way rather than
60629         Knuth-Morris-Pratt, to allow O(1) space usage.
60630         (critical_factorization, two_way_short_needle)
60631         (two_way_long_needle): New functions.
60632         (knuth_morris_pratt): Delete.
60633         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60634         Add stdint.
60635         * tests/test-memmem.c (main): Add tests for periodic needle and
60636         sublinear performance.
60637         * doc/functions/memmem.texi (memmem): Document other deficiencies
60638         in cygwin and older glibc.
60639
60640 2008-01-08  Bruno Haible  <bruno@clisp.org>
60641
60642         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60643         augmentation.
60644
60645 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60646
60647         Add a configure time option: --disable-acl.
60648         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60649         AC_ARG_ENABLE(acl).
60650
60651 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60652
60653         * tests/test-localename.c: Don't include obsolete "setenv.h".
60654
60655         * modules/localename-tests (Depends-on): Need unsetenv.
60656
60657 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60658
60659         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60660
60661 2008-01-06  Colin Watson  <cjwatson@debian.org>
60662
60663         * users.txt: Add man-db.
60664
60665 2008-01-07  Bruno Haible  <bruno@clisp.org>
60666
60667         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60668         previous section name.
60669
60670 2008-01-07  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/progname.c (set_program_name): Don't strip off a leading
60673         "lt-" prefix outside a .libs directory.
60674         Suggested by Paul Eggert.
60675
60676 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60677             Bruno Haible  <bruno@clisp.org>
60678
60679         Improve memory cleanup in 'relocatable' module.
60680         * lib/relocatable.h (compute_curr_prefix): Change return type to
60681         'char *'.
60682         * lib/relocatable.c (compute_curr_prefix): Change return type to
60683         'char *'. Free curr_installdir after use.
60684         (relocate): Free curr_prefix_better after use.
60685         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60686
60687 2008-01-01  Bruno Haible  <bruno@clisp.org>
60688
60689         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60690         failure on older glibc systems.
60691         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60692
60693 2008-01-05  Eric Blake  <ebb9@byu.net>
60694
60695         Avoid quadratic system memmem.
60696         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60697         Reported by Ralf Wildenhues.
60698
60699         Fix memmem test for mingw.
60700         * modules/memmem-tests (configure.ac): Check for alarm.
60701         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60702         it.
60703         * doc/functions/memmem.texi: New file.
60704         * doc/gnulib.texi (Function Substitutes): Add memmem.
60705         Reported by Bruno Haible.
60706
60707 2008-01-04  Bruno Haible  <bruno@clisp.org>
60708
60709         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60710         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60711         gl_HEADER_STRING_H_DEFAULTS.
60712
60713 2008-01-04  Eric Blake  <ebb9@byu.net>
60714
60715         Shorten duration of memmem test.
60716         * tests/test-memmem.c (main): Use alarm to declare failure if test
60717         is taking too long.
60718         Reported by Ralf Wildenhues.
60719
60720 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60721
60722         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60723         string, needed by strerror.
60724
60725 2008-01-03  Colin Watson  <cjwatson@debian.org>
60726             Bruno Haible  <bruno@clisp.org>
60727
60728         * doc/gnulib-tool.texi (Localization): New section.
60729
60730 2008-01-02  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60733         variables to 'unsigned char *' type.
60734         Reported by Paul Eggert.
60735
60736 2008-01-02  Jim Meyering  <jim@meyering.net>
60737
60738         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60739
60740 2007-12-31  Jim Meyering  <jim@meyering.net>
60741
60742         Avoid use of private FTS type name.
60743         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60744
60745 2007-12-30  Karl Berry  <karl@gnu.org>
60746
60747         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60748         work around defect in Texinfo and/or the standalone Info browser.
60749
60750 2007-12-30  Bruno Haible  <bruno@clisp.org>
60751
60752         Unify 5 copies of the KMP code.
60753         * lib/str-kmp.h: New file.
60754         * lib/c-strcasestr.c: Include str-kmp.h.
60755         (knuth_morris_pratt): Remove function.
60756         (c_strcasestr): Update.
60757         * lib/c-strstr.c: Include str-kmp.h.
60758         (knuth_morris_pratt): Remove function.
60759         (c_strcasestr): Update.
60760         * lib/mbscasestr.c: Include str-kmp.h.
60761         (knuth_morris_pratt_unibyte): Remove function.
60762         * lib/mbsstr.c: Include str-kmp.h.
60763         (knuth_morris_pratt_unibyte): Remove function.
60764         * lib/strcasestr.c: Include str-kmp.h.
60765         (knuth_morris_pratt): Remove function.
60766         (strcasestr): Update.
60767         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60768         * modules/c-strstr (Files): Likewise.
60769         * modules/mbscasestr (Files): Likewise.
60770         * modules/mbsstr (Files): Likewise.
60771         * modules/strcasestr (Files): Likewise.
60772         Suggested by Paul Eggert.
60773
60774 2007-12-30  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60777         defined.
60778
60779 2007-12-30  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/xmalloca.h: Include xalloc.h.
60782         (xnmalloca): New macro.
60783
60784 2007-12-30  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/malloca.h (nmalloca): New macro.
60787         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60788         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60789         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60790         knuth_morris_pratt_multibyte): Likewise.
60791         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60792         knuth_morris_pratt_multibyte): Likewise.
60793         * lib/memmem.c (knuth_morris_pratt): Likewise.
60794         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60795
60796 2007-12-25  Bruno Haible  <bruno@clisp.org>
60797
60798         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60799         * lib/glob.c: Don't include openat.h.
60800         (link_exists2_p): Add back the code that deals with the
60801         !GLOB_ALTDIRFUNC case.
60802         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60803         let it do the filename concatenation.
60804         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60805         * modules/glob (Depends-on): Remove openat.
60806
60807 2007-12-31  Bruno Haible  <bruno@clisp.org>
60808
60809         * modules/dirfd (License): Change to LGPLv2+.
60810         Approved by Jim Meyering.
60811
60812 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60815         when multiplying M by sizeof (size_t).
60816
60817 2007-12-10  Martin Lambers  <marlam@marlam.de>
60818
60819         Override getpagesize on mingw.
60820         * lib/getpagesize.c: New file.
60821         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60822         * modules/getpagesize (Files): Add lib/getpagesize.c.
60823         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60825         REPLACE_GETPAGESIZE.
60826         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60827
60828 2007-12-25  Bruno Haible  <bruno@clisp.org>
60829
60830         * modules/localcharset (Notice): New field.
60831         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60832         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60833
60834 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60835             Bruno Haible  <bruno@clisp.org>
60836
60837         Avoid using the syntax symbol() in formatted documentation.
60838         * MODULES.html.sh (func_module): When replacing symbol() with a
60839         hyperlink, remove the parentheses. Show an error if some remain.
60840         Recognize and render the '...' syntax.
60841         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60842         Rework. Add paragraph about GCC's inlining.
60843         * doc/alloca.texi: Likewise.
60844         * doc/error.texi: Remove parentheses from symbol reference.
60845         * doc/gnulib-intro.texi: Likewise.
60846         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60847         * modules/fnmatch (Description): Reword to say "the ... function".
60848         * modules/full-read (Description): Likewise.
60849         * modules/full-write (Description): Likewise.
60850         * modules/safe-read (Description): Likewise.
60851         * modules/safe-write (Description): Likewise.
60852         * modules/strchrnul (Description): Likewise.
60853         * modules/trim (Description): Likewise.
60854         * modules/error (Description): Remove parentheses from symbol
60855         references.
60856         * modules/verror (Description): Likewise.
60857         Reported by Karl Berry.
60858
60859 2007-12-25  Bruno Haible  <bruno@clisp.org>
60860
60861         Fixup after 2007-10-16 commit.
60862         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60863
60864 2007-12-24  Bruno Haible  <bruno@clisp.org>
60865
60866         Make --enable-relocatable work with DESTDIR.
60867         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60868         to compute installdir from destprog.
60869         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60870         also set the RELOC_DESTDIR variable.
60871         Reported by Левашев Иван <octagram@bluebottle.com>.
60872
60873 2007-12-24  Bruno Haible  <bruno@clisp.org>
60874
60875         Fix link error due to xalloc_die().
60876         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60877         of xreadlink.
60878         * lib/relocwrapper.c: Update comments.
60879         * build-aux/install-reloc: Remove xreadlink.c from file list.
60880         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60881         xreadlink.c.
60882         Reported by Левашев Иван <octagram@bluebottle.com>.
60883
60884 2007-12-24  Bruno Haible  <bruno@clisp.org>
60885
60886         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60887         * lib/setenv.h: Remove file.
60888         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60889         lib/setenv.h.
60890         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60891         (Depends-on): Add stdlib.
60892         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60893         gl_FUNC_UNSETENV.
60894         (Include): Replace setenv.h with <stdlib.h>.
60895         * modules/unsetenv: New file.
60896         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60897         * lib/unsetenv.c: Include <stdlib.h> first.
60898         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60899         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60900         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60901         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60902         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60903         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60905         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60906         * doc/functions/unsetenv.texi: Update.
60907         * modules/xsetenv (Depends-on): Add unsetenv.
60908         * modules/getdate (Depends-on): Likewise.
60909         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60910         * lib/xsetenv.c: Don't include setenv.h.
60911         * lib/getdate.y: Likewise.
60912         * lib/relocwrapper.c: Likewise.
60913         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60914         (Depends-on): Add stdlib.
60915         * NEWS: Mention the changes.
60916         Reported by Левашев Иван <octagram@bluebottle.com>.
60917
60918 2007-12-23  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60921         indentation.
60922
60923 2007-12-23  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/c-strcasestr.c: Add more comments.
60926         * lib/c-strstr.c: Likewise.
60927         * lib/mbscasestr.c: Likewise.
60928         * lib/mbsstr.c: Likewise.
60929         * lib/strcasestr.c: Likewise.
60930         * lib/memmem.c: Likewise.
60931
60932 2007-12-23  Bruno Haible  <bruno@clisp.org>
60933
60934         * tests/test-memmem.c: Include <string.h> first.
60935
60936 2007-12-22  Bruno Haible  <bruno@clisp.org>
60937
60938         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60939         the contents of $testsbase.
60940         Reported by Ralf Wildenhues.
60941
60942 2007-12-22  Bruno Haible  <bruno@clisp.org>
60943
60944         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60945         two variables local_ldadd_before, local_ldadd_last.
60946
60947 2007-12-20  Eric Blake  <ebb9@byu.net>
60948
60949         Work around circular library issue when cross-compiling.
60950         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60951         that progname.o does not need to pull in rpl_memcmp.
60952
60953 2007-12-19  Eric Blake  <ebb9@byu.net>
60954
60955         Fix memmem to avoid O(n^2) worst-case complexity.
60956         * lib/memmem.c (knuth_morris_pratt): New function.
60957         (memmem): Use it if first few naive iterations fail.
60958         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60959         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60960         * modules/memchr (License): Likewise.
60961         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60962         malloca.
60963         * tests/test-memmem.c: Rewrite, borrowing ideas from
60964         test-mbsstr1.c; the old version wouldn't even compile!
60965         * modules/memmem-tests: New file.
60966         * lib/string.in.h (rpl_memmem): Add declaration.
60967         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60969         REPLACE_MEMMEM.
60970
60971 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60974         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60975         before any system include files, and undef after them all.  This
60976         should fix a problem on VMS reported by John E. Malmberg in
60977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60978
60979 2007-12-17  Eric Blake  <ebb9@byu.net>
60980
60981         Revert addition of verify, for BSD/OS.
60982         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60983         can't handle large files, for the sake of obsolete platforms.
60984         * modules/fseeko (Depends-on): Remove verify.
60985         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60986         * doc/functions/ftello.texi (ftello): Likewise.
60987         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60988         Reported by Larry Jones.
60989
60990 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60991
60992         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60993         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60994
60995 2007-12-17  Jim Meyering  <meyering@redhat.com>
60996
60997         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60998         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60999         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61000         * modules/getcwd (Depends-on): Add openat.
61001         Reported by Petr Salinger.
61002
61003 2007-12-17  Bruno Haible  <bruno@clisp.org>
61004
61005         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61006         avoid a segmentation fault of the configure test on x86_64 systems.
61007
61008 2007-12-15  Jim Meyering  <meyering@redhat.com>
61009
61010         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61011
61012 2007-12-13  Eric Blake  <ebb9@byu.net>
61013
61014         Another fseek test.
61015         * tests/test-fseek.c (main): Also test ungetc handling.
61016         * tests/test-fseeko.c (main): Likewise.
61017         * modules/fseeko (Depends-on): Add verify.
61018         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61019         large.
61020         Reported by Larry Jones.
61021
61022         Fix fseeko on mingw.
61023         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61024         seek.
61025
61026         Beef up fseek tests.
61027         * tests/test-fseek.c (main): Also test eof handling.
61028         * tests/test-fseeko.c (main): Likewise.
61029         Reported by Larry Jones.
61030
61031 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61032
61033         Fix fseeko on BSD-based platforms.
61034         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61035         successful seek.
61036
61037 2007-12-12  Eric Blake  <ebb9@byu.net>
61038
61039         Allow circular dependency of separate libtests.a
61040         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61041         when use_libtests.
61042
61043 2007-12-11  Eric Blake  <ebb9@byu.net>
61044
61045         Fix bug with -0.0L in previous patch.
61046         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61047         * tests/test-isnan.c (main): Also test on zeroes.
61048         * tests/test-isnanf.c (main): Likewise.
61049         * tests/test-isnanl.h (main): Likewise.
61050
61051         Detect pseudo-denormals on x86 even when cross-compiling.
61052         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61053         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61054         invalid bit patterns that happen to satisfy ==.
61055
61056         Avoid link failures with separate libtests.a.
61057         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61058         last, to satisfy circular dependencies.
61059
61060 2007-12-11  Eric Blake  <ebb9@byu.net>
61061         and Bruno Haible  <bruno@clisp.org>
61062
61063         Fix OpenBSD 4.0 <float.h> handling of long double.
61064         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61065         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61066         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61067
61068 2007-12-11  Jim Meyering  <meyering@redhat.com>
61069
61070         * users.txt: Add libvirt.
61071
61072         Support versions of autoconf prior to 2.59c.
61073         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61074         if it is not already defined.
61075
61076 2007-12-09  Bruno Haible  <bruno@clisp.org>
61077
61078         Let 'gnulib-tool --import' collect sources needed for the tests in
61079         tests/ rather than in lib/.
61080         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61081         argument. If true, add rules to generate libtests.a, and put libtests.a
61082         into $(LDADD). Consider source files in subdirectories and set
61083         uses_subdirs.
61084         (func_emit_initmacro_start, func_emit_initmacro_end,
61085         func_emit_initmacro_done): Pass all arguments explicitly.
61086         (func_import): Determine two module lists main_modules,
61087         testsrelated_modules. Determine use_libtests. Determine two variables
61088         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61089         instead of just sed_transform_lib_file. Determine two variables
61090         main_files and testsrelated_files. Compute 'files' as the union of
61091         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61092         func_add_or_update. In the generated gnulib-comp.m4, collect the
61093         object files for tests/ in different variables than those for lib/.
61094         Substitute LIBTESTS_LIBDEPS.
61095         (func_create_testdir): Combine the uses_subdirs results from
61096         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61097
61098 2007-12-09  Bruno Haible  <bruno@clisp.org>
61099
61100         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61101         the build-aux directory.
61102
61103 2007-12-09  Bruno Haible  <bruno@clisp.org>
61104
61105         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61106         introduced on 2006-09-09.
61107
61108 2007-12-07  Jim Meyering  <meyering@redhat.com>
61109
61110         Let these macros work also with autoconf-2.59.
61111         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61112         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61114
61115 2007-12-06  Jim Meyering  <meyering@redhat.com>
61116
61117         Avoid a configure-time syntax error in gl_FUNC_ACL.
61118         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61119         function in each branch, before testing the cache variable.
61120
61121 2007-12-04  Eric Blake  <ebb9@byu.net>
61122
61123         Make scripts executable.
61124         * build-aux/config.guess: Add execute permissions.
61125         * build-aux/config.sub: Likewise.
61126         * build-aux/gendocs.sh: Likewise.
61127
61128         Fix frexp on mingw.
61129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61130         cross-compiling.
61131         * doc/functions/frexp.texi (frexp): Document the bug.
61132
61133         Make cygwin fseeko check more reliable.
61134         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61135         version numbers, rather than unrelated feature check.
61136         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61137         * doc/functions/ftello.texi (ftello): Likewise.
61138         Reported by Bruno Haible.
61139
61140         * m4/strerror.m4: Bump version number.
61141
61142 2007-12-03  Bruno Haible  <bruno@clisp.org>
61143
61144         * doc/functions/mprotect.texi: Mention the mingw problem.
61145
61146 2007-12-03  Eric Blake  <ebb9@byu.net>
61147
61148         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61149         REPLACE_STRERROR is initialized before this macro.
61150
61151 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61154         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61155         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61156         put -lsec in even for programs other than 'ls'.  This fixes a problem
61157         for gettext reported by Bruno Haible in
61158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61159         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61160         Add support for Solaris 10.  This isn't efficient, but should get the
61161         job done for now.
61162
61163 2007-12-03  James Youngman  <jay@gnu.org>
61164
61165         * doc/regexprops-generic.texi: change "an close-group" to "a
61166         close-group" and "illegal" to "not allowed".
61167
61168 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61169
61170         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61171         pr_byname.h. Needed for the rare case when the maintainer has done
61172         "make maintainer-clean" in the source directory and then attempts a
61173         build outside the source directory.
61174         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61175         scripts_byname.h.
61176
61177 2007-12-02  Martin Lambers <marlam@marlam.de>
61178             Bruno Haible  <bruno@clisp.org>
61179
61180         * lib/getpagesize.h: Remove file.
61181         * lib/unistd.in.h: Include declaration of getpagesize here.
61182         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61183         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61184         HAVE_SYS_PARAM_H.
61185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61186         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61187         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61188         (Depends-on): Add unistd.
61189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61190         (Include): Use <unistd.h> instead of getpagesize.h.
61191         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61192         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61193         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61194         gl_GETPAGESIZE invocation, already handled by module dependency.
61195         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61196
61197 2007-12-02  Bruno Haible  <bruno@clisp.org>
61198
61199         * modules/strings-tests: New file.
61200         * tests/test-strings.c: New file.
61201
61202         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61203         * lib/strings.in.h: New file.
61204         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61205         * m4/strings_h.m4: New file.
61206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61207         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61208         * modules/strings: New file.
61209         * modules/string (Makefile.am): Update.
61210         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61211         Reported by Karl Berry.
61212
61213 2007-12-01  Eric Blake  <ebb9@byu.net>
61214
61215         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61216         accommodate fix in cygwin 1.5.25.
61217
61218 2007-12-01  Jim Meyering  <meyering@redhat.com>
61219
61220         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61221         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61222         that would inhibit utf8-optimization of a regexp containing line-
61223         or buffer-anchors, e.g., `^', `$'.
61224
61225 2007-11-30  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61228         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61229         glthread_recursive_lock_init.
61230         * lib/lock.c (glthread_recursive_lock_init)
61231         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61233
61234 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         New function qset_acl, like set_acl but with syscall semantics.
61237         * lib/acl.h (qset_acl): New decl.
61238         * lib/acl.c (qset_acl): New function.
61239         (set_acl): Use new function.  Use more-consistent diagnostics.
61240
61241 2007-11-28  Jim Meyering  <meyering@redhat.com>
61242
61243         * modules/physmem (License): Change from GPL to LGPLv2+.
61244
61245 2007-11-26  Bruno Haible  <bruno@clisp.org>
61246
61247         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61248         'long double' type has excess precision.
61249         Reported by Jim Meyering in
61250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61251
61252 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61253
61254         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61255         Sync from <http://gnu.org/licenses>.
61256         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61257         with license text from same location.
61258         * doc/maintain.texi, doc/standards.texi:  Sync from
61259         <http://savannah.gnu.org/projects/gnustandards>.
61260
61261 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
61262         and Jim Meyering  <meyering@redhat.com>
61263
61264         Adjust getdate' grammar to accept a slightly more regular language.
61265         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61266         Before, the former was rejected.
61267         * lib/getdate.y (digits_to_date_time): New function, factored
61268         out of ...
61269         (number): ...here.  Just call digits_to_date_time.
61270         (hybrid): New non-terminal to handle an <unsigned number,
61271         signed relative offset> sequence consistently.
61272
61273 2007-11-18  Jim Meyering  <meyering@redhat.com>
61274
61275         Pull my changes from coreutils:
61276         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61277         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61278         use of $gnulib_tool_option_extras, so that it's separated from the
61279         preceding argument.
61280
61281         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61282         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61283         parent destination directories before copying a file into place.
61284
61285 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61286
61287         bootstrap: work also with 4-argument variant of AC_INIT
61288         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61289
61290 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         Port test-getaddrinfo to Solaris.
61293         Problem reported by Bruno Haible in
61294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61295         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61296         explanation of setting 'hints'.
61297         Don't reject an implementation merely because it returns EAI_SERVICE.
61298         (EAI_SERVICE): Define to 0 if not defined.
61299
61300 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         The license of gnu-make and posix-shell is now "GPLed build tool".
61303         * modules/gnu-make (License): Likewise.
61304         * modules/posix-shell (License): Likewise.
61305
61306         New module posix-shell, for determining a POSIX shell
61307         or perhaps something that is close enough to a POSIX shell.
61308         * m4/posix-shell.m4: New file.
61309         * modules/posix-shell: New file.
61310
61311         * MODULES.html.sh: Mention new module.
61312
61313         New module gnu-make, for determining whether we're using GNU Make.
61314         * m4/gnu-make.m4: New file.
61315         * modules/gnu-make: New file.
61316         * MODULES.html.sh: Mention new module.
61317
61318 2007-11-14  Jim Meyering  <meyering@redhat.com>
61319
61320         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61321         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61322         use this macro to create a function _definition_.
61323         Remove useless "#undef ARGMATCH_DIE".
61324
61325 2007-11-14  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/config.charset: Update for OpenBSD 4.1.
61328         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61329
61330 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61331
61332         Document 64-bit #if problems in stdint.texi.
61333         * doc/headers/stdint.texi (stdint.h): Mention problems with
61334         64-bit-#if, and how to work around them.
61335
61336         Don't insist on 'long long int' support in the preprocessor.  It
61337         breaks too many things.  For example, PRIdMAX still uses a 'long
61338         long int' format with the latest Sun compiler, even though
61339         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61340         preprocessor problem.  This causes the latest coreutils to dump
61341         core on Solaris 10 sparc with the Sun C compiler.
61342         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61343         the troublesome expressions at configure-time, not at #if-time.
61344         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61345         preprocessor.
61346         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61347         compile-time C checks, done at 'configure'-time.
61348         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61349         * modules/inttypes (Makefile): Substitute the new symbols that
61350         gl_INTTYPES_H now generates.
61351         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61352
61353 2007-11-12  Bruno Haible  <bruno@clisp.org>
61354
61355         Tests for Unicode character classification functions.
61356
61357         * modules/unictype/bidicategory-byname-tests: New file.
61358         * modules/unictype/bidicategory-name-tests: New file.
61359         * modules/unictype/bidicategory-of-tests: New file.
61360         * modules/unictype/bidicategory-test-tests: New file.
61361         * modules/unictype/block-list-tests: New file.
61362         * modules/unictype/block-of-tests: New file.
61363         * modules/unictype/block-test-tests: New file.
61364         * modules/unictype/category-C-tests: New file.
61365         * modules/unictype/category-Cc-tests: New file.
61366         * modules/unictype/category-Cf-tests: New file.
61367         * modules/unictype/category-Cn-tests: New file.
61368         * modules/unictype/category-Co-tests: New file.
61369         * modules/unictype/category-Cs-tests: New file.
61370         * modules/unictype/category-L-tests: New file.
61371         * modules/unictype/category-Ll-tests: New file.
61372         * modules/unictype/category-Lm-tests: New file.
61373         * modules/unictype/category-Lo-tests: New file.
61374         * modules/unictype/category-Lt-tests: New file.
61375         * modules/unictype/category-Lu-tests: New file.
61376         * modules/unictype/category-M-tests: New file.
61377         * modules/unictype/category-Mc-tests: New file.
61378         * modules/unictype/category-Me-tests: New file.
61379         * modules/unictype/category-Mn-tests: New file.
61380         * modules/unictype/category-N-tests: New file.
61381         * modules/unictype/category-Nd-tests: New file.
61382         * modules/unictype/category-Nl-tests: New file.
61383         * modules/unictype/category-No-tests: New file.
61384         * modules/unictype/category-P-tests: New file.
61385         * modules/unictype/category-Pc-tests: New file.
61386         * modules/unictype/category-Pd-tests: New file.
61387         * modules/unictype/category-Pe-tests: New file.
61388         * modules/unictype/category-Pf-tests: New file.
61389         * modules/unictype/category-Pi-tests: New file.
61390         * modules/unictype/category-Po-tests: New file.
61391         * modules/unictype/category-Ps-tests: New file.
61392         * modules/unictype/category-S-tests: New file.
61393         * modules/unictype/category-Sc-tests: New file.
61394         * modules/unictype/category-Sk-tests: New file.
61395         * modules/unictype/category-Sm-tests: New file.
61396         * modules/unictype/category-So-tests: New file.
61397         * modules/unictype/category-Z-tests: New file.
61398         * modules/unictype/category-Zl-tests: New file.
61399         * modules/unictype/category-Zp-tests: New file.
61400         * modules/unictype/category-Zs-tests: New file.
61401         * modules/unictype/category-and-not-tests: New file.
61402         * modules/unictype/category-and-tests: New file.
61403         * modules/unictype/category-byname-tests: New file.
61404         * modules/unictype/category-name-tests: New file.
61405         * modules/unictype/category-none-tests: New file.
61406         * modules/unictype/category-of-tests: New file.
61407         * modules/unictype/category-or-tests: New file.
61408         * modules/unictype/category-test-withtable-tests: New file.
61409         * modules/unictype/combining-class-tests: New file.
61410         * modules/unictype/ctype-alnum-tests: New file.
61411         * modules/unictype/ctype-alpha-tests: New file.
61412         * modules/unictype/ctype-blank-tests: New file.
61413         * modules/unictype/ctype-cntrl-tests: New file.
61414         * modules/unictype/ctype-digit-tests: New file.
61415         * modules/unictype/ctype-graph-tests: New file.
61416         * modules/unictype/ctype-lower-tests: New file.
61417         * modules/unictype/ctype-print-tests: New file.
61418         * modules/unictype/ctype-punct-tests: New file.
61419         * modules/unictype/ctype-space-tests: New file.
61420         * modules/unictype/ctype-upper-tests: New file.
61421         * modules/unictype/ctype-xdigit-tests: New file.
61422         * modules/unictype/decimal-digit-tests: New file.
61423         * modules/unictype/digit-tests: New file.
61424         * modules/unictype/mirror-tests: New file.
61425         * modules/unictype/numeric-tests: New file.
61426         * modules/unictype/property-alphabetic-tests: New file.
61427         * modules/unictype/property-ascii-hex-digit-tests: New file.
61428         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61429         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61430         * modules/unictype/property-bidi-block-separator-tests: New file.
61431         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61432         * modules/unictype/property-bidi-common-separator-tests: New file.
61433         * modules/unictype/property-bidi-control-tests: New file.
61434         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61435         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61436         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61437         * modules/unictype/property-bidi-european-digit-tests: New file.
61438         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61439         * modules/unictype/property-bidi-left-to-right-tests: New file.
61440         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61441         * modules/unictype/property-bidi-other-neutral-tests: New file.
61442         * modules/unictype/property-bidi-pdf-tests: New file.
61443         * modules/unictype/property-bidi-segment-separator-tests: New file.
61444         * modules/unictype/property-bidi-whitespace-tests: New file.
61445         * modules/unictype/property-byname-tests: New file.
61446         * modules/unictype/property-combining-tests: New file.
61447         * modules/unictype/property-composite-tests: New file.
61448         * modules/unictype/property-currency-symbol-tests: New file.
61449         * modules/unictype/property-dash-tests: New file.
61450         * modules/unictype/property-decimal-digit-tests: New file.
61451         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61452         * modules/unictype/property-deprecated-tests: New file.
61453         * modules/unictype/property-diacritic-tests: New file.
61454         * modules/unictype/property-extender-tests: New file.
61455         * modules/unictype/property-format-control-tests: New file.
61456         * modules/unictype/property-grapheme-base-tests: New file.
61457         * modules/unictype/property-grapheme-extend-tests: New file.
61458         * modules/unictype/property-grapheme-link-tests: New file.
61459         * modules/unictype/property-hex-digit-tests: New file.
61460         * modules/unictype/property-hyphen-tests: New file.
61461         * modules/unictype/property-id-continue-tests: New file.
61462         * modules/unictype/property-id-start-tests: New file.
61463         * modules/unictype/property-ideographic-tests: New file.
61464         * modules/unictype/property-ids-binary-operator-tests: New file.
61465         * modules/unictype/property-ids-trinary-operator-tests: New file.
61466         * modules/unictype/property-ignorable-control-tests: New file.
61467         * modules/unictype/property-iso-control-tests: New file.
61468         * modules/unictype/property-join-control-tests: New file.
61469         * modules/unictype/property-left-of-pair-tests: New file.
61470         * modules/unictype/property-line-separator-tests: New file.
61471         * modules/unictype/property-logical-order-exception-tests: New file.
61472         * modules/unictype/property-lowercase-tests: New file.
61473         * modules/unictype/property-math-tests: New file.
61474         * modules/unictype/property-non-break-tests: New file.
61475         * modules/unictype/property-not-a-character-tests: New file.
61476         * modules/unictype/property-numeric-tests: New file.
61477         * modules/unictype/property-other-alphabetic-tests: New file.
61478         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61479         * modules/unictype/property-other-grapheme-extend-tests: New file.
61480         * modules/unictype/property-other-id-continue-tests: New file.
61481         * modules/unictype/property-other-id-start-tests: New file.
61482         * modules/unictype/property-other-lowercase-tests: New file.
61483         * modules/unictype/property-other-math-tests: New file.
61484         * modules/unictype/property-other-uppercase-tests: New file.
61485         * modules/unictype/property-paired-punctuation-tests: New file.
61486         * modules/unictype/property-paragraph-separator-tests: New file.
61487         * modules/unictype/property-pattern-syntax-tests: New file.
61488         * modules/unictype/property-pattern-white-space-tests: New file.
61489         * modules/unictype/property-private-use-tests: New file.
61490         * modules/unictype/property-punctuation-tests: New file.
61491         * modules/unictype/property-quotation-mark-tests: New file.
61492         * modules/unictype/property-radical-tests: New file.
61493         * modules/unictype/property-sentence-terminal-tests: New file.
61494         * modules/unictype/property-soft-dotted-tests: New file.
61495         * modules/unictype/property-space-tests: New file.
61496         * modules/unictype/property-terminal-punctuation-tests: New file.
61497         * modules/unictype/property-test-tests: New file.
61498         * modules/unictype/property-titlecase-tests: New file.
61499         * modules/unictype/property-unassigned-code-value-tests: New file.
61500         * modules/unictype/property-unified-ideograph-tests: New file.
61501         * modules/unictype/property-uppercase-tests: New file.
61502         * modules/unictype/property-variation-selector-tests: New file.
61503         * modules/unictype/property-white-space-tests: New file.
61504         * modules/unictype/property-xid-continue-tests: New file.
61505         * modules/unictype/property-xid-start-tests: New file.
61506         * modules/unictype/property-zero-width-tests: New file.
61507         * modules/unictype/scripts-tests: New file.
61508         * modules/unictype/syntax-c-ident-tests: New file.
61509         * modules/unictype/syntax-c-whitespace-tests: New file.
61510         * modules/unictype/syntax-java-ident-tests: New file.
61511         * modules/unictype/syntax-java-whitespace-tests: New file.
61512         * tests/unictype/test-bidi_byname.c: New file.
61513         * tests/unictype/test-bidi_name.c: New file.
61514         * tests/unictype/test-bidi_of.c: New file.
61515         * tests/unictype/test-bidi_test.c: New file.
61516         * tests/unictype/test-block_list.c: New file.
61517         * tests/unictype/test-block_of.c: New file.
61518         * tests/unictype/test-block_test.c: New file.
61519         * tests/unictype/test-categ_and.c: New file.
61520         * tests/unictype/test-categ_and_not.c: New file.
61521         * tests/unictype/test-categ_byname.c: New file.
61522         * tests/unictype/test-categ_name.c: New file.
61523         * tests/unictype/test-categ_none.c: New file.
61524         * tests/unictype/test-categ_of.c: New file.
61525         * tests/unictype/test-categ_or.c: New file.
61526         * tests/unictype/test-categ_test_withtable.c: New file.
61527         * tests/unictype/test-combining.c: New file.
61528         * tests/unictype/test-decdigit.c: New file.
61529         * tests/unictype/test-digit.c: New file.
61530         * tests/unictype/test-mirror.c: New file.
61531         * tests/unictype/test-numeric.c: New file.
61532         * tests/unictype/test-pr_byname.c: New file.
61533         * tests/unictype/test-pr_test.c: New file.
61534         * tests/unictype/test-predicate-part1.h: New file.
61535         * tests/unictype/test-predicate-part2.h: New file.
61536         * tests/unictype/test-scripts.c: New file.
61537         * tests/unictype/test-sy_c_ident.c: New file.
61538         * tests/unictype/test-sy_java_ident.c: New file.
61539
61540         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61541         for Unicode 5.0.0.
61542         * tests/unictype/test-categ_Cc.c: Likewise.
61543         * tests/unictype/test-categ_Cf.c: Likewise.
61544         * tests/unictype/test-categ_Cn.c: Likewise.
61545         * tests/unictype/test-categ_Co.c: Likewise.
61546         * tests/unictype/test-categ_Cs.c: Likewise.
61547         * tests/unictype/test-categ_L.c: Likewise.
61548         * tests/unictype/test-categ_Ll.c: Likewise.
61549         * tests/unictype/test-categ_Lm.c: Likewise.
61550         * tests/unictype/test-categ_Lo.c: Likewise.
61551         * tests/unictype/test-categ_Lt.c: Likewise.
61552         * tests/unictype/test-categ_Lu.c: Likewise.
61553         * tests/unictype/test-categ_M.c: Likewise.
61554         * tests/unictype/test-categ_Mc.c: Likewise.
61555         * tests/unictype/test-categ_Me.c: Likewise.
61556         * tests/unictype/test-categ_Mn.c: Likewise.
61557         * tests/unictype/test-categ_N.c: Likewise.
61558         * tests/unictype/test-categ_Nd.c: Likewise.
61559         * tests/unictype/test-categ_Nl.c: Likewise.
61560         * tests/unictype/test-categ_No.c: Likewise.
61561         * tests/unictype/test-categ_P.c: Likewise.
61562         * tests/unictype/test-categ_Pc.c: Likewise.
61563         * tests/unictype/test-categ_Pd.c: Likewise.
61564         * tests/unictype/test-categ_Pe.c: Likewise.
61565         * tests/unictype/test-categ_Pf.c: Likewise.
61566         * tests/unictype/test-categ_Pi.c: Likewise.
61567         * tests/unictype/test-categ_Po.c: Likewise.
61568         * tests/unictype/test-categ_Ps.c: Likewise.
61569         * tests/unictype/test-categ_S.c: Likewise.
61570         * tests/unictype/test-categ_Sc.c: Likewise.
61571         * tests/unictype/test-categ_Sk.c: Likewise.
61572         * tests/unictype/test-categ_Sm.c: Likewise.
61573         * tests/unictype/test-categ_So.c: Likewise.
61574         * tests/unictype/test-categ_Z.c: Likewise.
61575         * tests/unictype/test-categ_Zl.c: Likewise.
61576         * tests/unictype/test-categ_Zp.c: Likewise.
61577         * tests/unictype/test-categ_Zs.c: Likewise.
61578         * tests/unictype/test-ctype_alnum.c: Likewise.
61579         * tests/unictype/test-ctype_alpha.c: Likewise.
61580         * tests/unictype/test-ctype_blank.c: Likewise.
61581         * tests/unictype/test-ctype_cntrl.c: Likewise.
61582         * tests/unictype/test-ctype_digit.c: Likewise.
61583         * tests/unictype/test-ctype_graph.c: Likewise.
61584         * tests/unictype/test-ctype_lower.c: Likewise.
61585         * tests/unictype/test-ctype_print.c: Likewise.
61586         * tests/unictype/test-ctype_punct.c: Likewise.
61587         * tests/unictype/test-ctype_space.c: Likewise.
61588         * tests/unictype/test-ctype_upper.c: Likewise.
61589         * tests/unictype/test-ctype_xdigit.c: Likewise.
61590         * tests/unictype/test-decdigit.h: Likewise.
61591         * tests/unictype/test-digit.h: Likewise.
61592         * tests/unictype/test-numeric.h: Likewise.
61593         * tests/unictype/test-pr_alphabetic.c: Likewise.
61594         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61595         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61596         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61597         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61598         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61599         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61600         * tests/unictype/test-pr_bidi_control.c: Likewise.
61601         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61602         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61603         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61604         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61605         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61606         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61607         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61608         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61609         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61610         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61611         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61612         * tests/unictype/test-pr_combining.c: Likewise.
61613         * tests/unictype/test-pr_composite.c: Likewise.
61614         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61615         * tests/unictype/test-pr_dash.c: Likewise.
61616         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61617         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61618         * tests/unictype/test-pr_deprecated.c: Likewise.
61619         * tests/unictype/test-pr_diacritic.c: Likewise.
61620         * tests/unictype/test-pr_extender.c: Likewise.
61621         * tests/unictype/test-pr_format_control.c: Likewise.
61622         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61623         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61624         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61625         * tests/unictype/test-pr_hex_digit.c: Likewise.
61626         * tests/unictype/test-pr_hyphen.c: Likewise.
61627         * tests/unictype/test-pr_id_continue.c: Likewise.
61628         * tests/unictype/test-pr_id_start.c: Likewise.
61629         * tests/unictype/test-pr_ideographic.c: Likewise.
61630         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61631         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61632         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61633         * tests/unictype/test-pr_iso_control.c: Likewise.
61634         * tests/unictype/test-pr_join_control.c: Likewise.
61635         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61636         * tests/unictype/test-pr_line_separator.c: Likewise.
61637         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61638         * tests/unictype/test-pr_lowercase.c: Likewise.
61639         * tests/unictype/test-pr_math.c: Likewise.
61640         * tests/unictype/test-pr_non_break.c: Likewise.
61641         * tests/unictype/test-pr_not_a_character.c: Likewise.
61642         * tests/unictype/test-pr_numeric.c: Likewise.
61643         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61644         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61645         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61646         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61647         * tests/unictype/test-pr_other_id_start.c: Likewise.
61648         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61649         * tests/unictype/test-pr_other_math.c: Likewise.
61650         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61651         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61652         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61653         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61654         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61655         * tests/unictype/test-pr_private_use.c: Likewise.
61656         * tests/unictype/test-pr_punctuation.c: Likewise.
61657         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61658         * tests/unictype/test-pr_radical.c: Likewise.
61659         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61660         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61661         * tests/unictype/test-pr_space.c: Likewise.
61662         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61663         * tests/unictype/test-pr_titlecase.c: Likewise.
61664         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61665         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61666         * tests/unictype/test-pr_uppercase.c: Likewise.
61667         * tests/unictype/test-pr_variation_selector.c: Likewise.
61668         * tests/unictype/test-pr_white_space.c: Likewise.
61669         * tests/unictype/test-pr_xid_continue.c: Likewise.
61670         * tests/unictype/test-pr_xid_start.c: Likewise.
61671         * tests/unictype/test-pr_zero_width.c: Likewise.
61672         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61673         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61674
61675 2007-11-12  Bruno Haible  <bruno@clisp.org>
61676
61677         Unicode character classification functions.
61678         * lib/unictype.h: New file.
61679         * modules/unictype/base: New file.
61680         * modules/unictype/category-L: New file.
61681         * modules/unictype/category-Lu: New file.
61682         * modules/unictype/category-Ll: New file.
61683         * modules/unictype/category-Lt: New file.
61684         * modules/unictype/category-Lm: New file.
61685         * modules/unictype/category-Lo: New file.
61686         * modules/unictype/category-M: New file.
61687         * modules/unictype/category-Mn: New file.
61688         * modules/unictype/category-Mc: New file.
61689         * modules/unictype/category-Me: New file.
61690         * modules/unictype/category-N: New file.
61691         * modules/unictype/category-Nd: New file.
61692         * modules/unictype/category-Nl: New file.
61693         * modules/unictype/category-No: New file.
61694         * modules/unictype/category-P: New file.
61695         * modules/unictype/category-Pc: New file.
61696         * modules/unictype/category-Pd: New file.
61697         * modules/unictype/category-Ps: New file.
61698         * modules/unictype/category-Pe: New file.
61699         * modules/unictype/category-Pi: New file.
61700         * modules/unictype/category-Pf: New file.
61701         * modules/unictype/category-Po: New file.
61702         * modules/unictype/category-S: New file.
61703         * modules/unictype/category-Sm: New file.
61704         * modules/unictype/category-Sc: New file.
61705         * modules/unictype/category-Sk: New file.
61706         * modules/unictype/category-So: New file.
61707         * modules/unictype/category-Z: New file.
61708         * modules/unictype/category-Zs: New file.
61709         * modules/unictype/category-Zl: New file.
61710         * modules/unictype/category-Zp: New file.
61711         * modules/unictype/category-C: New file.
61712         * modules/unictype/category-Cc: New file.
61713         * modules/unictype/category-Cf: New file.
61714         * modules/unictype/category-Cs: New file.
61715         * modules/unictype/category-Co: New file.
61716         * modules/unictype/category-Cn: New file.
61717         * modules/unictype/category-or: New file.
61718         * modules/unictype/category-of: New file.
61719         * modules/unictype/category-test: New file.
61720         * modules/unictype/category-test-withtable: New file.
61721         * modules/unictype/category-byname: New file.
61722         * modules/unictype/category-none: New file.
61723         * modules/unictype/category-and: New file.
61724         * modules/unictype/category-and-not: New file.
61725         * modules/unictype/category-name: New file.
61726         * modules/unictype/combining-class: New file.
61727         * modules/unictype/category-all: New file.
61728         * modules/unictype/bidicategory-all: New file.
61729         * modules/unictype/bidicategory-byname: New file.
61730         * modules/unictype/bidicategory-name: New file.
61731         * modules/unictype/bidicategory-of: New file.
61732         * modules/unictype/bidicategory-test: New file.
61733         * modules/unictype/decimal-digit: New file.
61734         * modules/unictype/digit: New file.
61735         * modules/unictype/numeric: New file.
61736         * modules/unictype/mirror: New file.
61737         * modules/unictype/property-white-space: New file.
61738         * modules/unictype/property-alphabetic: New file.
61739         * modules/unictype/property-other-alphabetic: New file.
61740         * modules/unictype/property-not-a-character: New file.
61741         * modules/unictype/property-default-ignorable-code-point: New file.
61742         * modules/unictype/property-other-default-ignorable-code-point: New
61743         file.
61744         * modules/unictype/property-deprecated: New file.
61745         * modules/unictype/property-logical-order-exception: New file.
61746         * modules/unictype/property-variation-selector: New file.
61747         * modules/unictype/property-private-use: New file.
61748         * modules/unictype/property-unassigned-code-value: New file.
61749         * modules/unictype/property-uppercase: New file.
61750         * modules/unictype/property-other-uppercase: New file.
61751         * modules/unictype/property-lowercase: New file.
61752         * modules/unictype/property-other-lowercase: New file.
61753         * modules/unictype/property-titlecase: New file.
61754         * modules/unictype/property-soft-dotted: New file.
61755         * modules/unictype/property-id-start: New file.
61756         * modules/unictype/property-other-id-start: New file.
61757         * modules/unictype/property-id-continue: New file.
61758         * modules/unictype/property-other-id-continue: New file.
61759         * modules/unictype/property-xid-start: New file.
61760         * modules/unictype/property-xid-continue: New file.
61761         * modules/unictype/property-pattern-white-space: New file.
61762         * modules/unictype/property-pattern-syntax: New file.
61763         * modules/unictype/property-join-control: New file.
61764         * modules/unictype/property-grapheme-base: New file.
61765         * modules/unictype/property-grapheme-extend: New file.
61766         * modules/unictype/property-other-grapheme-extend: New file.
61767         * modules/unictype/property-grapheme-link: New file.
61768         * modules/unictype/property-bidi-control: New file.
61769         * modules/unictype/property-bidi-left-to-right: New file.
61770         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61771         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61772         * modules/unictype/property-bidi-european-digit: New file.
61773         * modules/unictype/property-bidi-eur-num-separator: New file.
61774         * modules/unictype/property-bidi-eur-num-terminator: New file.
61775         * modules/unictype/property-bidi-arabic-digit: New file.
61776         * modules/unictype/property-bidi-common-separator: New file.
61777         * modules/unictype/property-bidi-block-separator: New file.
61778         * modules/unictype/property-bidi-segment-separator: New file.
61779         * modules/unictype/property-bidi-whitespace: New file.
61780         * modules/unictype/property-bidi-non-spacing-mark: New file.
61781         * modules/unictype/property-bidi-boundary-neutral: New file.
61782         * modules/unictype/property-bidi-pdf: New file.
61783         * modules/unictype/property-bidi-embedding-or-override: New file.
61784         * modules/unictype/property-bidi-other-neutral: New file.
61785         * modules/unictype/property-hex-digit: New file.
61786         * modules/unictype/property-ascii-hex-digit: New file.
61787         * modules/unictype/property-ideographic: New file.
61788         * modules/unictype/property-unified-ideograph: New file.
61789         * modules/unictype/property-radical: New file.
61790         * modules/unictype/property-ids-binary-operator: New file.
61791         * modules/unictype/property-ids-trinary-operator: New file.
61792         * modules/unictype/property-zero-width: New file.
61793         * modules/unictype/property-space: New file.
61794         * modules/unictype/property-non-break: New file.
61795         * modules/unictype/property-iso-control: New file.
61796         * modules/unictype/property-format-control: New file.
61797         * modules/unictype/property-dash: New file.
61798         * modules/unictype/property-hyphen: New file.
61799         * modules/unictype/property-punctuation: New file.
61800         * modules/unictype/property-line-separator: New file.
61801         * modules/unictype/property-paragraph-separator: New file.
61802         * modules/unictype/property-quotation-mark: New file.
61803         * modules/unictype/property-sentence-terminal: New file.
61804         * modules/unictype/property-terminal-punctuation: New file.
61805         * modules/unictype/property-currency-symbol: New file.
61806         * modules/unictype/property-math: New file.
61807         * modules/unictype/property-other-math: New file.
61808         * modules/unictype/property-paired-punctuation: New file.
61809         * modules/unictype/property-left-of-pair: New file.
61810         * modules/unictype/property-combining: New file.
61811         * modules/unictype/property-composite: New file.
61812         * modules/unictype/property-decimal-digit: New file.
61813         * modules/unictype/property-numeric: New file.
61814         * modules/unictype/property-diacritic: New file.
61815         * modules/unictype/property-extender: New file.
61816         * modules/unictype/property-ignorable-control: New file.
61817         * modules/unictype/property-test: New file.
61818         * modules/unictype/property-byname: New file.
61819         * modules/unictype/property-all: New file.
61820         * modules/unictype/scripts: New file.
61821         * modules/unictype/scripts-all: New file.
61822         * modules/unictype/block-of: New file.
61823         * modules/unictype/block-test: New file.
61824         * modules/unictype/block-list: New file.
61825         * modules/unictype/block-all: New file.
61826         * modules/unictype/syntax-c-whitespace: New file.
61827         * modules/unictype/syntax-java-whitespace: New file.
61828         * modules/unictype/syntax-c-ident: New file.
61829         * modules/unictype/syntax-java-ident: New file.
61830         * modules/unictype/ctype-alnum: New file.
61831         * modules/unictype/ctype-alpha: New file.
61832         * modules/unictype/ctype-cntrl: New file.
61833         * modules/unictype/ctype-digit: New file.
61834         * modules/unictype/ctype-graph: New file.
61835         * modules/unictype/ctype-lower: New file.
61836         * modules/unictype/ctype-print: New file.
61837         * modules/unictype/ctype-punct: New file.
61838         * modules/unictype/ctype-space: New file.
61839         * modules/unictype/ctype-upper: New file.
61840         * modules/unictype/ctype-xdigit: New file.
61841         * modules/unictype/ctype-blank: New file.
61842         * lib/unictype/bidi_byname.c: New file.
61843         * lib/unictype/bidi_name.c: New file.
61844         * lib/unictype/bidi_of.c: New file.
61845         * lib/unictype/bidi_test.c: New file.
61846         * lib/unictype/bitmap.h: New file.
61847         * lib/unictype/block_test.c: New file.
61848         * lib/unictype/blocks.c: New file.
61849         * lib/unictype/categ_C.c: New file.
61850         * lib/unictype/categ_Cc.c: New file.
61851         * lib/unictype/categ_Cf.c: New file.
61852         * lib/unictype/categ_Cn.c: New file.
61853         * lib/unictype/categ_Co.c: New file.
61854         * lib/unictype/categ_Cs.c: New file.
61855         * lib/unictype/categ_L.c: New file.
61856         * lib/unictype/categ_Ll.c: New file.
61857         * lib/unictype/categ_Lm.c: New file.
61858         * lib/unictype/categ_Lo.c: New file.
61859         * lib/unictype/categ_Lt.c: New file.
61860         * lib/unictype/categ_Lu.c: New file.
61861         * lib/unictype/categ_M.c: New file.
61862         * lib/unictype/categ_Mc.c: New file.
61863         * lib/unictype/categ_Me.c: New file.
61864         * lib/unictype/categ_Mn.c: New file.
61865         * lib/unictype/categ_N.c: New file.
61866         * lib/unictype/categ_Nd.c: New file.
61867         * lib/unictype/categ_Nl.c: New file.
61868         * lib/unictype/categ_No.c: New file.
61869         * lib/unictype/categ_P.c: New file.
61870         * lib/unictype/categ_Pc.c: New file.
61871         * lib/unictype/categ_Pd.c: New file.
61872         * lib/unictype/categ_Pe.c: New file.
61873         * lib/unictype/categ_Pf.c: New file.
61874         * lib/unictype/categ_Pi.c: New file.
61875         * lib/unictype/categ_Po.c: New file.
61876         * lib/unictype/categ_Ps.c: New file.
61877         * lib/unictype/categ_S.c: New file.
61878         * lib/unictype/categ_Sc.c: New file.
61879         * lib/unictype/categ_Sk.c: New file.
61880         * lib/unictype/categ_Sm.c: New file.
61881         * lib/unictype/categ_So.c: New file.
61882         * lib/unictype/categ_Z.c: New file.
61883         * lib/unictype/categ_Zl.c: New file.
61884         * lib/unictype/categ_Zp.c: New file.
61885         * lib/unictype/categ_Zs.c: New file.
61886         * lib/unictype/categ_and.c: New file.
61887         * lib/unictype/categ_and_not.c: New file.
61888         * lib/unictype/categ_byname.c: New file.
61889         * lib/unictype/categ_name.c: New file.
61890         * lib/unictype/categ_none.c: New file.
61891         * lib/unictype/categ_of.c: New file.
61892         * lib/unictype/categ_or.c: New file.
61893         * lib/unictype/categ_test.c: New file.
61894         * lib/unictype/combining.c: New file.
61895         * lib/unictype/ctype_alnum.c: New file.
61896         * lib/unictype/ctype_alpha.c: New file.
61897         * lib/unictype/ctype_blank.c: New file.
61898         * lib/unictype/ctype_cntrl.c: New file.
61899         * lib/unictype/ctype_digit.c: New file.
61900         * lib/unictype/ctype_graph.c: New file.
61901         * lib/unictype/ctype_lower.c: New file.
61902         * lib/unictype/ctype_print.c: New file.
61903         * lib/unictype/ctype_punct.c: New file.
61904         * lib/unictype/ctype_space.c: New file.
61905         * lib/unictype/ctype_upper.c: New file.
61906         * lib/unictype/ctype_xdigit.c: New file.
61907         * lib/unictype/decdigit.c: New file.
61908         * lib/unictype/digit.c: New file.
61909         * lib/unictype/identsyntaxmap.h: New file.
61910         * lib/unictype/mirror.c: New file.
61911         * lib/unictype/numeric.c: New file.
61912         * lib/unictype/pr_alphabetic.c: New file.
61913         * lib/unictype/pr_ascii_hex_digit.c: New file.
61914         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61915         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61916         * lib/unictype/pr_bidi_block_separator.c: New file.
61917         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61918         * lib/unictype/pr_bidi_common_separator.c: New file.
61919         * lib/unictype/pr_bidi_control.c: New file.
61920         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61921         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61922         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61923         * lib/unictype/pr_bidi_european_digit.c: New file.
61924         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61925         * lib/unictype/pr_bidi_left_to_right.c: New file.
61926         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61927         * lib/unictype/pr_bidi_other_neutral.c: New file.
61928         * lib/unictype/pr_bidi_pdf.c: New file.
61929         * lib/unictype/pr_bidi_segment_separator.c: New file.
61930         * lib/unictype/pr_bidi_whitespace.c: New file.
61931         * lib/unictype/pr_byname.c: New file.
61932         * lib/unictype/pr_byname.gperf: New file.
61933         * lib/unictype/pr_combining.c: New file.
61934         * lib/unictype/pr_composite.c: New file.
61935         * lib/unictype/pr_currency_symbol.c: New file.
61936         * lib/unictype/pr_dash.c: New file.
61937         * lib/unictype/pr_decimal_digit.c: New file.
61938         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61939         * lib/unictype/pr_deprecated.c: New file.
61940         * lib/unictype/pr_diacritic.c: New file.
61941         * lib/unictype/pr_extender.c: New file.
61942         * lib/unictype/pr_format_control.c: New file.
61943         * lib/unictype/pr_grapheme_base.c: New file.
61944         * lib/unictype/pr_grapheme_extend.c: New file.
61945         * lib/unictype/pr_grapheme_link.c: New file.
61946         * lib/unictype/pr_hex_digit.c: New file.
61947         * lib/unictype/pr_hyphen.c: New file.
61948         * lib/unictype/pr_id_continue.c: New file.
61949         * lib/unictype/pr_id_start.c: New file.
61950         * lib/unictype/pr_ideographic.c: New file.
61951         * lib/unictype/pr_ids_binary_operator.c: New file.
61952         * lib/unictype/pr_ids_trinary_operator.c: New file.
61953         * lib/unictype/pr_ignorable_control.c: New file.
61954         * lib/unictype/pr_iso_control.c: New file.
61955         * lib/unictype/pr_join_control.c: New file.
61956         * lib/unictype/pr_left_of_pair.c: New file.
61957         * lib/unictype/pr_line_separator.c: New file.
61958         * lib/unictype/pr_logical_order_exception.c: New file.
61959         * lib/unictype/pr_lowercase.c: New file.
61960         * lib/unictype/pr_math.c: New file.
61961         * lib/unictype/pr_non_break.c: New file.
61962         * lib/unictype/pr_not_a_character.c: New file.
61963         * lib/unictype/pr_numeric.c: New file.
61964         * lib/unictype/pr_other_alphabetic.c: New file.
61965         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61966         * lib/unictype/pr_other_grapheme_extend.c: New file.
61967         * lib/unictype/pr_other_id_continue.c: New file.
61968         * lib/unictype/pr_other_id_start.c: New file.
61969         * lib/unictype/pr_other_lowercase.c: New file.
61970         * lib/unictype/pr_other_math.c: New file.
61971         * lib/unictype/pr_other_uppercase.c: New file.
61972         * lib/unictype/pr_paired_punctuation.c: New file.
61973         * lib/unictype/pr_paragraph_separator.c: New file.
61974         * lib/unictype/pr_pattern_syntax.c: New file.
61975         * lib/unictype/pr_pattern_white_space.c: New file.
61976         * lib/unictype/pr_private_use.c: New file.
61977         * lib/unictype/pr_punctuation.c: New file.
61978         * lib/unictype/pr_quotation_mark.c: New file.
61979         * lib/unictype/pr_radical.c: New file.
61980         * lib/unictype/pr_sentence_terminal.c: New file.
61981         * lib/unictype/pr_soft_dotted.c: New file.
61982         * lib/unictype/pr_space.c: New file.
61983         * lib/unictype/pr_terminal_punctuation.c: New file.
61984         * lib/unictype/pr_test.c: New file.
61985         * lib/unictype/pr_titlecase.c: New file.
61986         * lib/unictype/pr_unassigned_code_value.c: New file.
61987         * lib/unictype/pr_unified_ideograph.c: New file.
61988         * lib/unictype/pr_uppercase.c: New file.
61989         * lib/unictype/pr_variation_selector.c: New file.
61990         * lib/unictype/pr_white_space.c: New file.
61991         * lib/unictype/pr_xid_continue.c: New file.
61992         * lib/unictype/pr_xid_start.c: New file.
61993         * lib/unictype/pr_zero_width.c: New file.
61994         * lib/unictype/scripts.c: New file.
61995         * lib/unictype/sy_c_ident.c: New file.
61996         * lib/unictype/sy_c_whitespace.c: New file.
61997         * lib/unictype/sy_java_ident.c: New file.
61998         * lib/unictype/sy_java_whitespace.c: New file.
61999
62000         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62001         Unicode 5.0.0.
62002         * lib/unictype/blocks.h: Likewise.
62003         * lib/unictype/categ_C.h: Likewise.
62004         * lib/unictype/categ_Cc.h: Likewise.
62005         * lib/unictype/categ_Cf.h: Likewise.
62006         * lib/unictype/categ_Cn.h: Likewise.
62007         * lib/unictype/categ_Co.h: Likewise.
62008         * lib/unictype/categ_Cs.h: Likewise.
62009         * lib/unictype/categ_L.h: Likewise.
62010         * lib/unictype/categ_Ll.h: Likewise.
62011         * lib/unictype/categ_Lm.h: Likewise.
62012         * lib/unictype/categ_Lo.h: Likewise.
62013         * lib/unictype/categ_Lt.h: Likewise.
62014         * lib/unictype/categ_Lu.h: Likewise.
62015         * lib/unictype/categ_M.h: Likewise.
62016         * lib/unictype/categ_Mc.h: Likewise.
62017         * lib/unictype/categ_Me.h: Likewise.
62018         * lib/unictype/categ_Mn.h: Likewise.
62019         * lib/unictype/categ_N.h: Likewise.
62020         * lib/unictype/categ_Nd.h: Likewise.
62021         * lib/unictype/categ_Nl.h: Likewise.
62022         * lib/unictype/categ_No.h: Likewise.
62023         * lib/unictype/categ_P.h: Likewise.
62024         * lib/unictype/categ_Pc.h: Likewise.
62025         * lib/unictype/categ_Pd.h: Likewise.
62026         * lib/unictype/categ_Pe.h: Likewise.
62027         * lib/unictype/categ_Pf.h: Likewise.
62028         * lib/unictype/categ_Pi.h: Likewise.
62029         * lib/unictype/categ_Po.h: Likewise.
62030         * lib/unictype/categ_Ps.h: Likewise.
62031         * lib/unictype/categ_S.h: Likewise.
62032         * lib/unictype/categ_Sc.h: Likewise.
62033         * lib/unictype/categ_Sk.h: Likewise.
62034         * lib/unictype/categ_Sm.h: Likewise.
62035         * lib/unictype/categ_So.h: Likewise.
62036         * lib/unictype/categ_Z.h: Likewise.
62037         * lib/unictype/categ_Zl.h: Likewise.
62038         * lib/unictype/categ_Zp.h: Likewise.
62039         * lib/unictype/categ_Zs.h: Likewise.
62040         * lib/unictype/categ_of.h: Likewise.
62041         * lib/unictype/combining.h: Likewise.
62042         * lib/unictype/ctype_alnum.h: Likewise.
62043         * lib/unictype/ctype_alpha.h: Likewise.
62044         * lib/unictype/ctype_blank.h: Likewise.
62045         * lib/unictype/ctype_cntrl.h: Likewise.
62046         * lib/unictype/ctype_digit.h: Likewise.
62047         * lib/unictype/ctype_graph.h: Likewise.
62048         * lib/unictype/ctype_lower.h: Likewise.
62049         * lib/unictype/ctype_print.h: Likewise.
62050         * lib/unictype/ctype_punct.h: Likewise.
62051         * lib/unictype/ctype_space.h: Likewise.
62052         * lib/unictype/ctype_upper.h: Likewise.
62053         * lib/unictype/ctype_xdigit.h: Likewise.
62054         * lib/unictype/decdigit.h: Likewise.
62055         * lib/unictype/digit.h: Likewise.
62056         * lib/unictype/mirror.h: Likewise.
62057         * lib/unictype/numeric.h: Likewise.
62058         * lib/unictype/pr_alphabetic.h: Likewise.
62059         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62060         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62061         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62062         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62063         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62064         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62065         * lib/unictype/pr_bidi_control.h: Likewise.
62066         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62067         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62068         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62069         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62070         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62071         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62072         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62073         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62074         * lib/unictype/pr_bidi_pdf.h: Likewise.
62075         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62076         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62077         * lib/unictype/pr_combining.h: Likewise.
62078         * lib/unictype/pr_composite.h: Likewise.
62079         * lib/unictype/pr_currency_symbol.h: Likewise.
62080         * lib/unictype/pr_dash.h: Likewise.
62081         * lib/unictype/pr_decimal_digit.h: Likewise.
62082         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62083         * lib/unictype/pr_deprecated.h: Likewise.
62084         * lib/unictype/pr_diacritic.h: Likewise.
62085         * lib/unictype/pr_extender.h: Likewise.
62086         * lib/unictype/pr_format_control.h: Likewise.
62087         * lib/unictype/pr_grapheme_base.h: Likewise.
62088         * lib/unictype/pr_grapheme_extend.h: Likewise.
62089         * lib/unictype/pr_grapheme_link.h: Likewise.
62090         * lib/unictype/pr_hex_digit.h: Likewise.
62091         * lib/unictype/pr_hyphen.h: Likewise.
62092         * lib/unictype/pr_id_continue.h: Likewise.
62093         * lib/unictype/pr_id_start.h: Likewise.
62094         * lib/unictype/pr_ideographic.h: Likewise.
62095         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62096         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62097         * lib/unictype/pr_ignorable_control.h: Likewise.
62098         * lib/unictype/pr_iso_control.h: Likewise.
62099         * lib/unictype/pr_join_control.h: Likewise.
62100         * lib/unictype/pr_left_of_pair.h: Likewise.
62101         * lib/unictype/pr_line_separator.h: Likewise.
62102         * lib/unictype/pr_logical_order_exception.h: Likewise.
62103         * lib/unictype/pr_lowercase.h: Likewise.
62104         * lib/unictype/pr_math.h: Likewise.
62105         * lib/unictype/pr_non_break.h: Likewise.
62106         * lib/unictype/pr_not_a_character.h: Likewise.
62107         * lib/unictype/pr_numeric.h: Likewise.
62108         * lib/unictype/pr_other_alphabetic.h: Likewise.
62109         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62110         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62111         * lib/unictype/pr_other_id_continue.h: Likewise.
62112         * lib/unictype/pr_other_id_start.h: Likewise.
62113         * lib/unictype/pr_other_lowercase.h: Likewise.
62114         * lib/unictype/pr_other_math.h: Likewise.
62115         * lib/unictype/pr_other_uppercase.h: Likewise.
62116         * lib/unictype/pr_paired_punctuation.h: Likewise.
62117         * lib/unictype/pr_paragraph_separator.h: Likewise.
62118         * lib/unictype/pr_pattern_syntax.h: Likewise.
62119         * lib/unictype/pr_pattern_white_space.h: Likewise.
62120         * lib/unictype/pr_private_use.h: Likewise.
62121         * lib/unictype/pr_punctuation.h: Likewise.
62122         * lib/unictype/pr_quotation_mark.h: Likewise.
62123         * lib/unictype/pr_radical.h: Likewise.
62124         * lib/unictype/pr_sentence_terminal.h: Likewise.
62125         * lib/unictype/pr_soft_dotted.h: Likewise.
62126         * lib/unictype/pr_space.h: Likewise.
62127         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62128         * lib/unictype/pr_titlecase.h: Likewise.
62129         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62130         * lib/unictype/pr_unified_ideograph.h: Likewise.
62131         * lib/unictype/pr_uppercase.h: Likewise.
62132         * lib/unictype/pr_variation_selector.h: Likewise.
62133         * lib/unictype/pr_white_space.h: Likewise.
62134         * lib/unictype/pr_xid_continue.h: Likewise.
62135         * lib/unictype/pr_xid_start.h: Likewise.
62136         * lib/unictype/pr_zero_width.h: Likewise.
62137         * lib/unictype/scripts.h: Likewise.
62138         * lib/unictype/scripts_byname.gperf: Likewise.
62139         * lib/unictype/sy_c_ident.h: Likewise.
62140         * lib/unictype/sy_c_whitespace.h: Likewise.
62141         * lib/unictype/sy_java_ident.h: Likewise.
62142         * lib/unictype/sy_java_whitespace.h: Likewise.
62143
62144         * lib/unictype/Makefile: New file.
62145         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62146         glibc.
62147         * lib/unictype/3level.h: New file, copied from glibc.
62148         * lib/unictype/3levelbit.h: New file.
62149
62150 2007-11-11  Bruno Haible  <bruno@clisp.org>
62151
62152         * modules/gperf: New file.
62153         * modules/iconv_open (Depends-on): Add it.
62154         (Makefile.am): Remove the GPERF definition.
62155
62156 2007-11-11  Bruno Haible  <bruno@clisp.org>
62157
62158         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62159         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62160
62161 2007-11-11  Bruno Haible  <bruno@clisp.org>
62162
62163         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62164         (usage): Remove function.
62165
62166 2007-11-11  Bruno Haible  <bruno@clisp.org>
62167
62168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62169         gl_FUNC_CEILF_LIBS.
62170         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62171         gl_FUNC_CEIL_LIBS.
62172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62173         gl_FUNC_CEILL_LIBS.
62174         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62175         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62176         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62177
62178 2007-11-11  Bruno Haible  <bruno@clisp.org>
62179
62180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62181         roundf were declared but do not exist on functions.
62182         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62183         roundl were declared but do not exist on functions.
62184         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62185         HAVE_FLOORL_AND_CEILL, respectively.
62186         Needed for Sun C on Solaris 10.
62187
62188 2007-11-11  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62191         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62192         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62193         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62194         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62195         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62196         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62197         HAVE_DECL_ROUNDF.
62198         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62199         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62201         of HAVE_DECL_ROUND*.
62202         * modules/math (Makefile.am): Update.
62203
62204 2007-11-10  Bruno Haible  <bruno@clisp.org>
62205
62206         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62207         ptrdiff_t as m4/intl.m4.
62208
62209 2007-11-10  Jim Meyering  <meyering@redhat.com>
62210
62211         Avoid link failure for the argmatch test.
62212         * tests/test-argmatch.c (usage): Define function to avoid a link
62213         failure: argmatch_die requires a usage function.
62214
62215 2007-11-09  Bruno Haible  <bruno@clisp.org>
62216
62217         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62218         * doc/functions/vsnprintf.texi: Likewise.
62219         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62220         with a size argument < 2.
62221
62222 2007-11-09  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62225         buffer. Fixes an inefficiency introduced on 2007-11-03.
62226
62227 2007-11-09  Bruno Haible  <bruno@clisp.org>
62228
62229         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62230         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62231
62232 2007-11-08  Jim Meyering  <meyering@redhat.com>
62233
62234         Change cache variable name prefix "jm_" to "gl_" everywhere.
62235         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62236         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62237         * m4/uptime.m4: s/gl_/jm_/
62238
62239 2007-11-07  Bruno Haible  <bruno@clisp.org>
62240
62241         Update to GNU gettext 0.17.
62242         * m4/intl.m4: Update to GNU gettext 0.17.
62243         * m4/po.m4: Likewise.
62244         * modules/gettext (Files): Remove m4/ulonglong.m4.
62245         (configure.ac): Require gettext infrastructure from version 0.17.
62246
62247 2007-11-06  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62250         symbolic values are not defined in a public header.
62251         * lib/freadable.c (freadable) [QNX]: Likewise.
62252         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62253         * lib/freading.c (freading) [QNX]: Likewise.
62254         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62255         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62256         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62257         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62258         Reported by Alain Magloire.
62259
62260         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62261
62262 2007-11-05  Bruno Haible  <bruno@clisp.org>
62263
62264         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62265         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62266         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62267         Reported by Eric Blake.
62268
62269 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62270             Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62273         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62274         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62275         (malloc): Undefine also before including <stdlib.h>.
62276         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62277         Needed on OSF/1 4.0.
62278
62279 2007-11-05  Jim Meyering  <meyering@redhat.com>
62280
62281         git-version-gen: sync from coreutils.
62282         * build-aux/git-version-gen: Add comments.
62283         Change the first '-' to '.' in the snapshot version string,
62284         e.g., 6.9-377-08144 -> 6.9.377-08144
62285         Remove first parameter.
62286         Don't declare a version "-dirty" merely because a time
62287         stamp has changed.
62288
62289 2007-11-04  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/lock.h: Protect all macro definitions containing an 'if'
62292         statement through a "do { ... } while (0)".
62293         * lib/tls.h: Likewise.
62294
62295 2007-11-04  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62298
62299 2007-11-04  Bruno Haible  <bruno@clisp.org>
62300
62301         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62302         * modules/fprintf-posix (Depends-on): Add nocrash.
62303         * modules/snprintf-posix (Depends-on): Likewise.
62304         * modules/sprintf-posix (Depends-on): Likewise.
62305         * modules/vasnprintf-posix (Depends-on): Likewise.
62306         * modules/vasprintf-posix (Depends-on): Likewise.
62307         * modules/vfprintf-posix (Depends-on): Likewise.
62308         * modules/vsnprintf-posix (Depends-on): Likewise.
62309         * modules/vsprintf-posix (Depends-on): Likewise.
62310         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62311         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62312         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62313         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62314         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62315         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62316         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62317
62318 2007-11-04  Bruno Haible  <bruno@clisp.org>
62319
62320         * modules/nocrash: New file.
62321         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62322         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62323
62324 2007-11-04  Bruno Haible  <bruno@clisp.org>
62325
62326         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62327         precision handling.
62328         * tests/test-vasprintf-posix.c (test_function): Likewise.
62329         * tests/test-snprintf-posix.h (test_function): Likewise.
62330         * tests/test-sprintf-posix.h (test_function): Likewise.
62331
62332         Fix *printf behaviour for large precisions on mingw and BeOS.
62333         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62334         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62336         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62338         gl_PRINTF_PRECISION and test its result. Invoke
62339         gl_PREREQ_VASNPRINTF_PRECISION.
62340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62347         * doc/functions/fprintf.texi: Update.
62348         * doc/functions/printf.texi: Update.
62349         * doc/functions/snprintf.texi: Update.
62350         * doc/functions/sprintf.texi: Update.
62351         * doc/functions/vfprintf.texi: Update.
62352         * doc/functions/vprintf.texi: Update.
62353         * doc/functions/vsnprintf.texi: Update.
62354         * doc/functions/vsprintf.texi: Update.
62355
62356 2007-11-04  Bruno Haible  <bruno@clisp.org>
62357
62358         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62359
62360 2007-11-04  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62363         Reported by Sylvain Beucler <beuc@gnu.org>.
62364
62365 2007-11-03  Bruno Haible  <bruno@clisp.org>
62366
62367         * tests/test-fprintf-posix2.sh: New file.
62368         * tests/test-fprintf-posix2.c: New file.
62369         * modules/fprintf-posix-tests (Files): Add them.
62370         (TESTS): Add test-fprintf-posix2.sh.
62371         (configure.ac): Check for getrlimit and setrlimit.
62372         (check_PROGRAMS): Add test-fprintf-posix2.
62373
62374         * tests/test-printf-posix2.sh: New file.
62375         * tests/test-printf-posix2.c: New file.
62376         * modules/printf-posix-tests (Files): Add them.
62377         (TESTS): Add test-printf-posix2.sh.
62378         (configure.ac): Check for getrlimit and setrlimit.
62379         (check_PROGRAMS): Add test-printf-posix2.
62380
62381         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62382         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62383         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62384         (decode_double): New function, copied from decode_long_double.
62385         (scale10_round_decimal_decoded): New function, extracted from
62386         scale10_round_decimal_long_double.
62387         (scale10_round_decimal_long_double): Use it.
62388         (scale10_round_decimal_double): New function.
62389         (floorlog10): New function.
62390         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62392         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62393         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62394         gl_PRINTF_ENOMEM and test its result. Invoke
62395         gl_PREREQ_VASNPRINTF_ENOMEM.
62396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62398         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62399         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62400         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62401         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62402         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62403         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62404         * modules/snprintf-posix (Depends-on): Likewise.
62405         * modules/sprintf-posix (Depends-on): Likewise.
62406         * modules/vasnprintf-posix (Depends-on): Likewise.
62407         * modules/vasprintf-posix (Depends-on): Likewise.
62408         * modules/vfprintf-posix (Depends-on): Likewise.
62409         * modules/vsnprintf-posix (Depends-on): Likewise.
62410         * modules/vsprintf-posix (Depends-on): Likewise.
62411         * doc/functions/fprintf.texi: Update.
62412         * doc/functions/printf.texi: Update.
62413         * doc/functions/snprintf.texi: Update.
62414         * doc/functions/sprintf.texi: Update.
62415         * doc/functions/vfprintf.texi: Update.
62416         * doc/functions/vprintf.texi: Update.
62417         * doc/functions/vsnprintf.texi: Update.
62418         * doc/functions/vsprintf.texi: Update.
62419
62420 2007-11-03  Bruno Haible  <bruno@clisp.org>
62421
62422         * modules/frexp-nolibm-tests: New file.
62423
62424         * modules/frexp-nolibm: New file.
62425         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62426
62427 2007-11-03  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62430         value is C99 compliant.
62431         Needed for OSF/1 5.1.
62432
62433 2007-11-03  Bruno Haible  <bruno@clisp.org>
62434
62435         Fix out-of-memory handling of vasnprintf.
62436         * lib/printf-parse.c: Include <errno.h>.
62437         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62438         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62439         is already set.
62440
62441 2007-11-02  Eric Blake  <ebb9@byu.net>
62442
62443         Fix tests on cygwin.
62444         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62445
62446 2007-11-01  Bruno Haible  <bruno@clisp.org>
62447
62448         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62449         warning.
62450         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62451         needed for POSIX compatibility.
62452
62453 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62454
62455         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62456         for compatibility with GNU.
62457
62458 2007-11-01  Bruno Haible  <bruno@clisp.org>
62459
62460         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62461         (putenv): Renamed from rpl_putenv. Change argument type from
62462         'const char *' to 'char *'.
62463         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62464         of defining putenv in config.h, just set REPLACE_PUTENV.
62465         * modules/putenv (Depends-on): Add stdlib.
62466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62467         (Include): Use <stdlib.h>.
62468         * lib/stdlib.in.h (putenv): New declaration.
62469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62470         REPLACE_PUTENV.
62471         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62472         REPLACE_PUTENV.
62473         Needed for MacOS X 10.5.0.
62474         Reported by Peter O'Gorman <peter@pogma.com>.
62475
62476 2007-11-01  Jim Meyering  <meyering@redhat.com>
62477
62478         Treat an empty date string exactly like "0".
62479         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62480         if the remaining date string (to be parsed) is empty, use "0".
62481         Reported by Mischa Molhoek and discussed in this thread:
62482         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62483
62484 2007-10-31  Bruno Haible  <bruno@clisp.org>
62485
62486         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62487         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62488         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62489         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62490         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62491         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62492
62493 2007-10-31  Bruno Haible  <bruno@clisp.org>
62494
62495         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62496         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62497         (AC_TYPE_LONG_LONG_INT): Use it.
62498         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62499         it as well.
62500         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62501         to m4/longlong.m4.
62502         * modules/stdint (Files): Remove m4/ulonglong.m4.
62503         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62504         m4/ulonglong.m4.
62505         * modules/strtoumax (Files): Likewise.
62506
62507 2007-10-30  Bruno Haible  <bruno@clisp.org>
62508
62509         * modules/xvasprintf-posix: New file.
62510         Suggested by Eric Blake.
62511
62512 2007-10-30  Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/xprintf-posix-tests: New file.
62515         * tests/test-xprintf-posix.sh: New file.
62516         * tests/test-xprintf-posix.c: New file.
62517         * tests/test-xfprintf-posix.c: New file.
62518
62519         * modules/xprintf-posix: New file.
62520
62521 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62522
62523         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62524         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62525         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62526
62527 2007-10-29  Bruno Haible  <bruno@clisp.org>
62528
62529         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62530         contain the special marker '_cv_'.
62531         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62532         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62533         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62534         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62535         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62536         Reported by Ralf Wildenhues.
62537
62538 2007-10-29  Bruno Haible  <bruno@clisp.org>
62539
62540         * gnulib-tool (func_import): When --lgpl is not specified, set
62541         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62542         GPLv3.
62543         Reported by Simon Josefsson.
62544
62545 2007-10-28  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62548         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62549         HAVE_DECL_ISFINITE.
62550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62551         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62552         HAVE_DECL_ISFINITE.
62553
62554 2007-10-28  Bruno Haible  <bruno@clisp.org>
62555
62556         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62557         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62558
62559 2007-10-28  Bruno Haible  <bruno@clisp.org>
62560
62561         Fix link errors with Sun C 5.0 on Solaris 10.
62562         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62563         function is declared but not present in the compiler's libm.
62564         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62565         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62566         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62567         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62568         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62569         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62570         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62572         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62573         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62574         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62575         HAVE_DECL_FLOORL.
62576
62577 2007-10-28  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62580         gl_FUNC_FLOORL. Cache the result.
62581         (gl_FUNC_FLOORL): Use it.
62582         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62583         gl_FUNC_CEILL. Cache the result.
62584         (gl_FUNC_CEILL): Use it.
62585
62586         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62587         gl_FUNC_FLOOR. Cache the result.
62588         (gl_FUNC_FLOOR): Use it.
62589         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62590         gl_FUNC_CEIL. Cache the result.
62591         (gl_FUNC_CEIL): Use it.
62592
62593         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62594         gl_FUNC_FLOORF. Cache the result.
62595         (gl_FUNC_FLOORF): Use it.
62596         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62597         gl_FUNC_CEILF. Cache the result.
62598         (gl_FUNC_CEILF): Use it.
62599
62600 2007-10-28  Bruno Haible  <bruno@clisp.org>
62601
62602         * gnulib-tool: Allow specifying the LGPL version number through
62603         --lgpl=2 or --lgpl=3.
62604         (func_usage): Document --lgpl with argument.
62605         Handle --lgpl=... arguments.
62606         (func_import): Recognize also gl_LGPL calls with an argument. When
62607         --lgpl=2 is used and the module's license is just LGPL, report an
62608         error. Set sed_transform_lib_file according to the lgpl variable. In
62609         the generated files, use --lgpl or gl_LGPL invocations with argument,
62610         if necessary.
62611         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62612         an LGPv2+ license.
62613         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62614         gl_LGPL macro.
62615
62616 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62617             Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62620         (u16_uctomb_aux): Likewise.
62621         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62622         !HAVE_INLINE.
62623         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62624
62625 2007-10-28  Bruno Haible  <bruno@clisp.org>
62626
62627         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62628         Invoke AM_GETTEXT_OPTION if it exists.
62629         * modules/vasprintf: Likewise.
62630         * modules/verror: Likewise.
62631         * modules/xprintf: Likewise.
62632         * modules/xvasprintf: Likewise.
62633
62634 2007-10-27  Ben Pfaff  <blp@gnu.org>
62635
62636         * lib/math.in.h: Define isfinite macro and prototypes for
62637         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62638         implementations.
62639         * m4/math_h.m4: New substitutions for isfinite module.
62640         * lib/isfinite.c: New file.
62641         * m4/isfinite.m4: New file.
62642         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62643         * modules/isfinite: New file.
62644         * modules/isfinite-tests: New file.
62645         * tests/tests-isfinite.c: New file.
62646         * doc/functions/isfinite.texi: Mention isfinite module.
62647         * MODULES.html.sh: Mention new module.
62648
62649 2007-10-27  Ben Pfaff  <blp@gnu.org>
62650
62651         Ralf Wildenhues reported that Tru64 4.0D declares the round
62652         functions but does not have definitions.
62653         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62654         cannot be found in any library, set the output variable to
62655         "missing" instead of "".
62656         * m4/round.m4: Also use our substitute if we cannot find round in
62657         any library, even if it is declared.
62658         * m4/roundf.m4: Likewise for roundf.
62659         * m4/roundl.m4: Likewise for roundl.
62660         * lib/math.in.h: Undefine roundf, round, roundl before defining
62661         their replacements, to allow for hypothetical systems where these
62662         may be defined as macros but not available in libraries.
62663
62664 2007-10-27  Bruno Haible  <bruno@clisp.org>
62665
62666         * doc/gnulib.texi: Invoke @firstparagraphindent.
62667         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62668         changes in gnulib.
62669         (Source changes): New section.
62670
62671 2007-10-26  Bruno Haible  <bruno@clisp.org>
62672
62673         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62674         borrowed from autoconf.
62675
62676 2007-10-26  Bruno Haible  <bruno@clisp.org>
62677
62678         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62679         strerror returned the empty string. Needed on HP-UX 11.00.
62680
62681 2007-10-24  Micah Cowan  <micah@cowan.name>
62682
62683         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62684         * build-aux/bootstrap: Remove support for now-unnecessary option,
62685         --cvs-user, and envvars CVS_USER, CVS_RSH.
62686
62687 2007-10-24  Jim Meyering  <meyering@redhat.com>
62688
62689         Avoid diagnostics from sha1sum when there is no cached checksum.
62690         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62691         if the po.s1 file hasn't been created yet.
62692
62693         * build-aux/bootstrap: Sync from coreutils:
62694         2007-10-24  Jim Meyering  <meyering@redhat.com>
62695         Get gnulib from the git repository, not from an obsolete cvs one.
62696         * build-aux/bootstrap: Suggestion from Micah Cowan.
62697         2007-10-04  Jim Meyering  <jim@meyering.net>
62698         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62699         (update_po_files): Work also when there are no .po files in po/.
62700
62701 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         * README: Append ".git" to git and cg examples.
62704         Problem reported by Benoit Sigoure.
62705
62706 2007-10-23  Micah Cowan  <micah@cowan.name>
62707
62708         * users.txt: Add wget.
62709
62710 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62711
62712         Fix linking of some unistdio tests on FreeBSD.
62713         * modules/unistdio/u16-vsnprintf-tests
62714         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62715         * modules/unistdio/u16-vsprintf-tests
62716         (test_u16_vsnprintf1_LDADD): Likewise.
62717         * modules/unistdio/u32-vsnprintf-tests
62718         (test_u32_vsnprintf1_LDADD): Likewise.
62719         * modules/unistdio/u32-vsprintf-tests
62720         (test_u32_vsprintf1_LDADD): Likewise.
62721         * modules/unistdio/u8-vsnprintf-tests
62722         (test_u8_vsnprintf1_LDADD): Likewise.
62723         * modules/unistdio/u8-vsprintf-tests
62724         (test_u8_vsprintf1_LDADD): Likewise.
62725         * modules/unistdio/ulc-vsnprintf-tests
62726         (test_ulc_vsnprintf1_LDADD): Likewise.
62727         * modules/unistdio/ulc-vsprintf-tests
62728         (test_ulc_vsprintf1_LDADD): Likewise.
62729
62730         Fix linking of some uniconv tests on FreeBSD.
62731         * modules/uniconv/u16-conv-from-enc-tests
62732         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62733         * modules/uniconv/u16-conv-to-enc-tests
62734         (test_u16_conv_to_enc_LDADD): Likewise.
62735         * modules/uniconv/u16-strconv-from-enc-tests
62736         (test_u16_strconv_from_enc_LDADD): Likewise.
62737         * modules/uniconv/u16-strconv-to-enc-tests
62738         (test_u16_strconv_to_enc_LDADD): Likewise.
62739         * modules/uniconv/u32-conv-from-enc-tests
62740         (test_u32_conv_from_enc_LDADD): Likewise.
62741         * modules/uniconv/u32-conv-to-enc-tests
62742         (test_u32_conv_to_enc_LDADD): Likewise.
62743         * modules/uniconv/u32-strconv-from-enc-tests
62744         (test_u32_strconv_from_enc_LDADD): Likewise.
62745         * modules/uniconv/u32-strconv-to-enc-tests
62746         (test_u32_strconv_to_enc_LDADD): Likewise.
62747         * modules/uniconv/u8-conv-from-enc-tests
62748         (test_u8_conv_from_enc_LDADD): Likewise.
62749         * modules/uniconv/u8-conv-to-enc-tests
62750         (test_u8_conv_to_enc_LDADD): Likewise.
62751         * modules/uniconv/u8-strconv-from-enc-tests
62752         (test_u8_strconv_from_enc_LDADD): Likewise.
62753         * modules/uniconv/u8-strconv-to-enc-tests
62754         (test_u8_strconv_to_enc_LDADD): Likewise.
62755
62756 2007-10-22  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62759         size.
62760
62761 2007-10-22  Eric Blake  <ebb9@byu.net>
62762
62763         Tweak x*printf documentation.
62764         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62765         variable name and comments.
62766         Suggested by Bruno Haible.
62767
62768 2007-10-22  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/acl.c (copy_acl): Fix file name in comment.
62771
62772 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         Fix Tru64 problem with stdbool.h.
62775         * lib/stdbool.in.h (false, true):
62776         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62777         Don't declare as an enum in this situation; it runs afoul of Tru64.
62778         Problem reported by Steven M. Schweda in
62779         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62780
62781 2007-10-22  Eric Blake  <ebb9@byu.net>
62782
62783         Also wrap vf?printf.
62784         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62785         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62786         (xvprintf, xvfprintf): New functions.
62787
62788 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62789
62790         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62791         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62792
62793         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62794         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62795
62796 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62797
62798         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62799         by Bruno Haible.
62800
62801 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62802
62803         * lib/getloadavg.c
62804         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62805         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62806
62807         * tests/test-i-ring.c: Work for C89.
62808
62809 2007-10-22  Bruno Haible  <bruno@clisp.org>
62810
62811         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62812         -1u, in preprocessor expression, so that we don't test for the bug
62813         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62814         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62815
62816 2007-10-22  Eric Blake  <ebb9@byu.net>
62817
62818         * tests/test-yesno.sh: Silence stderr during test.
62819
62820 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62821
62822         * modules/crypto/gc-camellia: New file.
62823
62824         * m4/gc-camellia.m4: New file.
62825
62826         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62827
62828         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62829
62830 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62831
62832         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62833         --help to stdout.  Reported by sms@antinode.org (Steven
62834         M. Schweda).
62835
62836 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62837
62838         * users.txt: Fix link to libksba.
62839
62840 2007-10-21  Ben Pfaff  <blp@gnu.org>
62841
62842         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62843         round.c roundf implementation that depends on floorf and ceilf to
62844         be tested unconditionally.
62845
62846 2007-10-21  Ben Pfaff  <blp@gnu.org>
62847
62848         * m4/check-libm-func.m4: Removed.
62849         * m4/check-math-lib.m4: New file.
62850         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62851         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62852         definition and lack of AC_LIBOBJ([roundf]).
62853         * m4/roundl.m4: Ditto, and similarly for roundl.
62854         * modules/round: Reference new m4 file.
62855         * modules/roundf: Ditto.
62856         * modules/roundl: Ditto.
62857         * tests/test-round2.c (main): Use ROUND instead of round.
62858         Bug report from Bruno Haible.
62859
62860 2007-10-21  Bruno Haible  <bruno@clisp.org>
62861
62862         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62863         context.
62864
62865 2007-10-21  Bruno Haible  <bruno@clisp.org>
62866
62867         * tests/test-wcwidth.c (main): Allow negative result for some control
62868         characters.
62869
62870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62871         Needed on OSF/1 5.1.
62872
62873 2007-10-21  Bruno Haible  <bruno@clisp.org>
62874
62875         * tests/test-floorf1.c: Include isnanf.h.
62876         (main): Use isnanf() instead of isnan().
62877         * tests/test-ceilf1.c: Include isnanf.h.
62878         (main): Use isnanf() instead of isnan().
62879         * tests/test-truncf1.c: Include isnanf.h.
62880         (main): Use isnanf() instead of isnan().
62881         * tests/test-roundf1.c: Include isnanf.h.
62882         (main): Use isnanf() instead of isnan().
62883
62884 2007-10-21  Eric Blake  <ebb9@byu.net>
62885
62886         * users.txt: Update URL for m4.
62887
62888 2007-10-21  Bruno Haible  <bruno@clisp.org>
62889
62890         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62891
62892 2007-10-21  Bruno Haible  <bruno@clisp.org>
62893
62894         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62895         Git's management files if the CVS files are not present.
62896
62897 2007-10-20  Bruno Haible  <bruno@clisp.org>
62898
62899         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62900         gcc-3.4.x.
62901
62902 2007-10-20  Ben Pfaff  <blp@gnu.org>
62903
62904         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62905         implementations.
62906         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62907         * lib/round.c: New file.
62908         * lib/roundf.c: New file.
62909         * lib/roundl.c: New file.
62910         * m4/round.m4: New file.
62911         * m4/roundf.m4: New file.
62912         * m4/roundl.m4: New file.
62913         * m4/check-libm-func-m4: New file.
62914         * modules/math: Replace round, roundf, roundl related @VARS@ in
62915         math.in.h.
62916         * modules/round: New file.
62917         * modules/round-tests: New file.
62918         * modules/roundf: New file.
62919         * modules/roundf-tests: New file.
62920         * modules/roundl: New file.
62921         * modules/roundl-tests: New file.
62922         * tests/test-round1.c: New file.
62923         * tests/test-round2.c: New file.
62924         * tests/test-roundf1.c: New file.
62925         * tests/test-roundf2.c: New file.
62926         * tests/test-roundl.c: New file.
62927         * doc/functions/round.texi: Mention round module.
62928         * doc/functions/roundf.texi: Mention roundf module.
62929         * doc/functions/roundl.texi: Mention roundl module.
62930         * MODULES.html.sh: Mention new modules.
62931         Thanks to Bruno Haible for suggestions.
62932
62933 2007-10-20  Jim Meyering  <meyering@redhat.com>
62934
62935         * lib/xprintf.c: Include <config.h> unconditionally.
62936
62937         Change xprintf's license to GPL.
62938         * modules/xprintf (License): s/LGPL/GPL/, since this module
62939         depends on modules (exit and exitfail) which are GPL.
62940         Suggestion from Bruno Haible.
62941
62942         xprintf fixes.
62943         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62944         Use a clearer diagnostic.
62945         Patch from Bruno Haible.
62946
62947 2007-10-20  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62950         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62952
62953 2007-10-20  Bruno Haible  <bruno@clisp.org>
62954
62955         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62956         precision in the comparison result > x - 1 or similar.
62957         * tests/test-ceilf2.c (correct_result_p): Likewise.
62958         * tests/test-truncf2.c (correct_result_p): Likewise.
62959         * tests/test-trunc2.c (correct_result_p): Likewise.
62960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62961
62962 2007-10-20  Bruno Haible  <bruno@clisp.org>
62963
62964         * modules/ceil: New file.
62965         * m4/ceil.m4: New file.
62966         * doc/functions/ceil.texi: Mention the 'ceil' module.
62967
62968 2007-10-20  Bruno Haible  <bruno@clisp.org>
62969
62970         * modules/floor: New file.
62971         * m4/floor.m4: New file.
62972         * doc/functions/floor.texi: Mention the 'floor' module.
62973
62974 2007-10-20  Bruno Haible  <bruno@clisp.org>
62975
62976         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62977         of %a.
62978         * modules/floorf-tests (Depends-on): Likewise.
62979         * modules/truncf-tests (Depends-on): Likewise.
62980         * modules/trunc-tests (Depends-on): Likewise.
62981         Reported by Ben Pfaff.
62982
62983 2007-10-19  Jim Meyering  <meyering@redhat.com>
62984
62985         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62986         Don't bother testing specific errno values.  Just test ferror.
62987
62988         New module: xprintf
62989         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62990
62991 2007-10-19  Bruno Haible  <bruno@clisp.org>
62992
62993         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62994         syntax.
62995         * modules/javaexec (Makefile.am): Likewise.
62996         * modules/relocatable-prog (Makefile.am): Likewise.
62997         Suggested by Jim Meyering.
62998
62999 2007-10-18  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63002         Reported by Jim Meyering.
63003
63004 2007-10-18  Eric Blake  <ebb9@byu.net>
63005
63006         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63007
63008 2007-10-18  Bruno Haible  <bruno@clisp.org>
63009
63010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63011         the format string into writable memory. Needed in Fortify conditions.
63012
63013 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63014             Bruno Haible  <bruno@clisp.org>
63015
63016         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63017         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63018         * modules/trim (Depends-on): Add mbchar.
63019         (configure.ac): Add gl_FUNC_MBRTOWC.
63020         (Makefile.am): Augment lib_SOURCES.
63021
63022 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         Modify glob.c to use fstatat and dirfd, to simplify it.
63025         Suggested by Eric Blake.
63026         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63027         Don't include <stdbool.h>; not used.
63028         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63029         (link_exists_p): Simplify implementation, since we can now assume
63030         dirfd and fstatat.
63031         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63032
63033 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63034
63035         * gnulib-tool (func_get_dependencies): Fix sed script to
63036         match only tests.
63037
63038 2007-10-17  Bruno Haible  <bruno@clisp.org>
63039
63040         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63041         allow locale names without encoding suffix.
63042         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63044
63045 2007-10-16  Bruno Haible  <bruno@clisp.org>
63046
63047         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63048         * lib/getgroups.c (getgroups): Likewise.
63049         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63050
63051 2007-10-16  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63054         * modules/malloc-posix (License): Likewise.
63055         * modules/realloc-posix (License): Likewise.
63056         * modules/calloc-posix (License): Likewise.
63057         * modules/intprops (License): Change from GPL to LGPL, with
63058         Paul Eggert's approval.
63059
63060 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         Merge glibc changes into lib/glob.c.
63063
63064         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63065         2007-10-15 04:59:03 UTC.  Here are the changes:
63066
63067         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63068
63069         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63070
63071         * lib/glob.c: Add some branch prediction throughout.
63072
63073         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63074
63075         [BZ #5103]
63076         * lib/glob.c (glob): Recognize patterns starting \/.
63077
63078         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63079
63080         [BZ #3996]
63081         * lib/glob.c (attribute_hidden): Define if not defined.
63082         (glob): Unescape dirname, filename or username when needed and not
63083         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63084         is NULL.  Handle unescaped [ in pattern without closing ].
63085         Don't pass GLOB_CHECK down to recursive glob for directories.
63086         (__glob_pattern_type): New function.
63087         (__glob_pattern_p): Implement using __glob_pattern_type.
63088         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63089         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63090         Remove unreachable code.
63091
63092         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63093
63094         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63095         explain why there are no leaks.
63096
63097         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63098
63099         [BZ #3253]
63100         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63101         time, rather allocate increasingly bigger arrays of pointers, if
63102         possible with alloca, if too large with malloc.
63103
63104 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63107         Problem reported by H.Merijn Brand in
63108         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63110         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63111
63112 2007-10-15  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63115         with explicit rpl_ prefix.
63116         * lib/fopen.c (fopen): Likewise.
63117         * lib/freopen.c (freopen): Likewise.
63118         * lib/iconv.c (iconv): Likewise.
63119         * lib/iconv_close.c (iconv_close): Likewise.
63120
63121 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63122
63123         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63124
63125 2007-10-15  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63128         <stddef.h> instead of <stdlib.h> since we only need NULL.
63129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63130
63131 2007-10-15  Bruno Haible  <bruno@clisp.org>
63132
63133         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63134         Replace paragraph talking about LIBOBJS.
63135         Reported by Colin Watson <cjwatson@debian.org>.
63136
63137 2007-10-15  Bruno Haible  <bruno@clisp.org>
63138
63139         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63140         <stdlib.h> before using NULL.
63141
63142 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63143
63144         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63145         Reported by Albert Chin <china@thewrittenword.com>.
63146
63147 2007-10-14  Bruno Haible  <bruno@clisp.org>
63148
63149         * modules/iconv_open-utf-tests: New file.
63150         * tests/test-iconv-utf.c: New file.
63151
63152         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63153         * modules/iconv_open-utf: New file.
63154         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63155         (iconv, iconv_close): New declarations.
63156         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63157         be defined.
63158         (iconv_open): Add special handling of conversion between UTF-8 and
63159         UTF-{16,32}{BE,LE}.
63160         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63161         * lib/iconv_close.c: New file.
63162         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63163         gl_FUNC_ICONV_OPEN.
63164         (gl_FUNC_ICONV_OPEN): Use it.
63165         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63166         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63167         and REPLACE_ICONV_UTF.
63168         * modules/iconv_open (Depends-on): Add c-strcase.
63169         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63170         ICONV_CONST.
63171         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63172
63173 2007-10-13  Albert Chin  <china@thewrittenword.com>
63174             Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63177         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63178
63179 2007-10-13  Bruno Haible  <bruno@clisp.org>
63180
63181         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63182         defined, use the ISO C99 inline semantics.
63183         * lib/argp.h (ARGP_EI): Likewise.
63184
63185 2007-10-13  Bruno Haible  <bruno@clisp.org>
63186
63187         Handle 'inline' change in gcc 4.3.0.
63188         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63189         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63190         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63191         argp_fmtstream_point): Disable 'extern' declaration if the function
63192         definition is going to be provided inline.
63193         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63194         semantics, not the ISO C99 inline semantics.
63195         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63196         'extern' declaration if the function definition is going to be provided
63197         inline.
63198         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63199         the GNU C inline semantics, not the ISO C99 inline semantics. With
63200         GCC 4.2, avoid a warning.
63201
63202 2007-10-13  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/freading.h (freading): Enable the use of __freading for
63205         glibc >= 2.7.
63206         * lib/freading.c (freading): Likewise.
63207
63208 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63209
63210         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63211         "warning: C99 inline functions are not supported; using GNU89".
63212
63213 2007-10-12  Bruno Haible  <bruno@clisp.org>
63214
63215         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63216         of 2.
63217         * tests/test-ceilf2.c: New file.
63218         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63219
63220         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63221         * modules/ceilf-tests: Update.
63222
63223 2007-10-12  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63226         of 2.
63227         * tests/test-floorf2.c: New file.
63228         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63229
63230         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63231         * modules/floorf-tests: Update.
63232
63233 2007-10-12  Bruno Haible  <bruno@clisp.org>
63234
63235         * tests/test-trunc2.c: New file.
63236         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63237
63238         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63239         * modules/trunc-tests: Update.
63240
63241 2007-10-12  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63244         of 2.
63245         * tests/test-truncf2.c: New file.
63246         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63247
63248         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63249         * modules/truncf-tests: Update.
63250
63251 2007-10-11  Eric Blake  <ebb9@byu.net>
63252
63253         Don't claim strerror is broken on Interix.
63254         * doc/functions/strerror.texi (strerror): Known broken systems are
63255         now Solaris 8, and not Interix.
63256         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63257         Interix on cross-compile.
63258         Reported by Martin Koeppe in
63259         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63260
63261 2007-10-11  Bruno Haible  <bruno@clisp.org>
63262
63263         * modules/i-ring-tests: New file.
63264         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63265         instead of assert.
63266
63267 2007-10-11  Bruno Haible  <bruno@clisp.org>
63268
63269         * modules/filenamecat-tests: New file.
63270         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63271         * lib/filenamecat.c: Remove test code.
63272
63273 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63276
63277         * lib/strerror.c: Include <string.h> always, to test interface,
63278         and to remove the need for the dummy.
63279         Include intprops.h to compute width instead of doing it ourselves
63280         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63281         (strerror): Define it to return NULL if there's no system strerror.
63282         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63283         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63284         ancient pre-strerror Unix systems well any more.  Saying "unknown
63285         system error" is enough.
63286         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63287         simpler strerror.c implementation.
63288         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63289         Simplify the tests to reflect the simpler strerror implementation.
63290         * modules/strerror (Depends-on): Add intprops.
63291
63292 2007-10-09  Eric Blake  <ebb9@byu.net>
63293
63294         Silence test-fpending.
63295         * modules/fpending-tests (Files): Add wrapper script.
63296         * tests/test-fpending.sh: New file.
63297
63298 2007-10-09  Bruno Haible  <bruno@clisp.org>
63299
63300         * MODULES.html.sh (func_module): Don't create a hyperlink for
63301         function names like 'printf_frexp'.
63302         (Misc): Add crc, memxor.
63303         (Characteristics of floating types): New section.
63304         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63305         isnanf-nolibm, signbit, trunc, truncf, truncl.
63306         (Enhancements for ISO C 99 functions): New subsection Input/output.
63307         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63308         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63309         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63310         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63311         (Enhancements for POSIX:2001 functions): Add chdir-long.
63312         (File system functions): Add areadlink, chdir-safer, read-file.
63313         Remove cycle-check.
63314         (File system as inode set): New section.
63315         (Date and time): Add gethrxtime.
63316         (Multithreading): Add openmp.
63317         (Internationalization functions): Add localename.
63318         (Unicode string functions): Add unistr/u*-mbsnlen.
63319         (Support for maintaining and releasing projects): Add git-version-gen.
63320         (Lone files): Remove directories.
63321
63322 2007-10-08  Ben Pfaff  <blp@gnu.org>
63323
63324         * lib/xmalloca.h: Fix typo in comment.
63325
63326 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63329         when avoiding problems with integer overflow.  Use a portable test
63330         instead.
63331
63332 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63333
63334         * modules/dummy (License): Change to LGPLv2+.
63335         * modules/float (License): Likewise
63336         * modules/realloc (License): Likewise
63337         * modules/stdlib (License): Likewise
63338
63339 2007-10-07  Bruno Haible  <bruno@clisp.org>
63340
63341         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63342         * floor.c (TWO_MANT_DIG): Likewise.
63343         * ceil.c (TWO_MANT_DIG): Likewise.
63344         Reported by Ben Pfaff.
63345
63346 2007-10-07  Bruno Haible  <bruno@clisp.org>
63347
63348         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63349         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63350         * lib/frexp.c (FUNC): Likewise.
63351         * lib/printf-frexp.h (printf_frexp): Likewise.
63352         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63353         * lib/printf-frexp.c (FUNC): Likewise.
63354         Suggested by Jim Meyering.
63355
63356 2007-10-07  Jim Meyering  <meyering@redhat.com>
63357
63358         Make xnanosleep's integer overflow test more robust.
63359         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63360         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63361
63362 2007-10-07  Bruno Haible  <bruno@clisp.org>
63363
63364         * NEWS: Mention the license change.
63365
63366         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63367         abbreviations in the modules files.
63368
63369         Change copyright notice from GPLv2+ to GPLv3+.
63370         * README: Change copyright notice.
63371         * MODULES.html.sh: Likewise.
63372         * build-aux/bootstrap.conf: Likewise.
63373         * build-aux/config.libpath: Likewise.
63374         * build-aux/csharpcomp.sh.in: Likewise.
63375         * build-aux/csharpexec.sh.in: Likewise.
63376         * build-aux/install-reloc: Likewise.
63377         * build-aux/javacomp.sh.in: Likewise.
63378         * build-aux/javaexec.sh.in: Likewise.
63379         * build-aux/ldd.sh.in: Likewise.
63380         * build-aux/reloc-ldflags: Likewise.
63381         * build-aux/relocatable.sh.in: Likewise.
63382         * build-aux/x-to-1.in: Likewise.
63383         * check-module: Likewise.
63384         * config/srclistvars.sh: Likewise.
63385         * gnulib-tool: Likewise.
63386         * lib/acl-internal.h: Likewise.
63387         * lib/acl.c: Likewise.
63388         * lib/acl.h: Likewise.
63389         * lib/acl_entries.c: Likewise.
63390         * lib/areadlink-with-size.c: Likewise.
63391         * lib/areadlink.c: Likewise.
63392         * lib/areadlink.h: Likewise.
63393         * lib/argmatch.c: Likewise.
63394         * lib/argmatch.h: Likewise.
63395         * lib/argp-ba.c: Likewise.
63396         * lib/argp-eexst.c: Likewise.
63397         * lib/argp-fmtstream.c: Likewise.
63398         * lib/argp-fmtstream.h: Likewise.
63399         * lib/argp-fs-xinl.c: Likewise.
63400         * lib/argp-help.c: Likewise.
63401         * lib/argp-namefrob.h: Likewise.
63402         * lib/argp-parse.c: Likewise.
63403         * lib/argp-pin.c: Likewise.
63404         * lib/argp-pv.c: Likewise.
63405         * lib/argp-pvh.c: Likewise.
63406         * lib/argp-xinl.c: Likewise.
63407         * lib/argp.h: Likewise.
63408         * lib/at-func.c: Likewise.
63409         * lib/atanl.c: Likewise.
63410         * lib/backupfile.c: Likewise.
63411         * lib/backupfile.h: Likewise.
63412         * lib/basename.c: Likewise.
63413         * lib/binary-io.h: Likewise.
63414         * lib/byteswap.in.h: Likewise.
63415         * lib/c-stack.c: Likewise.
63416         * lib/c-stack.h: Likewise.
63417         * lib/c-strcasestr.c: Likewise.
63418         * lib/c-strcasestr.h: Likewise.
63419         * lib/c-strstr.c: Likewise.
63420         * lib/c-strstr.h: Likewise.
63421         * lib/c-strtod.c: Likewise.
63422         * lib/calloc.c: Likewise.
63423         * lib/canon-host.c: Likewise.
63424         * lib/canon-host.h: Likewise.
63425         * lib/canonicalize-lgpl.c: Likewise.
63426         * lib/canonicalize.c: Likewise.
63427         * lib/canonicalize.h: Likewise.
63428         * lib/ceil.c: Likewise.
63429         * lib/ceilf.c: Likewise.
63430         * lib/ceill.c: Likewise.
63431         * lib/chdir-long.c: Likewise.
63432         * lib/chdir-long.h: Likewise.
63433         * lib/chdir-safer.c: Likewise.
63434         * lib/chdir-safer.h: Likewise.
63435         * lib/chown.c: Likewise.
63436         * lib/classpath.c: Likewise.
63437         * lib/classpath.h: Likewise.
63438         * lib/clean-temp.c: Likewise.
63439         * lib/clean-temp.h: Likewise.
63440         * lib/cloexec.c: Likewise.
63441         * lib/close-stream.c: Likewise.
63442         * lib/closein.c: Likewise.
63443         * lib/closein.h: Likewise.
63444         * lib/closeout.c: Likewise.
63445         * lib/closeout.h: Likewise.
63446         * lib/concat-filename.c: Likewise.
63447         * lib/copy-file.c: Likewise.
63448         * lib/copy-file.h: Likewise.
63449         * lib/count-one-bits.h: Likewise.
63450         * lib/crc.c: Likewise.
63451         * lib/crc.h: Likewise.
63452         * lib/creat-safer.c: Likewise.
63453         * lib/csharpcomp.c: Likewise.
63454         * lib/csharpcomp.h: Likewise.
63455         * lib/csharpexec.c: Likewise.
63456         * lib/csharpexec.h: Likewise.
63457         * lib/cycle-check.c: Likewise.
63458         * lib/cycle-check.h: Likewise.
63459         * lib/diacrit.c: Likewise.
63460         * lib/diacrit.h: Likewise.
63461         * lib/diffseq.h: Likewise.
63462         * lib/dirchownmod.c: Likewise.
63463         * lib/dirent.in.h: Likewise.
63464         * lib/dirfd.c: Likewise.
63465         * lib/dirfd.h: Likewise.
63466         * lib/dirname.c: Likewise.
63467         * lib/dirname.h: Likewise.
63468         * lib/dummy.c: Likewise.
63469         * lib/dup-safer.c: Likewise.
63470         * lib/dup2.c: Likewise.
63471         * lib/eealloc.h: Likewise.
63472         * lib/error.c: Likewise.
63473         * lib/error.h: Likewise.
63474         * lib/euidaccess.c: Likewise.
63475         * lib/exclude.c: Likewise.
63476         * lib/exclude.h: Likewise.
63477         * lib/execute.c: Likewise.
63478         * lib/execute.h: Likewise.
63479         * lib/exitfail.c: Likewise.
63480         * lib/exitfail.h: Likewise.
63481         * lib/expl.c: Likewise.
63482         * lib/fatal-signal.c: Likewise.
63483         * lib/fatal-signal.h: Likewise.
63484         * lib/fbufmode.c: Likewise.
63485         * lib/fbufmode.h: Likewise.
63486         * lib/fchdir.c: Likewise.
63487         * lib/fchmodat.c: Likewise.
63488         * lib/fchownat.c: Likewise.
63489         * lib/fcntl--.h: Likewise.
63490         * lib/fcntl-safer.h: Likewise.
63491         * lib/fcntl.in.h: Likewise.
63492         * lib/fd-safer.c: Likewise.
63493         * lib/fflush.c: Likewise.
63494         * lib/file-has-acl.c: Likewise.
63495         * lib/file-set.c: Likewise.
63496         * lib/file-type.c: Likewise.
63497         * lib/file-type.h: Likewise.
63498         * lib/fileblocks.c: Likewise.
63499         * lib/filemode.c: Likewise.
63500         * lib/filemode.h: Likewise.
63501         * lib/filename.h: Likewise.
63502         * lib/filenamecat.c: Likewise.
63503         * lib/filenamecat.h: Likewise.
63504         * lib/findprog.c: Likewise.
63505         * lib/findprog.h: Likewise.
63506         * lib/float.in.h: Likewise.
63507         * lib/floor.c: Likewise.
63508         * lib/floorf.c: Likewise.
63509         * lib/floorl.c: Likewise.
63510         * lib/fopen-safer.c: Likewise.
63511         * lib/fopen.c: Likewise.
63512         * lib/fpending.c: Likewise.
63513         * lib/fpending.h: Likewise.
63514         * lib/fprintf.c: Likewise.
63515         * lib/fprintftime.h: Likewise.
63516         * lib/fpucw.h: Likewise.
63517         * lib/fpurge.c: Likewise.
63518         * lib/fpurge.h: Likewise.
63519         * lib/freadable.c: Likewise.
63520         * lib/freadable.h: Likewise.
63521         * lib/freadahead.c: Likewise.
63522         * lib/freadahead.h: Likewise.
63523         * lib/freading.c: Likewise.
63524         * lib/freading.h: Likewise.
63525         * lib/free.c: Likewise.
63526         * lib/freopen.c: Likewise.
63527         * lib/frexp.c: Likewise.
63528         * lib/frexpl.c: Likewise.
63529         * lib/fseek.c: Likewise.
63530         * lib/fseterr.c: Likewise.
63531         * lib/fseterr.h: Likewise.
63532         * lib/fstatat.c: Likewise.
63533         * lib/fstrcmp.c: Likewise.
63534         * lib/fstrcmp.h: Likewise.
63535         * lib/fsusage.c: Likewise.
63536         * lib/fsusage.h: Likewise.
63537         * lib/ftell.c: Likewise.
63538         * lib/ftello.c: Likewise.
63539         * lib/fts-cycle.c: Likewise.
63540         * lib/fts.c: Likewise.
63541         * lib/fts_.h: Likewise.
63542         * lib/full-read.c: Likewise.
63543         * lib/full-read.h: Likewise.
63544         * lib/full-write.c: Likewise.
63545         * lib/full-write.h: Likewise.
63546         * lib/fwritable.c: Likewise.
63547         * lib/fwritable.h: Likewise.
63548         * lib/fwriteerror.c: Likewise.
63549         * lib/fwriteerror.h: Likewise.
63550         * lib/fwriting.c: Likewise.
63551         * lib/fwriting.h: Likewise.
63552         * lib/gcd.c: Likewise.
63553         * lib/gcd.h: Likewise.
63554         * lib/getcwd.c: Likewise.
63555         * lib/getdate.h: Likewise.
63556         * lib/getdate.y: Likewise.
63557         * lib/getdomainname.c: Likewise.
63558         * lib/getdomainname.h: Likewise.
63559         * lib/getgroups.c: Likewise.
63560         * lib/gethostname.c: Likewise.
63561         * lib/gethrxtime.c: Likewise.
63562         * lib/gethrxtime.h: Likewise.
63563         * lib/getloadavg.c: Likewise.
63564         * lib/getndelim2.c: Likewise.
63565         * lib/getndelim2.h: Likewise.
63566         * lib/getnline.c: Likewise.
63567         * lib/getnline.h: Likewise.
63568         * lib/getopt.c: Likewise.
63569         * lib/getopt.in.h: Likewise.
63570         * lib/getopt1.c: Likewise.
63571         * lib/getopt_int.h: Likewise.
63572         * lib/getpagesize.h: Likewise.
63573         * lib/getsubopt.c: Likewise.
63574         * lib/gettime.c: Likewise.
63575         * lib/getugroups.c: Likewise.
63576         * lib/getugroups.h: Likewise.
63577         * lib/getusershell.c: Likewise.
63578         * lib/gl_anyavltree_list1.h: Likewise.
63579         * lib/gl_anyavltree_list2.h: Likewise.
63580         * lib/gl_anyhash_list1.h: Likewise.
63581         * lib/gl_anyhash_list2.h: Likewise.
63582         * lib/gl_anylinked_list1.h: Likewise.
63583         * lib/gl_anylinked_list2.h: Likewise.
63584         * lib/gl_anyrbtree_list1.h: Likewise.
63585         * lib/gl_anyrbtree_list2.h: Likewise.
63586         * lib/gl_anytree_list1.h: Likewise.
63587         * lib/gl_anytree_list2.h: Likewise.
63588         * lib/gl_anytree_oset.h: Likewise.
63589         * lib/gl_anytreehash_list1.h: Likewise.
63590         * lib/gl_anytreehash_list2.h: Likewise.
63591         * lib/gl_array_list.c: Likewise.
63592         * lib/gl_array_list.h: Likewise.
63593         * lib/gl_array_oset.c: Likewise.
63594         * lib/gl_array_oset.h: Likewise.
63595         * lib/gl_avltree_list.c: Likewise.
63596         * lib/gl_avltree_list.h: Likewise.
63597         * lib/gl_avltree_oset.c: Likewise.
63598         * lib/gl_avltree_oset.h: Likewise.
63599         * lib/gl_avltreehash_list.c: Likewise.
63600         * lib/gl_avltreehash_list.h: Likewise.
63601         * lib/gl_carray_list.c: Likewise.
63602         * lib/gl_carray_list.h: Likewise.
63603         * lib/gl_linked_list.c: Likewise.
63604         * lib/gl_linked_list.h: Likewise.
63605         * lib/gl_linkedhash_list.c: Likewise.
63606         * lib/gl_linkedhash_list.h: Likewise.
63607         * lib/gl_list.c: Likewise.
63608         * lib/gl_list.h: Likewise.
63609         * lib/gl_oset.c: Likewise.
63610         * lib/gl_oset.h: Likewise.
63611         * lib/gl_rbtree_list.c: Likewise.
63612         * lib/gl_rbtree_list.h: Likewise.
63613         * lib/gl_rbtree_oset.c: Likewise.
63614         * lib/gl_rbtree_oset.h: Likewise.
63615         * lib/gl_rbtreehash_list.c: Likewise.
63616         * lib/gl_rbtreehash_list.h: Likewise.
63617         * lib/gl_sublist.c: Likewise.
63618         * lib/gl_sublist.h: Likewise.
63619         * lib/group-member.c: Likewise.
63620         * lib/group-member.h: Likewise.
63621         * lib/hard-locale.c: Likewise.
63622         * lib/hard-locale.h: Likewise.
63623         * lib/hash-pjw.c: Likewise.
63624         * lib/hash-pjw.h: Likewise.
63625         * lib/hash-triple.c: Likewise.
63626         * lib/hash.c: Likewise.
63627         * lib/hash.h: Likewise.
63628         * lib/human.c: Likewise.
63629         * lib/human.h: Likewise.
63630         * lib/i-ring.c: Likewise.
63631         * lib/i-ring.h: Likewise.
63632         * lib/idcache.c: Likewise.
63633         * lib/imaxabs.c: Likewise.
63634         * lib/imaxdiv.c: Likewise.
63635         * lib/inet_pton.c: Likewise.
63636         * lib/inet_pton.h: Likewise.
63637         * lib/intprops.h: Likewise.
63638         * lib/inttostr.c: Likewise.
63639         * lib/inttostr.h: Likewise.
63640         * lib/inttypes.in.h: Likewise.
63641         * lib/isapipe.c: Likewise.
63642         * lib/isdir.c: Likewise.
63643         * lib/isnan.c: Likewise.
63644         * lib/isnan.h: Likewise.
63645         * lib/isnanf.c: Likewise.
63646         * lib/isnanf.h: Likewise.
63647         * lib/isnanl-nolibm.h: Likewise.
63648         * lib/isnanl.c: Likewise.
63649         * lib/isnanl.h: Likewise.
63650         * lib/javacomp.c: Likewise.
63651         * lib/javacomp.h: Likewise.
63652         * lib/javaexec.c: Likewise.
63653         * lib/javaexec.h: Likewise.
63654         * lib/javaversion.c: Likewise.
63655         * lib/javaversion.h: Likewise.
63656         * lib/javaversion.java: Likewise.
63657         * lib/lbrkprop.h: Likewise.
63658         * lib/lchmod.h: Likewise.
63659         * lib/lchown.c: Likewise.
63660         * lib/ldexpl.c: Likewise.
63661         * lib/linebreak.c: Likewise.
63662         * lib/linebreak.h: Likewise.
63663         * lib/linebuffer.c: Likewise.
63664         * lib/linebuffer.h: Likewise.
63665         * lib/locale.in.h: Likewise.
63666         * lib/logl.c: Likewise.
63667         * lib/long-options.c: Likewise.
63668         * lib/long-options.h: Likewise.
63669         * lib/lstat.c: Likewise.
63670         * lib/lstat.h: Likewise.
63671         * lib/math.in.h: Likewise.
63672         * lib/mbchar.c: Likewise.
63673         * lib/mbchar.h: Likewise.
63674         * lib/mbfile.h: Likewise.
63675         * lib/mbiter.h: Likewise.
63676         * lib/mbscasecmp.c: Likewise.
63677         * lib/mbscasestr.c: Likewise.
63678         * lib/mbschr.c: Likewise.
63679         * lib/mbscspn.c: Likewise.
63680         * lib/mbslen.c: Likewise.
63681         * lib/mbsncasecmp.c: Likewise.
63682         * lib/mbsnlen.c: Likewise.
63683         * lib/mbspbrk.c: Likewise.
63684         * lib/mbspcasecmp.c: Likewise.
63685         * lib/mbsrchr.c: Likewise.
63686         * lib/mbssep.c: Likewise.
63687         * lib/mbsspn.c: Likewise.
63688         * lib/mbsstr.c: Likewise.
63689         * lib/mbstok_r.c: Likewise.
63690         * lib/mbswidth.c: Likewise.
63691         * lib/mbswidth.h: Likewise.
63692         * lib/mbuiter.h: Likewise.
63693         * lib/memcasecmp.c: Likewise.
63694         * lib/memcasecmp.h: Likewise.
63695         * lib/memchr.c: Likewise.
63696         * lib/memcmp.c: Likewise.
63697         * lib/memcoll.c: Likewise.
63698         * lib/memcoll.h: Likewise.
63699         * lib/memcpy.c: Likewise.
63700         * lib/memrchr.c: Likewise.
63701         * lib/mkancesdirs.c: Likewise.
63702         * lib/mkdir-p.c: Likewise.
63703         * lib/mkdir-p.h: Likewise.
63704         * lib/mkdir.c: Likewise.
63705         * lib/mkdirat.c: Likewise.
63706         * lib/mkdtemp.c: Likewise.
63707         * lib/mkstemp-safer.c: Likewise.
63708         * lib/mkstemp.c: Likewise.
63709         * lib/modechange.c: Likewise.
63710         * lib/modechange.h: Likewise.
63711         * lib/mountlist.c: Likewise.
63712         * lib/mountlist.h: Likewise.
63713         * lib/mpsort.c: Likewise.
63714         * lib/nanosleep.c: Likewise.
63715         * lib/obstack.c: Likewise.
63716         * lib/obstack.h: Likewise.
63717         * lib/open-safer.c: Likewise.
63718         * lib/open.c: Likewise.
63719         * lib/openat-die.c: Likewise.
63720         * lib/openat-priv.h: Likewise.
63721         * lib/openat-proc.c: Likewise.
63722         * lib/openat.c: Likewise.
63723         * lib/openat.h: Likewise.
63724         * lib/pagealign_alloc.c: Likewise.
63725         * lib/pagealign_alloc.h: Likewise.
63726         * lib/physmem.c: Likewise.
63727         * lib/physmem.h: Likewise.
63728         * lib/pipe-safer.c: Likewise.
63729         * lib/pipe.c: Likewise.
63730         * lib/pipe.h: Likewise.
63731         * lib/posixtm.c: Likewise.
63732         * lib/posixtm.h: Likewise.
63733         * lib/posixver.c: Likewise.
63734         * lib/printf-frexp.c: Likewise.
63735         * lib/printf-frexp.h: Likewise.
63736         * lib/printf-frexpl.c: Likewise.
63737         * lib/printf-frexpl.h: Likewise.
63738         * lib/printf.c: Likewise.
63739         * lib/progname.c: Likewise.
63740         * lib/progname.h: Likewise.
63741         * lib/progreloc.c: Likewise.
63742         * lib/putenv.c: Likewise.
63743         * lib/quote.c: Likewise.
63744         * lib/quote.h: Likewise.
63745         * lib/quotearg.c: Likewise.
63746         * lib/quotearg.h: Likewise.
63747         * lib/raise.c: Likewise.
63748         * lib/readline.c: Likewise.
63749         * lib/readline.h: Likewise.
63750         * lib/readlink.c: Likewise.
63751         * lib/readtokens.c: Likewise.
63752         * lib/readtokens.h: Likewise.
63753         * lib/readtokens0.c: Likewise.
63754         * lib/readtokens0.h: Likewise.
63755         * lib/readutmp.c: Likewise.
63756         * lib/readutmp.h: Likewise.
63757         * lib/realloc.c: Likewise.
63758         * lib/relocwrapper.c: Likewise.
63759         * lib/rename-dest-slash.c: Likewise.
63760         * lib/rename.c: Likewise.
63761         * lib/rmdir.c: Likewise.
63762         * lib/rpmatch.c: Likewise.
63763         * lib/safe-read.c: Likewise.
63764         * lib/safe-read.h: Likewise.
63765         * lib/safe-write.c: Likewise.
63766         * lib/safe-write.h: Likewise.
63767         * lib/same-inode.h: Likewise.
63768         * lib/same.c: Likewise.
63769         * lib/same.h: Likewise.
63770         * lib/save-cwd.c: Likewise.
63771         * lib/save-cwd.h: Likewise.
63772         * lib/savedir.c: Likewise.
63773         * lib/savedir.h: Likewise.
63774         * lib/savewd.c: Likewise.
63775         * lib/savewd.h: Likewise.
63776         * lib/search.in.h: Likewise.
63777         * lib/setenv.c: Likewise.
63778         * lib/setenv.h: Likewise.
63779         * lib/settime.c: Likewise.
63780         * lib/sh-quote.c: Likewise.
63781         * lib/sh-quote.h: Likewise.
63782         * lib/sig2str.c: Likewise.
63783         * lib/sig2str.h: Likewise.
63784         * lib/signal.in.h: Likewise.
63785         * lib/signbitd.c: Likewise.
63786         * lib/signbitf.c: Likewise.
63787         * lib/signbitl.c: Likewise.
63788         * lib/sigprocmask.c: Likewise.
63789         * lib/sincosl.c: Likewise.
63790         * lib/sleep.c: Likewise.
63791         * lib/sprintf.c: Likewise.
63792         * lib/sqrtl.c: Likewise.
63793         * lib/stat-time.h: Likewise.
63794         * lib/stdio--.h: Likewise.
63795         * lib/stdio-safer.h: Likewise.
63796         * lib/stdlib--.h: Likewise.
63797         * lib/stdlib-safer.h: Likewise.
63798         * lib/stdlib.in.h: Likewise.
63799         * lib/stpcpy.c: Likewise.
63800         * lib/stpncpy.c: Likewise.
63801         * lib/strchrnul.c: Likewise.
63802         * lib/strcspn.c: Likewise.
63803         * lib/strerror.c: Likewise.
63804         * lib/strftime.c: Likewise.
63805         * lib/strftime.h: Likewise.
63806         * lib/striconveh.c: Likewise.
63807         * lib/striconveh.h: Likewise.
63808         * lib/striconveha.c: Likewise.
63809         * lib/striconveha.h: Likewise.
63810         * lib/stripslash.c: Likewise.
63811         * lib/strnlen1.c: Likewise.
63812         * lib/strnlen1.h: Likewise.
63813         * lib/strtod.c: Likewise.
63814         * lib/strtoimax.c: Likewise.
63815         * lib/strtok_r.c: Likewise.
63816         * lib/strtol.c: Likewise.
63817         * lib/strtoll.c: Likewise.
63818         * lib/strtoul.c: Likewise.
63819         * lib/strtoull.c: Likewise.
63820         * lib/sysexits.in.h: Likewise.
63821         * lib/tempname.c: Likewise.
63822         * lib/tempname.h: Likewise.
63823         * lib/timespec.h: Likewise.
63824         * lib/tls.c: Likewise.
63825         * lib/tls.h: Likewise.
63826         * lib/tmpdir.c: Likewise.
63827         * lib/tmpdir.h: Likewise.
63828         * lib/tmpfile-safer.c: Likewise.
63829         * lib/tmpfile.c: Likewise.
63830         * lib/trigl.c: Likewise.
63831         * lib/trigl.h: Likewise.
63832         * lib/trim.c: Likewise.
63833         * lib/trim.h: Likewise.
63834         * lib/trunc.c: Likewise.
63835         * lib/truncf.c: Likewise.
63836         * lib/truncl.c: Likewise.
63837         * lib/tsearch.c: Likewise.
63838         * lib/unicodeio.c: Likewise.
63839         * lib/unicodeio.h: Likewise.
63840         * lib/unistd--.h: Likewise.
63841         * lib/unistd-safer.h: Likewise.
63842         * lib/unistdio/ulc-fprintf.c: Likewise.
63843         * lib/unistdio/ulc-vfprintf.c: Likewise.
63844         * lib/unlinkdir.c: Likewise.
63845         * lib/unlinkdir.h: Likewise.
63846         * lib/unlocked-io.h: Likewise.
63847         * lib/unsetenv.c: Likewise.
63848         * lib/userspec.c: Likewise.
63849         * lib/utime.c: Likewise.
63850         * lib/utimecmp.c: Likewise.
63851         * lib/utimecmp.h: Likewise.
63852         * lib/utimens.c: Likewise.
63853         * lib/verify.h: Likewise.
63854         * lib/verror.c: Likewise.
63855         * lib/verror.h: Likewise.
63856         * lib/version-etc-fsf.c: Likewise.
63857         * lib/version-etc.c: Likewise.
63858         * lib/version-etc.h: Likewise.
63859         * lib/vfprintf.c: Likewise.
63860         * lib/vprintf.c: Likewise.
63861         * lib/vsprintf.c: Likewise.
63862         * lib/w32spawn.h: Likewise.
63863         * lib/wait-process.c: Likewise.
63864         * lib/wait-process.h: Likewise.
63865         * lib/wcwidth.c: Likewise.
63866         * lib/write-any-file.c: Likewise.
63867         * lib/xalloc-die.c: Likewise.
63868         * lib/xalloc.h: Likewise.
63869         * lib/xasprintf.c: Likewise.
63870         * lib/xgetcwd.c: Likewise.
63871         * lib/xgetcwd.h: Likewise.
63872         * lib/xgetdomainname.c: Likewise.
63873         * lib/xgetdomainname.h: Likewise.
63874         * lib/xgethostname.c: Likewise.
63875         * lib/xmalloc.c: Likewise.
63876         * lib/xmalloca.c: Likewise.
63877         * lib/xmalloca.h: Likewise.
63878         * lib/xmemcoll.c: Likewise.
63879         * lib/xnanosleep.c: Likewise.
63880         * lib/xreadlink.c: Likewise.
63881         * lib/xreadlink.h: Likewise.
63882         * lib/xsetenv.c: Likewise.
63883         * lib/xsetenv.h: Likewise.
63884         * lib/xstriconv.c: Likewise.
63885         * lib/xstriconv.h: Likewise.
63886         * lib/xstrndup.c: Likewise.
63887         * lib/xstrndup.h: Likewise.
63888         * lib/xstrtod.c: Likewise.
63889         * lib/xstrtod.h: Likewise.
63890         * lib/xstrtol-error.c: Likewise.
63891         * lib/xstrtol.c: Likewise.
63892         * lib/xstrtol.h: Likewise.
63893         * lib/xtime.h: Likewise.
63894         * lib/xvasprintf.c: Likewise.
63895         * lib/xvasprintf.h: Likewise.
63896         * lib/yesno.c: Likewise.
63897         * lib/yesno.h: Likewise.
63898         * posix-modules: Likewise.
63899         * tests/test-alloca-opt.c: Likewise.
63900         * tests/test-arcfour.c: Likewise.
63901         * tests/test-arctwo.c: Likewise.
63902         * tests/test-argmatch.c: Likewise.
63903         * tests/test-argp-2.sh: Likewise.
63904         * tests/test-argp.c: Likewise.
63905         * tests/test-arpa_inet.c: Likewise.
63906         * tests/test-array_list.c: Likewise.
63907         * tests/test-array_oset.c: Likewise.
63908         * tests/test-atexit.c: Likewise.
63909         * tests/test-avltree_list.c: Likewise.
63910         * tests/test-avltree_oset.c: Likewise.
63911         * tests/test-avltreehash_list.c: Likewise.
63912         * tests/test-base64.c: Likewise.
63913         * tests/test-binary-io.c: Likewise.
63914         * tests/test-byteswap.c: Likewise.
63915         * tests/test-c-ctype.c: Likewise.
63916         * tests/test-c-strcasecmp.c: Likewise.
63917         * tests/test-c-strcasestr.c: Likewise.
63918         * tests/test-c-strncasecmp.c: Likewise.
63919         * tests/test-c-strstr.c: Likewise.
63920         * tests/test-canonicalize-lgpl.c: Likewise.
63921         * tests/test-canonicalize.c: Likewise.
63922         * tests/test-carray_list.c: Likewise.
63923         * tests/test-ceilf.c: Likewise.
63924         * tests/test-ceill.c: Likewise.
63925         * tests/test-count-one-bits.c: Likewise.
63926         * tests/test-crc.c: Likewise.
63927         * tests/test-dirname.c: Likewise.
63928         * tests/test-fbufmode.c: Likewise.
63929         * tests/test-fcntl.c: Likewise.
63930         * tests/test-fflush.c: Likewise.
63931         * tests/test-floorf.c: Likewise.
63932         * tests/test-floorl.c: Likewise.
63933         * tests/test-fopen.c: Likewise.
63934         * tests/test-fprintf-posix.c: Likewise.
63935         * tests/test-fprintf-posix.h: Likewise.
63936         * tests/test-fpurge.c: Likewise.
63937         * tests/test-freadable.c: Likewise.
63938         * tests/test-freadahead.c: Likewise.
63939         * tests/test-freading.c: Likewise.
63940         * tests/test-freopen.c: Likewise.
63941         * tests/test-frexp.c: Likewise.
63942         * tests/test-frexpl.c: Likewise.
63943         * tests/test-fseek.c: Likewise.
63944         * tests/test-fseeko.c: Likewise.
63945         * tests/test-fseterr.c: Likewise.
63946         * tests/test-fstrcmp.c: Likewise.
63947         * tests/test-ftell.c: Likewise.
63948         * tests/test-ftello.c: Likewise.
63949         * tests/test-fwritable.c: Likewise.
63950         * tests/test-fwriting.c: Likewise.
63951         * tests/test-getaddrinfo.c: Likewise.
63952         * tests/test-getpass.c: Likewise.
63953         * tests/test-gettimeofday.c: Likewise.
63954         * tests/test-hmac-md5.c: Likewise.
63955         * tests/test-hmac-sha1.c: Likewise.
63956         * tests/test-iconv.c: Likewise.
63957         * tests/test-iconvme.c: Likewise.
63958         * tests/test-inttypes.c: Likewise.
63959         * tests/test-isnan.c: Likewise.
63960         * tests/test-isnanf.c: Likewise.
63961         * tests/test-isnanl-nolibm.c: Likewise.
63962         * tests/test-isnanl.c: Likewise.
63963         * tests/test-isnanl.h: Likewise.
63964         * tests/test-ldexpl.c: Likewise.
63965         * tests/test-linked_list.c: Likewise.
63966         * tests/test-linkedhash_list.c: Likewise.
63967         * tests/test-locale.c: Likewise.
63968         * tests/test-localename.c: Likewise.
63969         * tests/test-lock.c: Likewise.
63970         * tests/test-lseek.c: Likewise.
63971         * tests/test-malloca.c: Likewise.
63972         * tests/test-math.c: Likewise.
63973         * tests/test-mbscasecmp.c: Likewise.
63974         * tests/test-mbscasestr1.c: Likewise.
63975         * tests/test-mbscasestr2.c: Likewise.
63976         * tests/test-mbscasestr3.c: Likewise.
63977         * tests/test-mbscasestr4.c: Likewise.
63978         * tests/test-mbschr.c: Likewise.
63979         * tests/test-mbscspn.c: Likewise.
63980         * tests/test-mbsncasecmp.c: Likewise.
63981         * tests/test-mbspbrk.c: Likewise.
63982         * tests/test-mbspcasecmp.c: Likewise.
63983         * tests/test-mbsrchr.c: Likewise.
63984         * tests/test-mbsspn.c: Likewise.
63985         * tests/test-mbsstr1.c: Likewise.
63986         * tests/test-mbsstr2.c: Likewise.
63987         * tests/test-mbsstr3.c: Likewise.
63988         * tests/test-md5.c: Likewise.
63989         * tests/test-memmem.c: Likewise.
63990         * tests/test-netinet_in.c: Likewise.
63991         * tests/test-open.c: Likewise.
63992         * tests/test-printf-frexp.c: Likewise.
63993         * tests/test-printf-frexpl.c: Likewise.
63994         * tests/test-printf-posix.c: Likewise.
63995         * tests/test-printf-posix.h: Likewise.
63996         * tests/test-rbtree_list.c: Likewise.
63997         * tests/test-rbtree_oset.c: Likewise.
63998         * tests/test-rbtreehash_list.c: Likewise.
63999         * tests/test-read-file.c: Likewise.
64000         * tests/test-rijndael.c: Likewise.
64001         * tests/test-search.c: Likewise.
64002         * tests/test-signbit.c: Likewise.
64003         * tests/test-sleep.c: Likewise.
64004         * tests/test-snprintf-posix.c: Likewise.
64005         * tests/test-snprintf-posix.h: Likewise.
64006         * tests/test-snprintf.c: Likewise.
64007         * tests/test-sprintf-posix.c: Likewise.
64008         * tests/test-sprintf-posix.h: Likewise.
64009         * tests/test-stat-time.c: Likewise.
64010         * tests/test-stdbool.c: Likewise.
64011         * tests/test-stdint.c: Likewise.
64012         * tests/test-stdio.c: Likewise.
64013         * tests/test-stdlib.c: Likewise.
64014         * tests/test-stpncpy.c: Likewise.
64015         * tests/test-strcasestr.c: Likewise.
64016         * tests/test-striconv.c: Likewise.
64017         * tests/test-striconveh.c: Likewise.
64018         * tests/test-striconveha.c: Likewise.
64019         * tests/test-string.c: Likewise.
64020         * tests/test-sys_select.c: Likewise.
64021         * tests/test-sys_socket.c: Likewise.
64022         * tests/test-sys_stat.c: Likewise.
64023         * tests/test-sys_time.c: Likewise.
64024         * tests/test-sysexits.c: Likewise.
64025         * tests/test-time.c: Likewise.
64026         * tests/test-tls.c: Likewise.
64027         * tests/test-trunc.c: Likewise.
64028         * tests/test-truncf.c: Likewise.
64029         * tests/test-truncl.c: Likewise.
64030         * tests/test-unistd.c: Likewise.
64031         * tests/test-vasnprintf-posix.c: Likewise.
64032         * tests/test-vasnprintf-posix2.c: Likewise.
64033         * tests/test-vasnprintf.c: Likewise.
64034         * tests/test-vasprintf-posix.c: Likewise.
64035         * tests/test-vasprintf.c: Likewise.
64036         * tests/test-verify.c: Likewise.
64037         * tests/test-vfprintf-posix.c: Likewise.
64038         * tests/test-vprintf-posix.c: Likewise.
64039         * tests/test-vsnprintf-posix.c: Likewise.
64040         * tests/test-vsnprintf.c: Likewise.
64041         * tests/test-vsprintf-posix.c: Likewise.
64042         * tests/test-wchar.c: Likewise.
64043         * tests/test-wctype.c: Likewise.
64044         * tests/test-wcwidth.c: Likewise.
64045         * tests/test-xstrtol.c: Likewise.
64046         * tests/test-xvasprintf.c: Likewise.
64047         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64048         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64049         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64050         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64051         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64052         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64053         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64054         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64055         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64056         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64057         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64058         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64059         * tests/uniname/test-uninames.c: Likewise.
64060         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64061         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64062         * tests/unistdio/test-u16-printf1.h: Likewise.
64063         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64064         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64065         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64066         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64067         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64068         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64069         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64070         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64071         * tests/unistdio/test-u32-printf1.h: Likewise.
64072         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64073         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64074         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64075         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64076         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64077         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64078         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64079         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64080         * tests/unistdio/test-u8-printf1.h: Likewise.
64081         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64082         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64083         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64084         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64085         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64086         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64087         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64088         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64089         * tests/unistdio/test-ulc-printf1.h: Likewise.
64090         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64091         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64092         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64093         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64094         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64095         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64096         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64097         * tests/uniwidth/test-u16-width.c: Likewise.
64098         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64099         * tests/uniwidth/test-u32-width.c: Likewise.
64100         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64101         * tests/uniwidth/test-u8-width.c: Likewise.
64102         * tests/uniwidth/test-uc_width.c: Likewise.
64103         * config/srclist-update: Likewise.
64104         (fixlicense): Update to GPLv3+.
64105
64106         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64107         * tests/test-tsearch.c: Change copyright notice.
64108
64109         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64110         * lib/c-strcaseeq.h: Change copyright notice.
64111         * lib/streq.h: Likewise.
64112         * lib/uniconv.h: Likewise.
64113         * lib/uniconv/u-conv-from-enc.h: Likewise.
64114         * lib/uniconv/u-conv-to-enc.h: Likewise.
64115         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64116         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64117         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64118         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64119         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64120         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64121         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64122         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64123         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64124         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64125         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64126         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64127         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64128         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64129         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64130         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64131         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64132         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64133         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64134         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64135         * lib/uniname.h: Likewise.
64136         * lib/uniname/uniname.c: Likewise.
64137         * lib/unistdio.h: Likewise.
64138         * lib/unistdio/u-asnprintf.h: Likewise.
64139         * lib/unistdio/u-asprintf.h: Likewise.
64140         * lib/unistdio/u-printf-args.c: Likewise.
64141         * lib/unistdio/u-printf-args.h: Likewise.
64142         * lib/unistdio/u-printf-parse.h: Likewise.
64143         * lib/unistdio/u-snprintf.h: Likewise.
64144         * lib/unistdio/u-sprintf.h: Likewise.
64145         * lib/unistdio/u-vasprintf.h: Likewise.
64146         * lib/unistdio/u-vsnprintf.h: Likewise.
64147         * lib/unistdio/u-vsprintf.h: Likewise.
64148         * lib/unistdio/u16-asnprintf.c: Likewise.
64149         * lib/unistdio/u16-asprintf.c: Likewise.
64150         * lib/unistdio/u16-printf-parse.c: Likewise.
64151         * lib/unistdio/u16-snprintf.c: Likewise.
64152         * lib/unistdio/u16-sprintf.c: Likewise.
64153         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64154         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64155         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64156         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64157         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64158         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64159         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64160         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64161         * lib/unistdio/u16-vasnprintf.c: Likewise.
64162         * lib/unistdio/u16-vasprintf.c: Likewise.
64163         * lib/unistdio/u16-vsnprintf.c: Likewise.
64164         * lib/unistdio/u16-vsprintf.c: Likewise.
64165         * lib/unistdio/u32-asnprintf.c: Likewise.
64166         * lib/unistdio/u32-asprintf.c: Likewise.
64167         * lib/unistdio/u32-printf-parse.c: Likewise.
64168         * lib/unistdio/u32-snprintf.c: Likewise.
64169         * lib/unistdio/u32-sprintf.c: Likewise.
64170         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64171         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64172         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64173         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64174         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64175         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64176         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64177         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64178         * lib/unistdio/u32-vasnprintf.c: Likewise.
64179         * lib/unistdio/u32-vasprintf.c: Likewise.
64180         * lib/unistdio/u32-vsnprintf.c: Likewise.
64181         * lib/unistdio/u32-vsprintf.c: Likewise.
64182         * lib/unistdio/u8-asnprintf.c: Likewise.
64183         * lib/unistdio/u8-asprintf.c: Likewise.
64184         * lib/unistdio/u8-printf-parse.c: Likewise.
64185         * lib/unistdio/u8-snprintf.c: Likewise.
64186         * lib/unistdio/u8-sprintf.c: Likewise.
64187         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64188         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64189         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64190         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64191         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64192         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64193         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64194         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64195         * lib/unistdio/u8-vasnprintf.c: Likewise.
64196         * lib/unistdio/u8-vasprintf.c: Likewise.
64197         * lib/unistdio/u8-vsnprintf.c: Likewise.
64198         * lib/unistdio/u8-vsprintf.c: Likewise.
64199         * lib/unistdio/ulc-asnprintf.c: Likewise.
64200         * lib/unistdio/ulc-asprintf.c: Likewise.
64201         * lib/unistdio/ulc-printf-parse.c: Likewise.
64202         * lib/unistdio/ulc-snprintf.c: Likewise.
64203         * lib/unistdio/ulc-sprintf.c: Likewise.
64204         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64205         * lib/unistdio/ulc-vasprintf.c: Likewise.
64206         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64207         * lib/unistdio/ulc-vsprintf.c: Likewise.
64208         * lib/unistr.h: Likewise.
64209         * lib/unistr/u-cpy-alloc.h: Likewise.
64210         * lib/unistr/u-cpy.h: Likewise.
64211         * lib/unistr/u-endswith.h: Likewise.
64212         * lib/unistr/u-move.h: Likewise.
64213         * lib/unistr/u-set.h: Likewise.
64214         * lib/unistr/u-startswith.h: Likewise.
64215         * lib/unistr/u-stpcpy.h: Likewise.
64216         * lib/unistr/u-stpncpy.h: Likewise.
64217         * lib/unistr/u-strcat.h: Likewise.
64218         * lib/unistr/u-strcpy.h: Likewise.
64219         * lib/unistr/u-strcspn.h: Likewise.
64220         * lib/unistr/u-strdup.h: Likewise.
64221         * lib/unistr/u-strlen.h: Likewise.
64222         * lib/unistr/u-strncat.h: Likewise.
64223         * lib/unistr/u-strncpy.h: Likewise.
64224         * lib/unistr/u-strnlen.h: Likewise.
64225         * lib/unistr/u-strpbrk.h: Likewise.
64226         * lib/unistr/u-strspn.h: Likewise.
64227         * lib/unistr/u-strstr.h: Likewise.
64228         * lib/unistr/u-strtok.h: Likewise.
64229         * lib/unistr/u16-check.c: Likewise.
64230         * lib/unistr/u16-chr.c: Likewise.
64231         * lib/unistr/u16-cmp.c: Likewise.
64232         * lib/unistr/u16-cpy-alloc.c: Likewise.
64233         * lib/unistr/u16-cpy.c: Likewise.
64234         * lib/unistr/u16-endswith.c: Likewise.
64235         * lib/unistr/u16-mblen.c: Likewise.
64236         * lib/unistr/u16-mbsnlen.c: Likewise.
64237         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64238         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64239         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64240         * lib/unistr/u16-mbtouc.c: Likewise.
64241         * lib/unistr/u16-mbtoucr.c: Likewise.
64242         * lib/unistr/u16-move.c: Likewise.
64243         * lib/unistr/u16-next.c: Likewise.
64244         * lib/unistr/u16-prev.c: Likewise.
64245         * lib/unistr/u16-set.c: Likewise.
64246         * lib/unistr/u16-startswith.c: Likewise.
64247         * lib/unistr/u16-stpcpy.c: Likewise.
64248         * lib/unistr/u16-stpncpy.c: Likewise.
64249         * lib/unistr/u16-strcat.c: Likewise.
64250         * lib/unistr/u16-strchr.c: Likewise.
64251         * lib/unistr/u16-strcmp.c: Likewise.
64252         * lib/unistr/u16-strcpy.c: Likewise.
64253         * lib/unistr/u16-strcspn.c: Likewise.
64254         * lib/unistr/u16-strdup.c: Likewise.
64255         * lib/unistr/u16-strlen.c: Likewise.
64256         * lib/unistr/u16-strmblen.c: Likewise.
64257         * lib/unistr/u16-strmbtouc.c: Likewise.
64258         * lib/unistr/u16-strncat.c: Likewise.
64259         * lib/unistr/u16-strncmp.c: Likewise.
64260         * lib/unistr/u16-strncpy.c: Likewise.
64261         * lib/unistr/u16-strnlen.c: Likewise.
64262         * lib/unistr/u16-strpbrk.c: Likewise.
64263         * lib/unistr/u16-strrchr.c: Likewise.
64264         * lib/unistr/u16-strspn.c: Likewise.
64265         * lib/unistr/u16-strstr.c: Likewise.
64266         * lib/unistr/u16-strtok.c: Likewise.
64267         * lib/unistr/u16-to-u32.c: Likewise.
64268         * lib/unistr/u16-to-u8.c: Likewise.
64269         * lib/unistr/u16-uctomb-aux.c: Likewise.
64270         * lib/unistr/u16-uctomb.c: Likewise.
64271         * lib/unistr/u32-check.c: Likewise.
64272         * lib/unistr/u32-chr.c: Likewise.
64273         * lib/unistr/u32-cmp.c: Likewise.
64274         * lib/unistr/u32-cpy-alloc.c: Likewise.
64275         * lib/unistr/u32-cpy.c: Likewise.
64276         * lib/unistr/u32-endswith.c: Likewise.
64277         * lib/unistr/u32-mblen.c: Likewise.
64278         * lib/unistr/u32-mbsnlen.c: Likewise.
64279         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64280         * lib/unistr/u32-mbtouc.c: Likewise.
64281         * lib/unistr/u32-mbtoucr.c: Likewise.
64282         * lib/unistr/u32-move.c: Likewise.
64283         * lib/unistr/u32-next.c: Likewise.
64284         * lib/unistr/u32-prev.c: Likewise.
64285         * lib/unistr/u32-set.c: Likewise.
64286         * lib/unistr/u32-startswith.c: Likewise.
64287         * lib/unistr/u32-stpcpy.c: Likewise.
64288         * lib/unistr/u32-stpncpy.c: Likewise.
64289         * lib/unistr/u32-strcat.c: Likewise.
64290         * lib/unistr/u32-strchr.c: Likewise.
64291         * lib/unistr/u32-strcmp.c: Likewise.
64292         * lib/unistr/u32-strcpy.c: Likewise.
64293         * lib/unistr/u32-strcspn.c: Likewise.
64294         * lib/unistr/u32-strdup.c: Likewise.
64295         * lib/unistr/u32-strlen.c: Likewise.
64296         * lib/unistr/u32-strmblen.c: Likewise.
64297         * lib/unistr/u32-strmbtouc.c: Likewise.
64298         * lib/unistr/u32-strncat.c: Likewise.
64299         * lib/unistr/u32-strncmp.c: Likewise.
64300         * lib/unistr/u32-strncpy.c: Likewise.
64301         * lib/unistr/u32-strnlen.c: Likewise.
64302         * lib/unistr/u32-strpbrk.c: Likewise.
64303         * lib/unistr/u32-strrchr.c: Likewise.
64304         * lib/unistr/u32-strspn.c: Likewise.
64305         * lib/unistr/u32-strstr.c: Likewise.
64306         * lib/unistr/u32-strtok.c: Likewise.
64307         * lib/unistr/u32-to-u16.c: Likewise.
64308         * lib/unistr/u32-to-u8.c: Likewise.
64309         * lib/unistr/u32-uctomb.c: Likewise.
64310         * lib/unistr/u8-check.c: Likewise.
64311         * lib/unistr/u8-chr.c: Likewise.
64312         * lib/unistr/u8-cmp.c: Likewise.
64313         * lib/unistr/u8-cpy-alloc.c: Likewise.
64314         * lib/unistr/u8-cpy.c: Likewise.
64315         * lib/unistr/u8-endswith.c: Likewise.
64316         * lib/unistr/u8-mblen.c: Likewise.
64317         * lib/unistr/u8-mbsnlen.c: Likewise.
64318         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64319         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64320         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64321         * lib/unistr/u8-mbtouc.c: Likewise.
64322         * lib/unistr/u8-mbtoucr.c: Likewise.
64323         * lib/unistr/u8-move.c: Likewise.
64324         * lib/unistr/u8-next.c: Likewise.
64325         * lib/unistr/u8-prev.c: Likewise.
64326         * lib/unistr/u8-set.c: Likewise.
64327         * lib/unistr/u8-startswith.c: Likewise.
64328         * lib/unistr/u8-stpcpy.c: Likewise.
64329         * lib/unistr/u8-stpncpy.c: Likewise.
64330         * lib/unistr/u8-strcat.c: Likewise.
64331         * lib/unistr/u8-strchr.c: Likewise.
64332         * lib/unistr/u8-strcmp.c: Likewise.
64333         * lib/unistr/u8-strcpy.c: Likewise.
64334         * lib/unistr/u8-strcspn.c: Likewise.
64335         * lib/unistr/u8-strdup.c: Likewise.
64336         * lib/unistr/u8-strlen.c: Likewise.
64337         * lib/unistr/u8-strmblen.c: Likewise.
64338         * lib/unistr/u8-strmbtouc.c: Likewise.
64339         * lib/unistr/u8-strncat.c: Likewise.
64340         * lib/unistr/u8-strncmp.c: Likewise.
64341         * lib/unistr/u8-strncpy.c: Likewise.
64342         * lib/unistr/u8-strnlen.c: Likewise.
64343         * lib/unistr/u8-strpbrk.c: Likewise.
64344         * lib/unistr/u8-strrchr.c: Likewise.
64345         * lib/unistr/u8-strspn.c: Likewise.
64346         * lib/unistr/u8-strstr.c: Likewise.
64347         * lib/unistr/u8-strtok.c: Likewise.
64348         * lib/unistr/u8-to-u16.c: Likewise.
64349         * lib/unistr/u8-to-u32.c: Likewise.
64350         * lib/unistr/u8-uctomb-aux.c: Likewise.
64351         * lib/unistr/u8-uctomb.c: Likewise.
64352         * lib/unitypes.h: Likewise.
64353         * lib/uniwidth.h: Likewise.
64354         * lib/uniwidth/cjk.h: Likewise.
64355         * lib/uniwidth/u16-strwidth.c: Likewise.
64356         * lib/uniwidth/u16-width.c: Likewise.
64357         * lib/uniwidth/u32-strwidth.c: Likewise.
64358         * lib/uniwidth/u32-width.c: Likewise.
64359         * lib/uniwidth/u8-strwidth.c: Likewise.
64360         * lib/uniwidth/u8-width.c: Likewise.
64361         * lib/uniwidth/width.c: Likewise.
64362
64363 2007-10-07  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64366         The file is still under LGPL (see modules/inttypes).
64367
64368 2007-10-06  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/trunc (Dependencies): Add 'extensions'.
64371         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64372         Reported by Ben Pfaff <blp@gnu.org>.
64373
64374 2007-10-06  Bruno Haible  <bruno@clisp.org>
64375
64376         * modules/freopen-tests: New file.
64377         * tests/test-freopen.c: New file.
64378
64379         * modules/fopen-tests: New file.
64380         * tests/test-fopen.c: New file.
64381
64382         * modules/fopen: New file.
64383         * lib/fopen.c: New file.
64384         * m4/fopen.m4: New file.
64385         * modules/freopen: New file.
64386         * lib/freopen.c: New file.
64387         * m4/freopen.m4: New file.
64388         * lib/stdio.in.h (fopen, freopen): New declarations.
64389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64390         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64391         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64392         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64393         * doc/functions/fopen.texi: Mention the 'fopen' module.
64394         * doc/functions/freopen.texi: Mention the 'freopen' module.
64395
64396 2007-10-06  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/open-tests: New file.
64399         * tests/test-open.c: New file.
64400
64401         * modules/open: New file.
64402         * lib/open.c: New file.
64403         * m4/open.m4: New file.
64404         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64405         lib/open.c does.
64406         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64407         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64408         macros.
64409         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64410         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64411         REPLACE_OPEN.
64412         * doc/functions/open.texi: Mention the 'open' module.
64413
64414 2007-10-04  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/ceill-tests: New file.
64417         * tests/test-ceill.c: New file.
64418
64419         * modules/ceill: New file.
64420         * lib/ceill.c: Replace entire file.
64421         * m4/ceill.m4: New file.
64422         * lib/math.in.h (ceill): Replace declaration.
64423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64424         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64425         * doc/functions/ceill.texi: Mention the 'ceill' module.
64426         * modules/mathl (Files): Remove lib/ceill.c.
64427         (Depends-on): Add ceill.
64428
64429 2007-10-04  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/ceilf-tests: New file.
64432         * tests/test-ceilf.c: New file.
64433
64434         * modules/ceilf: New file.
64435         * lib/ceil.c: New file.
64436         * lib/ceilf.c: New file.
64437         * m4/ceilf.m4: New file.
64438         * lib/math.in.h (ceilf): New declaration.
64439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64440         HAVE_DECL_CEILF.
64441         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64442         HAVE_DECL_CEILF.
64443         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64444
64445 2007-10-04  Bruno Haible  <bruno@clisp.org>
64446
64447         * modules/floorl-tests: New file.
64448         * tests/test-floorl.c: New file.
64449
64450         * modules/floorl: New file.
64451         * lib/floorl.c: Replace entire file.
64452         * m4/floorl.m4: New file.
64453         * lib/math.in.h (floorl): Replace declaration.
64454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64455         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64456         * doc/functions/floorl.texi: Mention the 'floorl' module.
64457         * modules/mathl (Files): Remove lib/floorl.c.
64458         (Depends-on): Add floorl.
64459
64460 2007-10-04  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/floorf-tests: New file.
64463         * tests/test-floorf.c: New file.
64464
64465         * modules/floorf: New file.
64466         * lib/floor.c: New file.
64467         * lib/floorf.c: New file.
64468         * m4/floorf.m4: New file.
64469         * lib/math.in.h (floorf): New declaration.
64470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64471         HAVE_DECL_FLOORF.
64472         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64473         HAVE_DECL_FLOORF.
64474         * doc/functions/floorf.texi: Mention the 'floorf' module.
64475
64476 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64477             Bruno Haible  <bruno@clisp.org>
64478
64479         Advertise for the Git server instead of the CVS server.
64480         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64481         repository instead of the CVS one.
64482         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64483         about all VCS systems generically.
64484         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64485
64486 2007-10-04  Bruno Haible  <bruno@clisp.org>
64487
64488         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64489         means.
64490         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64491
64492 2007-10-04  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/truncl-tests: New file.
64495         * tests/test-truncl.c: New file.
64496
64497         * modules/truncl: New file.
64498         * lib/truncl.c: New file.
64499         * m4/truncl.m4: New file.
64500         * lib/math.in.h (truncl): New declaration.
64501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64502         HAVE_DECL_TRUNCL.
64503         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64504         HAVE_DECL_TRUNCL.
64505         * doc/functions/truncl.texi: Mention the 'truncl' module.
64506
64507 2007-10-04  Bruno Haible  <bruno@clisp.org>
64508
64509         * modules/truncf-tests: New file.
64510         * tests/test-truncf.c: New file.
64511
64512         * modules/truncf: New file.
64513         * lib/trunc.c: Make paramerizable through USE_* macros.
64514         * lib/truncf.c: New file.
64515         * m4/truncf.m4: New file.
64516         * lib/math.in.h (truncf): New declaration.
64517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64518         HAVE_DECL_TRUNCF.
64519         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64520         HAVE_DECL_TRUNCF.
64521         * doc/functions/truncf.texi: Mention the 'truncf' module.
64522
64523 2007-10-03  Bruno Haible  <bruno@clisp.org>
64524
64525         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64526         augmentation also for tests modules.
64527         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64528         * modules/atexit-tests (Makefile.am): Likewise.
64529         * modules/binary-io-tests (Makefile.am): Likewise.
64530         * modules/c-strcase-tests (Makefile.am): Likewise.
64531         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64532         * modules/canonicalize-tests (Makefile.am): Likewise.
64533         * modules/closein-tests (Makefile.am): Likewise.
64534         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64535         * modules/freadahead-tests (Makefile.am): Likewise.
64536         * modules/fseek-tests (Makefile.am): Likewise.
64537         * modules/fseeko-tests (Makefile.am): Likewise.
64538         * modules/ftell-tests (Makefile.am): Likewise.
64539         * modules/ftello-tests (Makefile.am): Likewise.
64540         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64541         * modules/isnanl-tests (Makefile.am): Likewise.
64542         * modules/lseek-tests (Makefile.am): Likewise.
64543         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64544         * modules/mbscasestr-tests (Makefile.am): Likewise.
64545         * modules/mbschr-tests (Makefile.am): Likewise.
64546         * modules/mbscspn-tests (Makefile.am): Likewise.
64547         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64548         * modules/mbspbrk-tests (Makefile.am): Likewise.
64549         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64550         * modules/mbsrchr-tests (Makefile.am): Likewise.
64551         * modules/mbsspn-tests (Makefile.am): Likewise.
64552         * modules/mbsstr-tests (Makefile.am): Likewise.
64553         * modules/printf-posix-tests (Makefile.am): Likewise.
64554         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64555         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64556         * modules/tsearch-tests (Makefile.am): Likewise.
64557         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64558         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64559         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64560         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64561         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64562         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64563         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64564         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64565         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64566         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64567         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64568         * modules/xstrtol-tests (Makefile.am): Likewise.
64569         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64570         * modules/yesno-tests (Makefile.am): Likewise.
64571
64572 2007-10-03  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/trunc-tests: New file.
64575         * tests/test-trunc.c: New file.
64576
64577         * modules/trunc: New file.
64578         * lib/trunc.c: New file.
64579         * m4/trunc.m4: New file.
64580         * lib/math.in.h (trunc): New declaration.
64581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64582         HAVE_DECL_TRUNC.
64583         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64584         HAVE_DECL_TRUNC.
64585         * doc/functions/trunc.texi: Mention the 'trunc' module.
64586
64587 2007-10-03  Bruno Haible  <bruno@clisp.org>
64588
64589         * tests/test-fpending.c: New file, mostly copied
64590         from coreutils/lib/t-fpending.c.
64591         * modules/fpending-tests: New file.
64592
64593 2007-10-03  Bruno Haible  <bruno@clisp.org>
64594
64595         Port the stdio extensions to QNX (untested).
64596         * lib/fseterr.c (fseterr): Add support for QNX.
64597         * lib/fbufmode.c (fbufmode): Likewise.
64598         * lib/freadable.c (freadable): Likewise.
64599         * lib/fwritable.c (fwritable): Likewise.
64600         * lib/freading.c (freading): Likewise.
64601         * lib/fwriting.c (fwriting): Likewise.
64602         * lib/freadahead.c (freadahed): Likewise.
64603         * lib/fpurge.c (fpurge): Likewise.
64604         * lib/fseeko.c (rpl_fseeko): Likewise.
64605
64606 2007-10-03  Bruno Haible  <bruno@clisp.org>
64607             Jim Meyering  <jim@meyering.net>
64608             Eric Blake  <ebb9@byu.net>
64609
64610         * doc/relocatable.texi: Use @command instead of @program.
64611
64612 2007-10-02  Jim Meyering  <jim@meyering.net>
64613
64614         Perform one more "_.h" -> ".in.h" substitution.
64615         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64616         instead of unistd_.h here, too.
64617
64618 2007-10-01  Bruno Haible  <bruno@clisp.org>
64619
64620         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64621         Needed for the alloca-opt module.
64622
64623 2007-09-30  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64626         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64627         alloca_.h.
64628         * lib/argz.in.h: Renamed from lib/argz_.h.
64629         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64630         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64631         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64632         byteswap_.h.
64633         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64634         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64635         dirent_.h.
64636         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64637         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64638         fcntl_.h.
64639         * lib/float.in.h: Renamed from lib/float_.h.
64640         * modules/float (Files, Makefile.am): Use float.in.h instead of
64641         float_.h.
64642         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64643         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64644         fnmatch_.h.
64645         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64646         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64647         getopt_.h.
64648         * lib/glob.in.h: Renamed from lib/glob_.h.
64649         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64650         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64651         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64652         iconv_.h.
64653         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64654         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64655         inttypes_.h.
64656         * lib/locale.in.h: Renamed from lib/locale_.h.
64657         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64658         locale_.h.
64659         * lib/math.in.h: Renamed from lib/math_.h.
64660         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64661         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64662         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64663         of netinet_in_.h. Add dependency.
64664         * lib/poll.in.h: Renamed from lib/poll_.h.
64665         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64666         * lib/search.in.h: Renamed from lib/search_.h.
64667         * modules/search (Files, Makefile.am): Use search.in.h instead of
64668         search_.h.
64669         * lib/signal.in.h: Renamed from lib/signal_.h.
64670         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64671         _signal.h.
64672         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64673         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64674         stdbool_.h.
64675         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64676         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64677         stdint_.h.
64678         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64679         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64680         stdio_.h.
64681         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64682         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64683         stdlib_.h.
64684         * lib/string.in.h: Renamed from lib/string_.h.
64685         * modules/string (Files, Makefile.am): Use string.in.h instead of
64686         string_.h.
64687         * doc/gnulib-tool.texi (Initial import): Update.
64688         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64689         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64690         of sys_select_.h. Add dependency.
64691         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64692         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64693         of sys_socket_.h.
64694         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64695         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64696         sys_stat_.h.
64697         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64698         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64699         sys_time_.h.
64700         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64701         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64702         sysexits_.h.
64703         * lib/time.in.h: Renamed from lib/time_.h.
64704         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64705         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64706         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64707         unistd_.h.
64708         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64709         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64710         wchar_.h.
64711         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64712         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64713         wctype_.h.
64714         * build-aux/bootstrap (slurp): Update.
64715         * lib/.cppi-disable: Update.
64716
64717 2007-09-30  Bruno Haible  <bruno@clisp.org>
64718
64719         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64720         Needed on BeOS.
64721
64722 2007-09-30  Bruno Haible  <bruno@clisp.org>
64723
64724         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64725
64726 2007-09-29  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64729
64730 2007-09-29  Bruno Haible  <bruno@clisp.org>
64731
64732         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64733         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64734         * build-aux/install-reloc: Compile also areadlink.c.
64735         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64736
64737 2007-09-29  Bruno Haible  <bruno@clisp.org>
64738
64739         * gnulib-tool (func_emit_initmacro_done): Indentation.
64740
64741 2007-09-29  Bruno Haible  <bruno@clisp.org>
64742
64743         * README: Add CVS checkout update instructions.
64744         Info from Bob Proulx <bob@proulx.com>.
64745
64746 2007-09-28  Eric Blake  <ebb9@byu.net>
64747
64748         Provide move-if-change.
64749         * build-aux/move-if-change: New file, based on best practice
64750         rather than any canonical upstream location.
64751
64752 2007-09-28  Jim Meyering  <jim@meyering.net>
64753
64754         Fix canonicalize loop-detection corner case.
64755         Do not attempt to stat the symlink values stored via seen_triple.
64756         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64757         on linux-2.6.18, (but not 2.6.22).
64758         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64759         triple_compare.  The former compares dev,ino,filename, while the latter
64760         would actually stat dirname(filename) when dev and ino were equal.
64761         * lib/hash-triple.c: Install <string.h>.
64762         (STREQ): Define.
64763         (triple_compare_ino_str): New function.
64764         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64765
64766 2007-09-28  Eric Blake  <ebb9@byu.net>
64767
64768         Enforce that AC_REPLACE_FUNCS files exist.
64769         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64770         override check for typos.
64771
64772         Fix test-closein on Solaris 10.
64773         * tests/test-closein.c (main): Don't assume stdin can be inherited
64774         closed on all systems.
64775         * tests/test-closein.sh: Likewise.
64776         Reported by Piotr Tarnowski.
64777
64778 2007-09-28  Jim Meyering  <jim@meyering.net>
64779
64780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64781
64782 2007-09-27  Jim Meyering  <jim@meyering.net>
64783
64784         canonicalize: Avoid a false-positive cycle failure.
64785         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64786         Sort.  Remove cycle-check.
64787         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64788         not cycle-check.h.
64789         (seen_triple): New function.
64790         (canonicalize_filename_mode): Use it instead of cycle-check.
64791         * tests/test-canonicalize.c: Add a test for this bug.
64792         * tests/test-canonicalize.sh: Set up and run the test.
64793
64794         New module, file-set, from coreutils.
64795         * modules/file-set: Define it.
64796         * lib/file-set.c, lib/file-set.h: Implement.
64797
64798         New module, hash-triple, from coreutils.
64799         * modules/hash-triple: Define it.
64800         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64801
64802 2007-09-25  Eric Blake  <ebb9@byu.net>
64803
64804         Fix strerror on Interix.
64805         * lib/string_.h (strerror): Declare replacement.
64806         * doc/functions/strerror.texi (strerror): Document the Interix
64807         shortcoming.
64808         * modules/string (Makefile.am): Support new hooks.
64809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64810         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64811         gl_FUNC_STRERROR_SEPARATE.
64812         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64813         * lib/strerror.c (rpl_strerror): Provide replacement.
64814         * modules/strerror (Depends-on): Add string.
64815         (configure.ac): Detect use of module.
64816         * tests/test-strerror.c: New file.
64817         * modules/strerror-tests: New test module.
64818         * modules/argp (Depends-on): Add strerror.
64819         * modules/error (Depends-on): Likewise.
64820         Reported by Martin Koeppe.
64821
64822 2007-09-24  Bruno Haible  <bruno@clisp.org>
64823
64824         * README: Update git instructions.
64825
64826 2007-09-24  Eric Blake  <ebb9@byu.net>
64827
64828         Revert fpending breakage from 2007-09-08.
64829         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64830         __fpending.c.
64831
64832 2007-09-24  Jim Meyering  <jim@meyering.net>
64833
64834         filenamecat.c: Add a test.
64835         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64836         showing how the function works when DIR is the empty string.
64837
64838 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64839
64840         * tests/test-canonicalize.sh: Turn on executable bit.
64841
64842 2007-09-19  Eric Blake  <ebb9@byu.net>
64843
64844         * README: Update CVS instructions.
64845
64846 2007-09-18  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/areadlink: New file.
64849         * lib/areadlink.h (areadlink): New declaration.
64850         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64851
64852 2007-09-17  Jim Meyering  <jim@meyering.net>
64853
64854         * lib/savewd.c (ESTALE) [!defined]: Define.
64855         Reported to be required on Interix by Martin Koeppe.
64856
64857 2007-09-17  Bruno Haible  <bruno@clisp.org>
64858
64859         * gnulib-tool (func_version): Use $version.
64860
64861 2007-09-16  Bruno Haible  <bruno@clisp.org>
64862
64863         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64864         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64865         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64866         Reported by Greg Schafer <gschafer@zip.com.au>.
64867
64868 2007-09-15  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool (sed): Try a little harder to make bash understand the
64871         alias.
64872         Reported by Bruce Korb <bruce.korb@gmail.com>.
64873
64874 2007-09-13  Eric Blake  <ebb9@byu.net>
64875
64876         * ChangeLog: Remove conflict markers.
64877
64878 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64879
64880         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64881         Reported by Bruno Haible <bruno@clisp.org>.
64882
64883 2007-09-12  Bruno Haible  <bruno@clisp.org>
64884
64885         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64886         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64887         is not defined.
64888
64889 2007-09-12  Eric Blake  <ebb9@byu.net>
64890
64891         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64892         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64893         Autoconf definition.
64894         * modules/euidaccess (Depends-on): Add extensions, for
64895         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64896         * modules/fnmatch (Depends-on): Likewise.
64897         * modules/getaddrinfo (Depends-on): Likewise.
64898         * modules/getdelim (Depends-on): Likewise.
64899         * modules/getline (Depends-on): Likewise.
64900         * modules/getsubopt (Depends-on): Likewise.
64901         * modules/gettext (Depends-on): Likewise.
64902         * modules/group-member (Depends-on): Likewise.
64903         * modules/mbchar (Depends-on): Likewise.
64904         * modules/memmem (Depends-on): Likewise.
64905         * modules/mempcpy (Depends-on): Likewise.
64906         * modules/memrchr (Depends-on): Likewise.
64907         * modules/pagealign_alloc (Depends-on): Likewise.
64908         * modules/readutmp (Depends-on): Likewise.
64909         * modules/stpcpy (Depends-on): Likewise.
64910         * modules/stpncpy (Depends-on): Likewise.
64911         * modules/strchrnul (Depends-on): Likewise.
64912         * modules/strndup (Depends-on): Likewise.
64913         * modules/strsep (Depends-on): Likewise.
64914         * modules/strverscmp (Depends-on): Likewise.
64915         * modules/vasprintf (Depends-on): Likewise.
64916         * modules/wcwidth (Depends-on): Likewise.
64917         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64918         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64919         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64921         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64922         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64923         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64924         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64925         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64926         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64928         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64929         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64930         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64931         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64932         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64933         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64934         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64935         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64936         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64937         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64938         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64939         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64940         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64941         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64943         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64944         so that lock.m4 can be used in gettext without extensions module.
64945
64946 2007-09-11  Bruno Haible  <bruno@clisp.org>
64947
64948         * m4/isc-posix.m4: Remove file.
64949         Suggested by Eric Blake.
64950
64951 2007-09-11  Eric Blake  <ebb9@byu.net>
64952
64953         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64954
64955 2007-09-10  Bruno Haible  <bruno@clisp.org>
64956
64957         * posix-modules: Fix typo in error message.
64958         Reported by Matt <mkraai@beckman.com>.
64959
64960 2007-09-09  Bruno Haible  <bruno@clisp.org>
64961
64962         * doc/functions/getdelim.texi: Update list of platforms lacking the
64963         function.
64964         * doc/functions/getline.texi: Likewise.
64965
64966 2007-09-09  Jim Meyering  <jim@meyering.net>
64967
64968         * lib/hash.c (hash_initialize): Detect calloc failure.
64969         Reported by Bruno Haible.
64970
64971 2007-09-09  Bruno Haible  <bruno@clisp.org>
64972
64973         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64974         malloc or realloc fails.
64975
64976 2007-09-09  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/getcwd (Depends-on): Add malloc-posix.
64979         * modules/glob (Depends-on): Likewise.
64980         * modules/putenv (Depends-on): Likewise.
64981         * modules/strdup (Depends-on): Likewise.
64982         * modules/getdelim (Depends-on): Add realloc-posix.
64983         * modules/read-file (Depends-on): Likewise.
64984
64985 2007-09-09  Bruno Haible  <bruno@clisp.org>
64986
64987         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64988         (gl_FUNC_MALLOC_POSIX): Require it.
64989         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64990         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64991         * modules/realloc (Files): Add m4/malloc.m4.
64992         * modules/calloc (Files): Likewise.
64993
64994 2007-09-09  Bruno Haible  <bruno@clisp.org>
64995
64996         * modules/malloc-posix: New file.
64997         * modules/malloc (Depends-on): Add malloc-posix.
64998         * lib/malloc.c: Include errno.h.
64999         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65000         and a POSIX-compatible malloc into a single function. Set ENOMEM
65001         when returning NULL.
65002         * m4/malloc.m4: New file.
65003         * doc/functions/malloc.texi: Mention the malloc-posix module.
65004         * lib/stdlib_.h (malloc): New declaration.
65005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65006         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65007         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65008         and HAVE_MALLOC_POSIX.
65009
65010 2007-09-09  Bruno Haible  <bruno@clisp.org>
65011
65012         * modules/realloc-posix: New file.
65013         * modules/realloc (Depends-on): Add realloc-posix.
65014         * lib/realloc.c: Include errno.h.
65015         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65016         and a POSIX-compatible realloc into a single function. Set ENOMEM
65017         when returning NULL.
65018         * m4/realloc.m4: New file.
65019         * doc/functions/realloc.texi: Mention the realloc-posix module.
65020         * lib/stdlib_.h (realloc): New declaration.
65021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65022         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65023         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65024         and HAVE_REALLOC_POSIX.
65025
65026 2007-09-09  Bruno Haible  <bruno@clisp.org>
65027
65028         * modules/calloc-posix: New file.
65029         * modules/calloc (Depends-on): Add calloc-posix.
65030         * lib/calloc.c: Include errno.h.
65031         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65032         and a POSIX-compatible calloc into a single function. Set ENOMEM
65033         when returning NULL.
65034         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65035         * doc/functions/calloc.texi: Mention the calloc-posix module.
65036         * lib/stdlib_.h (calloc): New declaration.
65037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65038         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65039         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65040         and HAVE_CALLOC_POSIX.
65041
65042 2007-09-09  Bruno Haible  <bruno@clisp.org>
65043
65044         Allow for modules to show an arbitrary notice.
65045         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65046         * gnulib-tool: New option --extract-notice.
65047         (func_usage): Document it.
65048         (sed_extract_prog): Update.
65049         (func_get_notice): New function.
65050         (func_modules_notice): New function.
65051         (func_import, func_create_testdir): Invoke it.
65052         Suggested by Jim Meyering.
65053
65054 2007-09-09  Bruno Haible  <bruno@clisp.org>
65055
65056         * gnulib-tool: New options --verbose, --quiet.
65057         (func_usage): Document them.
65058         (verbose): New variable.
65059         (func_execute_command): New function.
65060         (func_import): Don't show the module list and the file list if
65061         $verbose < 0.
65062         (func_create_testdir): Likewise. Use func_execute_command.
65063         (func_create_megatestdir): Use func_execute_command.
65064
65065 2007-09-08  Bruno Haible  <bruno@clisp.org>
65066
65067         * gnulib-tool (func_import): Prefer rsync over wget when available,
65068         for fetching the PO files.
65069
65070 2007-09-08  Bruno Haible  <bruno@clisp.org>
65071
65072         * posix-modules: New file. Portions copied from gnulib-tool.
65073         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65074
65075 2007-09-08  Jim Meyering  <jim@meyering.net>
65076
65077         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65078         * lib/fpending.h: Rename from __fpending.h.
65079         * lib/fpending.c: Rename from __fpending.c.
65080         Include "fpending.h", not "__fpending.h".
65081         * lib/__fpending.h, lib/__fpending.c: Remove files.
65082         * modules/fpending (Files): Reflect new file names.
65083         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65084
65085 2007-09-08  Bruno Haible  <bruno@clisp.org>
65086
65087         * m4/inttypes-h.m4: Remove stub file.
65088
65089 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65090
65091         * doc/headers/stdint.texi: Discuss #include_next issue.
65092
65093 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65096
65097 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65098
65099         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65100         in variable name.
65101
65102 2007-09-03  Jim Meyering  <jim@meyering.net>
65103
65104         New module: git-version-gen.
65105         * modules/git-version-gen: New file.
65106
65107         Import changes from coreutils for bootstrap script.
65108
65109         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65110
65111         bootstrap: uses rsync to download the .po files
65112         * build-aux/bootstrap (po_download_command_format): New global.
65113         (download_po_files): Use rsync.
65114         (update_po_files): Don't remove .po files after download,
65115         so future rsync runs can take advantage of the copies.
65116
65117         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65118
65119         Solve the unnecessary-.po-file-regeneration problem once and for all.
65120         * build-aux/bootstrap (download_po_files): New function, renamed from
65121         get_translations.  Now, downloads, but doesn't update LINGUAS.
65122         (update_po_files): New function.
65123
65124         bootstrap: Ignore more.
65125         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65126         uniwidth to e.g., lib/.gitignore.
65127         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65128
65129         * build-aux/bootstrap: New setting: vc_ignore.
65130         (insert_sorted_if_absent): Create $file if absent.
65131         Adapt to new, possibly empty, list: $vc_ignore.
65132
65133         bootstrap: generate more ignorable names
65134         * build-aux/bootstrap (slurp): When generating ignorable names,
65135         also map .sin to .sed, .gperf to .c, and .y to .c.
65136
65137 2007-09-03  Jim Meyering  <jim@meyering.net>
65138
65139         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65140         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65141
65142 2007-09-02  Bruno Haible  <bruno@clisp.org>
65143
65144         Fix mis-recognition of 'mcs' on QNX 6.
65145         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65146         output contains the string "Mono".
65147         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65148         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65149
65150 2007-09-01  Bruno Haible  <bruno@clisp.org>
65151
65152         Fix collision between uniwidth/* and linebreak modules.
65153         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65154         u32_width): Remove declarations.
65155         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65156         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65157         streq3, streq2, streq1, streq0): Remove functions.
65158         (STREQ): Remove macro.
65159         (is_cjk_encoding): Remove function.
65160         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65161         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65162         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65163         * NEWS: Document the change.
65164
65165 2007-09-01  Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/streq.h: Add double-inclusion guard.
65168
65169 2007-09-01  Karl Berry  <karl@gnu.org>
65170
65171         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65172
65173 2007-08-28  Jim Meyering  <jim@meyering.net>
65174
65175         Rename mreadlink_with_size to areadlink_with_size.
65176         * NEWS: Document the change.
65177         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65178         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65179         * lib/mreadlink.h: Rename this to...
65180         * lib/areadlink.h: ...this.
65181         * modules/mreadlink-with-size: Rename this to...
65182         * modules/areadlink-with-size: ...this.
65183         * lib/canonicalize.c: Reflect the renaming.
65184         * modules/canonicalize: Likewise.
65185
65186 2007-08-26  Bruno Haible  <bruno@clisp.org>
65187
65188         * gnulib-tool (func_import): When deciding which files to remove,
65189         consider also dangling symbolic links.
65190         Reported by Eric Blake.
65191
65192 2007-08-26  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65195
65196 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65197
65198         * lib/readline.c: Don't include getline.h, the prototype is now
65199         found in stdio.h.
65200
65201 2007-08-23  Jim Meyering  <jim@meyering.net>
65202
65203         Getdelim touchup.
65204         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65205         around the funlockfile call, since funlockfile never sets errno.
65206         Don't set errno upon failed realloc.
65207
65208 2007-08-22  Eric Blake  <ebb9@byu.net>
65209
65210         Getline touchups.
65211         * lib/getdelim.c (getdelim): Revert regression that required *n to
65212         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65214         getdelim, rather than whether implementation is missing.
65215         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65216         * lib/stdio_.h (getline): Also declare if replacement is
65217         required.
65218         * doc/functions/getdelim.texi: New file.
65219         * doc/functions/getline.texi: Likewise.
65220         * doc/gnulib.texi (Function Substitutes): Add new files.
65221         Reported by Bruno Haible.
65222
65223 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65224
65225         * users.txt: Add Guile.
65226
65227 2007-08-22  Eric Blake  <ebb9@byu.net>
65228
65229         * tests/test-getdelim.c (main): Use remove, not unlink.
65230         * tests/test-getline.c (main): Likewise.
65231
65232         Move getline and getdelim into stdio.h, per POSIX 200x.
65233         * modules/getline (Files): Remove getline.h.
65234         (Depends-on): Add stdio.
65235         (configure.ac): Add module indicator.
65236         * modules/getdelim (Files): Remove getdelim.h.
65237         (Depends-on): Add stdio.
65238         (configure.ac): Add module indicator.
65239         * modules/stdio (Makefile.am): Work with new indicators.
65240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65241         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65243         * lib/getdelim.h: Delete.
65244         * lib/getline.h: Delete.
65245         * lib/stdio_.h (getdelim, getline): Declare.
65246         * modules/getdelim-tests: New module.
65247         * modules/getline-tests: Likewise.
65248         * tests/test-getdelim.c: New file.
65249         * tests/test-getline.c: Likewise.
65250         * NEWS: Document the change.
65251         * lib/getline.c: Update choice of header.
65252         * lib/csharpcomp.c: Likewise.
65253         * lib/getpass.c: Likewise.
65254         * lib/javacomp.c: Likewise.
65255         * lib/javaversion.c: Likewise.
65256         * lib/yesno.c: Likewise.
65257         * lib/getdelim.c: Likewise.
65258         (getdelim): Set errno on failure, and avoid memory leak.
65259
65260 2007-08-19  Bruno Haible  <bruno@clisp.org>
65261
65262         * modules/closein (Depends-on): Add freadahead.
65263         * lib/closein.c: Include freadahead.h.
65264         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65265         is zero.
65266
65267 2007-08-19  Bruno Haible  <bruno@clisp.org>
65268
65269         * modules/freadahead-tests: New file.
65270         * tests/test-freadahead.sh: New file.
65271         * tests/test-freadahead.c: New file.
65272
65273         * modules/freadahead: New file.
65274         * lib/freadahead.h: New file.
65275         * lib/freadahead.c: New file.
65276         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65277         fbufmode, fpurge, freadable, fwritable.
65278
65279 2007-08-19  Eric Blake  <ebb9@byu.net>
65280
65281         Test yesno in combination with closein.
65282         * lib/yesno.c (yesno): Document use of stdin.
65283         * modules/yesno-tests (Files): New module.
65284         * tests/test-yesno.c (main): New file.
65285         * tests/test-yesno.sh: Likewise.
65286
65287 2007-08-19  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65290         * lib/fseeko.c (rpl_fseeko): Likewise.
65291         * lib/fseterr.c (fseterr): Likewise.
65292
65293 2007-08-19  Bruno Haible  <bruno@clisp.org>
65294
65295         * tests/test-lseek.c (main): Disable a test for BeOS.
65296         * doc/functions/lseek.texi: Document the BeOS bug.
65297
65298 2007-08-19  Bruno Haible  <bruno@clisp.org>
65299             Eric Blake  <ebb9@byu.net>
65300
65301         * lib/lseek.c: Include <sys/stat.h>.
65302         (rpl_lseek): Add workaround code also for Unix platforms.
65303         Needed for BeOS.
65304         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65305         * doc/functions/lseek.texi: Document BeOS definiency.
65306
65307 2007-08-18  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/fstrcmp-tests: New file.
65310         * tests/test-fstrcmp.c: New file.
65311
65312 2007-08-18  Bruno Haible  <bruno@clisp.org>
65313
65314         * modules/fstrcmp: New file, from GNU gettext with modifications.
65315         * lib/fstrcmp.h: New file, from GNU gettext.
65316         * lib/fstrcmp.c: New file, from GNU gettext.
65317         * MODULES.html.sh (String handling): Add fstrcmp.
65318
65319 2007-08-18  Bruno Haible  <bruno@clisp.org>
65320
65321         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65322         'bool'.
65323         (diag, compareseq): Remove const from the ctxt argument.
65324         (USE_HEURISTIC): Undefine at the end.
65325
65326 2007-08-18  Jim Meyering  <jim@meyering.net>
65327
65328         New file: lib/idcache.h
65329         * NEWS: Mention the addition.
65330         * modules/idcache (Files): Add lib/idcache.h
65331         * lib/idcache.c: Include "idcache.h".
65332         Don't include <sys/types.h>.
65333         Add a FIXME comment.
65334         Move file-scoped "static" declarations to the top.
65335         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65336
65337 2007-08-17  Bruno Haible  <bruno@clisp.org>
65338         and Paul Eggert  <eggert@cs.ucla.edu>
65339
65340         * MODULES.html.sh: Add diffseq.
65341         * modules/diffseq: New file.
65342         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65343         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65344
65345 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         Import changes from coreutils for bootstrap script.
65348
65349         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         * build-aux/bootstrap (slurp): Work even in environments where
65352         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65353         current code does not slurp files whose names start with ".", and
65354         this looks like it might be a troublesome area.
65355
65356         2007-07-11  Jim Meyering  <jim@meyering.net>
65357
65358         If there's a GPL vN copyright comment, require that N == 3.
65359
65360         2007-07-08  Jim Meyering  <jim@meyering.net>
65361
65362         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65363         * build-aux/bootstrap (mam_template): Move definition out of loop.
65364
65365         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65366
65367         * build-aux/bootstrap (symlink_to_dir): Rename function from
65368         symlink_to_gnulib.  Add a directory parameter.  Update all
65369         callers.
65370         (cp_mark_as_generated): Also check for -- and link to -- files in
65371         gl/.
65372
65373         2007-07-08  Jim Meyering  <jim@meyering.net>
65374
65375         Adapt to deeper hierarchy in gnulib.
65376         * build-aux/bootstrap (symlink_to_dir): If the destination
65377         directory doesn't exist, create it. This is required at least for
65378         "lib/uniwidth/cjk.h".
65379
65380         2007-05-15  Jim Meyering  <jim@meyering.net>
65381
65382         * build-aux/bootstrap: Now that generated Makefile.am files
65383         are no longer under version control, they must be created at
65384         bootstrap time.
65385
65386 2007-08-14  Ben Pfaff  <blp@gnu.org>
65387
65388         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65389
65390 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65391
65392         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65393         given the changes below.
65394         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65395         even on hosts that have padding bits beyond the supported 64.
65396
65397 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65400         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65401         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65402         depends on it.
65403         (xstrtol_error): Remove.
65404         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65405         but with a different signature.
65406         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65407         * lib/xstrtol-error.c: Include exitfail.h.
65408         (xstrtol_fatal): New function, with a different signature from the
65409         old xstrtol_error, so that the caller need not worry about passing
65410         in an exit status, or about storage management of the option argument.
65411         (xstrtol_error): Now a static function.  Redo signature to
65412         implement xstrtol_fatal.  Output the correct number of hyphens in
65413         front of the option so that the caller need not worry about
65414         storage management.
65415         (N_): New macro.
65416         (_): Remove; not used now.
65417         * modules/xstrtol: Depend on getopt.
65418         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65419         of old STRTOL_FATAL_ERROR macro.
65420         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65421         of test program.
65422         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65423         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65424
65425 2007-08-08  Eric Blake  <ebb9@byu.net>
65426
65427         * lib/xstrtol-error.c: Add missing include.
65428
65429         Move xstrtol messages into gnulib domain, when --pobase is used.
65430         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65431         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65432         * modules/xstrtol (Files): Distribute new file.
65433         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65434         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65435         * tests/test-xstrtol.c: ...into new file.
65436         * tests/test-xstrtoul.c: Also test xstrtoul.
65437         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65438         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65439         * tests/test-xstrtol.sh: Drive the tests.
65440         * tests/test-xstrtoimax.sh: Likewise.
65441         * tests/test-xstrtoumax.sh: Likewise.
65442         * modules/xstrtol-tests: New module.
65443         * modules/xstrtoimax-tests: Likewise.
65444         * modules/xstrtoumax-tests: Likewise.
65445
65446 2007-08-08  Jim Meyering  <jim@meyering.net>
65447
65448         New function: mfile_name_concat.
65449         * lib/filenamecat.c (mfile_name_concat): New function, just like
65450         file_name_concat, but return NULL upon failure rather than exiting
65451         with a diagnostic.
65452         * lib/filenamecat.h: Declare it.
65453
65454 2007-08-07  Bruno Haible  <bruno@clisp.org>
65455
65456         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65457         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65458         warning from gcc.
65459         Reported by Eric Blake.
65460
65461 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65462
65463         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65464         * modules/crypto/arcfour (License): Likewise.
65465         * modules/crypto/des-tests (License): Likewise.
65466         * modules/crypto/gc-arctwo-tests (License): Likewise.
65467         * modules/crypto/gc-des-tests (License): Likewise.
65468         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65469         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65470         * modules/crypto/gc-md2-tests (License): Likewise.
65471         * modules/crypto/gc-md4-tests (License): Likewise.
65472         * modules/crypto/gc-md5-tests (License): Likewise.
65473         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65474         * modules/crypto/gc-rijndael-tests (License): Likewise.
65475         * modules/crypto/gc-sha1-tests (License): Likewise.
65476         * modules/crypto/gc-tests (License): Likewise.
65477         * modules/crypto/hmac-md5 (License): Likewise.
65478         * modules/crypto/hmac-sha1 (License): Likewise.
65479         * modules/crypto/md2-tests (License): Likewise.
65480         * modules/crypto/md4-tests (License): Likewise.
65481         * modules/crypto/md5 (License): Likewise.
65482         * modules/crypto/rijndael (License): Likewise.
65483         * modules/crypto/sha1 (License): Likewise.
65484         * modules/memxor (License): Likewise.
65485
65486 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65487         and Bruno Haible  <bruno@clisp.org>
65488
65489         * NEWS: Describe interface changes to human, xstrtol.
65490         * lib/human.h: Include <xstrtol.h>.
65491         (human_options): Return enum strtol_error, not int.  Remove
65492         bool arg; take int * instead.
65493         * lib/human.c: Don't include "gettext.h".
65494         (_): Remove; no longer used.
65495         Don't include <xstrtol.h>, since human.h does it.
65496         (human_options): Adjust to abovementioned interface changes.
65497         Do not report error to stderr; that's now the caller's
65498         responsibility.
65499         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65500         interface change.
65501         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65502         Str, Argument_type_string.  All uses changed.  Put " argument"
65503         in diagnostics to make them clearer.  Change wording of suffix
65504         message for clarity.
65505         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65506         Argument_type_string.
65507         (STRTOL_FATAL_WARN): Remove; no longer used.
65508         * modules/human (Depends-on): Remove gettext-h.
65509
65510 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65511
65512         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65513
65514 2007-07-31  Bruno Haible  <bruno@clisp.org>
65515
65516         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65517         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65518         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65519
65520 2007-07-31  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65523         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65524
65525 2007-07-30  Bruno Haible  <bruno@clisp.org>
65526
65527         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65528         * modules/c-ctype (License): Likewise.
65529         * modules/c-strcase (License): Likewise.
65530         * modules/check-version (License): Likewise.
65531         * modules/iconv (License): Likewise.
65532         * modules/iconv_open (License): Likewise.
65533         * modules/read-file (License): Likewise.
65534         * modules/striconv (License): Likewise.
65535         * modules/strverscmp (License): Likewise.
65536         * modules/vasprintf (License): Likewise.
65537         * modules/crypto/des (License): Likewise.
65538         * modules/crypto/gc (License): Likewise.
65539         * modules/crypto/gc-arcfour (License): Likewise.
65540         * modules/crypto/gc-arctwo (License): Likewise.
65541         * modules/crypto/gc-des (License): Likewise.
65542         * modules/crypto/gc-hmac-md5 (License): Likewise.
65543         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65544         * modules/crypto/gc-md2 (License): Likewise.
65545         * modules/crypto/gc-md4 (License): Likewise.
65546         * modules/crypto/gc-md5 (License): Likewise.
65547         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65548         * modules/crypto/gc-random (License): Likewise.
65549         * modules/crypto/gc-rijndael (License): Likewise.
65550         * modules/crypto/gc-sha1 (License): Likewise.
65551         * modules/crypto/md2 (License): Likewise.
65552         * modules/crypto/md4 (License): Likewise.
65553
65554 2007-07-30  Jim Meyering  <jim@meyering.net>
65555
65556         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65557         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65558         it has valid stat data.  This bug would cause du not to count the
65559         sizes of inaccessible directories.
65560         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65561         in <http://bugzilla.redhat.com/250077>.
65562
65563 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65564             Bruno Haible  <bruno@clisp.org>
65565
65566         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65567         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65568         #include_next, gives a diagnostic about it, but reports no error in
65569         the exit code.
65570         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65571
65572 2007-07-24  Ben Pfaff  <blp@gnu.org>
65573
65574         Improve name: "count-one-bits" is better than "popcount".
65575         * MODULES.html.sh: Update name.
65576         * lib/popcount.h: Renamed lib/count-one-bits.h.
65577         (popcount): Renamed count_one_bits.
65578         (popcountl): Renamed count_one_bits_l.
65579         (popcountll): Renamed count_one_bits_ll.
65580         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65581         * modules/popcount: Renamed module/count-one-bits.
65582         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65583         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65584
65585 2007-07-23  Ben Pfaff  <blp@gnu.org>
65586
65587         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65588         better code generation, and add U to large constants to avoid
65589         warnings, in non-GCC case.
65590         Suggested by Bruno Haible.
65591
65592 2007-07-23  Ben Pfaff  <blp@gnu.org>
65593
65594         * lib/popcount.h: Use verify_true instead of if...abort.
65595         * modules/popcount: Depend on verify module.
65596         Suggested by Jim Meyering.
65597
65598 2007-07-23  Bruno Haible  <bruno@clisp.org>
65599
65600         * gnulib-tool (func_import): Create a .cvsignore file also when the
65601         directory is not yet in CVS but the toplevel directory is. When
65602         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65603         Reported by Karl Berry.
65604
65605 2007-07-22  Ben Pfaff  <blp@gnu.org>
65606
65607         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65608         case.
65609         Suggested by Eric Blake.
65610
65611 2007-07-22  Ben Pfaff  <blp@gnu.org>
65612
65613         New module: popcount.
65614         * MODULES.html.sh: Add popcount.
65615         * modules/popcount: New file.
65616         * modules/popcount-tests: New file.
65617         * tests/test-popcount.c: New file.
65618         * lib/popcount.h: New file.
65619         * m4/popcount.m4: New file.
65620
65621 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65622
65623         * build-aux/announce-gen: Update to GPLv3.
65624
65625         * build-aux/config.guess: Update from config.
65626
65627 2007-07-21  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65630         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65631
65632 2007-07-20  Jim Meyering  <jim@meyering.net>
65633
65634         * check-module: Diagnose a self-dependency.
65635
65636 2007-07-19  Bruno Haible  <bruno@clisp.org>
65637
65638         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65639         empty.
65640         Reported by Eric Blake.
65641
65642 2007-07-18  Bruno Haible  <bruno@clisp.org>
65643
65644         * gnulib-tool: New options --po-base, --po-domain.
65645         (func_usage): Document them.
65646         (pobase, po_domain): New variables.
65647         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65648         DEFAULT_TEXT_DOMAIN.
65649         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65650         (func_import): Consider pobase and po_domain. Create a po/ directory.
65651         (func_create_testdir): Set pobase and po_domain to empty.
65652         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65653         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65654
65655 2007-07-18  Bruno Haible  <bruno@clisp.org>
65656
65657         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65658         EXTRA_DIST augmentation for files in build-aux/.
65659
65660 2007-07-16  Bruno Haible  <bruno@clisp.org>
65661
65662         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65663         * modules/getdelim (License): Likewise.
65664
65665 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65666
65667         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65668         * modules/d-type (License): Likewise.
65669         * modules/extensions (License): Likewise.
65670         * modules/fnmatch (License): Likewise.
65671         * modules/fseeko (License): Likewise.
65672         * modules/getaddrinfo (License): Likewise.
65673         * modules/getline (License): Likewise.
65674         * modules/getlogin_r (License): Likewise.
65675         * modules/getpass (License): Likewise.
65676         * modules/gettimeofday (License): Likewise.
65677         * modules/glob (License): Likewise.
65678         * modules/inet_ntop (License): Likewise.
65679         * modules/malloc (License): Likewise.
65680         * modules/malloca (License): Likewise.
65681         * modules/memmem (License): Likewise.
65682         * modules/mempcpy (License): Likewise.
65683         * modules/memset (License): Likewise.
65684         * modules/minmax (License): Likewise.
65685         * modules/mktime (License): Likewise.
65686         * modules/netinet_in (License): Likewise.
65687         * modules/pathmax (License): Likewise.
65688         * modules/poll (License): Likewise.
65689         * modules/regex (License): Likewise.
65690         * modules/snprintf (License): Likewise.
65691         * modules/stdbool (License): Likewise.
65692         * modules/stdint (License): Likewise.
65693         * modules/stdio (License): Likewise.
65694         * modules/strcase (License): Likewise.
65695         * modules/strcasestr (License): Likewise.
65696         * modules/strdup (License): Likewise.
65697         * modules/string (License): Likewise.
65698         * modules/strndup (License): Likewise.
65699         * modules/strnlen (License): Likewise.
65700         * modules/strpbrk (License): Likewise.
65701         * modules/strptime (License): Likewise.
65702         * modules/strsep (License): Likewise.
65703         * modules/sys_select (License): Likewise.
65704         * modules/sys_socket (License): Likewise.
65705         * modules/sys_stat (License): Likewise.
65706         * modules/sys_time (License): Likewise.
65707         * modules/time (License): Likewise.
65708         * modules/time_r (License): Likewise.
65709         * modules/timegm (License): Likewise.
65710         * modules/unistd (License): Likewise.
65711         * modules/vsnprintf (License): Likewise.
65712         * modules/wctype (License): Likewise.
65713
65714 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65715
65716         * modules/argz (License): LGPLv2+.
65717
65718 2007-07-15  Karl Berry  <karl@gnu.org>
65719
65720         * doc/gnulib.texi: revise node structure per new fdl.texi.
65721
65722 2007-07-14  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65725         the output file.
65726         * lib/uniname/uninames.h: Regenerated.
65727
65728 2007-07-14  Karl Berry  <karl@gnu.org>
65729
65730         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65731         omitting sectioning and index commands.
65732
65733 2007-07-13  Bruno Haible  <bruno@clisp.org>
65734
65735         New gnulib-tool option --more-symlinks.
65736         * gnulib-tool (func_usage): Document --more-symlinks.
65737         (do_copyrights): New variable.
65738         Recognize option --more-symlinks.
65739         (func_import): Don't add a copyright notice transform to
65740         sed_transform_lib_file if do_copyrights is empty.
65741
65742 2007-07-13  Bruno Haible  <bruno@clisp.org>
65743
65744         * lib/vasnprintf.c (decimal_point_char): Define also if
65745         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65746         && !NEED_PRINTF_DIRECTIVE_A.
65747         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65748         Gary V. Vaughan <gary@gnu.org>.
65749
65750 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/inttypes_.h: Undo previous change, since it was fixed
65753         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65754
65755 2007-07-13  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65758         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65759
65760 2007-07-13  Jim Meyering  <jim@meyering.net>
65761
65762         df: Don't fail for Tru64's "file-on-file mount".
65763         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65764         so we fall through and use statfs instead.  Details here:
65765         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65766         Reported by Albert Chin.
65767
65768 2007-07-13  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65771         * modules/configmake (License): Likewise.
65772         * modules/gettext (License): Likewise.
65773         * modules/gettext-h (License): Likewise.
65774         * modules/include_next (License): Likewise.
65775         * modules/link-warning (License): Likewise.
65776         * modules/localcharset (License): Likewise.
65777         * modules/localename (License): Likewise.
65778         * modules/lock (License): Likewise.
65779         * modules/relocatable-lib-lgpl (License): Likewise.
65780         * modules/size_max (License): Likewise.
65781         * modules/vasnprintf (License): Likewise.
65782         * modules/wchar (License): Likewise.
65783         * modules/xsize (License): Likewise.
65784
65785 2007-07-13  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65788         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65789
65790 2007-07-12  Bruno Haible  <bruno@clisp.org>
65791
65792         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65793         in the modules files.
65794
65795 2007-07-11  Karl Berry  <karl@gnu.org>
65796
65797         * MODULES.html.sh (func_module): use
65798          sed -e '\|^'"${includefile}"'$|d'
65799          instead of /.../d, to avoid errors on $includefile's containing /.
65800
65801 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65802
65803         * gnulib-tool (func_import): Avoid duplication of --avoid
65804         statements
65805         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65806         names to `_' in variable names.
65807
65808 2007-07-10  Eric Blake  <ebb9@byu.net>
65809
65810         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65811         * NEWS: Document this change.
65812
65813 2007-07-08  Bruno Haible  <bruno@clisp.org>
65814
65815         Update to Unicode 5.0.
65816         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65817         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65818         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65819         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65820         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65821         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65822         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65823         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65824         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65825         U+10A3F, U+1D242..U+1D244.
65826         (nonspacing_table_ind): Update.
65827         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65828         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65829
65830 2007-07-08  Bruno Haible  <bruno@clisp.org>
65831
65832         Update to Unicode 5.0.
65833         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65834         code transform. Extend the name index field of unicode_name_to_code and
65835         unicode_code_to_name from 16 to 24 bits.
65836         * lib/uniname/uniname.c (unicode_character_name,
65837         unicode_name_character): Add the range 0x12xxx to the code transform.
65838         * lib/uniname/uninames.h: Regenerated.
65839         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65840
65841 2007-07-07  Bruno Haible  <bruno@clisp.org>
65842
65843         * modules/wcwidth-tests: New file.
65844         * tests/test-wcwidth.c: New file.
65845
65846         Work around MacOS X wcwidth() bug.
65847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65848         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65849         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65850         original wcwidth in non-UTF-8 locales.
65851         * modules/wcwidth (Depends-on): Add localcharset, streq,
65852         uniwidth/width.
65853         * doc/functions/wcwidth.texi: Update.
65854
65855 2007-07-07  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65858         (wcwidth): New declaration.
65859         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65860         macros.
65861         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65862         here. Prepare for creating <wchar.h> unconditionally.
65863         * modules/wchar (Depends-on): Add link-warning.
65864         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65865         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65866         * lib/wcwidth.h: Remove file.
65867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65868         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65869         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65870         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65871         (Include): Replace wcwidth.h with <wchar.h>.
65872         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65873         * lib/mbchar.h: Don't include wcwidth.h.
65874         * lib/mbswidth.c: Likewise.
65875         * NEWS: Mention the change.
65876
65877 2007-07-07  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65880         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65881         definition with an external declaration.
65882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65883         defined as a function. Remove AC_C_INLINE requirement.
65884         * modules/wcwidth (Files): Add lib/wcwidth.c.
65885         (Makefile.am): Remove redundant statement.
65886
65887 2007-07-07  Bruno Haible  <bruno@clisp.org>
65888
65889         * MODULES.html.sh (Unicode string functions): Add the new modules.
65890
65891         * tests/uniwidth/test-u32-strwidth.c: New file.
65892         * modules/uniwidth/u32-strwidth-tests: New file.
65893
65894         * lib/uniwidth/u32-strwidth.c: New file.
65895         * modules/uniwidth/u32-strwidth: New file.
65896
65897         * tests/uniwidth/test-u16-strwidth.c: New file.
65898         * modules/uniwidth/u16-strwidth-tests: New file.
65899
65900         * lib/uniwidth/u16-strwidth.c: New file.
65901         * modules/uniwidth/u16-strwidth: New file.
65902
65903         * tests/uniwidth/test-u8-strwidth.c: New file.
65904         * modules/uniwidth/u8-strwidth-tests: New file.
65905
65906         * lib/uniwidth/u8-strwidth.c: New file.
65907         * modules/uniwidth/u8-strwidth: New file.
65908
65909         * tests/uniwidth/test-u32-width.c: New file.
65910         * modules/uniwidth/u32-width-tests: New file.
65911
65912         * lib/uniwidth/u32-width.c: New file.
65913         * modules/uniwidth/u32-width: New file.
65914
65915         * tests/uniwidth/test-u16-width.c: New file.
65916         * modules/uniwidth/u16-width-tests: New file.
65917
65918         * lib/uniwidth/u16-width.c: New file.
65919         * modules/uniwidth/u16-width: New file.
65920
65921         * tests/uniwidth/test-u8-width.c: New file.
65922         * modules/uniwidth/u8-width-tests: New file.
65923
65924         * lib/uniwidth/u8-width.c: New file.
65925         * modules/uniwidth/u8-width: New file.
65926
65927         * tests/uniwidth/test-uc_width.c: New file.
65928         * modules/uniwidth/width-tests: New file.
65929
65930         * lib/uniwidth/width.c: New file, from GNU libiconv.
65931         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65932         * modules/uniwidth/width: New file.
65933
65934         * lib/uniwidth.h: New file, from GNU libiconv.
65935         * modules/uniwidth/base: New file.
65936
65937 2007-07-07  Bruno Haible  <bruno@clisp.org>
65938
65939         * lib/uniname.h: New file, from GNU gettext.
65940         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65941         * lib/uniname/uninames.h: New file, from GNU gettext.
65942         * lib/uniname/uniname.c: New file, from GNU gettext.
65943         * tests/uniname/test-uninames.sh: New file.
65944         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65945         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65946         * modules/uniname/base: New file.
65947         * modules/uniname/uniname: New file.
65948         * modules/uniname/uniname-tests: New file.
65949         * MODULES.html.sh (Unicode string functions): Add the new modules.
65950
65951 2007-07-06  Bruno Haible  <bruno@clisp.org>
65952
65953         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65954
65955 2007-07-06  Bruno Haible  <bruno@clisp.org>
65956
65957         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65958         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65959         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65960         include <sys/time.h>.
65961         Reported by Eric Blake.
65962
65963 2007-07-06  Eric Blake  <ebb9@byu.net>
65964
65965         Fix testing canonicalize on cygwin.
65966         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65967         Revert patch from 2007-06-19.
65968         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65969         canonicalize module is also in use.
65970         * tests/test-canonicalize.c: New file.
65971         * tests/test-canonicalize.sh: Likewise.
65972         * modules/canonicalize-tests: Likewise.
65973
65974 2007-07-06  Jim Meyering  <jim@meyering.net>
65975
65976         * lib/getugroups.c (getugroups): Detect getgrent failure.
65977         Adjust comment to reflect reality: this function may return -1.
65978
65979 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65980
65981         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65982         the new TP address.
65983         (usage): Fix typo
65984         (gnulib_mk): New variable.
65985
65986 2007-07-05  Jim Meyering  <jim@meyering.net>
65987
65988         Don't let endgrent clobber errno, no matter how improbable.
65989         * lib/getugroups.c (getugroups): Save and restore errno around
65990         endgrent call.
65991
65992         Close the group DB even when failing with 2^31 or more members.
65993         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65994
65995 2007-07-04  Jim Meyering  <jim@meyering.net>
65996
65997         * lib/getugroups.h: New file.
65998         * lib/getugroups.c: Include "getugroups.h".
65999         Remove uses of "register" keyword.
66000         Move local variable, "cp", down into scope where used.
66001         Give "username" parameter the "const" attribute.
66002         * modules/getugroups (Files): Add lib/getugroups.h
66003
66004 2007-07-04  Karl Berry  <karl@gnu.org>
66005
66006         * MODULES.html.sh (func_all_modules): Complete rename of
66007         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66008
66009 2007-07-02  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66012         mode, when inttypes.h comes from gnulib.
66013         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66014
66015 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66016
66017         * NEWS: Mention lgpl module name change.
66018
66019         * modules/lgpl-2.1: Renamed from lgpl.
66020
66021         * NEWS: Mention gpl module name change.
66022
66023         * modules/gpl-3.0: New file, based on gpl-2.0.
66024
66025         * modules/gpl-2.0: Renamed from gpl.
66026
66027         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66028         doc/gpl-2.0.texi.
66029
66030 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66033         #define __STDC_LIMIT_MACROS temporarily while including
66034         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66035         Problem reported by Joel E. Denny in
66036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66037
66038 2007-07-01  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/unistdio.h: New file.
66041         * lib/unistdio/u-asnprintf.h: New file.
66042         * lib/unistdio/u-asprintf.h: New file.
66043         * lib/unistdio/u-printf-args.c: New file.
66044         * lib/unistdio/u-printf-args.h: New file.
66045         * lib/unistdio/u-printf-parse.h: New file.
66046         * lib/unistdio/u-snprintf.h: New file.
66047         * lib/unistdio/u-sprintf.h: New file.
66048         * lib/unistdio/u-vasprintf.h: New file.
66049         * lib/unistdio/u-vsnprintf.h: New file.
66050         * lib/unistdio/u-vsprintf.h: New file.
66051         * lib/unistdio/ulc-asnprintf.c: New file.
66052         * lib/unistdio/ulc-asprintf.c: New file.
66053         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66054         * lib/unistdio/ulc-printf-parse.c: New file.
66055         * lib/unistdio/ulc-snprintf.c: New file.
66056         * lib/unistdio/ulc-sprintf.c: New file.
66057         * lib/unistdio/ulc-vasnprintf.c: New file.
66058         * lib/unistdio/ulc-vasprintf.c: New file.
66059         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66060         * lib/unistdio/ulc-vsnprintf.c: New file.
66061         * lib/unistdio/ulc-vsprintf.c: New file.
66062         * lib/unistdio/u8-asnprintf.c: New file.
66063         * lib/unistdio/u8-asprintf.c: New file.
66064         * lib/unistdio/u8-printf-parse.c: New file.
66065         * lib/unistdio/u8-snprintf.c: New file.
66066         * lib/unistdio/u8-sprintf.c: New file.
66067         * lib/unistdio/u8-vasnprintf.c: New file.
66068         * lib/unistdio/u8-vasprintf.c: New file.
66069         * lib/unistdio/u8-vsnprintf.c: New file.
66070         * lib/unistdio/u8-vsprintf.c: New file.
66071         * lib/unistdio/u8-u8-asnprintf.c: New file.
66072         * lib/unistdio/u8-u8-asprintf.c: New file.
66073         * lib/unistdio/u8-u8-snprintf.c: New file.
66074         * lib/unistdio/u8-u8-sprintf.c: New file.
66075         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66076         * lib/unistdio/u8-u8-vasprintf.c: New file.
66077         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66078         * lib/unistdio/u8-u8-vsprintf.c: New file.
66079         * lib/unistdio/u16-asnprintf.c: New file.
66080         * lib/unistdio/u16-asprintf.c: New file.
66081         * lib/unistdio/u16-printf-parse.c: New file.
66082         * lib/unistdio/u16-snprintf.c: New file.
66083         * lib/unistdio/u16-sprintf.c: New file.
66084         * lib/unistdio/u16-vasnprintf.c: New file.
66085         * lib/unistdio/u16-vasprintf.c: New file.
66086         * lib/unistdio/u16-vsnprintf.c: New file.
66087         * lib/unistdio/u16-vsprintf.c: New file.
66088         * lib/unistdio/u16-u16-asnprintf.c: New file.
66089         * lib/unistdio/u16-u16-asprintf.c: New file.
66090         * lib/unistdio/u16-u16-snprintf.c: New file.
66091         * lib/unistdio/u16-u16-sprintf.c: New file.
66092         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66093         * lib/unistdio/u16-u16-vasprintf.c: New file.
66094         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66095         * lib/unistdio/u16-u16-vsprintf.c: New file.
66096         * lib/unistdio/u32-asnprintf.c: New file.
66097         * lib/unistdio/u32-asprintf.c: New file.
66098         * lib/unistdio/u32-printf-parse.c: New file.
66099         * lib/unistdio/u32-snprintf.c: New file.
66100         * lib/unistdio/u32-sprintf.c: New file.
66101         * lib/unistdio/u32-vasnprintf.c: New file.
66102         * lib/unistdio/u32-vasprintf.c: New file.
66103         * lib/unistdio/u32-vsnprintf.c: New file.
66104         * lib/unistdio/u32-vsprintf.c: New file.
66105         * lib/unistdio/u32-u32-asnprintf.c: New file.
66106         * lib/unistdio/u32-u32-asprintf.c: New file.
66107         * lib/unistdio/u32-u32-snprintf.c: New file.
66108         * lib/unistdio/u32-u32-sprintf.c: New file.
66109         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66110         * lib/unistdio/u32-u32-vasprintf.c: New file.
66111         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66112         * lib/unistdio/u32-u32-vsprintf.c: New file.
66113         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66114         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66115         * tests/unistdio/test-ulc-printf1.h: New file.
66116         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66117         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66118         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66119         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66120         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66121         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66122         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66123         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66124         * tests/unistdio/test-u8-asnprintf1.c: New file.
66125         * tests/unistdio/test-u8-asnprintf1.h: New file.
66126         * tests/unistdio/test-u8-printf1.h: New file.
66127         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66128         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66129         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66130         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66131         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66132         * tests/unistdio/test-u8-vasprintf1.c: New file.
66133         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66134         * tests/unistdio/test-u8-vsprintf1.c: New file.
66135         * tests/unistdio/test-u16-asnprintf1.c: New file.
66136         * tests/unistdio/test-u16-asnprintf1.h: New file.
66137         * tests/unistdio/test-u16-printf1.h: New file.
66138         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66139         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66140         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66141         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66142         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66143         * tests/unistdio/test-u16-vasprintf1.c: New file.
66144         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66145         * tests/unistdio/test-u16-vsprintf1.c: New file.
66146         * tests/unistdio/test-u32-asnprintf1.c: New file.
66147         * tests/unistdio/test-u32-asnprintf1.h: New file.
66148         * tests/unistdio/test-u32-printf1.h: New file.
66149         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66150         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66151         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66152         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66153         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66154         * tests/unistdio/test-u32-vasprintf1.c: New file.
66155         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66156         * tests/unistdio/test-u32-vsprintf1.c: New file.
66157         * modules/unistdio/base: New file.
66158         * modules/unistdio/u-printf-args: New file.
66159         * modules/unistdio/ulc-asnprintf: New file.
66160         * modules/unistdio/ulc-asprintf: New file.
66161         * modules/unistdio/ulc-fprintf: New file.
66162         * modules/unistdio/ulc-printf-parse: New file.
66163         * modules/unistdio/ulc-snprintf: New file.
66164         * modules/unistdio/ulc-sprintf: New file.
66165         * modules/unistdio/ulc-vasnprintf: New file.
66166         * modules/unistdio/ulc-vasprintf: New file.
66167         * modules/unistdio/ulc-vfprintf: New file.
66168         * modules/unistdio/ulc-vsnprintf: New file.
66169         * modules/unistdio/ulc-vsprintf: New file.
66170         * modules/unistdio/u8-asnprintf: New file.
66171         * modules/unistdio/u8-asprintf: New file.
66172         * modules/unistdio/u8-printf-parse: New file.
66173         * modules/unistdio/u8-snprintf: New file.
66174         * modules/unistdio/u8-sprintf: New file.
66175         * modules/unistdio/u8-vasnprintf: New file.
66176         * modules/unistdio/u8-vasprintf: New file.
66177         * modules/unistdio/u8-vsnprintf: New file.
66178         * modules/unistdio/u8-vsprintf: New file.
66179         * modules/unistdio/u8-u8-asnprintf: New file.
66180         * modules/unistdio/u8-u8-asprintf: New file.
66181         * modules/unistdio/u8-u8-snprintf: New file.
66182         * modules/unistdio/u8-u8-sprintf: New file.
66183         * modules/unistdio/u8-u8-vasnprintf: New file.
66184         * modules/unistdio/u8-u8-vasprintf: New file.
66185         * modules/unistdio/u8-u8-vsnprintf: New file.
66186         * modules/unistdio/u8-u8-vsprintf: New file.
66187         * modules/unistdio/u16-asnprintf: New file.
66188         * modules/unistdio/u16-asprintf: New file.
66189         * modules/unistdio/u16-printf-parse: New file.
66190         * modules/unistdio/u16-snprintf: New file.
66191         * modules/unistdio/u16-sprintf: New file.
66192         * modules/unistdio/u16-vasnprintf: New file.
66193         * modules/unistdio/u16-vasprintf: New file.
66194         * modules/unistdio/u16-vsnprintf: New file.
66195         * modules/unistdio/u16-vsprintf: New file.
66196         * modules/unistdio/u16-u16-asnprintf: New file.
66197         * modules/unistdio/u16-u16-asprintf: New file.
66198         * modules/unistdio/u16-u16-snprintf: New file.
66199         * modules/unistdio/u16-u16-sprintf: New file.
66200         * modules/unistdio/u16-u16-vasnprintf: New file.
66201         * modules/unistdio/u16-u16-vasprintf: New file.
66202         * modules/unistdio/u16-u16-vsnprintf: New file.
66203         * modules/unistdio/u16-u16-vsprintf: New file.
66204         * modules/unistdio/u32-asnprintf: New file.
66205         * modules/unistdio/u32-asprintf: New file.
66206         * modules/unistdio/u32-printf-parse: New file.
66207         * modules/unistdio/u32-snprintf: New file.
66208         * modules/unistdio/u32-sprintf: New file.
66209         * modules/unistdio/u32-vasnprintf: New file.
66210         * modules/unistdio/u32-vasprintf: New file.
66211         * modules/unistdio/u32-vsnprintf: New file.
66212         * modules/unistdio/u32-vsprintf: New file.
66213         * modules/unistdio/u32-u32-asnprintf: New file.
66214         * modules/unistdio/u32-u32-asprintf: New file.
66215         * modules/unistdio/u32-u32-snprintf: New file.
66216         * modules/unistdio/u32-u32-sprintf: New file.
66217         * modules/unistdio/u32-u32-vasnprintf: New file.
66218         * modules/unistdio/u32-u32-vasprintf: New file.
66219         * modules/unistdio/u32-u32-vsnprintf: New file.
66220         * modules/unistdio/u32-u32-vsprintf: New file.
66221         * modules/unistdio/ulc-asnprintf-tests: New file.
66222         * modules/unistdio/ulc-vasnprintf-tests: New file.
66223         * modules/unistdio/ulc-vasprintf-tests: New file.
66224         * modules/unistdio/ulc-vsnprintf-tests: New file.
66225         * modules/unistdio/ulc-vsprintf-tests: New file.
66226         * modules/unistdio/u8-asnprintf-tests: New file.
66227         * modules/unistdio/u8-vasnprintf-tests: New file.
66228         * modules/unistdio/u8-vasprintf-tests: New file.
66229         * modules/unistdio/u8-vsnprintf-tests: New file.
66230         * modules/unistdio/u8-vsprintf-tests: New file.
66231         * modules/unistdio/u16-asnprintf-tests: New file.
66232         * modules/unistdio/u16-vasnprintf-tests: New file.
66233         * modules/unistdio/u16-vasprintf-tests: New file.
66234         * modules/unistdio/u16-vsnprintf-tests: New file.
66235         * modules/unistdio/u16-vsprintf-tests: New file.
66236         * modules/unistdio/u32-asnprintf-tests: New file.
66237         * modules/unistdio/u32-vasnprintf-tests: New file.
66238         * modules/unistdio/u32-vasprintf-tests: New file.
66239         * modules/unistdio/u32-vsnprintf-tests: New file.
66240         * modules/unistdio/u32-vsprintf-tests: New file.
66241         * MODULES.html.sh (Unicode string functions): Add the new modules.
66242
66243 2007-07-01  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/sprintf.c (sprintf): Limit the available length estimation,
66246         to avoid address wraparound.
66247         * lib/vsprintf.c (vsprintf): Likewise.
66248         * modules/sprintf-posix (Dependencies): Add stdint.
66249         * modules/vsprintf-posix (Dependencies): Likewise.
66250
66251 2007-07-01  Bruno Haible  <bruno@clisp.org>
66252
66253         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66254         Windows PATH as well. Conservative double-quoting. Comments.
66255
66256 2007-07-01  Bruno Haible  <bruno@clisp.org>
66257             Eric Blake  <ebb9@byu.net>
66258             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66259
66260         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66261         empty components in $PATH, denoting '.'.
66262
66263 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66264
66265         * gnulib-tool: Fix indentation.
66266         (func_create_megatestdir): Likewise.
66267         Report by Bruno Haible.
66268
66269 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66270
66271         Sync from Automake.
66272         * build-aux/gnupload: Fix shell portability issues with for loops.
66273         Report by Karl Berry.
66274
66275 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66276
66277         * build-aux/maint.mk (POURL): Use translationproject.org.
66278
66279 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66280             Bruno Haible  <bruno@clisp.org>
66281
66282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66283         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66284         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66285         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66286         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66287
66288 2007-06-27  Bruno Haible  <bruno@clisp.org>
66289
66290         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66291         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66292
66293 2007-06-26  Karl Berry  <karl@gnu.org>
66294
66295         * MODULES.html.sh: remove xreadlink-with-size.
66296
66297 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66300         method that I hope also handles the double-include problem noted
66301         by Bruno Haible in
66302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66303
66304 2007-06-23  Bruno Haible  <bruno@clisp.org>
66305
66306         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66307         Don't let the 'mostlyclean' target fail if the last subdirectory could
66308         not be removed.
66309         Reported by Karl Berry.
66310
66311 2007-06-23  Bruno Haible  <bruno@clisp.org>
66312
66313         * gnulib-tool (echo): Add a speedier workaround for ksh.
66314         * tests/test-echo.sh: Likewise.
66315
66316 2007-06-23  Bruno Haible  <bruno@clisp.org>
66317
66318         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66319         * tests/test-echo.sh: Likewise.
66320
66321 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66322
66323         * gnulib-tool (IFS): Initialize early, so we don't set it to
66324         empty later.
66325         (self_abspathname): Rewrite algorithm to set it, reindent.
66326         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66327         (func_create_megatestdir): Merge some sed scripts.
66328
66329 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66330
66331         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66332         exposed by Sun Studio 11 cc on Solaris 8.
66333
66334 2007-06-22  Bruno Haible  <bruno@clisp.org>
66335
66336         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66337         backslashes.
66338         * tests/test-echo.sh: New file.
66339
66340 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66341
66342         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66343         simplify `sed_replace_build_aux' scripts, they are portable but
66344         echoing them with `echo' is not.
66345         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66346
66347 2007-06-21  Karl Berry  <karl@gnu.org>
66348
66349         * config/srclist.txt: guess we can't handle the licenses via
66350         srclist at the moment.
66351
66352 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * MODULES.html.sh: Add include_next.
66355         * modules/include_next: New file.
66356
66357 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66358
66359         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66360         INCLUDE_NEXT.
66361         (gl_CHECK_NEXT_HEADERS): New macro.
66362         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66363         the obsolescent gl_ABSOLUTE_HEADER.
66364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66365         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66366         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66367         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66368         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66369         * m4/math_h.m4 (gl_MATH_H): Likewise.
66370         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66371         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66372         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66373         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66374         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66375         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66376         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66378         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66380         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66381         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66382         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66383         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66384         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66385         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66386         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66387         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66388         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66389         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66390         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66391         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66392         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66393         * lib/float_.h: Likewise.
66394         * lib/inttypes_.h: Likewise.
66395         * lib/math_.h: Likewise.
66396         * lib/search_.h: Likewise.
66397         * lib/signal_.h: Likewise.
66398         * lib/stdint_.h: Likewise.
66399         * lib/stdio_.h: Likewise.
66400         * lib/stdlib_.h: Likewise.
66401         * lib/string_.h: Likewise.
66402         * lib/sys_stat_.h: Likewise.
66403         * lib/sys_time_.h: Likewise.
66404         * lib/time_.h: Likewise.
66405         * lib/unistd_.h: Likewise.
66406         * lib/wchar_.h: Likewise.
66407         * lib/wctype_.h: Likewise.
66408         * lib/dirent_.h: Likewise.
66409         * lib/iconv_.h: Likewise.
66410         * lib/locale_.h: Likewise.
66411         * lib/netinet_in_.h: Likewise.
66412         * lib/sys_select_.h: Likewise.
66413         * lib/sys_socket_.h: Likewise.
66414         * lib/sysexits_.h: Likewise.
66415         * modules/fcntl (Depends-on): Depend on include_next, not
66416         absolute_header.
66417         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66418         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66419         * modules/fchdir: Likewise.
66420         * modules/float: Likewise.
66421         * modules/iconv_open: Likewise.
66422         * modules/inttypes: Likewise.
66423         * modules/locale: Likewise.
66424         * modules/math: Likewise.
66425         * modules/netinet_in: Likewise.
66426         * modules/search: Likewise.
66427         * modules/signal: Likewise.
66428         * modules/stdint: Likewise.
66429         * modules/stdio: Likewise.
66430         * modules/stdlib: Likewise.
66431         * modules/string: Likewise.
66432         * modules/sys_select: Likewise.
66433         * modules/sys_socket: Likewise.
66434         * modules/sys_stat: Likewise.
66435         * modules/sys_time: Likewise.
66436         * modules/sysexits: Likewise.
66437         * modules/time: Likewise.
66438         * modules/unistd: Likewise.
66439         * modules/wchar: Likewise.
66440         * modules/wctype: Likewise.
66441         * modules/sys_stat: Change maintainer to "all".
66442         * modules/unistd: Likewise.
66443
66444 2007-06-20  Karl Berry  <karl@gnu.org>
66445
66446         * config/srclist.txt: track www changes in license files.
66447
66448 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66449
66450         * build-aux/bootstrap: Remove stray dot.
66451         Make sure build_aux settings are honored when linking
66452         gnulib_extra_files.
66453
66454 2007-06-19  Eric Blake  <ebb9@byu.net>
66455
66456         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66457         Allow compilation on cygwin.
66458
66459 2007-06-19  Jim Meyering  <jim@meyering.net>
66460
66461         xreadlink-with-size: Remove module.  No longer used.
66462         Ex-callers now use xreadlink or mreadlink-with-size.
66463         * modules/xreadlink-with-size: Remove module.
66464         * lib/xreadlink-with-size.c: Remove file.
66465         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66466         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66467         just before the function definition *is* accurate.
66468
66469         Eliminate one way canonicalize_filename_mode could exit.
66470         * lib/canonicalize.c (canonicalize_filename_mode):
66471         Use mreadlink_with_size, not xreadlink_with_size.
66472
66473 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         Detect porting problems to FreeBSD/arm, which has time_t wider than
66476         long int.  Original problem reported for GNU diff by Xin Li in
66477         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66478         * modules/getdate (Depends-on): Add intprops, verify.
66479         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66480         is an integer type no wider than long int.
66481
66482 2007-06-18  Jim Meyering  <jim@meyering.net>
66483
66484         New module: mreadlink-with-size.
66485         * MODULES.html.sh: Add mreadlink-with-size.
66486         * modules/mreadlink-with-size: New module
66487         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66488         not xreadlink-with-size.
66489         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66490
66491 2007-06-16  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66494         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66495         Reported by Gary V. Vaughan <gary@gnu.org>.
66496
66497 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         Revamp lchown so that it lives in unistd.h where it belongs.
66500         * lib/lchown.h: Remove.
66501         * lib/dirchownmod.c: Don't include lib/lchown.h.
66502         * lib/fchownat.c: Likewise.
66503         * lib/openat.c: Likewise.
66504         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66505         does not follow symlinks.
66506         (EOPNOTSUPP): Define if not defined.
66507         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66508         is defined to 0.
66509         (lchown): New decl.
66510         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66511         Do not check for lchown decl.
66512         Set REPLACE_LCHOWN.
66513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66514         REPLACE_LCHOWN.
66515         * modules/chown: Make it clear it follows symlinks.
66516         * modules/lchown: Make it clear it doesn't follow symlinks.
66517         (Files): Remove lib/lchown.h
66518         (Depends-on): Add unistd.
66519         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66520         (Include): Include <unistd.h>, not "lchown.h".
66521         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66522         REPLACE_LCHOWN.
66523
66524 2007-06-15  Jim Meyering  <jim@meyering.net>
66525
66526         Change license (GPL to LGPL) of fsusage and dependents.
66527         * modules/fsusage (License): Change to LGPL.
66528         * modules/full-read (License): Likewise.
66529         * modules/full-write (License): Likewise.
66530         * modules/safe-read (License): Likewise.
66531         * modules/safe-write (License): Likewise.
66532
66533 2007-06-14  Ben Pfaff  <blp@gnu.org>
66534
66535         Missing part of allocsa -> malloca transition.
66536         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66537         gl_MALLOCA.
66538
66539 2007-06-12  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66542         to ia64, x86_64, i386.
66543         Reported by Eric Blake.
66544
66545 2007-06-12  Bruno Haible  <bruno@clisp.org>
66546
66547         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66548         cross-compiling to x86_64.
66549
66550 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66553         glitch reported by Ralf Wildenhues in
66554         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66555
66556         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66557         Vin Shelton.
66558
66559 2007-06-11  Bruno Haible  <bruno@clisp.org>
66560
66561         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66562         replacement string.
66563         Reported by Eric Blake.
66564
66565 2007-06-10  Bruno Haible  <bruno@clisp.org>
66566
66567         Prepare vasnprintf code for use with Unicode strings.
66568         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66569         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66570         TYPE_U32_STRING.
66571         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66572         a_u32_string variants.
66573         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66574         * lib/printf-args.c: Don't include config.h and the specification
66575         header if PRINTF_FETCHARGS is already defined.
66576         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66577         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66578         TYPE_U16_STRING, TYPE_U32_STRING.
66579         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66580         u16_directive, u16_directives, u32_directive, u32_directives): New
66581         types.
66582         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66583         New declarations.
66584         * lib/printf-parse.c: Don't include config.h and the specification
66585         header if PRINTF_PARSE is already defined. Eliminate the set of
66586         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66587         them now. Include c-ctype.h.
66588         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66589         directive and CHAR_T_ONLY_ASCII.
66590         * lib/vasnprintf.c: Don't include config.h and the specification header
66591         if VASNPRINTF is already defined.
66592         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66593         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66594         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66595         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66596         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66597         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66598         code accordingly.
66599         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66600         pad_ourselves also in this case, with the 'c' and 's' directives, and
66601         with a different notion of "width".
66602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66603
66604 2007-06-10  Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/unistr/u32-mbsnlen: New file.
66607         * lib/unistr/u32-mbsnlen.c: New file.
66608
66609         * modules/unistr/u16-mbsnlen: New file.
66610         * lib/unistr/u16-mbsnlen.c: New file.
66611
66612         * modules/unistr/u8-mbsnlen: New file.
66613         * lib/unistr/u8-mbsnlen.c: New file.
66614
66615         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66616         declarations.
66617
66618 2007-06-10  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/string_.h (mbsnlen): New declaration.
66621         * lib/mbsnlen.c: New file.
66622         * m4/mbsnlen.m4: New file.
66623         * modules/mbsnlen: New file.
66624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66625         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66626         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66627
66628 2007-06-10  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66631
66632 2007-06-10  Bruno Haible  <bruno@clisp.org>
66633
66634         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66635         * lib/mbuiter.h: Likewise.
66636
66637 2007-06-10  Bruno Haible  <bruno@clisp.org>
66638
66639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66640         declaration.
66641
66642 2007-06-10  Karl Berry  <karl@gnu.org>
66643
66644         * config/srclist.txt: remove gettext entries, Bruno prefers
66645         to update individually.
66646
66647 2007-06-10  Bruno Haible  <bruno@clisp.org>
66648
66649         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66650         'maxlen'. Ensure only length + width bytes are allocated, not
66651         length + 1 + width.
66652
66653 2007-06-09  Bruno Haible  <bruno@clisp.org>
66654
66655         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66656         (CHAR_T): Remove macro.
66657         (VASNPRINTF): Update.
66658
66659 2007-06-09  Bruno Haible  <bruno@clisp.org>
66660
66661         * MODULES.html.sh (Unicode string functions): Add the new modules.
66662
66663         * modules/uniconv/u32-conv-to-enc: New file.
66664         * lib/uniconv/u32-conv-to-enc.c: New file.
66665         * modules/uniconv/u32-conv-to-enc-tests: New file.
66666         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66667
66668         * modules/uniconv/u16-conv-to-enc: New file.
66669         * lib/uniconv/u16-conv-to-enc.c: New file.
66670         * lib/uniconv/u-conv-to-enc.h: New file.
66671         * modules/uniconv/u16-conv-to-enc-tests: New file.
66672         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66673
66674         * modules/uniconv/u8-conv-to-enc: New file.
66675         * lib/uniconv/u8-conv-to-enc.c: New file.
66676         * modules/uniconv/u8-conv-to-enc-tests: New file.
66677         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66678
66679         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66680         u32_conv_to_encoding): New declarations.
66681
66682 2007-06-09  Bruno Haible  <bruno@clisp.org>
66683
66684         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66685
66686 2007-06-09  Bruno Haible  <bruno@clisp.org>
66687
66688         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66689         * modules/malloca: Renamed from modules/allocsa, updated.
66690         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66691         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66692         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66693         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66694         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66695         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66696         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66697         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66698         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66699         * modules/c-strcasestr (Depends-on): Update.
66700         * lib/c-strcasestr.c: Update.
66701         * modules/c-strstr (Depends-on): Update.
66702         * lib/c-strstr.c: Update.
66703         * modules/canonicalize-lgpl (Depends-on): Update.
66704         * lib/canonicalize-lgpl.c: Update.
66705         * modules/clean-temp (Depends-on): Update.
66706         * lib/clean-temp.c: Update.
66707         * modules/csharpcomp (Depends-on): Update.
66708         * lib/csharpcomp.c: Update.
66709         * modules/csharpexec (Depends-on): Update.
66710         * lib/csharpexec.c: Update.
66711         * modules/javacomp (Depends-on): Update.
66712         * lib/javacomp.c: Update.
66713         * modules/javaexec (Depends-on): Update.
66714         * lib/javaexec.c: Update.
66715         * modules/mbscasestr (Depends-on): Update.
66716         * lib/mbscasestr.c: Update.
66717         * modules/mbsstr (Depends-on): Update.
66718         * lib/mbsstr.c: Update.
66719         * modules/setenv (Depends-on): Update.
66720         * lib/setenv.c: Update.
66721         * modules/strcasestr (Depends-on): Update.
66722         * lib/strcasestr.c: Update.
66723         * modules/striconveha (Depends-on): Update.
66724         * lib/striconveha.c: Update.
66725         * modules/relocatable-prog-wrapper (Files): Update.
66726         * lib/relocwrapper.c: Update.
66727         * build-aux/install-reloc: Update.
66728         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66729
66730 2007-06-08  Bruno Haible  <bruno@clisp.org>
66731
66732         Port to uClibc.
66733         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66734         * lib/fpurge.c (fpurge): Likewise.
66735         * lib/freading.c (freading): Likewise.
66736         * lib/fseeko.c (rpl_fseeko): Likewise.
66737         * lib/fseterr.c (fseterr): Likewise.
66738         * lib/fwriting.c (fwriting): Likewise.
66739         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66740
66741 2007-06-08  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66744         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66745         * modules/gettext (Files): Add m4/intlmacosx.m4.
66746
66747 2007-06-07  Bruno Haible  <bruno@clisp.org>
66748
66749         * modules/localename-tests: New file.
66750         * tests/test-localename.c: New file.
66751
66752         New module 'localename'.
66753         * lib/localename.h: New file.
66754         * lib/localename.c: New file, from GNU gettext.
66755         * m4/localename.m4: New file.
66756         * modules/localename: New file.
66757
66758 2007-06-07  Bruno Haible  <bruno@clisp.org>
66759
66760         Work around the lack of <wchar.h> on some builds of uClibc.
66761         * doc/headers/wchar.texi: Update.
66762         * lib/wchar_.h: Include <wchar.h> only if it exists.
66763         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66764         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66765         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66766         doesn't exist.
66767         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66768         * modules/mbfile (Depends-on): Add wchar.
66769         * modules/mbiter (Depends-on): Likewise.
66770         * modules/mbuiter (Depends-on): Likewise.
66771         Reported by Simon Josefsson.
66772
66773 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66774
66775         Work around problem reported by Steven M. Schweda in
66776         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66777         Tru64 5.1B with the Compaq compiler environment installed declares
66778         an 'isblank' function but does not define it in the C library.
66779         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66780         * lib/regex_internal.h (isblank): Likewise.
66781         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66782         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66783
66784 2007-06-05  Bruno Haible  <bruno@clisp.org>
66785
66786         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66787         ia64.
66788         * modules/printf-safe: New file.
66789         * modules/fprintf-posix (Depends-on): Add printf-safe.
66790         * modules/printf-posix (Depends-on): Likewise.
66791         * modules/snprintf-posix (Depends-on): Likewise.
66792         * modules/sprintf-posix (Depends-on): Likewise.
66793         * modules/vasnprintf-posix (Depends-on): Likewise.
66794         * modules/vasprintf-posix (Depends-on): Likewise.
66795         * modules/vfprintf-posix (Depends-on): Likewise.
66796         * modules/vprintf-posix (Depends-on): Likewise.
66797         * modules/vsnprintf-posix (Depends-on): Likewise.
66798         * modules/vsprintf-posix (Depends-on): Likewise.
66799         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66800         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66801         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66802         "no" on i386, x86_64, ia64.
66803         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66804         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66805         on i386, x86_64, ia64.
66806         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66807         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66808         on i386, x86_64, ia64.
66809         * tests/test-vasnprintf-posix.c: Include float.h.
66810         (LDBL80_WORDS): New macro.
66811         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66812         on i386, x86_64, ia64.
66813         * tests/test-vasprintf-posix.c: Include float.h.
66814         (LDBL80_WORDS): New macro.
66815         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66816         on i386, x86_64, ia64.
66817         * tests/test-snprintf-posix.c: Include float.h.
66818         * tests/test-sprintf-posix.c: Likewise.
66819         * tests/test-vsnprintf-posix.c: Likewise.
66820         * tests/test-vsprintf-posix.c: Likewise.
66821
66822 2007-06-05  Bruno Haible  <bruno@clisp.org>
66823
66824         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66825         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66826         non-IEEE numbers on i386, x86_64, ia64.
66827         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66828         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66829         * tests/test-isnanl.h: Include float.h.
66830         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66831
66832 2007-06-05  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66835         also the %a / %A. Handle the %a / %A code before this extra handling.
66836
66837 2007-06-05  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66840         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66841
66842 2007-06-05  Bruno Haible  <bruno@clisp.org>
66843
66844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66845         typo in variable name.
66846
66847 2007-06-05  Eric Blake  <ebb9@byu.net>
66848
66849         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66850         Reported by Simon Josefsson.
66851
66852 2007-06-04  Bruno Haible  <bruno@clisp.org>
66853
66854         Avoid test failures on some PowerPC platforms.
66855         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66856         Define differently for PowerPC.
66857         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66858         Reported by Gary V. Vaughan <gary@gnu.org>.
66859
66860 2007-06-02  Bruno Haible  <bruno@clisp.org>
66861
66862         Fix test-stdint failure on FreeBSD/ia64.
66863         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66864         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66865         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66866         * doc/headers/stdint.texi: Update.
66867
66868 2007-06-01  Bruno Haible  <bruno@clisp.org>
66869
66870         * tests/test-binary-io.c (main): Pass a third argument to open().
66871         Reported by Gary V. Vaughan <gary@gnu.org>.
66872
66873 2007-06-01  Bruno Haible  <bruno@clisp.org>
66874
66875         * doc/functions/frexpl.texi: Update for mingw.
66876
66877 2007-06-01  Bruno Haible  <bruno@clisp.org>
66878
66879         * tests/test-lseek.c (main): Disable test of errno for invalid third
66880         argument.
66881         * doc/functions/lseek.texi: Update.
66882         Reported by Gary V. Vaughan <gary@gnu.org>.
66883
66884 2007-05-28  Bruno Haible  <bruno@clisp.org>
66885
66886         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66887
66888 2007-05-31  Eric Blake  <ebb9@byu.net>
66889
66890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66891         cross compiling.
66892
66893 2007-05-30  Eric Blake  <ebb9@byu.net>
66894         and Bruno Haible  <bruno@clisp.org>
66895
66896         Work around mingw test failures exposed by m4-1.4.9b.
66897         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66898         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66899         moment.
66900
66901 2007-05-30  Bruno Haible  <bruno@clisp.org>
66902
66903         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66904         assuming that they are closed. Needed on HP-UX 11.
66905
66906 2007-05-29  Bruno Haible  <bruno@clisp.org>
66907
66908         Fix a problem with #include_next.
66909         * lib/dirent_.h: Split the double-inclusion guard.
66910         * lib/fcntl_.h: Likewise.
66911         * lib/float_.h: Likewise.
66912         * lib/iconv_.h: Likewise.
66913         * lib/inttypes_.h: Likewise.
66914         * lib/locale_.h: Likewise.
66915         * lib/math_.h: Likewise.
66916         * lib/netinet_in_.h: Likewise.
66917         * lib/search_.h: Likewise.
66918         * lib/signal_.h: Likewise.
66919         * lib/stdint_.h: Likewise.
66920         * lib/stdio_.h: Likewise.
66921         * lib/stdlib_.h: Likewise.
66922         * lib/string_.h: Likewise.
66923         * lib/sys_select_.h: Likewise.
66924         * lib/sys_socket_.h: Likewise.
66925         * lib/sys_stat_.h: Likewise.
66926         * lib/sys_time_.h: Likewise.
66927         * lib/sysexits_.h: Likewise.
66928         * lib/time_.h: Likewise.
66929         * lib/unistd_.h: Likewise.
66930         * lib/wchar_.h: Likewise.
66931         * lib/wctype_.h: Likewise.
66932
66933 2007-05-29  Bruno Haible  <bruno@clisp.org>
66934
66935         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66936         for the moment.
66937
66938 2007-05-29  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66941         invocation.
66942         Reported by Eric Blake.
66943
66944 2007-05-29  Bruno Haible  <bruno@clisp.org>
66945
66946         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66947         compiling case.
66948
66949 2007-05-29  Eric Blake  <ebb9@byu.net>
66950             Bruno Haible  <bruno@clisp.org>
66951
66952         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66953         cross compiles.
66954
66955 2007-05-28  Eric Blake  <ebb9@byu.net>
66956
66957         * modules/closein-tests (test_closein_LDADD): Support test on
66958         cygwin with libtool.
66959
66960 2007-05-28  Bruno Haible  <bruno@clisp.org>
66961
66962         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66963         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66964         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66965         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66966         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66967         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66968         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66969         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66970         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66971
66972 2007-05-28  Eric Blake  <ebb9@byu.net>
66973
66974         Unconditionally include <config.h> in unit tests.
66975         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66976         * tests/test-allocsa.c, tests/test-arcfour.c,
66977         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66978         tests/test-array_list.c, tests/test-array_oset.c,
66979         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66980         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66981         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66982         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66983         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66984         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66985         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66986         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66987         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66988         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66989         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66990         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66991         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66992         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66993         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66994         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66995         test-md5.c, test-memmem.c, test-printf-posix.c,
66996         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66997         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66998         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66999         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67000         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67001         test-vasnprintf-posix2.c, test-vasnprintf.c,
67002         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67003         test-vfprintf-posix.c, test-vprintf-posix.c,
67004         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67005         test-xvasprintf.c: Likewise.
67006
67007 2007-05-28  Bruno Haible  <bruno@clisp.org>
67008
67009         * gnulib-tool (func_import): Remember the --with-tests command-line
67010         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67011         Reported by Eric Blake.
67012
67013 2007-05-28  Bruno Haible  <bruno@clisp.org>
67014
67015         * modules/ftell-tests: New file.
67016         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67017         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67018
67019         * lib/ftell.c: New file.
67020         * modules/ftell: New file.
67021         * m4/ftell.m4: New file.
67022         * doc/functions/ftell.texi: Update.
67023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67024         REPLACE_FTELL.
67025         * lib/stdio_.h (rpl_ftell): New declaration.
67026         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67027         REPLACE_FTELL.
67028
67029 2007-05-28  Eric Blake  <ebb9@byu.net>
67030
67031         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67032
67033 2007-05-28  Bruno Haible  <bruno@clisp.org>
67034
67035         * modules/fseek-tests: New file.
67036         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67037         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67038
67039         * lib/fseek.c: New file.
67040         * modules/fseek: New file.
67041         * m4/fseek.m4: New file.
67042         * doc/functions/fseek.texi: Update.
67043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67044         REPLACE_FSEEK.
67045         * lib/stdio_.h (rpl_fseek): New declaration.
67046         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67047         REPLACE_FSEEK.
67048
67049 2007-05-28  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/stdio_.h (fflush): More comments.
67052
67053 2007-05-28  Bruno Haible  <bruno@clisp.org>
67054
67055         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67056         runtime test.
67057
67058 2007-05-28  Eric Blake  <ebb9@byu.net>
67059
67060         Improve lseek module.
67061         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67062         * lib/unistd_.h (lseek): Scale back link warning message.
67063         * tests/test-lseek.c: Beef up test.
67064         * tests/test-lseek.sh: Exercise more facets of lseek.
67065         Reported by Bruno Haible.
67066
67067 2007-05-28  Bruno Haible  <bruno@clisp.org>
67068
67069         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67070         to define.
67071
67072 2007-05-27  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67075
67076 2007-05-27  Bruno Haible  <bruno@clisp.org>
67077
67078         * modules/openmp: New file.
67079         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67080         Noah Misch.
67081
67082 2007-05-26  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/chdir-long (Depends-on): Add fchdir.
67085         * modules/chdir-safer (Depends-on): Likewise.
67086         * modules/fts (Depends-on): Likewise.
67087         * modules/fts-lgpl (Depends-on): Likewise.
67088         * modules/openat (Depends-on): Likewise.
67089         * modules/savewd (Depends-on): Likewise.
67090
67091 2007-05-24  Eric Blake  <ebb9@byu.net>
67092
67093         Fix lseek on mingw.
67094         * modules/lseek: New module.
67095         * m4/lseek.m4: New file.
67096         * lib/lseek.c: New file.
67097         * modules/lseek-tests: New file.
67098         * tests/test-lseek.c: New file.
67099         * tests/test-lseek.sh: New file.
67100         * MODULES.html.sh: Document lseek module.
67101         * modules/fflush (Depends-on): Add lseek, fseeko.
67102         * modules/fseeko (Depends-on): Likewise.
67103         * modules/ftello (Depends-on): Likewise.
67104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67105         broken.
67106         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67107         broken.
67108         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67109         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67110         * lib/ftello.c (rpl_ftello): Likewise.
67111         * tests/test-fseeko.c (main): Test this.
67112         * tests/test-fseeko.sh: Likewise.
67113         * tests/test-ftello.c (main): Likewise.
67114         * tests/test-ftello.sh: Likewise.
67115         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67116         implies replacing fseek.
67117         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67118         HAVE_FTELLO.
67119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67120         * modules/unistd (Makefile.am): Likewise.
67121         * lib/unistd_.h (lseek): Declare a replacement.
67122         * doc/functions/lseek.texi (lseek): Document this fix.
67123         * doc/functions/fseek.texi (fseek): Likewise.
67124         * doc/functions/ftell.texi (ftell): Likewise.
67125
67126 2007-05-24  Bruno Haible  <bruno@clisp.org>
67127
67128         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67129         in the printed representation of a NaN.
67130         * tests/test-vasprintf-posix.c (test_function): Likewise.
67131         * tests/test-snprintf-posix.h (test_function): Likewise.
67132         * tests/test-sprintf-posix.h (test_function): Likewise.
67133         Reported by Eric Blake.
67134
67135 2007-05-23  Eric Blake  <ebb9@byu.net>
67136
67137         Fix fseeko/ftello on cygwin 1.5.24.
67138         * doc/functions/fseeko.texi (fseeko): Document the fix.
67139         * doc/functions/ftello.texi (ftello): Document the fix.
67140         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67141         * doc/functions/stdout.text (stdout): New file.
67142         * doc/functions/stderr.text (stderr): New file.
67143         * doc/gnulib.texi (Function Substitutes): Use new files.
67144         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67145         prior to 1.7.0.
67146         * tests/test-ftello.c (main): Likewise for ftello.
67147         * tests/test-fseeko.sh: New file.
67148         * tests/test-ftello.sh: New file.
67149         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67150         with seekable stdin.
67151         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67153         (gl_REPLACE_FSEEKO): New macro.
67154         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67155         * modules/fseeko (Files): Distribute fseeko.c.
67156         * modules/ftello (Files): Distribute ftello.c.
67157         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67158         mode.
67159         * lib/ftello.c (rpl_ftello): New file.
67160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67161         fseeko, ftello.
67162         (gl_STDIN_LARGE_OFFSET): New macro.
67163         * modules/stdio (Makefile.am): Perform the replacement.
67164         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67165
67166 2007-05-23  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67169         GNULIB_POSIXCHECK is defined.
67170
67171 2007-05-21  Bruno Haible  <bruno@clisp.org>
67172
67173         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67174         Check also the output for NaN arguments. When cross-compiling, guess
67175         no on IRIX.
67176         * lib/vasnprintf.c: Update comments.
67177         * tests/test-vasnprintf-posix.c (strisnan): New function.
67178         (test_function): Use it.
67179         * tests/test-vasprintf-posix.c (strisnan): New function.
67180         (test_function): Use it.
67181         * tests/test-snprintf-posix.h (strisnan): New function.
67182         (test_function): Use it.
67183         * tests/test-sprintf-posix.h (strisnan): New function.
67184         (test_function): Use it.
67185         Reported by Eric Blake.
67186
67187 2007-05-20  Bruno Haible  <bruno@clisp.org>
67188
67189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67190         numbers that fails on BeOS.
67191         * doc/functions/frexpl.texi: Update.
67192
67193 2007-05-20  Jim Meyering  <jim@meyering.net>
67194
67195         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67196         forced upon us by glibc-2.6.
67197
67198 2007-05-20  Bruno Haible  <bruno@clisp.org>
67199
67200         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67201         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67202         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67203         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67204         NEED_PRINTF_INFINITE.
67205         (is_infinitel): New function.
67206         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67208         gl_PREREQ_VASNPRINTF_INFINITE.
67209         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67211         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67212         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67213         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67214         gl_PREREQ_VASNPRINTF_INFINITE.
67215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67222         * doc/functions/fprintf.texi: Update.
67223         * doc/functions/printf.texi: Update.
67224         * doc/functions/snprintf.texi: Update.
67225         * doc/functions/sprintf.texi: Update.
67226         * doc/functions/vfprintf.texi: Update.
67227         * doc/functions/vprintf.texi: Update.
67228         * doc/functions/vsnprintf.texi: Update.
67229         * doc/functions/vsprintf.texi: Update.
67230
67231 2007-05-20  Bruno Haible  <bruno@clisp.org>
67232
67233         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67234         was not found in libc.
67235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67236
67237 2007-05-20  Bruno Haible  <bruno@clisp.org>
67238
67239         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67240         printed as "-nan" instead of "nan".
67241         * tests/test-vasprintf-posix.c (test_function): Likewise.
67242         * tests/test-snprintf-posix.h (test_function): Likewise.
67243         * tests/test-sprintf-posix.h (test_function): Likewise.
67244         Needed for HP-UX 11.
67245
67246 2007-05-20  Jim Meyering  <jim@meyering.net>
67247
67248         Fix buggy test for the fchownat-deref bug.
67249         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67250         symlink required for the run-test.  Without it, this test would
67251         always declare that fchownat doesn't work, and client code would
67252         unnecessarily use the replacement function with fixed libc.
67253         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67254         Reported by Greg Schafer.
67255
67256 2007-05-19  Bruno Haible  <bruno@clisp.org>
67257
67258         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67259         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67260         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67261         Needed for IRIX 6.5 and Solaris 2.5.1.
67262
67263 2007-05-19  Bruno Haible  <bruno@clisp.org>
67264
67265         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67266         (test_function): Skip tests involving -0.0 on platforms where
67267         -0.0 = 0.0.
67268         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67269         (test_function): Skip tests involving -0.0 on platforms where
67270         -0.0 = 0.0.
67271         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67272         (test_function): Skip tests involving -0.0 on platforms where
67273         -0.0 = 0.0.
67274         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67275         (test_function): Skip tests involving -0.0 on platforms where
67276         -0.0 = 0.0.
67277         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67278         tests.
67279         * tests/test-printf-posix.h (test_function): Likewise.
67280         * tests/test-printf-posix.output: Remove all -0.0 related results.
67281         Needed for IRIX 6.5.
67282
67283 2007-05-19  Bruno Haible  <bruno@clisp.org>
67284
67285         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67286         printed as "nan0x7fffffff" instead of "nan".
67287         * tests/test-vasprintf-posix.c (test_function): Likewise.
67288         * tests/test-snprintf-posix.h (test_function): Likewise.
67289         * tests/test-sprintf-posix.h (test_function): Likewise.
67290         * tests/test-fprintf-posix.h (NaN): Remove macro.
67291         (test_function): Remove all NaN related tests.
67292         * tests/test-printf-posix.h (NaN): Remove macro.
67293         (test_function): Remove all NaN related tests.
67294         * tests/test-printf-posix.output: Remove all NaN related results.
67295         Needed for IRIX 6.5.
67296
67297 2007-05-19  Bruno Haible  <bruno@clisp.org>
67298
67299         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67301
67302 2007-05-19  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/float_.h: New file.
67305         * m4/float_h.m4: New file.
67306         * modules/float: New file.
67307         * modules/isnanl (Dependencies): Add float.
67308         * modules/isnanl-nolibm (Dependencies): Likewise.
67309         * modules/mathl (Dependencies): Likewise.
67310         * modules/printf-frexpl (Dependencies): Likewise.
67311         * modules/signbit (Dependencies): Likewise.
67312         * modules/vasnprintf (Dependencies): Likewise.
67313         * doc/headers/float.texi: Update.
67314
67315 2007-05-19  Jim Meyering  <jim@meyering.net>
67316
67317         * lib/utimens.c (gl_futimens): Rename from futimens,
67318         now that glibc-2.6 declares futimens.
67319         * lib/utimens.h: Likewise.
67320
67321 2007-05-19  Bruno Haible  <bruno@clisp.org>
67322
67323         Avoid test failures on mingw.
67324         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67325         * tests/test-printf-posix.sh: Likewise.
67326         * tests/test-vfprintf-posix.sh: Likewise.
67327         * tests/test-vprintf-posix.sh: Likewise.
67328
67329 2007-05-19  Bruno Haible  <bruno@clisp.org>
67330
67331         Fix *printf result for NaN, Inf, -0.0 on mingw.
67332         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67333         * lib/vasnprintf.c: Include math.h and isnan.h.
67334         (is_infinite_or_zero): New function.
67335         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67336         values in the %f, %F, %e, %E, %g, %G directives.
67337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67339         gl_PRINTF_INFINITE and test its result. Invoke
67340         gl_PREREQ_VASNPRINTF_INFINITE.
67341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67342         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67348         * doc/functions/fprintf.texi: Update.
67349         * doc/functions/printf.texi: Update.
67350         * doc/functions/snprintf.texi: Update.
67351         * doc/functions/sprintf.texi: Update.
67352         * doc/functions/vfprintf.texi: Update.
67353         * doc/functions/vprintf.texi: Update.
67354         * doc/functions/vsnprintf.texi: Update.
67355         * doc/functions/vsprintf.texi: Update.
67356
67357 2007-05-19  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67360         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67361         Instead of multiplying with 10^k, set extra_zeroes to k.
67362         (scale10_round_long_double): Remove function.
67363
67364 2007-05-18  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67367         introduced on 2007-05-06.
67368
67369 2007-05-18  Bruno Haible  <bruno@clisp.org>
67370
67371         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67372         %g directives.
67373         * tests/test-vasprintf-posix.c (test_function): Likewise.
67374         * tests/test-snprintf-posix.h (test_function): Likewise.
67375         * tests/test-sprintf-posix.h (test_function): Likewise.
67376
67377 2007-05-18  Bruno Haible  <bruno@clisp.org>
67378
67379         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67380         (strmatch): New function.
67381         (test_function): Test the %f directive on numbers of various exponents.
67382         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67383         (strmatch): New function.
67384         (test_function): Test the %f directive on numbers of various exponents.
67385         * tests/test-snprintf-posix.h (strmatch): New function.
67386         (test_function): Test the %f directive on numbers of various exponents.
67387         * tests/test-sprintf-posix.h (strmatch): New function.
67388         (test_function): Test the %f directive on numbers of various exponents.
67389         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67390         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67391         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67392         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67393
67394 2007-05-18  Bruno Haible  <bruno@clisp.org>
67395
67396         Add support for 'long double' number output.
67397         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67398         * lib/vasnprintf.c: Include math.h and float+.h.
67399         (mp_limb_t): New type.
67400         (GMP_LIMB_BITS): New macro.
67401         (mp_twolimb_t): New type.
67402         (GMP_TWOLIMB_BITS): New macro.
67403         (mpn_t): New type.
67404         (multiply, divide, convert_to_decimal, decode_long_double,
67405         scale10_round_long_double, scale10_round_decimal_long_double,
67406         floorlog10l): New functions.
67407         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67408         for the %f, %F, %e, %E, %g, %G directives.
67409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67410         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67411         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67412         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67414         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67415         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67416         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67417         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67418         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67419         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67420         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67421         * modules/snprintf-posix (Depends-on): Likewise.
67422         * modules/sprintf-posix (Depends-on): Likewise.
67423         * modules/vasnprintf-posix (Depends-on): Likewise.
67424         * modules/vasprintf-posix (Depends-on): Likewise.
67425         * modules/vfprintf-posix (Depends-on): Likewise.
67426         * modules/vsnprintf-posix (Depends-on): Likewise.
67427         * modules/vsprintf-posix (Depends-on): Likewise.
67428         * modules/vasnprintf (Files): Add lib/float+.h.
67429         * doc/functions/fprintf.texi: Update.
67430         * doc/functions/printf.texi: Update.
67431         * doc/functions/snprintf.texi: Update.
67432         * doc/functions/sprintf.texi: Update.
67433         * doc/functions/vfprintf.texi: Update.
67434         * doc/functions/vprintf.texi: Update.
67435         * doc/functions/vsnprintf.texi: Update.
67436         * doc/functions/vsprintf.texi: Update.
67437
67438 2007-05-18  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67441
67442 2007-05-18  Bruno Haible  <bruno@clisp.org>
67443
67444         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67445         for printing 64-bit integers. Needed for mingw.
67446
67447 2007-05-18  Bruno Haible  <bruno@clisp.org>
67448
67449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67450         gl_FUNC_FREXPL_WORKS.
67451         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67452
67453 2007-05-18  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/frexpl-nolibm-tests: New file.
67456
67457         * modules/frexpl-nolibm: New file.
67458         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67459
67460 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67463         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67464         GCC 4.2, which otherwise issues a lot of warnings.
67465         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67466         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67467         Likewise.
67468         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67469         * modules/iconv_open (iconv.h): Likewise.
67470         * modules/locale (locale.h): Likewise.
67471         * modules/netinet_in (netinet/in.h): Likewise.
67472         * modules/sys_select (sys_select.h): Likewise.
67473         * modules/sys_socket (sys/socket.h): Likewise.
67474         * modules/sys_stat (sys/stat.h): Likewise.
67475         * modules/sysexits (sysexits.h): Likewise.
67476         * modules/unistd (unistd.h): Likewise.
67477
67478 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67479
67480         * modules/closein-tests (Makefile.am): Distribute
67481         `test-closein.sh'.
67482
67483 2007-05-17  Bruno Haible  <bruno@clisp.org>
67484
67485         * tests/test-printf-posix.output: Renamed from
67486         tests/test-fprintf-posix.out.
67487         * modules/fprintf-posix-tests: Update.
67488         * modules/printf-posix-tests: Update.
67489         * modules/vfprintf-posix-tests: Update.
67490         * modules/vprintf-posix-tests: Update.
67491         * tests/test-fprintf-posix.sh: Update.
67492         * tests/test-printf-posix.sh: Update.
67493         * tests/test-vfprintf-posix.sh: Update.
67494         * tests/test-vprintf-posix.sh: Update.
67495         Reported by Ralf Wildenhues.
67496
67497 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67498
67499         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67500         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67501         GCC 4.2, which otherwise issues a lot of warnings.
67502         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67503         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67504         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67505         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67506         it should no longer be needed.
67507         * lib/string_.h: Likewise.
67508         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67509         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67510         * modules/inttypes (inttypes.h): Likewise.
67511         * modules/math (math.h): Likewise.
67512         * modules/search (search.h): Likewise.
67513         * modules/signal (signal.h): Likewise.
67514         * modules/stdint (stdint.h): Likewise.
67515         * modules/stdio (stdio.h): Likewise.
67516         * modules/stdlib (stdlib.h): Likewise.
67517         * modules/string (string.h): Likewise.
67518         * modules/sys_time (sys/time.h): Likewise.
67519         * modules/time (time.h): Likewise.
67520         * modules/wchar (wchar.h): Likewise.
67521         * modules/wctype (wtype.h): Likewise.
67522
67523 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67524
67525         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67526
67527 2007-05-13  Bruno Haible  <bruno@clisp.org>
67528
67529         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67530         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67531         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67532         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67533         (gl_PREREQ_STRTOK_R): Don't require it here.
67534
67535 2007-05-13  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67538         when used in C++ mode.
67539
67540 2007-05-12  Bruno Haible  <bruno@clisp.org>
67541
67542         * lib/linebuffer.h: Tweak doc.
67543         * lib/linebuffer.c: Likewise.
67544
67545 2007-05-12  James Youngman  <jay@gnu.org>
67546
67547         * lib/linebuffer.c (readlinebuffer_delim): New function,
67548         like readlinebuffer, but use a caller-specified delimiter.
67549         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67550         as the delimiter.
67551         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67552
67553 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67554
67555         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67556         * modules/openat (Files): Remove openat-die.c.
67557         (Depends-on): Add openat-die.
67558         * modules/openat-die: New module.
67559
67560 2007-05-06  Bruno Haible  <bruno@clisp.org>
67561
67562         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67563         Update with info about Cygwin.
67564         * doc/functions/fprintf.texi: Update.
67565         * doc/functions/printf.texi: Update.
67566         * doc/functions/snprintf.texi: Update.
67567         * doc/functions/sprintf.texi: Update.
67568         * doc/functions/vfprintf.texi: Update.
67569         * doc/functions/vprintf.texi: Update.
67570         * doc/functions/vsnprintf.texi: Update.
67571         * doc/functions/vsprintf.texi: Update.
67572         Reported by Eric Blake.
67573
67574 2007-05-06  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67577         padding ourselves for the floating-point directives.
67578         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67581         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67582         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67583         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67590         * tests/test-snprintf-posix.h (test_function): Also check the width
67591         and some flags in the %f directive.
67592         * tests/test-sprintf-posix.h (test_function): Likewise.
67593         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67594         * tests/test-vasprintf-posix.c (test_function): Likewise.
67595         * doc/functions/fprintf.texi: Update.
67596         * doc/functions/printf.texi: Update.
67597         * doc/functions/snprintf.texi: Update.
67598         * doc/functions/sprintf.texi: Update.
67599         * doc/functions/vfprintf.texi: Update.
67600         * doc/functions/vprintf.texi: Update.
67601         * doc/functions/vsnprintf.texi: Update.
67602         * doc/functions/vsprintf.texi: Update.
67603
67604 2007-05-06  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67607         pass the ' flag character to sprintf or snprintf.
67608         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67611         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67612         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67620         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67621         flag.
67622         * tests/test-sprintf-posix.h (test_function): Likewise.
67623         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67624         * tests/test-vasprintf-posix.c (test_function): Likewise.
67625         * doc/functions/fprintf.texi: Update.
67626         * doc/functions/printf.texi: Update.
67627         * doc/functions/snprintf.texi: Update.
67628         * doc/functions/sprintf.texi: Update.
67629         * doc/functions/vfprintf.texi: Update.
67630         * doc/functions/vprintf.texi: Update.
67631         * doc/functions/vsnprintf.texi: Update.
67632         * doc/functions/vsprintf.texi: Update.
67633
67634 2007-05-01  Bruno Haible  <bruno@clisp.org>
67635
67636         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67637
67638 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67641         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67642
67643 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67646         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67647         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67648
67649 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67650
67651         * lib/argp-help.c (struct hol_entry): New member `ord'.
67652         (HOL_ENTRY_PTRCMP): Use ord for comparison
67653         (hol_sort): Initialize ord.
67654
67655 2007-05-01  Bruno Haible  <bruno@clisp.org>
67656
67657         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67658         Reported by Eric Blake.
67659         * doc/gnulib.texi (Function Substitutes): Update.
67660
67661 2007-05-01  Bruno Haible  <bruno@clisp.org>
67662
67663         * doc/functions.texi: Remove file, now redundant through
67664         doc/functions/*.texi.
67665
67666 2007-05-01  Bruno Haible  <bruno@clisp.org>
67667
67668         * modules/argp (Depends-on): Add sleep.
67669
67670 2007-05-01  Bruno Haible  <bruno@clisp.org>
67671
67672         * modules/sleep-tests: New file.
67673         * tests/test-sleep.c: New file.
67674
67675         * modules/sleep: New file.
67676         * lib/sleep.c: New file.
67677         * m4/sleep.m4: New file.
67678         * lib/unistd_.h (sleep): New declaration.
67679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67680         HAVE_SLEEP.
67681         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67682         * doc/functions/sleep.texi: Document the sleep module.
67683
67684 2007-05-01  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/sigprocmask.h: Remove file.
67687         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67688         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67690         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67691         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67692         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67693         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67694         HAVE_SIGSET_T as a shell variable.
67695         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67696         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67697         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67698         (Depends-on): Add signal. Remove verify.
67699         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67700         (Include): Mention <signal.h> instead of sigprocmask.h.
67701         * NEWS: Mention the change.
67702         * lib/fatal-signal.c: Don't include sigprocmask.h.
67703
67704 2007-05-01  Bruno Haible  <bruno@clisp.org>
67705
67706         * modules/signal: New file.
67707         * lib/signal_.h: New file.
67708         * m4/signal_h.m4: New file.
67709
67710 2007-05-01  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67713         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67714         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67715         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67716
67717 2007-05-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67720         configure time.
67721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67722         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67723         * modules/sys_stat (Makefile.am): Substitute their values into
67724         sys/stat.h.
67725
67726 2007-05-01  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67729         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67730         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67731
67732 2007-05-01  Bruno Haible  <bruno@clisp.org>
67733
67734         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67735         'assert' module here.
67736
67737 2007-05-01  Bruno Haible  <bruno@clisp.org>
67738
67739         * doc/functions/*.texi: New files.
67740         * doc/functions/google-ranking.txt: New file.
67741         * doc/gnulib.texi (Function Substitutes): New chapter.
67742         (ctime, inet_ntoa): Remove sections.
67743         * doc/ctime.texi: Remove file.
67744         * doc/inet_ntoa.texi: Remove file.
67745         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67746         dependencies.
67747         (%.info): New rule, specifying a --reference-limit.
67748
67749 2007-05-01  Bruno Haible  <bruno@clisp.org>
67750
67751         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67752
67753 2007-05-01  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67756         the portability of 'mkdir' to mingw systems.
67757
67758 2007-05-01  Bruno Haible  <bruno@clisp.org>
67759
67760         * doc/headers/google-ranking.txt: New file.
67761
67762 2007-04-30  Eric Blake  <ebb9@byu.net>
67763
67764         Prefer fseeko to fseek.
67765         * modules/getpass (Depends-on): Add fseeko.
67766         * lib/getpass.c (getpass): Use fseeko, not fseek.
67767
67768 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67769
67770         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67771         assumes the sorting is stable, while most qsort implementations
67772         are not.  Use argument addresses to ensure they never compare as
67773         equal.
67774
67775         * tests/test-argp-2.sh (usage-indent test): Fix output
67776         (func_compare): Restore diff options
67777         * tests/test-argp.c: Restore #include "progname.h"
67778
67779 2007-04-29  Bruno Haible  <bruno@clisp.org>
67780
67781         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67783         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67785         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67786         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67787         (TESTS, check_PROGRAMS): Add test-snprintf.
67788         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67789         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67790         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67791         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67792         assertions that fail on HP-UX, OSF/1, or IRIX.
67793         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67794
67795 2007-04-29  Bruno Haible  <bruno@clisp.org>
67796
67797         * MODULES.html.sh (posix_functions): Remove 'contents'.
67798
67799 2007-04-29  Karl Berry  <karl@gnu.org>
67800
67801         * config/srclist.txt (gendocs_template_min): new entry.
67802
67803 2007-04-29  Bruno Haible  <bruno@clisp.org>
67804
67805         Work around fpurge bug on BSD systems.
67806         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67807         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67808         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67809         fpurge to rpl_fpurge if the system already has this function.
67810         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67811         the case where the system already has this function. Correct invariants
67812         on BSD systems.
67813         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67814         BSD systems.
67815
67816 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67817
67818         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67819         proposed by Sven Verdoolaege.
67820
67821         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67822         options.
67823         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67824         (usage and help tests): Update
67825
67826 2007-04-29  Bruno Haible  <bruno@clisp.org>
67827
67828         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67829         Print more information in case of failure. Disable a test on BeOS.
67830
67831 2007-04-29  Bruno Haible  <bruno@clisp.org>
67832
67833         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67834         This helps debugging on systems on which no gdb is available.
67835
67836 2007-04-29  Bruno Haible  <bruno@clisp.org>
67837
67838         * lib/freading.h: Improve comments.
67839         * lib/fwriting.h: Likewise.
67840         * tests/test-freading.c (main): Don't check freading immediately after
67841         repositioning. Needed for glibc.
67842
67843 2007-04-29  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/freading.c (freading): Trivial simplification.
67846
67847 2007-04-28  Bruno Haible  <bruno@clisp.org>
67848
67849         * tests/test-fwriting.c (main): Also test the interaction between
67850         fflush and fwriting.
67851         * modules/fwriting-tests (Depends-on): Add fflush.
67852
67853         * tests/test-freading.c (main): Also test the interaction between
67854         fflush and freading.
67855         * modules/freading-tests (Depends-on): Add fflush.
67856
67857 2007-04-28  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67860         fseeko and ftello.
67861         Suggested by Eric Blake.
67862
67863 2007-04-28  Jim Meyering  <jim@meyering.net>
67864
67865         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67866         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67867         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67868
67869 2007-04-27  Eric Blake  <ebb9@byu.net>
67870
67871         * doc/headers/assert.texi (assert.h): Document assert module use.
67872
67873 2007-04-27  Bruno Haible  <bruno@clisp.org>
67874
67875         * doc/headers/*.texi: New files.
67876         * doc/gnulib.texi (Header File Substitutes): New chapter.
67877         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67878         dependencies.
67879         (standards.info ,standards.html, standards.dvi): Update dependencies.
67880         (mostlyclean, clean): New targets.
67881
67882 2007-04-27  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67885         * modules/sysexits (Files, Makefile.am): Update.
67886
67887         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67888         * modules/sys_socket (Files, Makefile.am): Update.
67889
67890         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67891         * modules/sys_stat (Files, Makefile.am): Update.
67892
67893 2007-04-27  Eric Blake  <ebb9@byu.net>
67894
67895         * lib/freading.h: Improve comments.
67896         * lib/fwriting.h: Likewise.
67897         * lib/fflush.c: Likewise.
67898
67899         Fix closein for mingw.
67900         * modules/closein-tests: Add tests for closein.
67901         * tests/test-closein.c: New file.
67902         * tests/test-closein.sh: Likewise.
67903         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67904         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67905
67906 2007-04-27  Bruno Haible  <bruno@clisp.org>
67907
67908         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67909         version is < 6.
67910         * lib/math_.h [__DECC]: Likewise.
67911         * lib/stdio_.h [__DECC]: Likewise.
67912         * lib/stdlib_.h [__DECC]: Likewise.
67913         * lib/string_.h [__DECC]: Likewise.
67914         * lib/time_.h [__DECC]: Likewise.
67915         * lib/wchar_.h [__DECC]: Likewise.
67916         * lib/wctype_.h [__DECC]: Likewise.
67917
67918 2007-04-27  Bruno Haible  <bruno@clisp.org>
67919
67920         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67921
67922 2007-04-27  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/fflush.c: Add comments.
67925         * modules/fpurge-tests (Depends-on): Add fflush.
67926         * modules/freadable-tests (Depends-on): Likewise.
67927         * modules/fwritable-tests (Depends-on): Likewise.
67928
67929 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67930
67931         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67932         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67933         Report by Bruno Haible <bruno@clisp.org>.
67934
67935 2007-04-26  Eric Blake  <ebb9@byu.net>
67936
67937         Fix fflush on mingw.
67938         * modules/fflush (Depends-on): Add freading.
67939         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67940         but unread data.
67941
67942 2007-04-26  Eric Blake  <ebb9@byu.net>
67943         and Bruno Haible  <bruno@clisp.org>
67944
67945         Implement freading and fwriting.
67946         * lib/freading.c: New file.
67947         * lib/freading.h: Likewise.
67948         * m4/freading.m4: Likewise.
67949         * modules/freading: Likewise.
67950         * modules/freading-tests: Likewise.
67951         * tests/test-freading.c: Likewise.
67952         * lib/fwriting.c: New file.
67953         * lib/fwriting.h: Likewise.
67954         * m4/fwriting.m4: Likewise.
67955         * modules/fwriting: Likewise.
67956         * modules/fwriting-tests: Likewise.
67957         * tests/test-fwriting.c: Likewise.
67958         * MODULES.html.sh (File stream based Input/Output): Mention them.
67959
67960 2007-04-26  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67963         'long' when we assume it.
67964         Suggested by Eric Blake.
67965
67966 2007-04-26  Bruno Haible  <bruno@clisp.org>
67967
67968         Ensure fseeko, ftello are declared on glibc systems.
67969         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67970         * modules/fseeko (configure.ac-early): Likewise.
67971         * modules/ftello (configure.ac-early): Likewise.
67972         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67973         AC_FUNC_FSEEKO for this.
67974         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67975         (gl_CHECK_FSEEKO): Remove macro.
67976
67977 2007-04-26  Bruno Haible  <bruno@clisp.org>
67978
67979         * tests/test-fflush.c (main): Also check the ftell result after
67980         fflush and fseek/fseeko.
67981         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67982         file descriptor position cache in the stream.
67983         * lib/fseeko.c (rpl_fseeko): Likewise.
67984
67985 2007-04-26  Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/fflush-tests (Depends-on): Add fseeko.
67988
67989 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67990             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67991
67992         * lib/argz_.h: ensure error_t definition is obtained in same
67993         mechanism system argz.h would have.
67994         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67995         argz facilities are known bad.  Err on the side of caution if
67996         cross-compiling.
67997
67998 2007-04-25  Eric Blake  <ebb9@byu.net>
67999
68000         * lib/fpurge.c (includes): Use stdlib.h for free.
68001         * tests/test-fflush.c (main): Also test fflush-fseeko.
68002
68003 2007-04-25  Bruno Haible  <bruno@clisp.org>
68004
68005         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68006         * lib/fseeko.c: New file.
68007         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68008         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68009         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68010         gl_FUNC_FSEEKO.
68011         (gl_FUNC_FSEEKO): Invoke it.
68012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68013         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68014         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68015
68016 2007-04-25  Bruno Haible  <bruno@clisp.org>
68017
68018         * modules/fflush (Depends-on): Add ftello.
68019
68020 2007-04-25  Bruno Haible  <bruno@clisp.org>
68021
68022         * modules/ftello-tests: New file.
68023         * tests/test-ftello.c: New file.
68024
68025         * modules/ftello: New file.
68026         * m4/ftello.m4: New file.
68027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68028         HAVE_FTELLO.
68029         * lib/stdio_.h (ftello): New declaration.
68030         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68031         HAVE_FTELLO.
68032
68033 2007-04-25  Bruno Haible  <bruno@clisp.org>
68034
68035         * modules/fseeko-tests: New file.
68036         * tests/test-fseeko.c: New file.
68037
68038         * modules/fseeko: New file.
68039         * m4/fseeko.m4: New file.
68040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68041         HAVE_FSEEKO.
68042         * lib/stdio_.h (fseeko): New declaration.
68043         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68044         HAVE_FSEEKO.
68045
68046 2007-04-25  Bruno Haible  <bruno@clisp.org>
68047
68048         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68049
68050 2007-04-25  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68053         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68054         * tests/test-unistd.c: Likewise.
68055         * tests/test-fcntl.c: Likewise.
68056
68057 2007-04-23  Eric Blake  <ebb9@byu.net>
68058
68059         * lib/fflush.c: Fix missing include.
68060         Reported by Bruno Haible.
68061
68062 2007-04-23  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68065         Reported by Eric Blake.
68066
68067 2007-04-23  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68070
68071 2007-04-23  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68074
68075 2007-04-23  Bruno Haible  <bruno@clisp.org>
68076
68077         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68078         Needed on HP-UX 11.
68079
68080 2007-04-16  Eric Blake  <ebb9@byu.net>
68081
68082         Make fflush rely on fpurge.
68083         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68084         open coding all variants.
68085         * modules/fflush (Depends-on): Add fpurge and unistd.
68086         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68088
68089         Fix --with-tests compilation on cygwin.
68090         * modules/argmatch-tests (Makefile.am): List gnulib library first
68091         in LDADD.
68092         * modules/argp-tests (Makefile.am): Likewise.
68093         * modules/array-list-tests (Makefile.am): Likewise.
68094         * modules/array-oset-tests (Makefile.am): Likewise.
68095         * modules/avltree-list-tests (Makefile.am): Likewise.
68096         * modules/avltree-oset-tests (Makefile.am): Likewise.
68097         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68098         * modules/carray-list-tests (Makefile.am): Likewise.
68099         * modules/dirname-tests (Makefile.am): Likewise.
68100         * modules/frexp-tests (Makefile.am): Likewise.
68101         * modules/isnanl-tests (Makefile.am): Likewise.
68102         * modules/linked-list-tests (Makefile.am): Likewise.
68103         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68104         * modules/lock-tests (Makefile.am): Likewise.
68105         * modules/rbtree-list-tests (Makefile.am): Likewise.
68106         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68107         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68108         * modules/tls-tests (Makefile.am): Likewise.
68109         * modules/tsearch-tests (Makefile.am): Likewise.
68110         * modules/xvasprintf-tests (Makefile.am): Likewise.
68111
68112         Fix fpurge for cygwin.
68113         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68114         value.
68115         * modules/fpurge-tests (Depends-on): Clean up trash.
68116
68117 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68118
68119         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68120
68121         * m4/autobuild.m4: Re-indent.
68122
68123 2007-04-13  Bruno Haible  <bruno@clisp.org>
68124
68125         * modules/fpurge-tests: New file.
68126         * tests/test-fpurge.c: New file.
68127
68128         * modules/fpurge: New file.
68129         * lib/fpurge.h: New file.
68130         * lib/fpurge.c: New file.
68131         * m4/fpurge.m4: New file.
68132
68133 2007-04-13  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/fbufmode-tests: New file.
68136         * tests/test-fbufmode.c: New file.
68137
68138         * modules/fbufmode: New file.
68139         * lib/fbufmode.h: New file.
68140         * lib/fbufmode.c: New file.
68141         * m4/fbufmode.m4: New file.
68142
68143 2007-04-13  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/fwritable-tests: New file.
68146         * tests/test-fwritable.c: New file.
68147
68148         * modules/fwritable: New file.
68149         * lib/fwritable.h: New file.
68150         * lib/fwritable.c: New file.
68151         * m4/fwritable.m4: New file.
68152
68153 2007-04-13  Bruno Haible  <bruno@clisp.org>
68154
68155         * modules/freadable-tests: New file.
68156         * tests/test-freadable.c: New file.
68157
68158         * modules/freadable: New file.
68159         * lib/freadable.h: New file.
68160         * lib/freadable.c: New file.
68161         * m4/freadable.m4: New file.
68162
68163 2007-04-13  Bruno Haible  <bruno@clisp.org>
68164
68165         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68166         MOSTLYCLEANFILES.
68167
68168 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68169
68170         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68171         gzip bootstrap.conf to avoid dragging in i18n machinery.
68172         (gnulib_tool_option): Use it.
68173
68174 2007-04-13  Bruno Haible  <bruno@clisp.org>
68175
68176         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68177         %F directives.
68178         * tests/test-vasprintf-posix.c (test_function): Likewise.
68179         * tests/test-snprintf-posix.h (test_function): Likewise.
68180         * tests/test-sprintf-posix.h (test_function): Likewise.
68181         * tests/test-fprintf-posix.h (test_function): Likewise.
68182         * tests/test-printf-posix.h (test_function): Likewise.
68183         * tests/test-fprintf-posix.out: Likewise.
68184
68185 2007-04-13  Bruno Haible  <bruno@clisp.org>
68186
68187         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68188         * modules/tls-tests (configure.ac): Likewise.
68189         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68190
68191 2007-04-13  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/tls.c (glthread_tls_get): Fix return type.
68194         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68195
68196 2007-04-12  Eric Blake  <ebb9@byu.net>
68197
68198         * modules/gettime (Depends-on): Remove gettime.
68199         Reported by Dmitry V. Levin.
68200
68201 2007-04-12  Bruno Haible  <bruno@clisp.org>
68202
68203         * modules/fflush (Include): Mention <stdio.h>.
68204         * modules/strtoimax (Include): Mention <inttypes.h>.
68205         * modules/strtoumax (Include): Likewise.
68206
68207 2007-04-12  Eric Blake  <ebb9@byu.net>
68208
68209         * .cvsignore: New file.
68210         * .gitignore: Likewise.
68211
68212 2007-04-12  Bruno Haible  <bruno@clisp.org>
68213
68214         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68215         not before, since $(LDADD) often contains libgnu.a.
68216         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68217         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68218         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68219         Needed on Cygwin.
68220
68221 2007-04-12  Eric Blake  <ebb9@byu.net>
68222
68223         Work around glibc's failure to flush stdin on fclose.
68224         * lib/closein.c (close_stdin): Flush stdin before closing.
68225
68226         Work around glibc's failure to reset seekable stdin on exit.
68227         * modules/closein: New module.
68228         * lib/closein.c: New file.
68229         * lib/closein.h: Likewise.
68230         * m4/closein.m4: Likewise.
68231         * MODULES.html.sh (File stream based Input/Output): Document it.
68232
68233 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68234
68235         * gnulib-tool: Rename generated 'autobuild' script to
68236         'do-autobuild' in --create-megatestdir output.
68237
68238         * doc/gnulib.texi (Build robot for gnulib): Fix.
68239
68240 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68241
68242         * modules/sysexits (Depends-on): Add absolute-header.
68243
68244 2007-04-12  Eric Blake  <ebb9@byu.net>
68245
68246         No need to preserve errno on success.
68247         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68248         Reported by Bruno Haible.
68249
68250 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68251
68252         * MODULES.html.sh (Support for maintaining and releasing
68253         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68254
68255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68256
68257         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68258
68259 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68260
68261         * modules/autobuild: New module.
68262
68263         * m4/autobuild.m4: New file.
68264
68265 2007-04-11  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68268         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68272         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68273         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68275         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68276         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68278         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68279         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68281         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68282         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68284         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68285         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68286         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68287         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68288         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68290         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68291         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68293         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68294         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68295         Reported by Eric Blake.
68296
68297 2007-04-11  Bruno Haible  <bruno@clisp.org>
68298
68299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68300
68301 2007-04-10  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68304         for NaN and Infinity. Needed on FreeBSD 6.1.
68305         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68306         regarding results for "%010a" of Infinity and NaN.
68307         * tests/test-vasprintf-posix.c (test_function): Likewise.
68308         * tests/test-snprintf-posix.h (test_function): Likewise.
68309         * tests/test-sprintf-posix.h (test_function): Likewise.
68310         * tests/test-fprintf-posix.h (test_function): Likewise.
68311         * tests/test-printf-posix.h (test_function): Likewise.
68312         * tests/test-fprintf-posix.out: Likewise.
68313
68314 2007-04-10  Bruno Haible  <bruno@clisp.org>
68315
68316         * modules/locale-tests: New file.
68317         * tests/test-locale.c: New file.
68318
68319         * modules/locale: New file.
68320         * lib/locale_.h: New file.
68321         * m4/locale_h.m4: New file.
68322
68323 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68324             Bruno Haible  <bruno@clisp.org>
68325
68326         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68327         be determined, test for availability of the copysignf, copysign,
68328         copysignl functions.
68329         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68330         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68331         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68332
68333 2007-04-09  Eric Blake  <ebb9@byu.net>
68334
68335         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68336         * modules/stdio (Makefile.am): Support fflush.
68337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68338         * modules/fflush: New file.
68339         * lib/fflush.c: Likewise.
68340         * m4/fflush.m4: Likewise.
68341         * modules/fflush-tests: New test.
68342         * tests/test-fflush.c: Likewise.
68343         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68344
68345 2007-04-06  Bruno Haible  <bruno@clisp.org>
68346
68347         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68348         (VASNPRINTF): Use signbit for faster determination whether to print a
68349         minus sign.
68350         * modules/vasnprintf (Files): Remove lib/float+.h.
68351         * modules/fprintf-posix (Depends-on): Add signbit.
68352         * modules/snprintf-posix (Depends-on): Likewise.
68353         * modules/sprintf-posix (Depends-on): Likewise.
68354         * modules/vasnprintf-posix (Depends-on): Likewise.
68355         * modules/vasprintf-posix (Depends-on): Likewise.
68356         * modules/vfprintf-posix (Depends-on): Likewise.
68357         * modules/vsnprintf-posix (Depends-on): Likewise.
68358         * modules/vsprintf-posix (Depends-on): Likewise.
68359
68360 2007-04-06  Bruno Haible  <bruno@clisp.org>
68361
68362         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68363         * tests/test-frexpl.c (main): Likewise.
68364         * tests/test-ldexpl.c (main): Likewise.
68365         * modules/frexp-tests (Depends-on): Add signbit.
68366         * modules/frexpl-tests (Depdends-on): Likewise.
68367         * modules/ldexpl-tests (Depdends-on): Likewise.
68368
68369 2007-04-06  Bruno Haible  <bruno@clisp.org>
68370
68371         * modules/signbit-tests: New file.
68372         * tests/test-signbit.c: New file.
68373
68374         * modules/signbit: New file.
68375         * lib/signbitf.c: New file.
68376         * lib/signbitd.c: New file.
68377         * lib/signbitl.c: New file.
68378         * m4/signbit.m4: New file.
68379         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68380         (signbit): New macro.
68381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68382         REPLACE_SIGNBIT.
68383         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68384         REPLACE_FREXPL into math.h.
68385
68386 2007-04-06  Bruno Haible  <bruno@clisp.org>
68387
68388         * modules/isnanf-nolibm-tests: New file.
68389         * tests/test-isnanf.c: New file.
68390
68391         * modules/isnanf-nolibm: New file.
68392         * lib/isnanf.h: New file.
68393         * lib/isnanf.c: New file.
68394         * lib/isnan.c: Consider the USE_FLOAT macro.
68395         * m4/isnanf.m4: New file.
68396
68397 2007-04-06  Bruno Haible  <bruno@clisp.org>
68398
68399         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68400         (Link): New section.
68401
68402         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68403
68404 2007-04-06  Bruno Haible  <bruno@clisp.org>
68405
68406         Assume the 'long double' type.
68407         * m4/longdouble.m4: Remove file.
68408         * config/srclist.txt: Don't mention longdouble.m4.
68409         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68410         * lib/float+.h: Likewise.
68411         * lib/frexp.c: Likewise.
68412         * lib/printf-args.h: Likewise.
68413         * lib/printf-args.c: Likewise.
68414         * lib/printf-frexp.c: Likewise.
68415         * lib/printf-parse.c: Likewise.
68416         * lib/vasnprintf.c: Likewise.
68417         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68418         * m4/intl.m4: Likewise.
68419         * m4/isnanl.m4: Likewise.
68420         * m4/printf.m4: Likewise.
68421         * m4/printf-frexpl.m4: Likewise.
68422         * m4/vasnprintf.m4: Likewise.
68423         * modules/allocsa (Files): Remove m4/longdouble.m4.
68424         * modules/gettext (Files): Likewise.
68425         * modules/relocatable-prog-wrapper (Files): Likewise.
68426         * modules/vasnprintf (Files): Likewise.
68427         * modules/isnanl (Files): Likewise.
68428         (Include): Simplify.
68429         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68430         (Include): Simplify.
68431         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68432         (Include): Simplify.
68433         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68434         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68435         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68436         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68437         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68438         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68439         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68440         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68441         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68442         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68443         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68444         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68445         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68446         * tests/test-isnanl.c: Likewise.
68447         * tests/test-snprintf-posix.h: Likewise.
68448         * tests/test-sprintf-posix.h: Likewise.
68449         * tests/test-vasnprintf-posix.c: Likewise.
68450         * tests/test-vasnprintf-posix2.c: Likewise.
68451         * tests/test-vasprintf-posix.c: Likewise.
68452
68453 2007-04-06  Bruno Haible  <bruno@clisp.org>
68454
68455         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68456         * lib/math_.h [__DECC]: Include the overridden include file through
68457         #include_next, outside the double-inclusion guard.
68458         * lib/stdio_.h [__DECC]: Likewise.
68459         * lib/stdlib_.h [__DECC]: Likewise.
68460         * lib/string_.h [__DECC]: Likewise.
68461         * lib/time_.h [__DECC]: Likewise.
68462         * lib/wchar_.h [__DECC]: Likewise.
68463         * lib/wctype_.h [__DECC]: Likewise.
68464         * lib/inttypes_.h [__DECC]: Likewise.
68465         Reported by Albert Chin <china@thewrittenword.com> in
68466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68467
68468 2007-04-04  Eric Blake  <ebb9@byu.net>
68469
68470         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68471         1.5.x.
68472
68473 2007-04-04  Bruno Haible  <bruno@clisp.org>
68474
68475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68476         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68477
68478 2007-04-04  Bruno Haible  <bruno@clisp.org>
68479
68480         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68481         results for "%010a" of Infinity and NaN.
68482         * tests/test-vasprintf-posix.c (test_function): Likewise.
68483         * tests/test-snprintf-posix.h (test_function): Likewise.
68484         * tests/test-sprintf-posix.h (test_function): Likewise.
68485         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68486         * tests/test-printf-posix.h (test_function): Likewise.
68487         * tests/test-fprintf-posix.out: Update.
68488         Needed for FreeBSD 6.1.
68489
68490 2007-04-04  Bruno Haible  <bruno@clisp.org>
68491
68492         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68493         directly used by the gnulib modules nor by gnulib-tool.
68494
68495 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * DEPENDENCIES: Give overall description of version dependency
68498         desirability.  Use more-typical names for apps.
68499         Add shell, coreutils, diffutils, grep, tar, gzip.
68500
68501 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68502
68503         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68504
68505 2007-04-04  Karl Berry  <karl@gnu.org>
68506
68507         * MODULES.html.sh (func_module): missing '.
68508
68509 2007-04-03  Bruno Haible  <bruno@clisp.org>
68510
68511         * modules/argmatch-tests (Makefile.am): New variable
68512         test_argmatch_LDADD.
68513         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68514         * modules/array-list-tests (Makefile.am): New variable
68515         test_array_list_LDADD.
68516         * modules/array-oset-tests (Makefile.am): New variable
68517         test_array_oset_LDADD.
68518         * modules/avltree-list-tests (Makefile.am): New variable
68519         test_avltree_list_LDADD.
68520         * modules/avltree-oset-tests (Makefile.am): New variable
68521         test_avltree_oset_LDADD.
68522         * modules/avltreehash-list-tests (Makefile.am): New variable
68523         test_avltreehash_list_LDADD.
68524         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68525         test_canonicalize_lgpl_LDADD.
68526         * modules/carray-list-tests (Makefile.am): New variable
68527         test_carray_list_LDADD.
68528         * modules/dirname-tests (Makefile.am): New variable
68529         test_dirname_LDADD.
68530         * modules/linked-list-tests (Makefile.am): New variable
68531         test_linked_list_LDADD.
68532         * modules/linkedhash-list-tests (Makefile.am): New variable
68533         test_linkedhash_list_LDADD.
68534         * modules/rbtree-list-tests (Makefile.am): New variable
68535         test_rbtree_list_LDADD.
68536         * modules/rbtree-oset-tests (Makefile.am): New variable
68537         test_rbtree_oset_LDADD.
68538         * modules/rbtreehash-list-tests (Makefile.am): New variable
68539         test_rbtreehash_list_LDADD.
68540         * modules/xvasprintf-tests (Makefile.am): New variable
68541         test_xvasprintf_LDADD.
68542         Reported by Eric Blake.
68543
68544 2007-04-03  Eric Blake  <ebb9@byu.net>
68545
68546         * DEPENDENCIES: Weaken m4 requirements.
68547
68548 2007-04-03  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68551         * modules/isnanl-tests (configure.ac): Likewise.
68552
68553 2007-04-03  Ben Pfaff  <blp@gnu.org>
68554
68555         * modules/iconv_open: Add $(srcdir)/ to source directory
68556         references in Makefile fragments that call gperf, to fix VPATH
68557         builds.
68558
68559 2007-04-03  Bruno Haible  <bruno@clisp.org>
68560
68561         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68562         * lib/ldexpl.c: Undo last change.
68563
68564 2007-04-03  Bruno Haible  <bruno@clisp.org>
68565
68566         * modules/printf-frexpl (Depends-on): Undo last change.
68567         (Files): Add m4/ldexpl.m4.
68568
68569 2007-04-03  Bruno Haible  <bruno@clisp.org>
68570
68571         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68572         * modules/isnanl (Link): New section.
68573
68574         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68575         * modules/frexp (Link): New section.
68576
68577         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68578         * modules/frexpl (Link): New section.
68579
68580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68581         * modules/ldexpl (Link): New section.
68582
68583 2007-04-03  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/TEMPLATE-EXTENDED: New file.
68586         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68587
68588 2007-04-03  Bruno Haible  <bruno@clisp.org>
68589
68590         * DEPENDENCIES: New file.
68591         Suggested by Simon Josefsson.
68592
68593 2007-04-03  Bruno Haible  <bruno@clisp.org>
68594
68595         * doc/gnulib.texi: Escape @.
68596
68597 2007-04-03  James Youngman  <jay@gnu.org>
68598         and Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68601         birthtime on all systems that have birthtime, not just those which
68602         use st_birthtimensec rather than st_birthtim.  Putting zero in
68603         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68604         that the birth time is not available for files on an NFS mount.
68605
68606 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68607
68608         * modules/memxor: Move back from crypto/, suggested by Bruno.
68609         * modules/crypto/hmac-sha1: Fix memxor dependency.
68610
68611         * modules/crypto/gc: Moved from ../.
68612
68613 2007-04-02  Eric Blake  <ebb9@byu.net>
68614
68615         * lib/ldexpl.c (includes): Avoid libm.
68616
68617         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68618
68619 2007-04-02  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68622         on IRIX.
68623
68624 2007-04-02  Bruno Haible  <bruno@clisp.org>
68625
68626         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68627         x86 or x86_64 platforms running MacOS X.
68628         Reported by Ryan Schmidt <@ryandesign.com>.
68629
68630 2007-04-02  Bruno Haible  <bruno@clisp.org>
68631
68632         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68633         i386.
68634
68635 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68636
68637         * modules/crypto/arcfour: Moved from ../.
68638         * modules/crypto/arcfour-tests: Moved from ../.
68639         * modules/crypto/arctwo: Moved from ../.
68640         * modules/crypto/arctwo-tests: Moved from ../.
68641         * modules/crypto/des: Moved from ../.
68642         * modules/crypto/des-tests: Moved from ../.
68643         * modules/crypto/gc-arcfour: Moved from ../.
68644         * modules/crypto/gc-arcfour-tests: Moved from ../.
68645         * modules/crypto/gc-arctwo: Moved from ../.
68646         * modules/crypto/gc-arctwo-tests: Moved from ../.
68647         * modules/crypto/gc-des: Moved from ../.
68648         * modules/crypto/gc-des-tests: Moved from ../.
68649         * modules/crypto/gc-hmac-md5: Moved from ../.
68650         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68651         * modules/crypto/gc-hmac-sha1: Moved from ../.
68652         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68653         * modules/crypto/gc-md2: Moved from ../.
68654         * modules/crypto/gc-md2-tests: Moved from ../.
68655         * modules/crypto/gc-md4: Moved from ../.
68656         * modules/crypto/gc-md4-tests: Moved from ../.
68657         * modules/crypto/gc-md5: Moved from ../.
68658         * modules/crypto/gc-md5-tests: Moved from ../.
68659         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68660         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68661         * modules/crypto/gc-random: Moved from ../.
68662         * modules/crypto/gc-rijndael: Moved from ../.
68663         * modules/crypto/gc-rijndael-tests: Moved from ../.
68664         * modules/crypto/gc-sha1: Moved from ../.
68665         * modules/crypto/gc-sha1-tests: Moved from ../.
68666         * modules/crypto/gc-tests: Moved from ../.
68667         * modules/crypto/hmac-md5: Moved from ../.
68668         * modules/crypto/hmac-md5-tests: Moved from ../.
68669         * modules/crypto/hmac-sha1: Moved from ../.
68670         * modules/crypto/hmac-sha1-tests: Moved from ../.
68671         * modules/crypto/md2: Moved from ../.
68672         * modules/crypto/md2-tests: Moved from ../.
68673         * modules/crypto/md4: Moved from ../.
68674         * modules/crypto/md4-tests: Moved from ../.
68675         * modules/crypto/md5: Moved from ../.
68676         * modules/crypto/md5-tests: Moved from ../.
68677         * modules/crypto/memxor: Moved from ../.
68678         * modules/crypto/rijndael: Moved from ../.
68679         * modules/crypto/rijndael-tests: Moved from ../.
68680         * modules/crypto/sha1: Moved from ../.
68681
68682 2007-03-30  James Youngman  <jay@gnu.org>
68683
68684         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68685         rename() to change the ctime of a file (because ctime is unaffected
68686         by rename on jfs2 on AIX 5.1).
68687         (main): Start by doing cleanup, in case a previous run failed leaving
68688         test files behind.
68689
68690 2007-03-31  Bruno Haible  <bruno@clisp.org>
68691
68692         Support old proprietary implementations of iconv.
68693         * modules/iconv_open: New file.
68694         * lib/iconv_.h: New file.
68695         * m4/iconv_h.m4: New file.
68696         * lib/iconv_open.c: New file.
68697         * lib/iconv_open-aix.gperf: New file.
68698         * lib/iconv_open-hpux.gperf: New file.
68699         * lib/iconv_open-irix.gperf: New file.
68700         * lib/iconv_open-osf.gperf: New file.
68701         * m4/iconv_open.m4: New file.
68702         * modules/linebreak (Depends-on): Add iconv_open.
68703         * modules/striconv (Depends-on): Likewise.
68704         * modules/striconveh (Depends-on): Likewise.
68705         * modules/unicodeio (Depends-on): Likewise.
68706         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68707         (iconv_t)(-1).
68708         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68709         conversion if cd is (iconv_t)(-1).
68710         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68711         is not possible.
68712
68713 2007-03-31  Bruno Haible  <bruno@clisp.org>
68714
68715         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68716         work on Solaris either. Protect also second use of "autodetect_jp".
68717
68718 2007-03-31  Bruno Haible  <bruno@clisp.org>
68719
68720         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68721         the function is not present.
68722
68723 2007-03-31  Bruno Haible  <bruno@clisp.org>
68724
68725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68726         the function is not present.
68727
68728 2007-03-31  Bruno Haible  <bruno@clisp.org>
68729
68730         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68731         a bug in HP-UX iconv_open().
68732
68733 2007-03-31  Bruno Haible  <bruno@clisp.org>
68734
68735         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68736         (Mathematics <math.h>): New section, add fpieee.
68737         (Input/output <stdio.h>): Add fseterr.
68738         (Mathematics <math.h>): New section, add printf-frexp.
68739         (Container data structures): Add sublist.
68740         (Core language properties): Add fpucw, inline.
68741         (Functions for greatest-width integer types <inttypes.h>): Add
68742         imaxabs, imaxdiv, inttypes.
68743         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68744         isnanl-nolibm, ldexp.
68745         (Mathematics <math.h>): New section, add printf-frexpl.
68746         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68747         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68748         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68749         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68750         (Unicode string functions): Add unistr/u*-mbtoucr.
68751         (Java): Add javacomp-script, javaexec-script.
68752         (C#): Add csharpcomp-script, csharpexec-script.
68753         (Support for building libraries and executables): Add havelib,
68754         relocatable-*.
68755         (Support for maintaining and releasing projects): Renamed from
68756         'Support for maintaining and release projects'. Add announce-gen.
68757
68758 2007-03-31  Bruno Haible  <bruno@clisp.org>
68759
68760         * README: Talk primarily about git.
68761         (git and CVS): Renamed from CVS.
68762         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68763         gnulib is available through git.
68764         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68765
68766 2007-03-30  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68769         * lib/poll_.h: Likewise.
68770         * lib/stat_.h: Likewise.
68771         * lib/sys_time_.h: Likewise.
68772         * lib/sysexit_.h: Likewise.
68773         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68774         * lib/stdbool_.h: Likewise.
68775         * lib/byteswap_.h: Add double-inclusion guard.
68776
68777 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68778
68779         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68780
68781 2007-03-30  Karl Berry  <karl@gnu.org>
68782
68783         * config/srclist-update: double space after USA in the license
68784         substitution, since that's how it's usually (?) written.
68785
68786 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68789         reported by Bruno Haible.
68790
68791 2007-03-29  Bruno Haible  <bruno@clisp.org>
68792
68793         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68794         a bug in AIX iconv().
68795
68796 2007-03-29  Bruno Haible  <bruno@clisp.org>
68797
68798         * modules/ldexpl-tests: New file.
68799         * tests/test-ldexpl.c: New file.
68800
68801 2007-03-29  Bruno Haible  <bruno@clisp.org>
68802
68803         * lib/ldexpl.c: Include fpucw.h.
68804         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68805         multiplication.
68806         * modules/ldexpl (Depends-on): Add fpucw.
68807
68808 2007-03-29  Bruno Haible  <bruno@clisp.org>
68809
68810         * modules/ldexpl: New file.
68811         * m4/ldexpl.m4: New file.
68812         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68813         set.
68814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68815         REPLACE_LDEXPL.
68816         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68817         REPLACE_LDEXPL.
68818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68819         gl_FUNC_LDEXPL_WORKS.
68820         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68821         * modules/mathl (Files): Remove lib/ldexpl.c.
68822         (Depends-on): Add ldexpl.
68823
68824 2007-03-29  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68827
68828 2007-03-29  Bruno Haible  <bruno@clisp.org>
68829
68830         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68831         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68832         and possibly also HP-UX.
68833         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68834         work on AIX, IRIX, HP-UX, OSF/1.
68835         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68836         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68837         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68838         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68839         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68840         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68841
68842 2007-03-29  Bruno Haible  <bruno@clisp.org>
68843
68844         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68845
68846 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68849         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68850
68851 2007-03-29  Eric Blake  <ebb9@byu.net>
68852
68853         * lib/acl-internal.h: Remove redundant include.
68854         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68855         Cygwin when a file is locked.
68856
68857 2007-03-29  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68860         file.
68861         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68862
68863 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68866         try to remove a parent directory if the child couldn't be removed
68867         (except for the first rmdir, which could fail because the child
68868         doesn't exist).  Problem reported by Jeff Blaine in
68869         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68870
68871 2007-03-28  Bruno Haible  <bruno@clisp.org>
68872
68873         * lib/striconveh.c (utf8conv_carefully): New function.
68874         (mem_cd_iconveh_internal): Invoke it.
68875
68876 2007-03-28  Bruno Haible  <bruno@clisp.org>
68877
68878         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68879         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68880         input.
68881         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68882         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68883         unistr/u8-uctomb.
68884
68885 2007-03-28  Bruno Haible  <bruno@clisp.org>
68886
68887         * modules/unistr/u8-mbtoucr: New file.
68888         * lib/unistr/u8-mbtoucr.c: New file.
68889         * modules/unistr/u16-mbtoucr: New file.
68890         * lib/unistr/u16-mbtoucr.c: New file.
68891         * modules/unistr/u16-mbtoucr: New file.
68892         * lib/unistr/u16-mbtoucr.c: New file.
68893         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68894
68895 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68896             Bruno Haible  <bruno@clisp.org>
68897
68898         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68899         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68900         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68901
68902         * m4/stdio_h.m4: Add stubs for vasprintf too.
68903
68904         * modules/stdio: Support vasprintf in sed command.
68905
68906         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68907         vasprintf.h.  Add stdio module indicator.
68908
68909         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68910         vasprintf.h.
68911
68912         * lib/vasprintf.h: File removed.
68913
68914         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68915         * lib/vasprintf.c: Ditto.
68916         * lib/xvasprintf.c: Ditto.
68917         * tests/test-vasprintf-posix.c: Ditto.
68918         * tests/test-vasprintf.c: Ditto.
68919
68920 2007-03-27  Bruno Haible  <bruno@clisp.org>
68921
68922         Make vasnprintf multithread-safe.
68923         * lib/vasnprintf.c (decimal_point_char): New function.
68924         (VASNPRINTF): Use it.
68925         Suggested by Simon Josefsson.
68926
68927 2007-03-27  Eric Blake  <ebb9@byu.net>
68928
68929         Support sub-second birthtime on cygwin.
68930         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68931         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68932         (get_stat_birthtime): Also work with st_birthtim.
68933
68934 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68937         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68938         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68939         (get_stat_birthtime_ns): Simplify compile-time tests.
68940         (get_stat_birthtime): Change the API to look like
68941         get_stat_mtime etc., except return a negative tv_nsec on error.
68942         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68943         Don't check for "spare" fields.
68944         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68945         or for struct stat.st_birthtime, as these tests aren't used.
68946         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68947
68948 2007-03-27  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/stat-time.h: Include <sys/stat.h>.
68951
68952 2007-03-27  James Youngman  <jay@gnu.org>
68953
68954         * lib/stat-time.h (get_stat_birthtime): New function for
68955           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68956         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68957           and its variants.
68958         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68959         * modules/stat-time-test: New file.
68960         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68961
68962 2007-03-26  Bruno Haible  <bruno@clisp.org>
68963
68964         Better support of signalling NaNs.
68965         * lib/atanl.c: Include isnanl.h.
68966         (atanl): Perform test for NaN at the beginning of the function and
68967         through a call to isnanl.
68968         * lib/cosl.c: Include isnanl.h.
68969         (cosl): Perform test for NaN at the beginning of the function and
68970         through a call to isnanl.
68971         * lib/ldexpl.c: Include isnanl.h.
68972         (ldexpl): Perform test for NaN through a call to isnanl.
68973         * lib/logl.c: Include isnanl.h.
68974         (logl): Perform test for NaN at the beginning of the function and
68975         through a call to isnanl.
68976         * lib/sinl.c: Include isnanl.h.
68977         (sinl): Perform test for NaN at the beginning of the function and
68978         through a call to isnanl.
68979         * lib/sqrtl.c: Include isnanl.h.
68980         (sqrtl): Perform test for NaN at the beginning of the function and
68981         through a call to isnanl.
68982         * lib/tanl.c: Include isnanl.h.
68983         (tanl): Perform test for NaN at the beginning of the function and
68984         through a call to isnanl.
68985         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68986         * modules/mathl (Depends-on): Add isnanl.
68987
68988 2007-03-26  Eric Blake  <ebb9@byu.net>
68989
68990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68991         regression in logic sense of previous patch.
68992
68993 2007-03-26  Bruno Haible  <bruno@clisp.org>
68994
68995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68996         unportable shell command "if ! ...".
68997         Reported by Ralf Wildenhues.
68998
68999 2007-03-25  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69002         <sysexits.h> file, and only add EX_CONFIG.
69003         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69004         absolute file name and whether it is sufficient. Substitute also
69005         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69006         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69007         ABSOLUTE_SYSEXITS_H into sysexits.h.
69008
69009 2007-03-25  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69012         hints is NULL.
69013
69014 2007-03-25  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69017         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69018
69019 2007-03-25  Bruno Haible  <bruno@clisp.org>
69020
69021         * lib/vasnprintf.c: Include langinfo.h.
69022         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69023         multithread-safe.
69024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69033         Reported by Simon Josefsson.
69034
69035 2007-03-25  Bruno Haible  <bruno@clisp.org>
69036
69037         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69038         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69039         * modules/vasnprintf (Depends-on): Add stdint.
69040
69041 2007-03-25  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/fpieee: New file.
69044         * m4/fpieee.m4: New file.
69045         * modules/isnan-nolibm (Depends-on): Add fpieee.
69046         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69047         * modules/isnanl (Depends-on): Add fpieee.
69048
69049 2007-03-25  Bruno Haible  <bruno@clisp.org>
69050
69051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69052
69053 2007-03-25  Bruno Haible  <bruno@clisp.org>
69054
69055         Avoid test failures on IRIX 6.5.
69056         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69057         (main): Use it.
69058         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69059         macros.
69060         (main): Use them.
69061
69062 2007-03-25  Bruno Haible  <bruno@clisp.org>
69063
69064         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69065         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69066         exists but doesn't work.
69067         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69068         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69070         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69071         math.h.
69072
69073 2007-03-25  Bruno Haible  <bruno@clisp.org>
69074
69075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69076         returns inf. Needed on IRIX 6.5.
69077
69078 2007-03-25  Bruno Haible  <bruno@clisp.org>
69079
69080         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69081         (main): Use isnanl instead of x != x idiom.
69082         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69083
69084         * tests/test-frexp.c: Include isnan.h.
69085         (main): Use isnan instead of x != x idiom.
69086         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69087
69088 2007-03-25  Bruno Haible  <bruno@clisp.org>
69089
69090         * tests/test-frexp.c (NaN): New function/macro.
69091         (main): Use it instead of 0.0 / 0.0.
69092         * tests/test-isnan.c (NaN): New function/macro.
69093         (main): Use it instead of 0.0 / 0.0.
69094         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69095         (test_function): Use it instead of 0.0 / 0.0.
69096         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69097         (test_function): Use it instead of 0.0 / 0.0.
69098         * tests/test-snprintf-posix.h (NaN): New function/macro.
69099         (test_function): Use it instead of 0.0 / 0.0.
69100         * tests/test-sprintf-posix.h (NaN): New function/macro.
69101         (test_function): Use it instead of 0.0 / 0.0.
69102         * tests/test-fprintf-posix.h (NaN): New function/macro.
69103         (test_function): Use it instead of 0.0 / 0.0.
69104         * tests/test-printf-posix.h (NaN): New function/macro.
69105         (test_function): Use it instead of 0.0 / 0.0.
69106
69107         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69108
69109 2007-03-25  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69112
69113 2007-03-25  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/regexec.c (merge_state_with_log): Make static.
69116
69117 2007-03-25  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/trigl.c (kernel_rem_pio2): Make static.
69120
69121 2007-03-25  Bruno Haible  <bruno@clisp.org>
69122
69123         * lib/sincosl.c (sincosl_table): Make static.
69124
69125 2007-03-25  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69128         if the compiler does not support C99.
69129
69130 2007-03-25  Bruno Haible  <bruno@clisp.org>
69131
69132         * modules/time (Makefile.am): Ensure all rule action lines start with a
69133         tab.
69134
69135 2007-03-24  Bruno Haible  <bruno@clisp.org>
69136
69137         * modules/tsearch-tests: New file.
69138         * tests/test-tsearch.sh: New file.
69139         * tests/test-tsearch.c: New file, mostly copied from glibc.
69140
69141         * modules/search-tests: New file.
69142         * tests/test-search.c: New file.
69143
69144         * modules/search: New file.
69145         * lib/search_.h: New file, incorporating lib/tsearch.h.
69146         * m4/search_h.m4: New file.
69147         * lib/tsearch.h: Remove file.
69148         * lib/tsearch.c: Include search.h instead of tsearch.h.
69149         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69150         HAVE_TSEARCH.
69151         * modules/tsearch (Files): Remove lib/tsearch.h.
69152         (Depends-on): Add search.
69153         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69154         (Include): Change tsearch.h into search.h.
69155
69156 2007-03-24  Bruno Haible  <bruno@clisp.org>
69157
69158         * modules/fpucw: New file.
69159         * lib/fpucw.h: New file.
69160         * lib/frexp.c: Include fpucw.h.
69161         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69162         (FUNC): Use them.
69163         * lib/printf-frexp.c: Include fpucw.h.
69164         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69165         (FUNC): Use them.
69166         * lib/vasnprintf.c: Include fpucw.h.
69167         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69168         'long double' calculations.
69169         * tests/test-frexpl.c: Include fpucw.h.
69170         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69171         * tests/test-printf-frexpl.c: Include fpucw.h.
69172         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69173         * modules/frexpl (Depends-on): Add fpucw.
69174         * modules/printf-frexpl (Depends-on): Likewise.
69175         * modules/fprintf-posix (Depends-on): Likewise.
69176         * modules/snprintf-posix (Depends-on): Likewise.
69177         * modules/sprintf-posix (Depends-on): Likewise.
69178         * modules/vasnprintf-posix (Depends-on): Likewise.
69179         * modules/vasprintf-posix (Depends-on): Likewise.
69180         * modules/vfprintf-posix (Depends-on): Likewise.
69181         * modules/vsnprintf-posix (Depends-on): Likewise.
69182         * modules/vsprintf-posix (Depends-on): Likewise.
69183         * modules/frexpl-tests (Depends-on): Likewise.
69184         * modules/printf-frexpl-tests (Depends-on): Likewise.
69185
69186 2007-03-24  Bruno Haible  <bruno@clisp.org>
69187
69188         * lib/float+.h: New file.
69189         * lib/isnan.c: Include float+.h.
69190         (SIZE): New macro.
69191         (FUNC): Compare only SIZE bytes of the value.
69192         * lib/vasnprintf.c: Include float+.h.
69193         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69194         SIZEOF_LDBL or SIZEOF_DBL bytes.
69195         * modules/isnan-nolibm (Files): Add lib/float+.h.
69196         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69197         * modules/isnanl (Files): Add lib/float+.h.
69198         * modules/vasnprintf (Files): Add lib/float+.h.
69199
69200 2007-03-24  Bruno Haible  <bruno@clisp.org>
69201
69202         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69203         include isnanl-nolibm.h.
69204
69205 2007-03-24  Bruno Haible  <bruno@clisp.org>
69206
69207         * tests/test-read-file.c (main): Don't produce spurious output for
69208         expected situations. Make the test fail if it encountered unexpected
69209         results.
69210
69211 2007-03-24  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69214         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69215
69216 2007-03-24  Bruno Haible  <bruno@clisp.org>
69217
69218         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69219
69220 2007-03-24  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69223         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69224
69225         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69226         * modules/utf8-ucs4: Turn into a symbolic link to module
69227         unistr/u8-mbtouc.
69228
69229         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69230         utf8-ucs4-unsafe.
69231         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69232         unistr/u8-mbtouc-unsafe.
69233
69234         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69235         * modules/utf16-ucs4: Turn into a symbolic link to module
69236         unistr/u16-mbtouc.
69237
69238         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69239         utf16-ucs4-unsafe.
69240         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69241         unistr/u16-mbtouc-unsafe.
69242
69243         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69244         * modules/ucs4-utf8: Turn into a symbolic link to module
69245         unistr/u8-ubtomb.
69246
69247         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69248         * modules/ucs4-utf16: Turn into a symbolic link to module
69249         unistr/u16-ubtomb.
69250
69251 2007-03-24  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69254         Enable the function only if HAVE_INLINE.
69255         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69256         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69257         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69258         Enable the function only if HAVE_INLINE.
69259         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69260         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69261         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69262         Enable the function only if HAVE_INLINE.
69263         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69264         Enable the function only if HAVE_INLINE.
69265         * modules/utf8-ucs4: Update.
69266         * modules/utf8-ucs4-unsafe: Update.
69267         * modules/utf16-ucs4: Update.
69268         * modules/utf16-ucs4-unsafe: Update.
69269         * modules/ucs4-utf8: Update.
69270         * modules/ucs4-utf16: Update.
69271
69272 2007-03-24  Bruno Haible  <bruno@clisp.org>
69273
69274         * lib/utf8-ucs4.h: Remove file.
69275         * lib/utf8-ucs4-unsafe.h: Remove file.
69276         * lib/utf16-ucs4.h: Remove file.
69277         * lib/utf16-ucs4-unsafe.h: Remove file.
69278         * lib/ucs4-utf8.h: Remove file.
69279         * lib/ucs4-utf16.h: Remove file.
69280         * lib/unistr.h: Include their previous contents.
69281         * m4/utf-ucs4.m4: Remove file.
69282         * m4/ucs4-utf.m4: Remove file.
69283         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69284         (Depends-on): Add unistr/base.
69285         (configure.ac): Remove gl_UTF_UCS4.
69286         (Makefile.am): Update.
69287         (Include): Change to unistr.h.
69288         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69289         (Depends-on): Add unistr/base.
69290         (configure.ac): Remove gl_UTF_UCS4.
69291         (Makefile.am): Update.
69292         (Include): Change to unistr.h.
69293         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69294         (Depends-on): Add unistr/base.
69295         (configure.ac): Remove gl_UTF_UCS4.
69296         (Makefile.am): Update.
69297         (Include): Change to unistr.h.
69298         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69299         (Depends-on): Add unistr/base.
69300         (configure.ac): Remove gl_UTF_UCS4.
69301         (Makefile.am): Update.
69302         (Include): Change to unistr.h.
69303         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69304         (Depends-on): Add unistr/base.
69305         (configure.ac): Remove gl_UCS4_UTF.
69306         (Makefile.am): Update.
69307         (Include): Change to unistr.h.
69308         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69309         (Depends-on): Add unistr/base.
69310         (configure.ac): Remove gl_UCS4_UTF.
69311         (Makefile.am): Update.
69312         (Include): Change to unistr.h.
69313         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69314         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69315         utf8-ucs4-unsafe.h.
69316         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69317         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69318         utf16-ucs4-unsafe.h.
69319         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69320         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69321         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69322         * lib/unistr/u8-strchr.c: Likewise.
69323         * lib/unistr/u8-strrchr.c: Likewise.
69324         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69325         * lib/unistr/u16-strchr.c: Likewise.
69326         * lib/unistr/u16-strrchr.c: Likewise.
69327         * lib/striconveh.c: Update.
69328         * lib/linebreak.c: Update.
69329
69330 2007-03-24  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69333         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69334
69335 2007-03-22  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69338
69339 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * MODULES.html.sh (File system functions): New module write-any-file.
69342         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69343         * m4/write-any-file.m4: New files.
69344
69345 2007-03-23  Eric Blake  <ebb9@byu.net>
69346
69347         * gnulib-tool: Rearrange space-tab sequences, since some editors
69348         like to eat them.
69349
69350 2007-03-23  Eric Blake  <ebb9@byu.net>
69351
69352         * lib/version-etc.c (version_etc_va): Update license wording to
69353         be more concise.  Recommended by Richard Stallman.
69354
69355 2007-03-22  Bruno Haible  <bruno@clisp.org>
69356
69357         * lib/poll.c (MSG_PEEK): New fallback definition.
69358
69359 2007-03-22  Bruno Haible  <bruno@clisp.org>
69360
69361         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69362         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69363         (main): Update.
69364         Fixes a compilation error on BeOS.
69365
69366 2007-03-22  Bruno Haible  <bruno@clisp.org>
69367
69368         * modules/frexpl-tests: New file.
69369         * tests/test-frexpl.c: New file.
69370
69371         * modules/frexpl: New file.
69372         * m4/frexpl.m4: New file.
69373         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69374         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69376         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69377         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69378         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69379
69380 2007-03-22  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/frexpl.c: Share code with lib/frexp.c.
69383         * modules/mathl (Files): Add lib/frexp.c.
69384         (Depends-on): Add isnanl-nolibm.
69385
69386 2007-03-22  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/printf-frexp (Files): Add m4/frexp.m4.
69389         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69390         only if the found frexp function actually works.
69391
69392 2007-03-22  Bruno Haible  <bruno@clisp.org>
69393
69394         * lib/frexp.c: Remove older implementation that uses divisions.
69395
69396 2007-03-21  Bruno Haible  <bruno@clisp.org>
69397
69398         * modules/frexp-tests: New file.
69399         * tests/test-frexp.c: New file.
69400
69401         * modules/frexp: New file.
69402         * lib/frexp.c: New file.
69403         * m4/frexp.m4: New file.
69404         * lib/math_.h (frexp): New declaration.
69405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69406         REPLACE_FREXP.
69407         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69408
69409 2007-03-21  Bruno Haible  <bruno@clisp.org>
69410
69411         * modules/isnanl-tests: New file.
69412         * tests/test-isnanl.c: New file.
69413
69414         * modules/isnanl: New file.
69415         * lib/isnanl.h: New file.
69416         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69417         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69418         gl_FUNC_ISNANL_WORKS.
69419         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69420         New macros.
69421
69422 2007-03-21  Bruno Haible  <bruno@clisp.org>
69423
69424         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69425         lib/isnanl.h.
69426         (Include): Update.
69427         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69428         * lib/vasnprintf.c: Update.
69429         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69430         tests/test-isnanl.h, remove tests/test-isnanl.c.
69431         (Makefile.am): Update.
69432         * tests/test-isnanl-nolibm.c: New file.
69433         * tests/test-isnanl.h: New file.
69434         * tests/test-isnanl.c: Remove file.
69435
69436 2007-03-21  Jim Meyering  <jim@meyering.net>
69437
69438         When trying to open ".", treat ESTALE like EACCES.
69439         * lib/savewd.c (savewd_save): Resort to forking not just upon
69440         failure with EACCES, but also when errno is ESTALE.
69441
69442 2007-03-20  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69445         Needed on AIX 5.1. Reported by Matthew Woehlke.
69446
69447 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         Suggestions by Bruno Haible:
69450         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69451         our own.
69452         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69453         * modules/acl (Depends-on): Add gettext.
69454
69455 2007-03-19  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/iconvme: Remove file.
69458         * lib/iconvme.h: Remove file.
69459         * lib/iconvme.c: Remove file.
69460         * m4/iconvme.m4: Remove file.
69461
69462 2007-03-19  Bruno Haible  <bruno@clisp.org>
69463
69464         * doc/relocatable-maint.texi: Break long shell script line.
69465         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69466
69467 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69468
69469         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69470         handle file_has_acl.
69471         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69472         * lib/acl.c: Move header inclusions and related macro defns into
69473         lib/acl-internal.h.
69474         (S_ISLNK): Remove defn, since that's now done for us.
69475         (file_has_acl): Move to lib/file-has-acl.c.
69476         Call acl_trivial if available.  This is the crucial part of the fix.
69477         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69478         shared within the library.  Rewrite a bit, partly to make it compatible
69479         with the GNU coding style.
69480         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69481         Remove unnecessary double-quotes.
69482         Don't test for acl_to_text; the build will catch that.
69483         Replace acl_entries if it doesn't exist and it is needed.
69484         Check for -lsec and acl_trivial (as used on Solaris 10).
69485         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69486         lib/file-has-acl.c.
69487         (Depends-on): Add sys_stat, for S_ISLNK.
69488
69489 2007-03-19  Ben Pfaff  <blp@gnu.org>
69490
69491         * doc/gnulib.texi: Fix typos.
69492         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69493
69494 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69497         If size is zero here, buf must be zero.
69498
69499 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69500
69501         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69502         <bruno@clisp.org>.
69503
69504 2007-03-18  Bruno Haible  <bruno@clisp.org>
69505
69506         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69507         Suggested by Eric Blake.
69508
69509 2007-03-18  Ben Pfaff  <blp@gnu.org>
69510
69511         * doc/relocatable.texi: Recommend using as prefix a directory
69512         that does not exist and will never be created.  Based on
69513         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69514         and others.
69515
69516 2007-03-17  Bruno Haible  <bruno@clisp.org>
69517
69518         * lib/fchownat.c: Include lchown.h.
69519
69520 2007-03-17  Bruno Haible  <bruno@clisp.org>
69521
69522         Fix endless loop when the given allocated size was > INT_MAX.
69523         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69524         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69525         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69526         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69527         * lib/sprintf.c (sprintf): Likewise.
69528
69529 2007-03-17  Bruno Haible  <bruno@clisp.org>
69530
69531         * tests/test-argp-2.sh (func_compare): Output a context diff.
69532
69533 2007-03-17  Bruno Haible  <bruno@clisp.org>
69534
69535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69536         locale's decimal-point character.
69537
69538 2007-03-17  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69541         before comparing it. Needed because on some platforms (e.g. x86) a
69542         'long double' occupies less bytes than sizeof (long double).
69543
69544 2007-03-17  Bruno Haible  <bruno@clisp.org>
69545
69546         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69547         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69548         * tests/test-getaddrinfo.c (simple): Likewise.
69549         * tests/test-read-file.c (main): Likewise.
69550
69551 2007-03-17  Bruno Haible  <bruno@clisp.org>
69552
69553         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69554
69555 2007-03-17  Bruno Haible  <bruno@clisp.org>
69556
69557         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69558         unused variable.
69559
69560 2007-03-17  Bruno Haible  <bruno@clisp.org>
69561
69562         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69563         * tests/test-c-strncasecmp.c: Likewise.
69564
69565 2007-03-17  Bruno Haible  <bruno@clisp.org>
69566
69567         * modules/stdlib (Depends-on): Add unistd.
69568         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69569         Needed for MacOS X 10.3.
69570
69571 2007-03-17  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69574
69575 2007-03-17  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69578
69579 2007-03-17  Bruno Haible  <bruno@clisp.org>
69580
69581         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69582         to reflect files copied from gnulib (with or without modifications).
69583         Suggested by Jim Meyering.
69584
69585 2007-03-17  Eric Blake  <ebb9@byu.net>
69586
69587         * NEWS: Document stdlib change from 2007-02-18.
69588
69589 2007-03-17  Jim Meyering  <jim@meyering.net>
69590
69591         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69592         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69593         someone uses a name containing shell meta-characters.
69594         Reported by Alfred M. Szmidt.
69595
69596         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69597
69598 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69599
69600         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69601         and copy gettext configuration files only if configure.ac contains
69602         a use of AM_GNU_GETTEXT_VERSION.
69603
69604 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69605
69606         * build-aux/bootstrap (gnulib_name): New variable.
69607         (gnulib_tool_options): Use it.
69608
69609 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69610
69611         * tests/test-des.c: Use new namespace.
69612
69613 2007-03-15  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69616         Reported by James Youngman <jay@gnu.org>.
69617
69618 2007-03-15  Bruno Haible  <bruno@clisp.org>
69619
69620         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69621         declared prototype. Needed with cc on OSF/1 5.1.
69622
69623 2007-03-15  Bruno Haible  <bruno@clisp.org>
69624
69625         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69626         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69627         (struct gl_list_implementation): Add dispose_fn argument to the
69628         'create_empty', 'create' methods.
69629         (struct gl_list_impl_base): Add field 'dispose_fn'.
69630         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69631         argument.
69632         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69633         dispose_fn argument.
69634         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69635         dispose_fn on the dropped values.
69636         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69637         dispose_fn argument.
69638         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69639         dropped values.
69640         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69641         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69642         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69643         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69644         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69645         argument.
69646         (gl_tree_list_free): Call dispose_fn on the dropped values.
69647         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69648         the dropped values.
69649         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69650         Add dispose_fn argument.
69651         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69652         Call dispose_fn on the dropped values.
69653         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69654         Add dispose_fn argument.
69655         (gl_sublist_create): Initialize the 'dispose_fn' field.
69656         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69657         * tests/test-array_list.c (main): Update.
69658         * tests/test-carray_list.c (main): Update.
69659         * tests/test-avltree_list.c (main): Update.
69660         * tests/test-rbtree_list.c (main): Update.
69661         * tests/test-avltreehash_list.c (main): Update.
69662         * tests/test-rbtreehash_list.c (main): Update.
69663         * tests/test-linked_list.c (main): Update.
69664         * tests/test-linkedhash_list.c (main): Update.
69665         * tests/test-array_oset.c (main): Update.
69666
69667 2007-03-15  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69670         (gl_oset_create_empty): Add dispose_fn argument.
69671         (struct gl_oset_implementation): Add dispose_fn argument to
69672         'create_empty' method.
69673         (struct gl_oset_impl_base): Add dispose_fn field.
69674         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69675         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69676         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69677         values.
69678         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69679         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69680         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69681         dropped value.
69682         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69683         dropped value.
69684         * tests/test-array_oset.c (main): Update.
69685         * tests/test-avltree_oset.c (main): Update.
69686         * tests/test-rbtree_oset.c (main): Update.
69687         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69688
69689 2007-03-13  Bruno Haible  <bruno@clisp.org>
69690
69691         * tests/test-stdbool.c (i): Update after last patch.
69692
69693 2007-03-12  Bruno Haible  <bruno@clisp.org>
69694
69695         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69696         the iswprint macro. Needed on Solaris 2.5.1.
69697
69698 2007-03-12  Bruno Haible  <bruno@clisp.org>
69699
69700         * tests/test-printf-frexp.c (main): Declare x as volatile.
69701
69702 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69703
69704         * doc/gnulib.texi (Build robot for gnulib): New section.
69705
69706 2007-03-12  Jim Meyering  <jim@meyering.net>
69707
69708         * build-aux/bootstrap: New file.
69709         * build-aux/bootstrap.conf: New file, from coreutils.
69710
69711 2007-03-11  Bruno Haible  <bruno@clisp.org>
69712
69713         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69714
69715 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69716
69717         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69718         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69719         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69720
69721 2007-03-11  Bruno Haible  <bruno@clisp.org>
69722
69723         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69724         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69725
69726 2007-03-11  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69729         formula. Needed for SunPRO C 5.0.
69730
69731 2007-03-11  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/long-options (Depends-on): Add getopt.
69734
69735 2007-03-11  Bruno Haible  <bruno@clisp.org>
69736
69737         * modules/modechange (Depends-on): Add stdbool.
69738
69739 2007-03-11  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/i-ring (Depends-on): Add stdbool.
69742
69743 2007-03-11  Bruno Haible  <bruno@clisp.org>
69744
69745         * modules/gc-des (Depends-on): Add stdbool.
69746
69747 2007-03-11  Bruno Haible  <bruno@clisp.org>
69748
69749         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69750
69751 2007-03-11  Bruno Haible  <bruno@clisp.org>
69752
69753         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69754
69755 2007-03-11  Bruno Haible  <bruno@clisp.org>
69756
69757         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69758
69759 2007-03-11  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/vasnprintf.c (sprintf): Undefine.
69762
69763 2007-03-11  Bruno Haible  <bruno@clisp.org>
69764
69765         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69766         initializers in SunPRO C and Compaq C compilers.
69767
69768 2007-03-11  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69771         decrementing code ANSI C compliant.
69772
69773 2007-03-11  Bruno Haible  <bruno@clisp.org>
69774
69775         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69776         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69777
69778 2007-03-11  Bruno Haible  <bruno@clisp.org>
69779
69780         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69781         <stdbool.h> substitute doesn't pass.
69782
69783 2007-03-11  Bruno Haible  <bruno@clisp.org>
69784
69785         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69786
69787 2007-03-11  Bruno Haible  <bruno@clisp.org>
69788
69789         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69790         script, for submission to autobuild.josefsson.org.
69791
69792 2007-03-10  Bruno Haible  <bruno@clisp.org>
69793
69794         * modules/canonicalize-lgpl-tests: New file.
69795         * tests/test-canonicalize-lgpl.sh: New file.
69796         * tests/test-canonicalize-lgpl.c: New file.
69797
69798         * modules/c-strcase-tests: New file.
69799         * tests/test-c-strcase.sh: New file.
69800         * tests/test-c-strcasecmp.c: New file.
69801         * tests/test-c-strncasecmp.c: New file.
69802
69803         * modules/atexit-tests: New file.
69804         * tests/test-atexit.sh: New file.
69805         * tests/test-atexit.c: New file.
69806
69807 2007-03-10  Bruno Haible  <bruno@clisp.org>
69808
69809         * tests/test-binary-io.sh: Use temporary filenames that are not so
69810         likely to clash with those of other tests (in a parallel make).
69811         * tests/test-binary-io.c: Likewise.
69812
69813 2007-03-10  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69816         fallback; use #error instead.
69817         Suggested by Simon Josefsson.
69818
69819 2007-03-10  Bruno Haible  <bruno@clisp.org>
69820
69821         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69822         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69823         first and the last.
69824
69825 2007-03-10  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69828
69829 2007-03-10  Bruno Haible  <bruno@clisp.org>
69830
69831         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69832         "make distcheck".
69833         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69834         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69835         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69836
69837 2007-03-10  Bruno Haible  <bruno@clisp.org>
69838
69839         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69840         variable.
69841         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69842         variable.
69843
69844 2007-03-09  Eric Blake  <ebb9@byu.net>
69845         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69846
69847         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69848         types are not being provided by gnulib.
69849         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69850         types are supported.
69851
69852 2007-03-10  Bruno Haible  <bruno@clisp.org>
69853
69854         * lib/stdio_.h (__attribute__): New macro.
69855         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69856         vsprintf): Specify __attribute__ __format__ for GCC.
69857         Suggested by Eric Blake.
69858
69859 2007-03-09  Bruno Haible  <bruno@clisp.org>
69860
69861         * modules/printf-posix-tests: New file.
69862         * tests/test-printf-posix.sh: New file.
69863         * tests/test-printf-posix.c: New file.
69864
69865         * modules/printf-posix: New file.
69866         * lib/printf.c: New file.
69867         * m4/printf-posix-rpl.m4: New file.
69868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69869         REPLACE_PRINTF.
69870         * lib/stdio_.h (printf): New declaration.
69871         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69872         ____strfmon____): New macros.
69873         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69874         REPLACE_PRINTF.
69875
69876 2007-03-09  Bruno Haible  <bruno@clisp.org>
69877
69878         * tests/test-vasnprintf-posix2.sh: New file.
69879         * tests/test-vasnprintf-posix2.c: New file.
69880         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69881         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69882         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69883
69884         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69885         a locale dependent decimal point, rather than always '.'.
69886
69887 2007-03-09  Eric Blake  <ebb9@byu.net>
69888
69889         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69890         spite of platforms like Tandem/NSK that define it to -1.
69891
69892 2007-03-08  Bruno Haible  <bruno@clisp.org>
69893
69894         * modules/vprintf-posix-tests: New file.
69895         * tests/test-vprintf-posix.sh: New file.
69896         * tests/test-vprintf-posix.c: New file.
69897         * tests/test-printf-posix.h: New file.
69898
69899         * modules/vprintf-posix: New file.
69900         * lib/vprintf.c: New file.
69901         * m4/vprintf-posix.m4: New file.
69902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69903         REPLACE_VPRINTF.
69904         * lib/stdio_.h (vprintf): New declaration.
69905         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69906         REPLACE_VPRINTF.
69907
69908 2007-03-08  Bruno Haible  <bruno@clisp.org>
69909
69910         * modules/fprintf-posix-tests: New file.
69911         * tests/test-fprintf-posix.sh: New file.
69912         * tests/test-fprintf-posix.c: New file.
69913
69914         * modules/fprintf-posix: New file.
69915         * lib/fprintf.c: New file.
69916         * m4/fprintf-posix.m4: New file.
69917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69918         REPLACE_FPRINTF.
69919         * lib/stdio_.h (fprintf): New declaration.
69920         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69921         REPLACE_FPRINTF.
69922
69923 2007-03-08  Bruno Haible  <bruno@clisp.org>
69924
69925         * modules/vfprintf-posix-tests: New file.
69926         * tests/test-vfprintf-posix.sh: New file.
69927         * tests/test-vfprintf-posix.c: New file.
69928         * tests/test-fprintf-posix.h: New file.
69929         * tests/test-fprintf-posix.out: New file.
69930
69931         * modules/vfprintf-posix: New file.
69932         * lib/vfprintf.c: New file.
69933         * m4/vfprintf-posix.m4: New file.
69934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69935         REPLACE_VFPRINTF.
69936         * lib/stdio_.h (vfprintf): New declaration.
69937         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69938         REPLACE_VFPRINTF.
69939
69940 2007-03-08  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69943
69944 2007-03-08  Bruno Haible  <bruno@clisp.org>
69945
69946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69947         instead of 'expr' invocations.
69948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69953         Suggested by Paul Eggert.
69954
69955 2007-03-08  Bruno Haible  <bruno@clisp.org>
69956
69957         * modules/fseterr-tests: New file.
69958         * tests/test-fseterr.c: New file.
69959
69960         * modules/fseterr: New file.
69961         * lib/fseterr.h: New file.
69962         * lib/fseterr.c: New file.
69963
69964 2007-03-08  Bruno Haible  <bruno@clisp.org>
69965
69966         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69967         * lib/getopt_.h: Likewise.
69968         * lib/mbswidth.h: Likewise.
69969         * lib/setenv.h: Likewise.
69970         * lib/vasnprintf.h: Likewise.
69971         * lib/vasprintf.h: Likewise.
69972         * lib/verror.h: Likewise.
69973         * lib/xsetenv.h: Likewise.
69974         * lib/xvasprintf.h: Likewise.
69975
69976 2007-03-08  Jim Meyering  <jim@meyering.net>
69977
69978         * users.txt: Add parted.
69979
69980         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69981
69982 2007-03-07  Bruno Haible  <bruno@clisp.org>
69983
69984         * m4/printf.m4: Make the shell script snippets copy&pastable.
69985
69986 2007-03-02  Bruno Haible  <bruno@clisp.org>
69987
69988         * lib/netinet_in_.h: New file.
69989         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69990         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69991         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69992         (Depends-on): Add absolute-header.
69993         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69994         into netinet/in.h.
69995
69996 2007-03-03  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/sys_select_.h: New file.
69999         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70000         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70001         * modules/sys_select (Files): Add lib/sys_select_.h.
70002         (Depends-on): Add absolute-header.
70003         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70004         into sys/select.h.
70005
70006 2007-03-02  Bruno Haible  <bruno@clisp.org>
70007
70008         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70009         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70010         values.
70011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70012         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70013         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70014         * modules/sys_socket (Depends-on): Add absolute-header.
70015         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70016         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70017         (Include): Remove requirement of inclusion of <sys/types.h>.
70018
70019 2007-03-02  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/byteswap_.h (bswap_32): Fix formula.
70022
70023 2007-03-06  Bruno Haible  <bruno@clisp.org>
70024
70025         * modules/sprintf-posix-tests: New file.
70026         * tests/test-sprintf-posix.c: New file.
70027
70028         * modules/sprintf-posix: New file.
70029         * lib/sprintf.c: New file.
70030         * m4/sprintf-posix.m4: New file.
70031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70032         REPLACE_SPRINTF.
70033         * lib/stdio_.h (sprintf): New declaration.
70034         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70035         REPLACE_SPRINTF.
70036
70037 2007-03-06  Bruno Haible  <bruno@clisp.org>
70038
70039         * modules/vsprintf-posix-tests: New file.
70040         * tests/test-vsprintf-posix.c: New file.
70041         * tests/test-sprintf-posix.h: New file.
70042
70043         * modules/vsprintf-posix: New file.
70044         * lib/vsprintf.c: New file.
70045         * m4/vsprintf-posix.m4: New file.
70046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70047         REPLACE_VSPRINTF.
70048         * lib/stdio_.h (vsprintf): New declaration.
70049         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70050         REPLACE_VSPRINTF.
70051
70052 2007-03-06  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/vsnprintf (Depend-on): Remove minmax.
70055
70056 2007-03-06  Bruno Haible  <bruno@clisp.org>
70057
70058         * modules/snprintf-posix-tests: New file.
70059         * tests/test-snprintf-posix.c: New file.
70060
70061         * modules/snprintf-posix: New file.
70062         * m4/snprintf-posix.m4: New file.
70063         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70064         gl_FUNC_SNPRINTF.
70065         (gl_FUNC_SNPRINTF): Invoke it.
70066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70067         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70068         is set.
70069         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70070
70071 2007-03-06  Bruno Haible  <bruno@clisp.org>
70072
70073         * modules/vsnprintf-posix-tests: New file.
70074         * tests/test-vsnprintf-posix.c: New file.
70075         * tests/test-snprintf-posix.h: New file.
70076
70077         * modules/vsnprintf-posix: New file.
70078         * m4/vsnprintf-posix.m4: New file.
70079         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70080         gl_FUNC_VSNPRINTF.
70081         (gl_FUNC_VSNPRINTF): Invoke it.
70082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70083         * lib/stdio_.h (vsnprintf): Define as a replacement if
70084         REPLACE_VSNPRINTF is set.
70085         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70086
70087 2007-03-06  Bruno Haible  <bruno@clisp.org>
70088
70089         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70091
70092 2007-03-06  Bruno Haible  <bruno@clisp.org>
70093
70094         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70095         (asinl): Declare also if HAVE_DECL_ASINL is set.
70096         (atanl): Declare also if HAVE_DECL_ATANL is set.
70097         (ceill): Declare also if HAVE_DECL_CEILL is set.
70098         (cosl): Declare also if HAVE_DECL_COSL is set.
70099         (expl): Declare also if HAVE_DECL_EXPL is set.
70100         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70101         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70102         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70103         (logl): Declare also if HAVE_DECL_LOGL is set.
70104         (sinl): Declare also if HAVE_DECL_SINL is set.
70105         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70106         (tanl): Declare also if HAVE_DECL_TANL is set.
70107         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70109         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70110         declaration of frexpl, ldexpl.
70111         * modules/printf-frexpl (Depends-on): Add math.
70112         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70113
70114 2007-03-05  Bruno Haible  <bruno@clisp.org>
70115
70116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70117         frexpl and ldexpl are declared.
70118         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70119
70120 2007-03-05  Bruno Haible  <bruno@clisp.org>
70121
70122         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70123         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70124
70125 2007-03-05  Bruno Haible  <bruno@clisp.org>
70126
70127         * lib/stdio_.h: Include <stddef.h>.
70128
70129 2007-03-05  Bruno Haible  <bruno@clisp.org>
70130
70131         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70132
70133 2007-03-05  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70136         NetBSD 4, from Ralf Wildenhues.
70137
70138 2007-03-04  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/vasprintf.h: Update #if logic for the case when the functions
70141         exist but are overridden.
70142
70143 2007-03-04  Bruno Haible  <bruno@clisp.org>
70144
70145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70146         implementations: glibc-2.4 and MacOS X 10.3.
70147         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70148         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70149         * tests/test-vasprintf-posix.c (test_function): Likewise.
70150
70151 2007-03-04  Bruno Haible  <bruno@clisp.org>
70152
70153         * modules/vasprintf-posix-tests: New file.
70154         * tests/test-vasprintf-posix.c: New file.
70155
70156         * modules/vasprintf-posix: New file.
70157         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70158         defined.
70159         * m4/vasprintf-posix.m4: New file.
70160         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70161         gl_FUNC_VASPRINTF.
70162         (gl_FUNC_VASPRINTF): Invoke it.
70163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70164         here.
70165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70166
70167 2007-03-04  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70170         REPLACE_GETTIMEOFDAY.
70171         * modules/sys_time (Makefile.am): Likewise.
70172         * m4/sys_time_h.m4: Likewise.
70173         * m4/gettimeofday.m4: Likewise.
70174
70175 2007-03-04  Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/vasnprintf-posix-tests: New file.
70178         * tests/test-vasnprintf-posix.c: New file.
70179
70180         * modules/vasnprintf-posix: New file.
70181         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70182         printf-frexpl.h.
70183         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70184         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70185         REPLACE_VASNPRINTF is defined.
70186         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70187         gl_FUNC_VASNPRINTF.
70188         (gl_FUNC_VASNPRINTF): Invoke it.
70189         * m4/vasnprintf-posix.m4: New file.
70190         * m4/printf.m4: New file.
70191
70192 2007-03-04  Bruno Haible  <bruno@clisp.org>
70193
70194         Compile progreloc.c only if --enable-relocatable is specified.
70195         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70196         if --enable-relocatable was specified.
70197         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70198         lib_SOURCES.
70199
70200 2007-03-04  Jim Meyering  <jim@meyering.net>
70201
70202         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70203         Use it consistently, rather than enumerating errno constants.
70204
70205 2007-03-04  Bruno Haible  <bruno@clisp.org>
70206
70207         * modules/xvasprintf-tests: New file.
70208         * tests/test-xvasprintf.c: New file.
70209
70210         * modules/vasprintf-tests: New file.
70211         * tests/test-vasprintf.c: New file.
70212
70213         * modules/vasnprintf-tests: New file.
70214         * tests/test-vasnprintf.c: New file.
70215
70216         * modules/vsnprintf-tests: New file.
70217         * tests/test-vsnprintf.c: New file.
70218
70219         * modules/snprintf-tests: New file.
70220         * tests/test-snprintf.c: New file.
70221
70222 2007-03-04  Bruno Haible  <bruno@clisp.org>
70223
70224         Compile relocatable.c only if --enable-relocatable is specified.
70225         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70226         gl_RELOCATABLE_LIBRARY.
70227         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70228         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70229         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70230         gl_RELOCATABLE_LIBRARY.
70231         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70232         (Makefile.am): Remove lib_SOURCES.
70233         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70234         gl_RELOCATABLE_LIBRARY.
70235         (Makefile.am): Remove lib_SOURCES.
70236         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70237         always.
70238         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70239         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70240
70241 2007-03-04  Bruno Haible  <bruno@clisp.org>
70242
70243         * modules/argmatch-tests: New file.
70244         * tests/test-argmatch.c: New file.
70245
70246         * tests/test-allocsa.c (main): Halve the number of loop runs.
70247
70248         * modules/alloca-opt-tests: New file.
70249         * tests/test-alloca-opt.c: New file.
70250
70251 2007-03-04  Jim Meyering  <jim@meyering.net>
70252
70253         Work around difference between Linux ACLs and Solaris 10 ZFS.
70254         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70255         for EINVAL.
70256
70257 2007-03-03  Bruno Haible  <bruno@clisp.org>
70258
70259         * modules/relocatable-prog (Depends-on): Add back progreloc's
70260         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70261
70262 2007-03-03  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70265         * modules/relocatable-lib: New file.
70266
70267 2007-03-03  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/relocatable-prog: Renamed from modules/relocatable.
70270         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70271
70272 2007-03-03  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70275         m4/relocatable-lib.m4.
70276         (Depends-on): Remove 'relocatable'.
70277         (configure.ac): Add gl_RELOCATABLE_NOP.
70278
70279 2007-03-03  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/relocatable-prog-wrapper: New file.
70282         * modules/relocatable (Depends-on): Add it. Remove all other
70283         dependencies except progname.
70284         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70285
70286         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70287         (gl_FUNC_STRERROR): Nop.
70288         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70289
70290         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70291         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70292
70293         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70294         (gl_FUNC_READLINK): Update.
70295
70296         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70297
70298 2007-03-03  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70301         * modules/xreadlink (Depends-on): Add unistd.
70302         * modules/xreadlink-with-size (Depends-on): Likewise.
70303
70304 2007-03-03  Bruno Haible  <bruno@clisp.org>
70305
70306         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70307         extracted from gt_FUNC_SETENV.
70308         (gt_FUNC_SETENV): Remove macro.
70309         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70310         remove gt_FUNC_SETENV.
70311
70312 2007-03-03  Bruno Haible  <bruno@clisp.org>
70313
70314         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70315         ENABLE_RELOCATABLE here.
70316         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70317
70318 2007-03-03  Bruno Haible  <bruno@clisp.org>
70319
70320         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70321         * tests/test-rbtreehash_list.c: Include progname.h.
70322         (main): Call set_program_name.
70323
70324         * modules/rbtree-oset-tests (Depends-on): Add progname.
70325         * tests/test-rbtree_oset.c: Include progname.h.
70326         (main): Call set_program_name.
70327
70328         * modules/rbtree-list-tests (Depends-on): Add progname.
70329         * tests/test-rbtree_list.c: Include progname.h.
70330         (main): Call set_program_name.
70331
70332         * modules/linked-list-tests (Depends-on): Add progname.
70333         * tests/test-linked_list.c: Include progname.h.
70334         (main): Call set_program_name.
70335
70336 2007-03-03  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70339         All uses of __restrict changed to _Restrict_.
70340         * lib/glob_.h (__restrict): Remove macro.
70341
70342 2007-03-02  Bruno Haible  <bruno@clisp.org>
70343
70344         * modules/gettext (configure.ac): Require gettext infrastructure
70345         from version 0.16.1.
70346
70347 2007-03-02  Bruno Haible  <bruno@clisp.org>
70348
70349         * modules/linkedhash-list-tests (Depends-on): Add progname.
70350         * tests/test-linkedhash_list.c: Include progname.h.
70351         (main): Call set_program_name.
70352
70353         * modules/carray-list-tests (Depends-on): Add progname.
70354         * tests/test-carray_list.c: Include progname.h.
70355         (main): Call set_program_name.
70356
70357         * modules/avltreehash-list-tests (Depends-on): Add progname.
70358         * tests/test-avltreehash_list.c: Include progname.h.
70359         (main): Call set_program_name.
70360
70361         * modules/avltree-oset-tests (Depends-on): Add progname.
70362         * tests/test-avltree_oset.c: Include progname.h.
70363         (main): Call set_program_name.
70364
70365         * modules/avltree-list-tests (Depends-on): Add progname.
70366         * tests/test-avltree_list.c: Include progname.h.
70367         (main): Call set_program_name.
70368
70369         * modules/array-oset-tests (Depends-on): Add progname.
70370         * tests/test-array_oset.c: Include progname.h.
70371         (main): Call set_program_name.
70372
70373         * modules/array-list-tests (Depends-on): Add progname.
70374         * tests/test-array_list.c: Include progname.h.
70375         (main): Call set_program_name.
70376
70377         * modules/argp-tests (Depends-on): Add progname.
70378         * tests/test-argp.c: Include argp.h first. Include progname.h.
70379         (main): Call set_program_name.
70380
70381 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70382
70383         * doc/gnulib-tool.texi (Initial import): Reword description of
70384         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70385         limited effect even if defined after the first system include.
70386
70387 2007-03-01  Bruno Haible  <bruno@clisp.org>
70388
70389         * build-aux/config.libpath: Update to libtool-1.5.22.
70390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70391
70392 2007-03-01  Bruno Haible  <bruno@clisp.org>
70393
70394         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70395         foo_CFLAGS.
70396         Reported by Ralf Wildenhues.
70397
70398 2007-03-01  Bruno Haible  <bruno@clisp.org>
70399
70400         * build-aux/install-reloc: Remove object files left over by some
70401         compilers.
70402         Reported by Ralf Wildenhues.
70403
70404 2007-03-01  Bruno Haible  <bruno@clisp.org>
70405
70406         * build-aux/install-reloc: Break long lines.
70407
70408 2007-03-01  Bruno Haible  <bruno@clisp.org>
70409
70410         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70411         Reported by Ralf Wildenhues.
70412
70413 2007-03-01  Bruno Haible  <bruno@clisp.org>
70414
70415         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70416         include ordering constraints.
70417
70418 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70422         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70423         as another example.
70424         * lib/time_.h: Fix misspelling.
70425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70426         Require gl_HEADER_TIME_H_DEFAULTS.
70427         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70428         * m4/time_r.m4 (gl_TIME_R): Likewise.
70429         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70430
70431 2007-03-01  Bruno Haible  <bruno@clisp.org>
70432
70433         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70434         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70435
70436 2007-03-01  Jim Meyering  <jim@meyering.net>
70437
70438         * modules/xreadlink (Maintainer): Add my name.
70439         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70440
70441 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70442             Bruno Haible  <bruno@clisp.org>
70443
70444         * build-aux/install-reloc: Compile also c-ctype.c.
70445         * build-aux/relocatable.sh.in: New file.
70446         * doc/relocatable.texi: New file.
70447         * doc/relocatable-maint.texi: New file.
70448         * doc/gnulib.texi: Include relocatable-maint.texi.
70449         * lib/progreloc.c: Include unistd.h unconditionally.
70450         * lib/relocwrapper.c: Include unistd.h unconditionally.
70451         Include c-ctype.h.
70452         (add_dotbin): Use c_tolower.
70453         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70454         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70455         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70456         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70457         to m4/relocatable-lib.m4.
70458         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70459         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70460         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70461         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70462         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70463         * modules/relocatable: New file.
70464         * modules/relocatable-lib: New file.
70465         * modules/relocatable-script: New file.
70466
70467 2007-02-28  Bruno Haible  <bruno@clisp.org>
70468
70469         Import --enable-relocatable infrastructure.
70470         * build-aux/config.libpath: New file, from GNU gettext.
70471         * build-aux/install-reloc: New file, from GNU gettext.
70472         * build-aux/reloc-ldflags: New file, from GNU gettext.
70473         * lib/relocatable.h: New file, from GNU gettext.
70474         * lib/relocatable.c: New file, from GNU gettext.
70475         * lib/relocwrapper.c: New file, from GNU gettext.
70476         * m4/relocatable.m4: New file, from GNU gettext.
70477
70478 2007-02-28  Bruno Haible  <bruno@clisp.org>
70479
70480         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70481
70482         * modules/xreadlink: New file, from GNU gettext with modifications.
70483         * lib/xreadlink.c: New file, from GNU gettext.
70484         * lib/xreadlink.h: Add comments.
70485         (xreadlink): New declaration.
70486
70487         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70488         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70489         lib/xreadlink-with-size.c.
70490         (configure.ac): Remove gl_XREADLINK invocation.
70491         (Makefile.am): Augment lib_SOURCES.
70492         * m4/xreadlink.m4: Remove file.
70493         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70494         (xreadlink_with_size): Renamed from xreadink.
70495         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70496         * modules/canonicalize (Depends-on): Replace xreadlink with
70497         xreadlink-with-size.
70498         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70499
70500 2007-02-25  Jim Meyering  <jim@meyering.net>
70501
70502         * build-aux/announce-gen: When complaining about excess arguments,
70503         list them.
70504
70505 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         * README: Document signed integer overflow situation more
70508         accurately.
70509
70510 2007-02-25  Bruno Haible  <bruno@clisp.org>
70511
70512         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70513         'a' or 'A' conversion.
70514
70515 2007-02-25  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/filename: Renamed from modules/pathname.
70518         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70519         lib/concatpath.c with lib/concat-filename.c.
70520         (Makefile.am): Update.
70521         (Include): Replace pathname.h with filename.h.
70522         * lib/filename.h: Renamed from lib/pathname.h.
70523         (concatenated_filename): Renamed from concatenated_pathname.
70524         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70525         (concatenated_filename): Renamed from concatenated_pathname.
70526         * lib/findprog.c: Include filename.h instead of pathname.h.
70527         (find_in_path): Update.
70528         * lib/javacomp.c: Include filename.h instead of pathname.h.
70529         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70530         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70531         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70532         is_oldgcj_14_13_usable, is_javac_usable): Update.
70533         * lib/javaexec.c: Include filename.h instead of pathname.h.
70534         (execute_java_class): Update.
70535         * modules/findprog: Update.
70536         * modules/javacomp: Update.
70537         * modules/javaexec: Update.
70538         * MODULES.html.sh (File system functions): Add 'filename', remove
70539         'pathname'.
70540
70541 2007-02-25  Bruno Haible  <bruno@clisp.org>
70542
70543         * modules/printf-frexpl-tests: New file.
70544         * tests/test-printf-frexpl.c: New file.
70545
70546         * modules/printf-frexpl: New file.
70547         * lib/printf-frexpl.h: New file.
70548         * lib/printf-frexpl.c: New file.
70549         * m4/printf-frexpl.m4: New file.
70550
70551 2007-02-25  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/printf-frexp-tests: New file.
70554         * tests/test-printf-frexp.c: New file.
70555
70556         * modules/printf-frexp: New file.
70557         * lib/printf-frexp.h: New file.
70558         * lib/printf-frexp.c: New file.
70559         * m4/printf-frexp.m4: New file.
70560
70561 2007-02-25  Bruno Haible  <bruno@clisp.org>
70562
70563         Assume automake >= 1.10 for the tests.
70564         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70565         * modules/arctwo-tests: Likewise.
70566         * modules/argp-tests: Likewise.
70567         * modules/avltree-list-tests: Likewise.
70568         * modules/avltree-oset-tests: Likewise.
70569         * modules/avltreehash-list-tests: Likewise.
70570         * modules/carray-list-tests: Likewise.
70571         * modules/crc-tests: Likewise.
70572         * modules/des-tests: Likewise.
70573         * modules/gc-arcfour-tests: Likewise.
70574         * modules/gc-arctwo-tests: Likewise.
70575         * modules/gc-des-tests: Likewise.
70576         * modules/gc-hmac-md5-tests: Likewise.
70577         * modules/gc-hmac-sha1-tests: Likewise.
70578         * modules/gc-md2-tests: Likewise.
70579         * modules/gc-md4-tests: Likewise.
70580         * modules/gc-md5-tests: Likewise.
70581         * modules/gc-pbkdf2-sha1-tests: Likewise.
70582         * modules/gc-rijndael-tests: Likewise.
70583         * modules/gc-sha1-tests: Likewise.
70584         * modules/gc-tests: Likewise.
70585         * modules/getaddrinfo-tests: Likewise.
70586         * modules/hmac-md5-tests: Likewise.
70587         * modules/hmac-sha1-tests: Likewise.
70588         * modules/linked-list-tests: Likewise.
70589         * modules/linkedhash-list-tests: Likewise.
70590         * modules/lock-tests: Likewise.
70591         * modules/md2-tests: Likewise.
70592         * modules/md4-tests: Likewise.
70593         * modules/md5-tests: Likewise.
70594         * modules/rbtree-list-tests: Likewise.
70595         * modules/rbtree-oset-tests: Likewise.
70596         * modules/rbtreehash-list-tests: Likewise.
70597         * modules/read-file-tests: Likewise.
70598         * modules/rijndael-tests: Likewise.
70599         * modules/stdint-tests: Likewise.
70600         * modules/tls-tests: Likewise.
70601
70602 2007-02-24  Bruno Haible  <bruno@clisp.org>
70603
70604         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70605         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70606         function; instead check whether isnan with a double argument links.
70607         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70608         function; instead check whether isnan with a 'long double' argument
70609         links.
70610         Reported by Eric Blake <ebb9@byu.net>.
70611
70612 2007-02-24  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70615         defined.
70616         * lib/isnanl.c: Remove all code. Just include isnan.c.
70617         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70618
70619 2007-02-25  Jim Meyering  <jim@meyering.net>
70620
70621         Avoid conflicting types for 'unsetenv' on FreeBSD.
70622         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70623         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70624         in stdlib.h.
70625
70626 2007-02-24  Bruno Haible  <bruno@clisp.org>
70627
70628         * modules/isnanl-nolibm-tests: New file.
70629         * tests/test-isnanl.c: New file.
70630
70631         * modules/isnanl-nolibm: New file.
70632         * lib/isnanl.h: New file.
70633         * lib/isnanl.c: New file.
70634         * m4/isnanl.m4: New file.
70635
70636 2007-02-24  Bruno Haible  <bruno@clisp.org>
70637
70638         * modules/isnan-nolibm-tests: New file.
70639         * tests/test-isnan.c: New file.
70640
70641         * modules/isnan-nolibm: New file.
70642         * lib/isnan.h: New file.
70643         * lib/isnan.c: New file.
70644         * m4/isnan.m4: New file.
70645
70646 2007-02-24  Bruno Haible  <bruno@clisp.org>
70647
70648         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70649         assume that an exponent fits in 20 bits.
70650
70651 2007-02-24  Jim Meyering  <jim@meyering.net>
70652
70653         * m4/regex.m4: Update the description of the configure-time option,
70654         --without-included-regex, to state accurately what the defaults are,
70655         and perhaps to give people an idea why using this option is risky.
70656
70657 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70660         loops on small arguments.  This attempts to avoid the problem
70661         Bruno Haible reported for AIX 4.3.2 in
70662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70663
70664 2007-02-23  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70667         Needed for help2man.
70668
70669 2007-02-23  Karl Berry  <karl@gnu.org>
70670
70671         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70672         exists, foo.h should be cvs-ignored, not committed.
70673
70674 2007-02-23  Eric Blake  <ebb9@byu.net>
70675
70676         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70677         * lib/stat-time.h (includes): Likewise.
70678         * lib/utimecmp.c (includes): Likewise.
70679         * lib/utimens.h (includes): Likewise.
70680         * lib/getdate.y (includes): Also include "timespec.h" for use
70681         internal to the module.
70682         * modules/utimens (Depends-on): Revert yesterday's patch.
70683         * modules/nanosleep (Depends-on): Add missing dependency.
70684
70685 2007-02-22  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/glob.c: Don't include getlogin_r.h.
70688
70689 2007-02-22  Jim Meyering  <jim@meyering.net>
70690
70691         * modules/utimens (Depends-on): Add timespec, required for
70692         utimens.h's inclusion of timespec.h.
70693
70694 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70697         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70698         Schwab in
70699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70700         I'll try to think of a better way to fix the Solaris problem.
70701
70702         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70703         like glibc; on Solaris 10, it fails with errno == EINVAL.
70704         POSIX says the behavior is unspecified if the first argument is NULL,
70705         so play it safe and never pass NULL to the system getcwd.
70706
70707 2007-02-21  Jim Meyering  <jim@meyering.net>
70708
70709         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70710         of gettimeofday.  It would conflict with the one now always
70711         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70712         an IRIX 6.5 build failure.
70713
70714 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         Minor fixups to port to Solaris 10 with Sun C 5.8.
70717         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70718         * modules/getcwd (Depends-on): Add dirfd.
70719         * lib/putenv.c (putenv): #undef it.
70720         (rpl_putenv): New decl.
70721         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70722
70723 2007-02-20  Bruno Haible  <bruno@clisp.org>
70724
70725         * modules/stdio-tests: New file.
70726         * tests/test-stdio.c: New file.
70727
70728         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70729         (Depends-on): Add stdio.
70730         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70731         (Include): Use <stdio.h> instead of vsnprintf.h.
70732         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70733         HAVE_DECL_VSNPRINTF.
70734         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70735
70736         * modules/snprintf (Files): Remove lib/snprintf.h.
70737         (Depends-on): Add stdio.
70738         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70739         (Include): Use <stdio.h> instead of snprintf.h.
70740         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70741         HAVE_DECL_SNPRINTF.
70742         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70743         * lib/getaddrinfo.c: Likewise.
70744
70745         * modules/stdio: New file.
70746         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70747         * lib/snprintf.h: Remove file.
70748         * lib/vsnprintf.h: Remove file.
70749         * lib/.cppi-disable: Remove snprintf.h.
70750         * m4/stdio_h.m4: New file.
70751         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70752
70753 2007-02-20  Jim Meyering  <jim@meyering.net>
70754
70755         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70756         used by e.g., mingw.  From Bruno Haible.
70757
70758 2007-02-19  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70761         warnings.
70762         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70763
70764 2007-02-19  Bruno Haible  <bruno@clisp.org>
70765
70766         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70767         from mingw users.
70768
70769 2007-02-19  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70772         warnings.
70773         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70774
70775 2007-02-19  Jim Meyering  <jim@meyering.net>
70776
70777         Don't use FD after a successful "fdopendir (fd)".
70778         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70779         Reset it by calling dirfd on the just-obtained DIR*.
70780
70781         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70782         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70783
70784 2007-02-18  Bruno Haible  <bruno@clisp.org>
70785
70786         * lib/readlink.c: Include <unistd.h>.
70787         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70788         HAVE_READLINK.
70789         * modules/readlink (Depends-on): Add unistd.
70790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70791         (Include): Add <unistd.h>.
70792
70793         * lib/getlogin_r.h: Remove file.
70794         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70795         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70796         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70797         HAVE_DECL_GETLOGIN_R.
70798         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70800         (Include): Use <unistd.h> instead of getlogin_r.h.
70801
70802         * lib/getcwd.h: Remove file.
70803         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70804         * lib/xgetcwd.c: Likewise.
70805         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70806         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70807         * modules/getcwd (Files): Remove lib/getcwd.h.
70808         (Depends-on): Add unistd.
70809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70810         (Include): Use <unistd.h> instad of getcwd.h.
70811
70812         * lib/ftruncate.c: Include <unistd.h> first.
70813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70814         Set HAVE_FTRUNCATE.
70815         * modules/ftruncate (Depends-on): Add unistd.
70816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70817
70818         * lib/fchdir.c: Include <unistd.h> first.
70819         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70821         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70822         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70823         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70824
70825         * lib/dup2.c: Include <unistd.h> first.
70826         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70827         HAVE_DUP2.
70828         * modules/dup2 (Depends-on): Add unistd.
70829         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70830
70831         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70832         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70833         REPLACE_CHOWN. Don't define chown as a macro here.
70834         * modules/chown (Depends-on): Add unistd.
70835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70836
70837         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70838         Add definition for GL_LINK_WARNING.
70839         (chown, dup2): New declarations.
70840         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70841         link warning.
70842         (ftruncate): New declaration.
70843         (getcwd): New declaration, taken from old getcwd.h.
70844         (getlogin_r): New declaration, taken from old getlogin_r.h.
70845         (readlink): New declaration.
70846         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70847         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70848         (gl_PREREQ_UNISTD): Remove macro.
70849         (gl_UNISTD_MODULE_INDICATOR): New macro.
70850         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70851         many new variables. Don't set UNISTD_H.
70852         * modules/unistd (Description): Change.
70853         (Depends-on): Add link-warning.
70854         (configure.ac): Update.
70855         (Makefile.am): Create unistd.h always. Substitute many new variables
70856         into it.
70857
70858 2007-02-18  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70861         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70862         HAVE_GETSUBOPT.
70863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70864         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70865         * lib/getsubopt.h: Remove file.
70866         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70867         (Depends-on): Add stdlib.
70868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70869         (Includes): Use <stdlib.h> instead of getsubopt.h.
70870         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70871         Set HAVE_GETSUBOPT.
70872         * lib/getsubopt.c: Don't include getsubopt.h.
70873
70874 2007-02-18  Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/fchdir (Depends-on): Add dup2.
70877
70878 2007-02-18  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/stdlib_.h: Handle glibc's special invocation convention
70881         specially.
70882
70883 2007-02-18  Bruno Haible  <bruno@clisp.org>
70884
70885         * modules/stdlib-tests: New file.
70886         * tests/test-stdlib.c: New file.
70887
70888         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70889         (Depends-on): Add stdlib.
70890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70891         (Includes): Use <stdlib.h> instead of mkstemp.h.
70892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70893         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70894         * lib/mkstemp.c: Don't include mkstemp.h.
70895         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70896         * lib/stdlib--.h: Don't include mkstemp.h.
70897
70898         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70899         (Depends-on): Add stdlib.
70900         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70901         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70902         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70903         HAVE_MKDTEMP.
70904         * lib/mkdtemp.c: Don't include mkdtemp.h.
70905         * lib/clean-temp.c: Don't include mkdtemp.h.
70906
70907         * modules/exit (Files): Remove lib/exit.h.
70908         (Depends-on): Add stdlib.
70909         (Makefile.am): Remove lib_SOURCES.
70910         (Include): Use <stdlib.h> instead of exit.h.
70911         * lib/argmatch.c: Don't include exit.h.
70912         * lib/execute.c: Likewise.
70913         * lib/pagealign_alloc.c: Likewise.
70914         * lib/pipe.c: Likewise.
70915         * lib/wait-process.c: Likewise.
70916         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70917         * lib/exitfail.c: Likewise.
70918         * lib/savewd.c: Likewise.
70919         * lib/xsetenv.c: Likewise.
70920
70921         * modules/stdlib: New file.
70922         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70923         and extra comments about mkstemp().
70924         * lib/exit.h: Remove file.
70925         * lib/mkdtemp.h: Remove file.
70926         * lib/mkstemp.h: Remove file.
70927         * m4/stdlib_h.m4: New file.
70928         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70929
70930 2007-02-18  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/math-tests: New file.
70933         * tests/test-math.c: New file.
70934
70935         * modules/math: New file.
70936         * modules/mathl (Files): Remove lib/mathl.h.
70937         (Depends-on): Add math.
70938         (Makefile.am): Don't mention mathl.h.
70939         (Include): Use <math.h> instead of mathl.h.
70940         * lib/math_.h: New file.
70941         * lib/mathl.h: Remove file.
70942         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70943         mathl.h.
70944         * lib/asinl.c: Likewise.
70945         * lib/atanl.c: Likewise.
70946         * lib/ceill.c: Likewise.
70947         * lib/cosl.c: Likewise.
70948         * lib/expl.c: Likewise.
70949         * lib/floorl.c: Likewise.
70950         * lib/frexpl.c: Likewise.
70951         * lib/ldexpl.c: Likewise.
70952         * lib/logl.c: Likewise.
70953         * lib/sincosl.c: Likewise.
70954         * lib/sinl.c: Likewise.
70955         * lib/sqrtl.c: Likewise.
70956         * lib/tanl.c: Likewise.
70957         * lib/trigl.c: Likewise.
70958         * m4/math_h.m4: New file.
70959         * MODULES.html.sh (Mathematics): Add math.
70960
70961 2007-02-17  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/wctype-tests: New file.
70964         * tests/test-wctype.c: New file.
70965
70966         * modules/wchar-tests: New file.
70967         * tests/test-wchar.c: New file.
70968
70969         * modules/unistd-tests: New file.
70970         * tests/test-unistd.c: New file.
70971
70972         * modules/time-tests: New file.
70973         * tests/test-time.c: New file.
70974
70975         * modules/sysexits-tests: New file.
70976         * tests/test-sysexits.c: New file.
70977
70978         * modules/sys_time-tests: New file.
70979         * tests/test-sys_time.c: New file.
70980
70981         * modules/sys_stat-tests: New file.
70982         * tests/test-sys_stat.c: New file.
70983
70984         * modules/sys_socket-tests: New file.
70985         * tests/test-sys_socket.c: New file.
70986
70987         * modules/sys_select-tests: New file.
70988         * tests/test-sys_select.c: New file.
70989
70990         * modules/string-tests: New file.
70991         * tests/test-string.c: New file.
70992
70993         * modules/stdbool-tests: New file.
70994         * tests/test-stdbool.c: New file.
70995
70996         * modules/netinet_in-tests: New file.
70997         * tests/test-netinet_in.c: New file.
70998
70999         * modules/inttypes-tests: New file.
71000         * tests/test-inttypes.c: New file.
71001
71002         * modules/fcntl-tests: New file.
71003         * tests/test-fcntl.c: New file.
71004
71005         * modules/byteswap-tests: New file.
71006         * tests/test-byteswap.c: New file.
71007
71008         * modules/arpa_inet-tests: New file.
71009         * tests/test-arpa_inet.c: New file.
71010
71011 2007-02-17  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71014         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71015         if the corresponding module is not enabled. Emit link warnings if
71016         the function is used nevertheless.
71017         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71018         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71019         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71020         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71021         * modules/inttypes (Depends-on): Add link-warning.
71022         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71023         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71024         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71025         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71026         * modules/imaxdiv (configure.ac): Likewise.
71027         * modules/strtoimax (configure.ac): Likewise.
71028         * modules/strtoumax (configure.ac): Likewise.
71029
71030 2007-02-17  Bruno Haible  <bruno@clisp.org>
71031
71032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71033         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71035         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71036
71037 2007-02-17  Bruno Haible  <bruno@clisp.org>
71038
71039         * modules/link-warning: New file.
71040         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71041         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71042         * modules/string (Depends-on): Add link-warning.
71043         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71044         string.h.
71045         * MODULES.html.sh (Support for building libraries and executables): Add
71046         link-warning.
71047
71048 2007-02-17  Bruno Haible  <bruno@clisp.org>
71049
71050         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71051         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71052         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71053         long lines.
71054
71055 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71056             Bruno Haible  <bruno@clisp.org>
71057
71058         * modules/tmpfile: New file.
71059         * lib/tmpfile.c: New file.
71060         * m4/tmpfile.m4: New file.
71061         * MODULES.html.sh (func_all_modules): New section "Input/output".
71062
71063 2007-02-15  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71066         (supports_delete_on_close): New function.
71067         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71068
71069 2007-02-14  Bruno Haible  <bruno@clisp.org>
71070
71071         * modules/mbspcasecmp-tests: New file.
71072         * tests/test-mbspcasecmp.sh: New file.
71073         * tests/test-mbspcasecmp.c: New file.
71074
71075         New module mbspcasecmp.
71076         * modules/mbspcasecmp: New file.
71077         * lib/mbspcasecmp.c: New file.
71078         * lib/string_.h (strncasecmp): Change warning message.
71079         (mbspcasecmp): New declaration.
71080         * m4/mbspcasecmp.m4: New file.
71081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71082         GNULIB_MBSPCASECMP.
71083         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71084         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71085
71086 2007-02-14  Bruno Haible  <bruno@clisp.org>
71087
71088         * modules/mbsncasecmp-tests: New file.
71089         * tests/test-mbsncasecmp.sh: New file.
71090         * tests/test-mbsncasecmp.c: New file.
71091
71092         New module mbsncasecmp.
71093         * modules/mbsncasecmp: New file.
71094         * lib/mbsncasecmp.c: New file.
71095         * lib/string_.h (mbsncasecmp): New declaration.
71096         * m4/mbsncasecmp.m4: New file.
71097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71098         GNULIB_MBSNCASECMP.
71099         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71100         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71101
71102 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71105         Verify that it doesn't overlap with our flags.
71106         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71107         do not have the desired effect in multibyte locales; instead, use
71108         mbscasecmp.
71109         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71110         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71111         we don't require GNU fnmatch ourselves (if our users require it, they
71112         should do so explicitly).
71113
71114         Fix regex code so it doesn't rely on strcasecmp.
71115         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71116         Otherwise, include gnulib's langinfo.h.
71117         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71118         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71119         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71120         * modules/regex (FILES): Remove m4/codeset.m4.
71121         (Depends-on): Add localcharset.  Remove strcase.
71122
71123 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71124
71125         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71126         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71127
71128 2007-02-13  Bruno Haible  <bruno@clisp.org>
71129
71130         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71132
71133 2007-02-12  Bruno Haible  <bruno@clisp.org>
71134
71135         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71136         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71137         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71138         time warning rather than a link error.
71139
71140 2007-02-12  Bruno Haible  <bruno@clisp.org>
71141
71142         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71143         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71145
71146 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71149         args, not 2.
71150
71151 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         New module 'time', so that apps can include <time.h> as per
71154         POSIX and GNU instead of separate include files like time_r.h
71155         and timegm.h.  This implementation tries out a simpler approach
71156         for replacing decls in standard include files (as compared to
71157         the string module), somewhat as an experiment.
71158
71159         * config/srclist.txt: Comment out mktime.c for now.
71160         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71161         since it doesn't apply any more.  Use generic wording instead.
71162         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71163         'time'.
71164         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71165         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71166         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71167         Don't include <sys/types.h>; no longer needed since we assume C89.
71168         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71169         * lib/strftime.c: Likewise.
71170         * lib/time_r.c: Likewise.
71171         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71172         * lib/nanosleep.c: Include <time.h> first, to check interface.
71173         * lib/strptime.c: Likewise.
71174         * lib/time_r.c: Likewise.
71175         * lib/timegm.c: Likewise.
71176         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71177         needed.
71178         * lib/timegm.c: Don't include timegm.h; no longer needed.
71179         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71180         time.h now handles any problems in that area.
71181         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71182         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71183         that time.h defines struct timespec.
71184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71185         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71186         handles that.
71187         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71188         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71189         needed.  Set REPLACE_LOCALTIME.
71190         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71191         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71192         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71193         nanosleep; time_h.m4 now does that.  Don't require
71194         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71195         module handles this now.
71196         * modules/getdate (Depends-on): Remove timespec.  Add time.
71197         * modules/nanosleep (Depends-on): Likewise.
71198         * modules/stat-time (Depends-on): Likewise.
71199         * modules/nanosleep (Include): Include time.h, not timespec.h.
71200         * modules/strptime (Files): Remove lib/strptime.h.
71201         (Depends-on): Add extensions, time.
71202         (Include): Include time.h, not strptime.h.
71203         * modules/time_r (Files): Remove lib/time_r.h.
71204         (Depends-on): Add time.
71205         (Include): Include time.h, not time_r.h.
71206         * modules/timegm: Likewise.
71207         * modules/timespec (Description): Now does timespec-related decls
71208         of our own, instead of struct timespec itself.
71209         (Depends-on): Add time; remove extensions.
71210         (Maintainer): Add self.
71211         * modules/utimecmp (Depends-on): Add time; remove timespec.
71212         * modules/utimens (Depends-on): Likewise.
71213         * modules/xnanosleep (Depends-on): Likewise.
71214
71215 2007-02-11  Bruno Haible  <bruno@clisp.org>
71216
71217         * lib/c-strstr.c: Include allocsa.h.
71218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71219         * lib/c-strcasestr.c: Include allocsa.h.
71220         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71221         * lib/strcasestr.c: Include allocsa.h.
71222         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71223         * lib/mbsstr.c: Include allocsa.h.
71224         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71225         allocsa/freesa instead of malloc/free.
71226         * lib/mbscasestr.c: Include allocsa.h.
71227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71228         allocsa/freesa instead of malloc/free.
71229         * modules/c-strstr (Depends-on): Add allocsa.
71230         * modules/c-strcasestr (Depends-on): Likewise.
71231         * modules/strcasestr (Depends-on): Likewise.
71232         * modules/mbsstr (Depends-on): Likewise.
71233         * modules/mbscasestr (Depends-on): Likewise.
71234
71235 2007-02-11  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71238
71239         * modules/mbsspn-tests: New file.
71240         * tests/test-mbsspn.sh: New file.
71241         * tests/test-mbsspn.c: New file.
71242
71243 2007-02-11  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71246
71247         * modules/mbspbrk-tests: New file.
71248         * tests/test-mbspbrk.sh: New file.
71249         * tests/test-mbspbrk.c: New file.
71250
71251 2007-02-11  Bruno Haible  <bruno@clisp.org>
71252
71253         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71254         unneeded cast.
71255
71256         * modules/mbscspn-tests: New file.
71257         * tests/test-mbscspn.sh: New file.
71258         * tests/test-mbscspn.c: New file.
71259
71260 2007-02-11  Bruno Haible  <bruno@clisp.org>
71261
71262         * modules/mbscasecmp-tests: New file.
71263         * tests/test-mbscasecmp.sh: New file.
71264         * tests/test-mbscasecmp.c: New file.
71265
71266 2007-02-11  Bruno Haible  <bruno@clisp.org>
71267
71268         Ensure O(n) worst-case complexity of mbscasestr.
71269         * lib/mbscasestr.c: Include stdbool.h.
71270         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71271         functions.
71272         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71273         the bookkeeping indicates that it's worth it.
71274         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71275
71276         * modules/mbscasestr-tests: New file.
71277         * tests/test-mbscasestr1.c: New file.
71278         * tests/test-mbscasestr2.sh: New file.
71279         * tests/test-mbscasestr2.c: New file.
71280         * tests/test-mbscasestr3.sh: New file.
71281         * tests/test-mbscasestr3.c: New file.
71282         * tests/test-mbscasestr4.sh: New file.
71283         * tests/test-mbscasestr4.c: New file.
71284         * m4/locale-tr.m4: New file.
71285
71286 2007-02-11  Bruno Haible  <bruno@clisp.org>
71287
71288         Ensure O(n) worst-case complexity of mbsstr.
71289         * lib/mbsstr.c: Include stdbool.h.
71290         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71291         functions.
71292         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71293         bookkeeping indicates that it's worth it.
71294         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71295
71296         * modules/mbsstr-tests: New file.
71297         * tests/test-mbsstr1.c: New file.
71298         * tests/test-mbsstr2.sh: New file.
71299         * tests/test-mbsstr2.c: New file.
71300         * tests/test-mbsstr3.sh: New file.
71301         * tests/test-mbsstr3.c: New file.
71302         * m4/locale-fr.m4: New file.
71303
71304 2007-02-11  Bruno Haible  <bruno@clisp.org>
71305
71306         * lib/mbsrchr.c (mbsrchr): Fix bug.
71307
71308         * modules/mbsrchr-tests: New file.
71309         * tests/test-mbsrchr.sh: New file.
71310         * tests/test-mbsrchr.c: New file.
71311
71312 2007-02-11  Bruno Haible  <bruno@clisp.org>
71313
71314         * lib/mbschr.c (mbschr): Fix bug.
71315
71316         * modules/mbschr-tests: New file.
71317         * tests/test-mbschr.sh: New file.
71318         * tests/test-mbschr.c: New file.
71319         * m4/locale-zh.m4: New file.
71320
71321 2007-02-11  Bruno Haible  <bruno@clisp.org>
71322
71323         Support for copying multibyte string iterators.
71324         * lib/mbiter.h: Include <string.h>.
71325         (mbiter_multi_copy): New function.
71326         (mbi_copy): New macro.
71327         * lib/mbuiter.h: Include <string.h>.
71328         (mbuiter_multi_copy): New function.
71329         (mbui_copy): New macro.
71330
71331 2007-02-11  Bruno Haible  <bruno@clisp.org>
71332
71333         New module mbslen.
71334         * modules/mbslen: New file.
71335         * lib/mbslen.c: New file.
71336         * lib/string_.h (mbslen): New declaration.
71337         * m4/mbslen.m4: New file.
71338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71339         GNULIB_MBSLEN.
71340         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71341         * MODULES.html.sh (Internationalization functions): Add mbslen.
71342
71343 2007-02-11  Bruno Haible  <bruno@clisp.org>
71344
71345         Ensure O(n) worst-case complexity of strcasestr substitute.
71346         * lib/strcasestr.c: Include stdbool.h.
71347         (knuth_morris_pratt): New function.
71348         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71349         bookkeeping indicates that it's worth it.
71350         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71351
71352         * modules/strcasestr-tests: New file.
71353         * tests/test-strcasestr.c: New file.
71354
71355 2007-02-11  Bruno Haible  <bruno@clisp.org>
71356
71357         Ensure O(n) worst-case complexity of c_strcasestr.
71358         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71359         (knuth_morris_pratt): New function.
71360         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71361         the bookkeeping indicates that it's worth it.
71362         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71363
71364         * modules/c-strcasestr-tests: New file.
71365         * tests/test-c-strcasestr.c: New file.
71366
71367 2007-02-11  Bruno Haible  <bruno@clisp.org>
71368
71369         Ensure O(n) worst-case complexity of c_strstr.
71370         * lib/c-strstr.c: Include stdbool.h, string.h.
71371         (knuth_morris_pratt): New function.
71372         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71373         bookkeeping indicates that it's worth it.
71374         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71375
71376         * lib/c-strstr.c: Complete rewrite for maintainability.
71377
71378         * modules/c-strstr-tests: New file.
71379         * tests/test-c-strstr.c: New file.
71380
71381 2007-02-11  Bruno Haible  <bruno@clisp.org>
71382
71383         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71384         5.2.1 and earlier, whereby \055 was treated just like the range
71385         delimiter '-'.
71386         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71387
71388 2007-02-08  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/regex (Depends-on): Add stdbool.
71391         Reported by Dalibor Topic <robilad@kaffe.org>.
71392
71393 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71396         Prefer returning from main to exiting from it.
71397         Remove unnecessary parens after sizeof.
71398
71399 2007-02-05  Bruno Haible  <bruno@clisp.org>
71400
71401         New module mbssep.
71402         * modules/mbssep: New file.
71403         * lib/mbssep.c: New file.
71404         * lib/string_.h (strsep): Add a conditional link warning.
71405         (mbssep): New declaration.
71406         * m4/mbssep.m4: New file.
71407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71408         GNULIB_MBSSEP.
71409         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71410         * MODULES.html.sh (Internationalization functions): Add mbssep.
71411
71412 2007-02-05  Bruno Haible  <bruno@clisp.org>
71413
71414         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71415         Optimize search in case of 1 delimiter.
71416
71417 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71418
71419         * lib/acl.h: Include sys/types.h before sys/acl.h.
71420
71421 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71422
71423         Merge upstream fix for glibc bugzilla #3957:
71424
71425         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71426
71427         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71428         bit for RE_HAT_LISTS_NOT_NEWLINE.
71429         (build_charclass_op): Remove bogus comment.
71430
71431 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71432
71433         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71434
71435 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71438         * lib/memmem.c [!defined _LIBC]: Include config.h.
71439
71440 2007-02-04  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71443         warning message.
71444
71445 2007-02-04  Bruno Haible  <bruno@clisp.org>
71446
71447         New module mbstok_r.
71448         * modules/mbstok_r: New file.
71449         * lib/mbstok_r.c: New file.
71450         * lib/string_.h (strtok_r): Change argument names to match the
71451         comments. Add a conditional link warning.
71452         (mbstok_r): New declaration.
71453         * m4/mbstok_r.m4: New file.
71454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71455         GNULIB_MBSTOK_R.
71456         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71457         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71458
71459 2007-02-04  Bruno Haible  <bruno@clisp.org>
71460
71461         New module mbsspn.
71462         * modules/mbsspn: New file.
71463         * lib/mbsspn.c: New file.
71464         * lib/string_.h (strspn): Add a conditional link warning.
71465         (mbsspn): New declaration.
71466         * m4/mbsspn.m4: New file.
71467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71468         GNULIB_MBSSPN.
71469         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71470         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71471
71472 2007-02-04  Bruno Haible  <bruno@clisp.org>
71473
71474         New module mbspbrk.
71475         * modules/mbspbrk: New file.
71476         * lib/mbspbrk.c: New file.
71477         * lib/string_.h (strpbrk): Add a conditional link warning.
71478         (mbspbrk): New declaration.
71479         * m4/mbspbrk.m4: New file.
71480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71481         GNULIB_MBSPBRK.
71482         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71483         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71484
71485 2007-02-04  Bruno Haible  <bruno@clisp.org>
71486
71487         New module mbscspn.
71488         * modules/mbscspn: New file.
71489         * lib/mbscspn.c: New file.
71490         * lib/string_.h (strcspn): Add a conditional link warning.
71491         (mbscspn): New declaration.
71492         * m4/mbscspn.m4: New file.
71493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71494         GNULIB_MBSCSPN.
71495         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71496         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71497
71498 2007-02-04  Bruno Haible  <bruno@clisp.org>
71499
71500         New module mbscasestr, reduced goal of strcasestr.
71501         * modules/mbscasestr: New file.
71502         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71503         (mbscasestr): Renamed from strcasestr.
71504         * lib/strcasestr.c: Don't include mbuiter.h.
71505         (strcasestr): Remove support for multibyte locales.
71506         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71507         Change the conditional link warning.
71508         (mbscasestr): New declaration.
71509         * m4/mbscasestr.m4: New file.
71510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71511         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71512         REPLACE_STRCASESTR.
71513         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71515         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71517         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71518         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71519         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71520         (Depends-on): Remove mbuiter.
71521         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71522
71523 2007-02-04  Bruno Haible  <bruno@clisp.org>
71524
71525         Simplify handling of strncasecmp.
71526         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71527         the conditional link warning.
71528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71529         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71531         * modules/strcase (configure.ac): Don't invoke
71532         gl_STRING_MODULE_INDICATOR.
71533         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71534
71535 2007-02-04  Bruno Haible  <bruno@clisp.org>
71536
71537         New module mbscasecmp, reduced goal of strcasecmp.
71538         * modules/mbscasecmp: New file.
71539         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71540         (mbscasecmp): Renamed from strcasecmp.
71541         * lib/strcasecmp.c: Don't include mbuiter.h.
71542         (strcasecmp): Remove support for multibyte locales.
71543         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71544         Change the conditional link warning.
71545         (mbscasecmp): New declaration.
71546         * m4/mbscasecmp.m4: New file.
71547         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71548         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71549         REPLACE_STRCASECMP.
71550         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71552         GNULIB_MBSCASECMP.
71553         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71554         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71555         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71556         (Depends-on): Remove mbuiter.
71557         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71558
71559 2007-02-04  Bruno Haible  <bruno@clisp.org>
71560
71561         New module mbsstr. Remove module strstr.
71562         * modules/mbsstr: New file.
71563         * modules/strstr: Remove file.
71564         * lib/mbsstr.c: Renamed from lib/strstr.c.
71565         (mbsstr): Renamed from strstr.
71566         * lib/string_.h (strstr): Remove declaration. Change the conditional
71567         link warning.
71568         (mbsstr): New declaration.
71569         * m4/mbsstr.m4: New file.
71570         * m4/strstr.m4: Remove file.
71571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71572         REPLACE_STRSTR.
71573         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71574         Don't initialize GNULIB_STRSTR.
71575         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71576         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71577         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71578         (Support for systems lacking ANSI C 89): Remove strstr.
71579
71580 2007-02-04  Bruno Haible  <bruno@clisp.org>
71581
71582         New module mbsrchr.
71583         * modules/mbsrchr: New file.
71584         * lib/mbsrchr.c: New file.
71585         * lib/string_.h (strrchr): Add a conditional link warning.
71586         (mbsrchr): New declaration.
71587         * m4/mbsrchr.m4: New file.
71588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71589         GNULIB_MBSRCHR.
71590         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71591         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71592
71593 2007-02-04  Bruno Haible  <bruno@clisp.org>
71594
71595         New module mbschr.
71596         * modules/mbschr: New file.
71597         * lib/mbschr.c: New file.
71598         * lib/string_.h (strchr): Add a conditional link warning.
71599         (mbschr): New declaration.
71600         * m4/mbschr.m4: New file.
71601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71602         GNULIB_MBSCHR.
71603         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71604         * MODULES.html.sh (Internationalization functions): Add mbschr.
71605
71606 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71609
71610         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71611
71612 2007-02-04  Bruno Haible  <bruno@clisp.org>
71613
71614         New module description section 'configure.ac-early'.
71615         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71616         (func_get_autoconf_early_snippet): New function.
71617         (func_import, func_create_testdir): Use it. Remove special cases for
71618         modules 'extensions' and 'lock'.
71619         * modules/extensions (configure.ac-early): Require
71620         gl_USE_SYSTEM_EXTENSIONS.
71621         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71622
71623 2007-02-04  Bruno Haible  <bruno@clisp.org>
71624
71625         Make use of gcj-4.3's -fsource and -ftarget option.
71626         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71627         and if so try the options -fsource and -ftarget.
71628         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71629         source_version, ftarget_option, target_version arguments.
71630         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71631         (is_envjavac_oldgcj_14_14_usable): Renamed from
71632         is_envjavac_gcj_14_14_usable.
71633         (is_envjavac_oldgcj_14_13_usable): Renamed from
71634         is_envjavac_gcj_14_13_usable.
71635         (is_gcj_present): Update.
71636         (is_gcj_43, is_gcj43_usable): New functions.
71637         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71638         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71639         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71640         try the options -fsource and -ftarget.
71641
71642 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71645         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71646         larger value.
71647
71648 2007-02-03  Jim Meyering  <jim@meyering.net>
71649
71650         Give tools a better chance to allocate space for very large buffers.
71651         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71652
71653         Make pwd and readlink work also when run with an unreadable parent dir
71654         on systems with openat support.
71655         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71656         provided getcwd function, even when we have openat support.
71657         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71658
71659 2007-02-02  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71662         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71663         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71664         portability problems if one of these functions is only used on specific
71665         platforms.
71666         Reported by Paul Eggert.
71667
71668 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71671         is causing more trouble than it's curing.
71672         * lib/regex_internal.h (__mempcpy): Remove.
71673         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71674         (and make the code a tad smaller to boot).
71675         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71676
71677 2007-02-02  Jim Meyering  <jim@meyering.net>
71678
71679         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71680         section, not in the Makefile.am: one.
71681
71682 2007-02-02  Eric Blake  <ebb9@byu.net>
71683
71684         * lib/strchrnul.c: Always include config.h first.
71685
71686         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71687         gnulib strstr is not necessary here.
71688
71689 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71690
71691         * m4/socklen.m4: Fix typo.
71692
71693 2007-02-02  Eric Blake  <ebb9@byu.net>
71694
71695         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71696         * modules/netinet_in (Makefile.am): Likewise.
71697
71698 2007-02-01  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/string_.h (GL_LINK_WARNING): New macro.
71701         (strcasecmp, strstr, strcasestr): If provided by the system,
71702         conditionally define as a macro that leads to a warning instead of to
71703         an error.
71704         (strncasecmp): Conditionally define as a macro that leads to a warning.
71705
71706 2007-02-01  Karl Berry  <karl@gnu.org>
71707
71708         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71709
71710 2007-02-01  Bruno Haible  <bruno@clisp.org>
71711
71712         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71713         renamings.
71714
71715 2007-02-01  Eric Blake  <ebb9@byu.net>
71716
71717         * modules/regex (Depends-on): Revert dependence on mempcpy.
71718         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71719         module's definition of mempcpy.
71720         Reported by Paul Eggert.
71721
71722 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71725         the symbol XYZ before redefining it.  This fixes a problem with
71726         programs that don't use XYZ, when compiled on systems that define
71727         XYZ to something else.
71728
71729 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71732         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71733         writeable to group or other and (2) is intended to have a special
71734         mode bit that is set or cleared.  In such a case, the directory
71735         should be neither group- nor other-writeable until the special
71736         mode bits are right.
71737
71738 2007-01-31  Eric Blake  <ebb9@byu.net>
71739
71740         * modules/mountlist (Depends-on): Add strstr.
71741
71742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71743         bug.
71744         * modules/string (Makefile.am): Remove redundant replacement.
71745         * modules/regex (Depends-on): Add mempcpy.
71746
71747 2007-01-31  Bruno Haible  <bruno@clisp.org>
71748
71749         New module description field 'Link'.
71750         * gnulib-tool (func_usage): Document --extract-link-directive.
71751         (sed_extract_prog): Recognize 'Link' directive.
71752         (func_get_link_directive): New function.
71753         (func_import): Show summary of link directives.
71754         Handle --extract-link-directive option.
71755         * modules/acl (Link): New section.
71756         * modules/clock-time (Link): New section.
71757         * modules/euidaccess (Link): New section.
71758         * modules/gettext (Link): New section.
71759         * modules/iconv (Link): New section.
71760         * modules/lock (Link): New section.
71761         * modules/nanosleep (Link): New section.
71762         * modules/readline (Link): New section.
71763
71764 2007-01-27  Bruno Haible  <bruno@clisp.org>
71765
71766         Enforce the use of gnulib modules for unportable <string.h> functions.
71767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71768         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71769         (gl_HEADER_STRING_H_BODY): Require it.
71770         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71771         the symbol XYZ to one that gives a link error.
71772         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71773         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71774         * modules/mempcpy (configure.ac): Likewise.
71775         * modules/memrchr (configure.ac): Likewise.
71776         * modules/stpcpy (configure.ac): Likewise.
71777         * modules/stpncpy (configure.ac): Likewise.
71778         * modules/strcase (configure.ac): Likewise.
71779         * modules/strcasestr (configure.ac): Likewise.
71780         * modules/strchrnul (configure.ac): Likewise.
71781         * modules/strdup (configure.ac): Likewise.
71782         * modules/strndup (configure.ac): Likewise.
71783         * modules/strnlen (configure.ac): Likewise.
71784         * modules/strpbrk (configure.ac): Likewise.
71785         * modules/strsep (configure.ac): Likewise.
71786         * modules/strstr (configure.ac): Likewise.
71787         * modules/strtok_r (configure.ac): Likewise.
71788
71789 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71790
71791         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71792
71793 2007-01-30  Jim Meyering  <jim@meyering.net>
71794
71795         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71796
71797 2007-01-29  Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71800         * lib/execute.c: Likewise.
71801         * lib/pipe.c: Likewise.
71802         * lib/printf-args.h: Likewise.
71803         * lib/printf-args.c: Likewise.
71804         * lib/printf-parse.c: Likewise.
71805         * lib/vasnprintf.c: Likewise.
71806
71807 2007-01-29  Eric Blake  <ebb9@byu.net>
71808
71809         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71810         declaration.
71811
71812 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * lib/strptime.h (strptime): Use 'restrict' for args where
71815         POSIX requires this.
71816         * lib/strptime.c (strptime): Likewise.
71817         Change license notice from LGPL to GPL, since gnulib-tool will
71818         change this as needed.
71819         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71820         defined.
71821         Include "strptime.h" first, to check interface.
71822         Do not #undef _LIBC and _NL_CURRENT.
71823         Do not include <stdlib.h>; no longer needed.
71824         Include "time_r.h" and declare ptime_locale_status
71825         only if _LIBC is not defined.
71826         (__P): Remove unused macro.
71827         (match_string): Bring back glibc version, but use it only if _LIBC
71828         is defined.
71829         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71830         Remove unnecessary assertion and abort() call.
71831         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71832         * m4/strptime.m4: Fix serial number comment.
71833         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71834         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71835         (Depends-on): Add time_r.
71836
71837 2007-01-29  Bruno Haible  <bruno@clisp.org>
71838
71839         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71840         strptime.
71841         * modules/strptime (Depends-on): Add stdbool.
71842         * lib/strptime.h: Include <time.h> always. Add comments.
71843
71844 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71845
71846         * modules/strptime: New file.
71847         * lib/strptime.h: New file.
71848         * lib/strptime.c: New file.
71849         * m4/strptime.m4: New file.
71850
71851 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * MODULES.html.sh: New module mpsort.
71854         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71855
71856         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71857         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71859         All uses changed.
71860         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71861         All uses changed.
71862         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71863         to _Restrict_.
71864         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71865         the parameter matches the prototype.
71866
71867 2007-01-28  Jim Meyering  <jim@meyering.net>
71868
71869         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71870         sys/time.h here, reverting that part of the previous patch:
71871         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71872
71873 2007-01-28  Bruno Haible  <bruno@clisp.org>
71874
71875         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71876         value of $(SYS_TIME_H).
71877         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71878         remove it conditionally, too. [added by Jim Meyering]
71879         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71881         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71882         GETTIMEOFDAY_REPLACEMENT to 1.
71883
71884 2007-01-28  Bruno Haible  <bruno@clisp.org>
71885
71886         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71887         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71889         Set UNISTD_H instead of UNISTD_H2.
71890         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71891
71892 2007-01-28  Bruno Haible  <bruno@clisp.org>
71893
71894         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71895         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71896
71897 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71898
71899         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71900         (func_create_testdir): Ensure C locale for `grep' and `tr'
71901         character ranges.
71902         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71903         ACLOCAL_AMFLAGS parsing state machine.
71904
71905 2007-01-27  Bruno Haible  <bruno@clisp.org>
71906
71907         * modules/unistr/base: Update.
71908
71909 2007-01-27  Bruno Haible  <bruno@clisp.org>
71910
71911         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71912         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71913         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71914         modules/unistr/u32-mbtouc.
71915         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71916         * lib/unistr.h: Update.
71917         * lib/linebreak.c: Update.
71918         * modules/unistr/u32-mbtouc: Renamed from
71919         modules/unistr/u32-mbtouc-safe.
71920         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71921         * lib/unistr.h: Update.
71922         * lib/unistr/u32-to-u8.c: Update.
71923         * lib/unistr/u32-to-u16.c: Update.
71924
71925 2007-01-27  Bruno Haible  <bruno@clisp.org>
71926
71927         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71928         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71929         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71930         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71931         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71932         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71933         modules/unistr/u16-mbtouc.
71934         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71935         * lib/unistr.h: Update.
71936         * lib/linebreak.c: Update.
71937         * modules/linebreak: Update.
71938         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71939         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71940         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71941         * modules/unistr/u16-mbtouc: Renamed from
71942         modules/unistr/u16-mbtouc-safe.
71943         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71944         * lib/unistr.h: Update.
71945         * lib/unistr/u16-to-u8.c: Update.
71946         * modules/unistr/u16-to-u8: Update.
71947         * lib/unistr/u16-to-u32.c: Update.
71948         * modules/unistr/u16-to-u32: Update.
71949
71950 2007-01-27  Bruno Haible  <bruno@clisp.org>
71951
71952         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71953         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71954         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71955         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71956         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71957         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71958         modules/unistr/u8-mbtouc.
71959         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71960         * lib/unistr.h: Update.
71961         * lib/striconveh.c: Update.
71962         * modules/striconveh: Update.
71963         * lib/linebreak.c: Update.
71964         * modules/linebreak: Update.
71965         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71966         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71967         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71968         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71969         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71970         * lib/unistr.h: Update.
71971         * lib/striconveh.c: Update.
71972         * modules/striconveh: Update.
71973         * lib/unistr/u8-to-u16.c: Update.
71974         * modules/unistr/u8-to-u16: Update.
71975         * lib/unistr/u8-to-u32.c: Update.
71976         * modules/unistr/u8-to-u32: Update.
71977
71978 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71979
71980         Sync from Libtool.
71981         * lib/argz.c: Do not include strings.h nor memory.h, include
71982         string.h unconditionally.  Patch by Simon Josefsson.
71983
71984 2007-01-27  Bruno Haible  <bruno@clisp.org>
71985
71986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71987         from gl_HEADER_STRING_H_BODY.
71988         (gl_HEADER_STRING_H_BODY): Require it.
71989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71990         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71991         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71992         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71994         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71997         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71998         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71999         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72000         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72001         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72002         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72003         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72004
72005 2007-01-27  Bruno Haible  <bruno@clisp.org>
72006
72007         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72008         check_PROGRAMS into noinst_PROGRAMS.
72009         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72010         check_PROGRAMS in this case.
72011         (func_import): Set for_test to false.
72012         (func_create_testdir): Set for_test to true.
72013
72014 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72015             Bruno Haible  <bruno@clisp.org>
72016
72017         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72018         (Depends-on): Add string.
72019         (Includes): Use <string.h> instead of strcasestr.h.
72020         * modules/string (Makefile.am): Also substitute the value of
72021         REPLACE_STRCASESTR.
72022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72023         assume strcasestr is declared in <string.h> not <strings.h>. Also
72024         set REPLACE_STRCASESTR.
72025         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72026         REPLACE_STRCASESTR.
72027         * lib/strcasestr.h: Remove file.
72028         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72029         * lib/string_.h (strcasestr): New declaration.
72030
72031 2007-01-27  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/string_.h: Use 'extern'.
72034
72035 2007-01-27  Jim Meyering  <jim@meyering.net>
72036
72037         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72038         of set-but-not-used local, "q".
72039
72040         * lib/mempcpy.c: Include <config.h> before <string.h>.
72041         This fixes a compilation error on HP-UX, due to the system's
72042         "restrict"-using mempcpy prototype.
72043
72044 2007-01-26  Bruno Haible  <bruno@clisp.org>
72045
72046         Small optimization.
72047         * lib/javacomp.c: Include c-strstr.h.
72048          (is_envjavac_gcj): Use c_strstr instead of strstr.
72049         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72050
72051 2007-01-26  Bruno Haible  <bruno@clisp.org>
72052
72053         * MODULES.html.sh (Unicode string functions): Add the new modules.
72054
72055         * modules/uniconv/u32-strconv-to-locale: New file.
72056         * lib/uniconv/u32-strconv-to-locale.c: New file.
72057
72058         * modules/uniconv/u16-strconv-to-locale: New file.
72059         * lib/uniconv/u16-strconv-to-locale.c: New file.
72060
72061         * modules/uniconv/u8-strconv-to-locale: New file.
72062         * lib/uniconv/u8-strconv-to-locale.c: New file.
72063
72064         * modules/uniconv/u32-strconv-from-locale: New file.
72065         * lib/uniconv/u32-strconv-from-locale.c: New file.
72066
72067         * modules/uniconv/u16-strconv-from-locale: New file.
72068         * lib/uniconv/u16-strconv-from-locale.c: New file.
72069
72070         * modules/uniconv/u8-strconv-from-locale: New file.
72071         * lib/uniconv/u8-strconv-from-locale.c: New file.
72072
72073         * modules/uniconv/u32-strconv-to-enc: New file.
72074         * lib/uniconv/u32-strconv-to-enc.c: New file.
72075         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72076         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72077
72078         * modules/uniconv/u16-strconv-to-enc: New file.
72079         * lib/uniconv/u16-strconv-to-enc.c: New file.
72080         * lib/uniconv/u-strconv-to-enc.h: New file.
72081         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72082         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72083
72084         * modules/uniconv/u8-strconv-to-enc: New file.
72085         * lib/uniconv/u8-strconv-to-enc.c: New file.
72086         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72087         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72088
72089         * modules/uniconv/u32-strconv-from-enc: New file.
72090         * lib/uniconv/u32-strconv-from-enc.c: New file.
72091         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72092         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72093
72094         * modules/uniconv/u16-strconv-from-enc: New file.
72095         * lib/uniconv/u16-strconv-from-enc.c: New file.
72096         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72097         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72098
72099         * modules/uniconv/u8-strconv-from-enc: New file.
72100         * lib/uniconv/u8-strconv-from-enc.c: New file.
72101         * lib/uniconv/u-strconv-from-enc.h: New file.
72102         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72103         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72104
72105         * modules/uniconv/u32-conv-from-enc: New file.
72106         * lib/uniconv/u32-conv-from-enc.c: New file.
72107         * modules/uniconv/u32-conv-from-enc-tests: New file.
72108         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72109
72110         * modules/uniconv/u16-conv-from-enc: New file.
72111         * lib/uniconv/u16-conv-from-enc.c: New file.
72112         * lib/uniconv/u-conv-from-enc.h: New file.
72113         * modules/uniconv/u16-conv-from-enc-tests: New file.
72114         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72115
72116         * modules/uniconv/u8-conv-from-enc: New file.
72117         * lib/uniconv/u8-conv-from-enc.c: New file.
72118         * modules/uniconv/u8-conv-from-enc-tests: New file.
72119         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72120
72121         * modules/uniconv/base: New file.
72122         * lib/uniconv.h: New file.
72123
72124 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72125
72126         * doc/gnulib-tool.texi (Initial import): Update to match current
72127         behavior with strdup module.
72128         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72129         * lib/memmem.h: Remove; all uses removed.  This is now done
72130         by <string.h>.
72131         * lib/mempcpy.h: Likewise.
72132         * lib/memrchr.h: Likewise.
72133         * lib/stpcpy.h: Likewise.
72134         * lib/stpncpy.h: Likewise.
72135         * lib/strcase.h: Likewise.
72136         * lib/strchrnul.h: Likewise.
72137         * lib/strdup.h: Likewise.
72138         * lib/strndup.h: Likewise.
72139         * lib/strnlen.h: Likewise.
72140         * lib/strpbrk.h: Likewise.
72141         * lib/strsep.h: Likewise.
72142         * lib/strstr.h: Likewise.
72143         * lib/strtok_r.h: Likewise.
72144         * lib/string_.h: New file.
72145         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72146         Rely on <string.h> instead.
72147         * lib/canon-host.c: Likewise.
72148         * lib/chdir-long.c: Likewise.
72149         * lib/concatpath.c: Likewise.
72150         * lib/exclude.c: Likewise.
72151         * lib/fchdir.c: Likewise.
72152         * lib/getaddrinfo.c: Likewise.
72153         * lib/getcwd.c: Likewise.
72154         * lib/getsubopt.c: Likewise.
72155         * lib/glob.c: Likewise.
72156         * lib/hard-locale.c: Likewise.
72157         * lib/iconvme.c: Likewise.
72158         * lib/javacomp.c: Likewise.
72159         * lib/mempcpy.c: Likewise.
72160         * lib/memrchr.c: Likewise.
72161         * lib/regex_internal.h: Likewise.
72162         * lib/stpncpy.c: Likewise.
72163         * lib/strcasecmp.c: Likewise.
72164         * lib/strchrnul.c: Likewise.
72165         * lib/strdup.c: Likewise.
72166         * lib/striconv.c: Likewise.
72167         * lib/striconveh.c: Likewise.
72168         * lib/striconveha.c: Likewise.
72169         * lib/strncasecmp.c: Likewise.
72170         * lib/strndup.c: Likewise.
72171         * lib/strnlen.c: Likewise.
72172         * lib/strsep.c: Likewise.
72173         * lib/strstr.c: Likewise.
72174         * lib/strtok_r.c: Likewise.
72175         * lib/userspec.c: Likewise.
72176         * lib/w32spawn.h: Likewise.
72177         * lib/xstrndup.c: Likewise.
72178         * lib/mountlist.c (strstr): Remove decl.
72179         * m4/string_h.m4: New file.
72180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72181         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72182         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72183         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72184         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72185         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72186         Set REPLACE_STRCASECMP if necessary.
72187         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72188         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72189         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72191         HAVE_DECL_STRDUP if necessary.
72192         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72193         since gl_FUNC_STRNDUP does that now.
72194         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72195         Check for decl here...
72196         (gl_PREREQ_STRNLEN): ... not here.
72197         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72198         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72199         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72200         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72201         necessary.
72202         * modules/string: New file.
72203         * modules/memmem (Files): Remove special-purpose include file.
72204         (Depends-on): Add string.
72205         (Include): Include <string.h>, not the removed file.
72206         * modules/mempcpy: Likewise.
72207         * modules/memrchr: Likewise.
72208         * modules/stpcpy: Likewise.
72209         * modules/stpncpy: Likewise.
72210         * modules/strcase: Likewise.
72211         * modules/strchrnul: Likewise.
72212         * modules/strdup: Likewise.
72213         * modules/strndup: Likewise.
72214         * modules/strnlen: Likewise.
72215         * modules/strpbrk: Likewise.
72216         * modules/strsep: Likewise.
72217         * modules/strstr: Likewise.
72218         * modules/strtok_r: Likewise.
72219         * tests/test-dirname.c: Don't include "strdup.h", since
72220         <string.h> now suffices.
72221         * tests/test-memmem.c: Don't include "memmem.h", since
72222         <string.h> now suffices.
72223
72224 2007-01-25  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72227         *resultp is 0.
72228
72229         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72230         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72231         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72232         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72233
72234         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72235         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72236         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72237         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72238         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72239         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72240
72241 2007-01-24  Bruno Haible  <bruno@clisp.org>
72242
72243         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72244         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72245         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72246         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72247         gl_FUNC_FTS_CORE.
72248         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72249         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72250         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72251         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72252         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72253         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72254         gl_FUNC_FCHOWNAT.
72255         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72256         gl_FUNC_STRFTIME.
72257         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72258         Reported by Ralf Wildenhues.
72259
72260 2007-01-24  Bruno Haible  <bruno@clisp.org>
72261
72262         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72263         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72264         gl_GETADDRINFO.
72265         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72266         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72267         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72268
72269 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72272         Don't use 'exit'; just return from 'main'.
72273         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72274
72275         * lib/fnmatch_.h: Readjust white space and comments to match
72276         glibc, to avoid spurious diffs.
72277
72278 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72281         2004-12-01 change by Jakub Jelinek, since this code won't compile
72282         if !LIBC.  Problem reported by Bob Proulx.
72283
72284 2007-01-23  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/striconveh.c: Include c-strcaseeq.h.
72287         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72288         * modules/striconveh (Depends-on): Add c-strcaseeq.
72289
72290 2007-01-23  Bruno Haible  <bruno@clisp.org>
72291
72292         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72293
72294         * modules/c-strcaseeq: New file.
72295         * lib/c-strcaseeq.h: New file.
72296
72297         * modules/streq: New file.
72298         * lib/streq.h: New file.
72299
72300 2007-01-23  Bruno Haible  <bruno@clisp.org>
72301
72302         * modules/striconveha-tests: New file.
72303         * tests/test-striconveha.c: New file.
72304
72305         * lib/striconveha.h: Include <stdbool.h>.
72306         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72307         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72308         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72309         (mem_iconveha): New function.
72310         (str_iconveha_notranslit): Renamed from str_iconveha.
72311         (str_iconveha): New function.
72312         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72313         c-strcase.
72314
72315 2007-01-23  Bruno Haible  <bruno@clisp.org>
72316
72317         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72318         encodings without forgiving before trying any encoding with handler.
72319         (str_iconveha): Try all encodings without forgiving before trying any
72320         encoding with handler.
72321
72322 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         Import the following changes from libc.
72325
72326         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72327
72328         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72329
72330         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72331
72332         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72333         normal_bracket label.
72334
72335         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72336
72337         [BZ #361]
72338         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72339         to normal_bracket after fetching the next character.
72340
72341 2007-01-22  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72344         argument.
72345         * lib/striconveh.c (iconv_carefully_1): New function.
72346         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72347         argument.
72348         (str_cd_iconveh): Update.
72349         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72350         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72351         * tests/test-striconveh.c (MAGIC): New macro.
72352         (new_offsets): New function.
72353         (main): Test call with and without offsets.
72354
72355 2007-01-22  Bruno Haible  <bruno@clisp.org>
72356
72357         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72358         * modules/sys_select (Makefile.am): Likewise.
72359         * modules/sys_socket (Makefile.am): Likewise.
72360         * modules/sys_time (Makefile.am): Likewise.
72361
72362 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * modules/gettimeofday (License): Change from GPL to LGPL, since
72365         gettimeofday is a library function.
72366
72367 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72368
72369         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72370
72371 2007-01-21  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72374
72375 2007-01-21  Bruno Haible  <bruno@clisp.org>
72376
72377         * modules/striconveha: New file.
72378         * lib/striconveha.h: New file.
72379         * lib/striconveha.c: New file.
72380         * MODULES.html.sh (Internationalization functions): Add striconveha.
72381         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72382         string.
72383         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72384
72385 2007-01-21  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72388         * lib/striconveh.c (str_iconveh): Likewise.
72389
72390 2007-01-21  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/striconveh.h (mem_iconveh): New declaration.
72393         * lib/striconveh.c (mem_iconveh): New function.
72394         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72395
72396 2007-01-21  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72399
72400         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72401         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72402         original result buffer.
72403         (str_cd_iconveh): Update.
72404         * tests/test-striconveh.c (main): Update.
72405
72406         * lib/striconv.h (mem_cd_iconv): Change specification.
72407         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72408         result buffer.
72409         (str_cd_iconv): Update.
72410         * tests/test-striconv.c (main): Update.
72411
72412 2007-01-21  Bruno Haible  <bruno@clisp.org>
72413
72414         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72415
72416 2007-01-20  Jim Meyering  <jim@meyering.net>
72417
72418         * lib/userspec.c (parse_with_separator): If a user or group string
72419         starts with "+", skip the corresponding name-to-ID look-up, since
72420         such a look-up must fail: user and group names may not include "+".
72421
72422 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72425         since we now assume the sys_time module.
72426         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72427         check for sys/time.h; no longer needed.
72428         * modules/poll (Depends-on): Depend on sys_time.
72429
72430 2007-01-18  Bruno Haible  <bruno@clisp.org>
72431
72432         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72433         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72434
72435         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72436         gettimeofday.
72437
72438         * tests/test-gettimeofday.c: Include <time.h>.
72439         (dummy): Remove variable.
72440
72441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72442         gl_HEADER_SYS_TIME_H.
72443         (gl_HEADER_SYS_TIME_H): New macro.
72444
72445         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72446         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72447         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72448         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72449         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72451         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72452         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72453         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72454         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72455         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72456
72457         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72458         last change; it caused a compilation error when cross-compiling to
72459         Cygwin.
72460
72461 2007-01-18  Jim Meyering  <jim@meyering.net>
72462
72463         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72464         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72465         than the race-prone "test -d sys || mkdir sys".
72466         (configure.ac): Use AC_PROG_MKDIR_P.
72467         * modules/sys_select: Likewise.
72468         * modules/sys_socket: Likewise.
72469         * modules/sys_time: Likewise.
72470
72471 2007-01-18  Eric Blake  <ebb9@byu.net>
72472
72473         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72474         replace gettimeofday.
72475         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72476         name, to avoid infinite recursion.
72477
72478 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72481         module sys_time.
72482         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72483         assume timespec.h defines struct timeval.
72484         * lib/settime.c: Likewise.
72485         * lib/utimens.c: Likewise.
72486         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72487         since we now assume the gettimeofday module.
72488         * lib/tempname.c (__gen_tempname): Likewise.
72489         * lib/gettimeofday.h: Remove.
72490         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72491         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72492         Include <time.h>, for 'time()'.
72493         (localtime_buffer_addr): Also use this workaround if
72494         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72495         to simplify the uses.  All uses changed.
72496         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72497         that #undef is inside {}, and 'const' follows type name consistently.
72498         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72499         (gettimeofday): Do not use the maximum possible value for
72500         tv->tv_usec, since that might break usages other than ls.c.
72501         Instead, we'll leave ls.c alone.  This undoes today's patch
72502         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72503         we've never observed the problem but might as well keep the
72504         canary.
72505         * lib/nanosleep.c: Include timespec.h first, for interface check.
72506         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72507         now assume the sys_time module.
72508         * lib/tempname.c: Likewise.
72509         * lib/timespec.h: Likewise.
72510         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72511         needed.
72512         * lib/strftime.c: Likewise.
72513         * lib/timespec.h: Likewise.
72514         * lib/posixtm.c: Include posixtm.h first, for interface check.
72515         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72516         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72517         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72518         * lib/sys_time_.h: New file.
72519         * lib/timespec.h (struct timespec): Use long int, not long.
72520         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72521         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72522         Remove obsolescent call to AC_HEADER_TIME.
72523         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72525         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72526         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72527         Likewise.
72528         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72529         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72530         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72531         into the sys_time module.  Check for gettimeofday just once.
72532         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72533         for gettimeofday signature to just check the signature.  Merely
72534         compile it, since linking doesn't test signature.  Improve test for
72535         whether gettimeofday.o is actually needed.
72536         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72537         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72538         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72539         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72540         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72541         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72542         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72543         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72544         than worrying about sys/time.h.
72545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72546         Don't bother worrying about TIME_WITH_SYS_TIME.
72547         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72548         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72549         * m4/sys_time_h.m4: New file.
72550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72551         Don't include sys/time.h.  Return from main rather than exiting.
72552         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72553         all uses changed.
72554         * modules/gethrxtime (Depends-on): Add sys_time.
72555         * modules/gettime (Depends-on): Likewise.
72556         * modules/gettimeofday (Depends-on): Likewise.
72557         * modules/nanosleep (Depends-on): Likewise.
72558         * modules/settime (Depends-on): Likewise.
72559         * modules/tempname (Depends-on): Likewise.
72560         * modules/utimens (Depends-on): Likewise.
72561         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72562         (Include): Change back to <sys/time.h>.
72563         (Maintainer): Add self.
72564         * modules/sys_time: New file.
72565         * modules/tempname (Depends-on): Add gettimeofday.
72566         * tests/test-gettimeofday.c: Include <sys/time.h>
72567         rather than gettimeofday.h.
72568
72569 2007-01-17  Bruno Haible  <bruno@clisp.org>
72570
72571         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72572         the license default to GPL.
72573         (func_create_testdir): Don't complain if a module is LGPL and its
72574         tests module depends on GPLed modules.
72575
72576 2007-01-17  Bruno Haible  <bruno@clisp.org>
72577
72578         * lib/gettimeofday.c (gettimeofday): Add code for the case
72579         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72580         maximum possible value for tv->tv_usec, rather than the minimum one.
72581
72582 2005-10-08  Martin Lambers  <marlam@marlam.de>
72583 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72584 2007-01-16  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72587         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72588         gl_FUNC_GETTIMEOFDAY.
72589         (Include): Add gettimeofday.h.
72590         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72592         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72593         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72594         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72595         * lib/gettimeofday.h: New file.
72596         * lib/gettimeofday.c: Include <sys/timeb.h>.
72597         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72598         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72599         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72600         fall back on time().
72601
72602         * tests/test-gettimeofday.c: New file.
72603         * modules/gettimeofday-tests: New file.
72604
72605 2007-01-16  Eric Blake  <ebb9@byu.net>
72606
72607         * modules/fnmatch (Depends-on): Depend on wchar.
72608         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72609         * m4/fnmatch.m4: Likewise.
72610         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72611         * m4/mbchar.m4: Likewise.
72612         * modules/mbswidth (Depends-on): Depend on wchar.
72613         * lib/mbswidth.c: Assume <wchar.h>.
72614         * m4/mbswidth.m4: Likewise.
72615         * modules/quotearg (Depends-on): Depend on wchar.
72616         * lib/quotearg.c: Assume <wchar.h>.
72617         * m4/quotearg.m4: Likewise.
72618         * modules/regex (Depends-on): Depend on wchar.
72619         * lib/regex_internal.h: Assume <wchar.h>.
72620         * m4/regex.m4: Likewise.
72621         * modules/stdint (Depends-on): Depend on wchar.
72622         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72623         * m4/stdint.m4: Likewise.
72624         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72625         * modules/strftime (Depends-on): Depend on wchar.
72626         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72627         * modules/strtol (Depends-on): Depend on wchar.
72628         * lib/strtol.c: Assume <wchar.h>.
72629         * modules/wcwidth (Depends-on): Depend on wchar.
72630         * lib/wcwidth.h: Assume <wchar.h>.
72631         * m4/wcwidth.m4: Likewise.
72632
72633 2007-01-16  Bruno Haible  <bruno@clisp.org>
72634
72635         * modules/csharpexec-script: New, created from...
72636         * modules/csharpexec: ... this.
72637
72638 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72639
72640         * modules/javaexec-script: New, created from...
72641         * modules/javaexec: ... this.
72642
72643 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72644
72645         * modules/poll (Dependencies): Add sys_select.
72646
72647 2007-01-15  Jim Meyering  <jim@meyering.net>
72648
72649         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72650         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72651         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72652         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72653
72654 2007-01-15  Bruno Haible  <bruno@clisp.org>
72655
72656         * modules/striconveh: New file.
72657         * lib/striconveh.h: New file.
72658         * lib/striconveh.c: New file.
72659         * MODULES.html.sh (Internationalization functions): Add striconveh.
72660
72661         * modules/striconveh-tests: New file.
72662         * tests/test-striconveh.c: New file.
72663
72664 2007-01-15  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72667         not from GNU libiconv or GNU libc.
72668
72669 2007-01-15  Bruno Haible  <bruno@clisp.org>
72670
72671         * doc/gnulib-intro.texi (Copyright): Explain the different license
72672         terms for module descriptions, autoconf macros, tests, documentation.
72673
72674 2007-01-14  Bruno Haible  <bruno@clisp.org>
72675
72676         * modules/striconv-tests: New file.
72677         * tests/test-striconv.c: New file.
72678
72679 2007-01-14  Bruno Haible  <bruno@clisp.org>
72680
72681         * modules/iconv-tests: New file.
72682         * tests/test-iconv.c: New file.
72683
72684 2007-01-14  Bruno Haible  <bruno@clisp.org>
72685
72686         * gnulib-tool (func_get_license): For test modules, use the license of
72687         the main module.
72688
72689 2007-01-14  Bruno Haible  <bruno@clisp.org>
72690
72691         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72692         if iconv is found to exist.
72693
72694 2007-01-14  Bruno Haible  <bruno@clisp.org>
72695
72696         * modules/c-ctype-tests: New file.
72697         * tests/test-c-ctype.c: New file.
72698
72699 2007-01-14  Bruno Haible  <bruno@clisp.org>
72700
72701         * modules/binary-io-tests: New file.
72702         * tests/test-binary-io.sh: New file.
72703         * tests/test-binary-io.c: New file.
72704
72705 2007-01-14  Bruno Haible  <bruno@clisp.org>
72706
72707         * modules/array-oset-tests: New file.
72708         * tests/test-array_oset.c: New file.
72709
72710 2007-01-14  Bruno Haible  <bruno@clisp.org>
72711
72712         * modules/array-list-tests: New file.
72713         * tests/test-array_list.c: New file.
72714
72715 2007-01-14  Bruno Haible  <bruno@clisp.org>
72716
72717         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72718         and make.
72719         Reported by Simon Josefsson in
72720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72721
72722 2007-01-14  Bruno Haible  <bruno@clisp.org>
72723
72724         * modules/allocsa-tests: New file.
72725         * tests/test-allocsa.c: New file.
72726
72727 2007-01-14  Bruno Haible  <bruno@clisp.org>
72728
72729         * modules/fchdir (Depends-on): Add absolute-header.
72730         * modules/unistd (Depends-on): Likewise.
72731
72732 2006-12-30  Bruno Haible  <bruno@clisp.org>
72733
72734         * modules/fchdir: New file.
72735         * modules/unistd (Files): Add lib/unistd_.h.
72736         (Makefile.am): Generate unistd.h from unistd_.h.
72737         * lib/fchdir.c: New file.
72738         * lib/dirent_.h: New file.
72739         * lib/unistd_.h: New file.
72740         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72741         * m4/fchdir.m4: New file.
72742         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72743         (gl_HEADER_UNISTD): Invoke it.
72744         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72745         function.
72746         * lib/backupfile.c (opendir, closedir): Undefine.
72747         * lib/chown.c (open, close): Undefine.
72748         * lib/clean-temp.c (open, close): Undefine.
72749         * lib/copy-file.c (open, close): Undefine.
72750         * lib/execute.c (open, close): Undefine.
72751         * lib/fsusage.c (open, close): Undefine.
72752         * lib/gc-gnulib.c (open, close): Undefine.
72753         * lib/getcwd.c (opendir, closedir): Undefine.
72754         * lib/glob.c (opendir, closedir): Undefine.
72755         * lib/javacomp.c (open, close): Undefine.
72756         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72757         * lib/openat-proc.c (open, close): Undefine.
72758         * lib/pagealign_alloc.c (open, close): Undefine.
72759         * lib/pipe.c (open, close): Undefine.
72760         * lib/progreloc.c (open, close): Undefine.
72761         * lib/savedir.c (opendir, closedir): Undefine.
72762         * lib/utime.c (open, close): Undefine.
72763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72764
72765 2007-01-10  Bruno Haible  <bruno@clisp.org>
72766
72767         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72768
72769 2007-01-12  Eric Blake  <ebb9@byu.net>
72770
72771         Provide a robust <wchar.h>.  Further simplifications are now
72772         possible in other modules, but not included here.
72773         * modules/wchar: New module.
72774         * m4/wchar.m4: New file.
72775         * lib/wchar_.h: Likewise.
72776         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72777         of the new module.
72778         * MODULES.html.sh (Extended multibyte and wide character utilities):
72779         New section.
72780
72781 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72782
72783         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72784         to a reasonable default for memory allocation.
72785         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72786         file system that reports garbage st_size values for symlinks.
72787         Problem reported by Liyang Hu.
72788
72789 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72790
72791         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72792         Emacs .#* auto-save files).
72793
72794 2007-01-11  Bruno Haible  <bruno@clisp.org>
72795
72796         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72797         directory.
72798
72799 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72800
72801         Use @...@ consistently in lib/wctype_.h.
72802         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72803         on it being set to 1 or 0.
72804         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72805         go back to AC_SUBSTing it.
72806         * modules/wctype (Makefile.am): Undo previous change.
72807
72808 2007-01-10  Eric Blake  <ebb9@byu.net>
72809
72810         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72811         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72812         * modules/wctype (Makefile.am): Likewise.
72813         Reported by Chris McGuire.
72814
72815 2007-01-10  Jim Meyering  <jim@meyering.net>
72816
72817         fts.c: a small readability/maintainability improvement
72818         * lib/fts.c (fts_read): Make this code slightly more readable and
72819         maintainable by hoisting the "sp->fts_cur = p" assignments to
72820         immediately follow the statements that set P.  Derived from
72821         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72822
72823 2007-01-10  Eric Blake  <ebb9@byu.net>
72824
72825         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72826         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72828         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72829         Reported by Chris McGuire.
72830
72831 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72832
72833         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72834         in sed script.
72835
72836 2007-01-09  Bruno Haible  <bruno@clisp.org>
72837
72838         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72839         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72840         variables.
72841         (func_module): Use them.
72842
72843 2007-01-09  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/unistr/base: New file.
72846         * lib/unistr.h: New file.
72847
72848         * modules/unistr/u8-to-u16: New file.
72849         * lib/unistr/u8-to-u16.c: New file.
72850
72851         * modules/unistr/u8-to-u32: New file.
72852         * lib/unistr/u8-to-u32.c: New file.
72853
72854         * modules/unistr/u16-to-u8: New file.
72855         * lib/unistr/u16-to-u8.c: New file.
72856
72857         * modules/unistr/u16-to-u32: New file.
72858         * lib/unistr/u16-to-u32.c: New file.
72859
72860         * modules/unistr/u32-to-u8: New file.
72861         * lib/unistr/u32-to-u8.c: New file.
72862
72863         * modules/unistr/u32-to-u16: New file.
72864         * lib/unistr/u32-to-u16.c: New file.
72865
72866         * modules/unistr/u8-check: New file.
72867         * modules/unistr/u16-check: New file.
72868         * modules/unistr/u32-check: New file.
72869         * lib/unistr/u8-check.c: New file.
72870         * lib/unistr/u16-check.c: New file.
72871         * lib/unistr/u32-check.c: New file.
72872
72873         * modules/unistr/u8-chr: New file.
72874         * modules/unistr/u16-chr: New file.
72875         * modules/unistr/u32-chr: New file.
72876         * lib/unistr/u8-chr.c: New file.
72877         * lib/unistr/u16-chr.c: New file.
72878         * lib/unistr/u32-chr.c: New file.
72879
72880         * modules/unistr/u8-cmp: New file.
72881         * modules/unistr/u16-cmp: New file.
72882         * modules/unistr/u32-cmp: New file.
72883         * lib/unistr/u8-cmp.c: New file.
72884         * lib/unistr/u16-cmp.c: New file.
72885         * lib/unistr/u32-cmp.c: New file.
72886
72887         * modules/unistr/u8-cpy: New file.
72888         * modules/unistr/u16-cpy: New file.
72889         * modules/unistr/u32-cpy: New file.
72890         * lib/unistr/u8-cpy.c: New file.
72891         * lib/unistr/u16-cpy.c: New file.
72892         * lib/unistr/u32-cpy.c: New file.
72893         * lib/unistr/u-cpy.h: New file.
72894
72895         * modules/unistr/u8-cpy-alloc: New file.
72896         * modules/unistr/u16-cpy-alloc: New file.
72897         * modules/unistr/u32-cpy-alloc: New file.
72898         * lib/unistr/u8-cpy-alloc.c: New file.
72899         * lib/unistr/u16-cpy-alloc.c: New file.
72900         * lib/unistr/u32-cpy-alloc.c: New file.
72901         * lib/unistr/u-cpy-alloc.h: New file.
72902
72903         * modules/unistr/u8-endswith: New file.
72904         * modules/unistr/u16-endswith: New file.
72905         * modules/unistr/u32-endswith: New file.
72906         * lib/unistr/u8-endswith.c: New file.
72907         * lib/unistr/u16-endswith.c: New file.
72908         * lib/unistr/u32-endswith.c: New file.
72909         * lib/unistr/u-endswith.h: New file.
72910
72911         * modules/unistr/u8-mblen: New file.
72912         * modules/unistr/u16-mblen: New file.
72913         * modules/unistr/u32-mblen: New file.
72914         * lib/unistr/u8-mblen.c: New file.
72915         * lib/unistr/u16-mblen.c: New file.
72916         * lib/unistr/u32-mblen.c: New file.
72917
72918         * modules/unistr/u8-mbtouc: New file.
72919         * modules/unistr/u16-mbtouc: New file.
72920         * modules/unistr/u32-mbtouc: New file.
72921         * lib/unistr/u8-mbtouc.c: New file.
72922         * lib/unistr/u16-mbtouc.c: New file.
72923         * lib/unistr/u32-mbtouc.c: New file.
72924
72925         * modules/unistr/u8-mbtouc-safe: New file.
72926         * modules/unistr/u16-mbtouc-safe: New file.
72927         * modules/unistr/u32-mbtouc-safe: New file.
72928         * lib/unistr/u8-mbtouc-safe.c: New file.
72929         * lib/unistr/u16-mbtouc-safe.c: New file.
72930         * lib/unistr/u32-mbtouc-safe.c: New file.
72931
72932         * modules/unistr/u8-move: New file.
72933         * modules/unistr/u16-move: New file.
72934         * modules/unistr/u32-move: New file.
72935         * lib/unistr/u8-move.c: New file.
72936         * lib/unistr/u16-move.c: New file.
72937         * lib/unistr/u32-move.c: New file.
72938         * lib/unistr/u-move.h: New file.
72939
72940         * modules/unistr/u8-next: New file.
72941         * modules/unistr/u16-next: New file.
72942         * modules/unistr/u32-next: New file.
72943         * lib/unistr/u8-next.c: New file.
72944         * lib/unistr/u16-next.c: New file.
72945         * lib/unistr/u32-next.c: New file.
72946
72947         * modules/unistr/u8-prev: New file.
72948         * modules/unistr/u16-prev: New file.
72949         * modules/unistr/u32-prev: New file.
72950         * lib/unistr/u8-prev.c: New file.
72951         * lib/unistr/u16-prev.c: New file.
72952         * lib/unistr/u32-prev.c: New file.
72953
72954         * modules/unistr/u8-set: New file.
72955         * modules/unistr/u16-set: New file.
72956         * modules/unistr/u32-set: New file.
72957         * lib/unistr/u8-set.c: New file.
72958         * lib/unistr/u16-set.c: New file.
72959         * lib/unistr/u32-set.c: New file.
72960         * lib/unistr/u-set.h: New file.
72961
72962         * modules/unistr/u8-startswith: New file.
72963         * modules/unistr/u16-startswith: New file.
72964         * modules/unistr/u32-startswith: New file.
72965         * lib/unistr/u8-startswith.c: New file.
72966         * lib/unistr/u16-startswith.c: New file.
72967         * lib/unistr/u32-startswith.c: New file.
72968         * lib/unistr/u-startswith.h: New file.
72969
72970         * modules/unistr/u8-stpcpy: New file.
72971         * modules/unistr/u16-stpcpy: New file.
72972         * modules/unistr/u32-stpcpy: New file.
72973         * lib/unistr/u8-stpcpy.c: New file.
72974         * lib/unistr/u16-stpcpy.c: New file.
72975         * lib/unistr/u32-stpcpy.c: New file.
72976         * lib/unistr/u-stpcpy.h: New file.
72977
72978         * modules/unistr/u8-stpncpy: New file.
72979         * modules/unistr/u16-stpncpy: New file.
72980         * modules/unistr/u32-stpncpy: New file.
72981         * lib/unistr/u8-stpncpy.c: New file.
72982         * lib/unistr/u16-stpncpy.c: New file.
72983         * lib/unistr/u32-stpncpy.c: New file.
72984         * lib/unistr/u-stpncpy.h: New file.
72985
72986         * modules/unistr/u8-strcat: New file.
72987         * modules/unistr/u16-strcat: New file.
72988         * modules/unistr/u32-strcat: New file.
72989         * lib/unistr/u8-strcat.c: New file.
72990         * lib/unistr/u16-strcat.c: New file.
72991         * lib/unistr/u32-strcat.c: New file.
72992         * lib/unistr/u-strcat.h: New file.
72993
72994         * modules/unistr/u8-strchr: New file.
72995         * modules/unistr/u16-strchr: New file.
72996         * modules/unistr/u32-strchr: New file.
72997         * lib/unistr/u8-strchr.c: New file.
72998         * lib/unistr/u16-strchr.c: New file.
72999         * lib/unistr/u32-strchr.c: New file.
73000
73001         * modules/unistr/u8-strcmp: New file.
73002         * modules/unistr/u16-strcmp: New file.
73003         * modules/unistr/u32-strcmp: New file.
73004         * lib/unistr/u8-strcmp.c: New file.
73005         * lib/unistr/u16-strcmp.c: New file.
73006         * lib/unistr/u32-strcmp.c: New file.
73007
73008         * modules/unistr/u8-strcpy: New file.
73009         * modules/unistr/u16-strcpy: New file.
73010         * modules/unistr/u32-strcpy: New file.
73011         * lib/unistr/u8-strcpy.c: New file.
73012         * lib/unistr/u16-strcpy.c: New file.
73013         * lib/unistr/u32-strcpy.c: New file.
73014         * lib/unistr/u-strcpy.h: New file.
73015
73016         * modules/unistr/u8-strcspn: New file.
73017         * modules/unistr/u16-strcspn: New file.
73018         * modules/unistr/u32-strcspn: New file.
73019         * lib/unistr/u8-strcspn.c: New file.
73020         * lib/unistr/u16-strcspn.c: New file.
73021         * lib/unistr/u32-strcspn.c: New file.
73022         * lib/unistr/u-strcspn.h: New file.
73023
73024         * modules/unistr/u8-strdup: New file.
73025         * modules/unistr/u16-strdup: New file.
73026         * modules/unistr/u32-strdup: New file.
73027         * lib/unistr/u8-strdup.c: New file.
73028         * lib/unistr/u16-strdup.c: New file.
73029         * lib/unistr/u32-strdup.c: New file.
73030         * lib/unistr/u-strdup.h: New file.
73031
73032         * modules/unistr/u8-strlen: New file.
73033         * modules/unistr/u16-strlen: New file.
73034         * modules/unistr/u32-strlen: New file.
73035         * lib/unistr/u8-strlen.c: New file.
73036         * lib/unistr/u16-strlen.c: New file.
73037         * lib/unistr/u32-strlen.c: New file.
73038         * lib/unistr/u-strlen.h: New file.
73039
73040         * modules/unistr/u8-strmblen: New file.
73041         * modules/unistr/u16-strmblen: New file.
73042         * modules/unistr/u32-strmblen: New file.
73043         * lib/unistr/u8-strmblen.c: New file.
73044         * lib/unistr/u16-strmblen.c: New file.
73045         * lib/unistr/u32-strmblen.c: New file.
73046
73047         * modules/unistr/u8-strmbtouc: New file.
73048         * modules/unistr/u16-strmbtouc: New file.
73049         * modules/unistr/u32-strmbtouc: New file.
73050         * lib/unistr/u8-strmbtouc.c: New file.
73051         * lib/unistr/u16-strmbtouc.c: New file.
73052         * lib/unistr/u32-strmbtouc.c: New file.
73053
73054         * modules/unistr/u8-strncat: New file.
73055         * modules/unistr/u16-strncat: New file.
73056         * modules/unistr/u32-strncat: New file.
73057         * lib/unistr/u8-strncat.c: New file.
73058         * lib/unistr/u16-strncat.c: New file.
73059         * lib/unistr/u32-strncat.c: New file.
73060         * lib/unistr/u-strncat.h: New file.
73061
73062         * modules/unistr/u8-strncmp: New file.
73063         * modules/unistr/u16-strncmp: New file.
73064         * modules/unistr/u32-strncmp: New file.
73065         * lib/unistr/u8-strncmp.c: New file.
73066         * lib/unistr/u16-strncmp.c: New file.
73067         * lib/unistr/u32-strncmp.c: New file.
73068
73069         * modules/unistr/u8-strncpy: New file.
73070         * modules/unistr/u16-strncpy: New file.
73071         * modules/unistr/u32-strncpy: New file.
73072         * lib/unistr/u8-strncpy.c: New file.
73073         * lib/unistr/u16-strncpy.c: New file.
73074         * lib/unistr/u32-strncpy.c: New file.
73075         * lib/unistr/u-strncpy.h: New file.
73076
73077         * modules/unistr/u8-strnlen: New file.
73078         * modules/unistr/u16-strnlen: New file.
73079         * modules/unistr/u32-strnlen: New file.
73080         * lib/unistr/u8-strnlen.c: New file.
73081         * lib/unistr/u16-strnlen.c: New file.
73082         * lib/unistr/u32-strnlen.c: New file.
73083         * lib/unistr/u-strnlen.h: New file.
73084
73085         * modules/unistr/u8-strpbrk: New file.
73086         * modules/unistr/u16-strpbrk: New file.
73087         * modules/unistr/u32-strpbrk: New file.
73088         * lib/unistr/u8-strpbrk.c: New file.
73089         * lib/unistr/u16-strpbrk.c: New file.
73090         * lib/unistr/u32-strpbrk.c: New file.
73091         * lib/unistr/u-strpbrk.h: New file.
73092
73093         * modules/unistr/u8-strrchr: New file.
73094         * modules/unistr/u16-strrchr: New file.
73095         * modules/unistr/u32-strrchr: New file.
73096         * lib/unistr/u8-strrchr.c: New file.
73097         * lib/unistr/u16-strrchr.c: New file.
73098         * lib/unistr/u32-strrchr.c: New file.
73099
73100         * modules/unistr/u8-strspn: New file.
73101         * modules/unistr/u16-strspn: New file.
73102         * modules/unistr/u32-strspn: New file.
73103         * lib/unistr/u8-strspn.c: New file.
73104         * lib/unistr/u16-strspn.c: New file.
73105         * lib/unistr/u32-strspn.c: New file.
73106         * lib/unistr/u-strspn.h: New file.
73107
73108         * modules/unistr/u8-strstr: New file.
73109         * modules/unistr/u16-strstr: New file.
73110         * modules/unistr/u32-strstr: New file.
73111         * lib/unistr/u8-strstr.c: New file.
73112         * lib/unistr/u16-strstr.c: New file.
73113         * lib/unistr/u32-strstr.c: New file.
73114         * lib/unistr/u-strstr.h: New file.
73115
73116         * modules/unistr/u8-strtok: New file.
73117         * modules/unistr/u16-strtok: New file.
73118         * modules/unistr/u32-strtok: New file.
73119         * lib/unistr/u8-strtok.c: New file.
73120         * lib/unistr/u16-strtok.c: New file.
73121         * lib/unistr/u32-strtok.c: New file.
73122         * lib/unistr/u-strtok.h: New file.
73123
73124         * modules/unistr/u8-uctomb: New file.
73125         * modules/unistr/u16-uctomb: New file.
73126         * modules/unistr/u32-uctomb: New file.
73127         * lib/unistr/u8-uctomb.c: New file.
73128         * lib/unistr/u16-uctomb.c: New file.
73129         * lib/unistr/u32-uctomb.c: New file.
73130
73131         * MODULES.html.sh (Unicode string functions): Add the new modules.
73132
73133 2007-01-08  Bruno Haible  <bruno@clisp.org>
73134
73135         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73136         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73137         subdirectories.
73138
73139 2007-01-08  Karl Berry  <karl@gnu.org>
73140
73141         * doc/error.texi: mention that main() fns must set program_name
73142         when progname is used.
73143
73144 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73147         WCTYPE_H is empty, for the benefit of builds from non-distclean
73148         directories.  Problem reported by Eric Blake in
73149         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73150
73151 2007-01-08  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73154         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73155         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73156         PROVIDE_CANONICALIZE_FILENAME_MODE.
73157         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73158
73159 2007-01-08  Bruno Haible  <bruno@clisp.org>
73160
73161         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73162         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73163         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73164         * lib/fts.c: Likewise.
73165         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73166
73167 2006-12-25  Bruno Haible  <bruno@clisp.org>
73168
73169         * modules/utf8-ucs4-safe: New file.
73170         * lib/utf8-ucs4-safe.h: New file.
73171         * lib/unistr/utf8-ucs4-safe.c: New file.
73172
73173         * modules/utf16-ucs4-safe: New file.
73174         * lib/utf16-ucs4-safe.h: New file.
73175         * lib/unistr/utf16-ucs4-safe.c: New file.
73176
73177         * MODULES.html.sh (Unicode string functions): Add the new modules.
73178
73179 2007-01-08  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73182         (Depends-on): Add unitypes.
73183         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73184         (u8_mbtouc_aux): Move out to separate file.
73185         (u8_mbtouc): Use ucs4_t, uint8_t types.
73186         * lib/unistr/utf8-ucs4.c: New file.
73187
73188         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73189         (Depends-on): Add unitypes.
73190         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73191         (u16_mbtouc_aux): Move out to separate file.
73192         (u16_mbtouc): Use ucs4_t, uint16_t types.
73193         * lib/unistr/utf16-ucs4.c: New file.
73194
73195         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73196         (Depends-on): Add unitypes.
73197         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73198         (u8_uctomb_aux): Move out to separate file.
73199         (u8_uctomb): Use ucs4_t, uint8_t types.
73200         * lib/unistr/ucs4-utf8.c: New file.
73201
73202         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73203         (Depends-on): Add unitypes.
73204         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73205         (u16_uctomb_aux): Move out to separate file.
73206         (u16_uctomb): Use ucs4_t, uint16_t types.
73207         * lib/unistr/ucs4-utf16.c: New file.
73208
73209 2006-12-25  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/unitypes: New file.
73212         * lib/unitypes.h: New file.
73213         * MODULES.html.sh (func_all_modules): New section "Unicode string
73214         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73215         this section. Add unitypes.
73216
73217 2007-01-08  Bruno Haible  <bruno@clisp.org>
73218
73219         Avoid variable names that conflict with those from libtool.
73220         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73221         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73222         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73223         library_names_spec to acl_library_names_spec, hardcode_* to
73224         acl_hardcode_*.
73225         Reported by Ralf Wildenhues.
73226
73227 2007-01-08  Bruno Haible  <bruno@clisp.org>
73228
73229         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73230         definition.
73231         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73232         definition.
73233         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73234         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73235         definition.
73236         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73237         definition.
73238         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73239         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73240         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73241         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73242         definition.
73243         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73244         definition.
73245         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73246         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73247         GC_USE_<algorithm>.
73248         * lib/gc-libgcrypt.c: Likewise.
73249         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73250         * modules/gc-arctwo (configure.ac): Likewise.
73251         * modules/gc-des (configure.ac): Likewise.
73252         * modules/gc-hmac-md5 (configure.ac): Likewise.
73253         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73254         * modules/gc-md2 (configure.ac): Likewise.
73255         * modules/gc-md4 (configure.ac): Likewise.
73256         * modules/gc-md5 (configure.ac): Likewise.
73257         * modules/gc-random (configure.ac): Likewise.
73258         * modules/gc-rijndael (configure.ac): Likewise.
73259         * modules/gc-sha1 (configure.ac): Likewise.
73260
73261 2007-01-08  Bruno Haible  <bruno@clisp.org>
73262
73263         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73264         macro definition.
73265         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73266         definition.
73267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73268         definition.
73269         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73270         * modules/fcntl-safer (configure.ac): Likewise.
73271         * modules/fopen-safer (configure.ac): Likewise.
73272         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73273         GNULIB_FWRITEERROR macro definition.
73274
73275 2007-01-08  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/gnulib-common.m4: New file.
73278         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73279         (func_get_filelist): Add m4/gnulib-common.m4.
73280
73281 2007-01-08  Bruno Haible  <bruno@clisp.org>
73282
73283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73284         command.
73285
73286 2007-01-08  Jim Meyering  <jim@meyering.net>
73287
73288         Use a more robust test for a "can't happen" condition.
73289         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73290         narrowed the st_size value.  Presuming the "can't happen" condition
73291         is true, that narrowing could conceivably convert an invalid st_size
73292         value into a valid one.  Instead, use a change based on Matthew
73293         Woehlke's original patch.
73294
73295         Slight readability improvement: use an assert-like macro
73296         in place of literal "abort ()" uses.
73297         * lib/fts.c (fts_assert): Define.
73298         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73299         Use this macro instead of a bare 'abort'.
73300
73301 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73304         simply work around them.
73305         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73306         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73307         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73308         declaring.
73309         Don't bother to define as macros, since the standard doesn't require it.
73310         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73311         longer worry about IRIX 5.3.
73312         (HAVE_WCTYPE_CTMP_BUG): Remove.
73313
73314 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73317         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73318         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73319         Problems reported by Georg Schwarz for IRIX 5.3.
73320
73321         * gnulib-tool (autoconf_minversion): Take the maximum version number
73322         found, not the minimum.  Problem reported by James Youngman.
73323
73324 2007-01-03  Karl Berry  <karl@gnu.org>
73325
73326         * doc/error.texi: new file, explaining interaction with progname.
73327         * doc/gnulib.texi: include it.  Update copyright.
73328
73329 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73330
73331         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73332         AC_CANONICAL_HOST, to improve autobuild outputs.
73333
73334 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73335             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73336
73337         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73338         sockets, server sockets, and other file descriptors.  Count errors
73339         to compute the return value.  Reorder the code a bit to be easier
73340         to follow.  Don't set event bits that were not requested (except
73341         POLLERR and POLLHUP).
73342
73343 2007-01-01  Bruno Haible  <bruno@clisp.org>
73344
73345         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73346
73347 2007-01-03  Jim Meyering  <jim@meyering.net>
73348
73349         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73350
73351 2007-01-02  Bruno Haible  <bruno@clisp.org>
73352
73353         * modules/settime (Include): Require timespec.h.
73354         * modules/nanosleep (Include): Likewise.
73355
73356 2007-01-01  Bruno Haible  <bruno@clisp.org>
73357
73358         * gnulib-tool (func_emit_copyright_notice): Bump year.
73359         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73360
73361 2007-01-01  Bruno Haible  <bruno@clisp.org>
73362
73363         Improve support for OpenBSD.
73364         * build-aux/config.rpath (libname_spec): Export.
73365         (library_names_spec): New variable. Export.
73366         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73367         library_names_spec from the config.rpath output. Locate shared library
73368         through the name pattern in library_names_spec.
73369
73370 2007-01-01  Eric Blake  <ebb9@byu.net>
73371
73372         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73373
73374 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73375
73376         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73377         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73378         assume the C locale, and avoid an "eval" that could cause trouble.
73379         Problem with SORT reported by Bob Proulx.
73380
73381         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73382         Define.  Trivial patch from Henning Nielsen Lund, originally
73383         sent to bug-grep@gnu.org today.
73384
73385 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73388         struct stat.  Problem reported by Henning Nielsen Lund.
73389         * lib/acl.c: Include acl.h first, to check interface.  Don't
73390         bother to include sys/types.h and sys/stat.h again.
73391
73392 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         Import the following change from libc; problem reported by
73395         Sven Verdoolaege.
73396
73397         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73398
73399         [BZ #1373]
73400         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73401
73402 2006-12-28  Jim Meyering  <jim@meyering.net>
73403
73404         * build-aux/announce-gen: Do not assume that the package
73405         builds any of tar.gz, tar.bz2, and .xdelta files.
73406         Suggestion from Simon Josefsson.
73407
73408 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73409
73410         * modules/announce-gen: New file.
73411
73412 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73415         handles its gotchas now.
73416         * lib/mbswidth.c: Likewise.
73417         * lib/wcwidth.h: Likewise.
73418         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73419         and iswcntrl; the wctype module does this stuff now.
73420         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73422         * modules/mbchar (Depends-on): Add wctype.
73423         * modules/mbswidth (Depends-on): Likewise.
73424         * modules/wcwidth (Depends-on): Likewise.
73425
73426 2006-12-27  Eric Blake  <ebb9@byu.net>
73427
73428         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73429         module uses more than what <wctype.h> is required to provide.
73430
73431 2006-12-26  Eric Blake  <ebb9@byu.net>
73432
73433         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73434
73435 2006-12-26  Eric Blake  <ebb9@byu.net>
73436
73437         * modules/absolute-header: New module.
73438         * modules/fcntl (Depends-on): Depend on it.
73439         * modules/inttypes (Depends-on): Likewise.
73440         * modules/stdint (Depends-on): Likewise.
73441         * modules/sys_stat (Depends-on): Likewise.
73442         * modules/wctype (Depends-on): Likewise.
73443         * MODULES.html.sh (Support for building libraries and
73444         executables): Document it.
73445
73446 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * gnulib-tool (SED): Remove, undoing previous change.
73449         The problem was that it broke coreutils on Solaris, because
73450         "sed --posix" leaked into a makefile.
73451         (sed): New alias, if 'alias' and GNU sed.
73452
73453 2006-12-24  Jim Meyering  <jim@meyering.net>
73454
73455         Work around an fchownat bug in glibc-2.4:
73456         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73457         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73458         in spite of the -P option.
73459         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73460         New macros.
73461         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73462         * modules/openat (Files): Add lib/fchownat.c.
73463         * lib/openat.c (fchownat): Don't define here.  Move to...
73464         * lib/fchownat.c: ...this new file.
73465
73466 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         Fix bug reported by Bruno Haible in
73469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73470         where quotearg.c didn't compile on Mac OS X 10.2 because it
73471         lacks <wchar.h> and wint_t.
73472         * lib/wctype_.h (__wctype_wint_t): New type.
73473         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73474         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73475         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73476         Arg is now of type __wctype_wint_t, not wint_t.
73477         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73478         substitute HAVE_WINT_T.
73479         * modules/wctype (Files): Add m4/wint_t.m4.
73480         (wctype.h): Substitute HAVE_WINT_T.
73481
73482 2006-12-23  Bruno Haible  <bruno@clisp.org>
73483
73484         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73485
73486 2006-12-23  Bruno Haible  <bruno@clisp.org>
73487
73488         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73489         S_ISLNK.
73490         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73491         mingw.
73492
73493 2006-12-22  Bruno Haible  <bruno@clisp.org>
73494
73495         * lib/copy-file.c: Include acl.h.
73496         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73497         Close the file descriptors only after being done with copy_acl.
73498         * modules/copy-file (Depends-on): Add acl.
73499
73500 2006-12-22  Bruno Haible  <bruno@clisp.org>
73501
73502         * gnulib-tool (SED): New variable.
73503         Use $SED instead of sed everywhere.
73504
73505 2006-12-22  Bruno Haible  <bruno@clisp.org>
73506
73507         * modules/no-c++: New file.
73508         * m4/no-c++.m4: New file.
73509         * MODULES.html.sh (Support for building libraries and executables):
73510         Add no-c++.
73511
73512 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73515         Include <limits.h>, and use its INT_MAX to rewrite the
73516         j loop so that it does not overflow 'int'.  Problem reported by
73517         Ralf Wildenhues in
73518         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73519         Play it safe by shifting left by 1 rather than multiplying by 2,
73520         as GCC is less likely to optimize this away when the value
73521         is signed (when it assumes overflow leads to undefined behavior).
73522         Also, don't assume time_t uses two's complement.
73523
73524 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73525
73526         * MODULES.html.sh: New module wctype.
73527         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73528         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73529         <wctype.h>, since the new wctype module should fix this.
73530         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73531         the wctype module should arrange for it.
73532         * lib/regex_internal.h: Likewise.
73533         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73534         since the wctype module should handle this now.
73535         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73536         * modules/fnmatch (Depends-on): Add wctype.
73537         * modules/quotearg (Depends-on): Likewise.
73538         * modules/regex (Depends-on): Likewise.
73539
73540 2006-12-19  Bruno Haible  <bruno@clisp.org>
73541
73542         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73543         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73544
73545 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73546
73547         * modules/savewd (Depends-on): Fix dependency on fcntl.
73548
73549 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73552         conforms to C99, rather than relying on the user's environment
73553         setting of STDINT_H.
73554
73555 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73556         and Eric Blake  <ebb9@byu.net>
73557
73558         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73559         This is more consistent with the other defines here.
73560         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73561         Port to z/OS.  Problem reported by Paul Gilmartin.
73562         Change local vars to use gl_ prefix rather than ac_.
73563         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73564         with other defines.
73565         * modules/double-slash-root: New module.
73566         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73567         (Depends-on): Add double-slash-root.
73568         * MODULES.html.sh (File system functions): Mention new module.
73569
73570 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73573         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73574         This is for the benefit of gzip, which doesn't do i18n.
73575
73576 2006-12-12  Jim Meyering  <jim@meyering.net>
73577
73578         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73579         Reported by Andreas Schwab <schwab@suse.de>.
73580
73581 2006-12-12  Bruno Haible  <bruno@clisp.org>
73582
73583         Merge these changes.
73584         2006-09-05  Bruno Haible  <bruno@clisp.org>
73585         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73586         iconv_alloc succeeded.
73587         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73588         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73589         test for " && dest " at the end - dest is always != NULL there. Call
73590         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73591         with 2xNULL arguments, also to flush the state storage. Handle the
73592         IRIX iconv behaviour. Realloc the final result, to throw away unused
73593         memory.
73594
73595 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73598         and fchmodat unconditionally, since glibc 2.4 has them.
73599         Problem reported by Arkadiusz Miskiewicz.
73600
73601 2006-12-10  Bruno Haible  <bruno@clisp.org>
73602
73603         * gnulib-tool (func_import): Show the include files only for those
73604         modules that are copied and specified.
73605         Reported by Karl Berry.
73606
73607 2006-12-08  Jim Meyering  <jim@meyering.net>
73608
73609         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73610         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73611
73612         * build-aux/announce-gen: Add two new options, both optional:
73613         --bootstrap-tools=TOOL_LIST
73614               a comma-separated list of tools, e.g.,
73615               autoconf,automake,bison,gnulib
73616         --gnulib-snapshot-date=DATE
73617               if gnulib is in the bootstrap tool list,
73618               then report this as the snapshot date.
73619               If not specified, use the current date/time.
73620               If you specify a date here, be sure it's UTC.
73621
73622 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73623
73624         * tests/test-argp-2.sh: Fix test to match actual output.
73625         (func_compare): Fix sed script to be portable.
73626
73627 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73630         workaround for this case.  It is not autoconfigured now; offhand
73631         it's hard to see how to autoconfigure it.
73632
73633 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73636         a directory that is about to be chowned.  Such a directory's
73637         initial file permissions should permit the owner only and this
73638         should not be changed until after the chown, since the group and
73639         other bits would be incorrect if they granted permission before
73640         the chown.
73641
73642         Fix porting problem for iswctype reported by Georg Schwarz in:
73643         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73644         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73645         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73647         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73648
73649 2006-12-03  Jim Meyering  <jim@meyering.net>
73650
73651         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73652         p->fts_statp may not yet be defined.
73653         (fts_read): Instead, set it in the caller, once p->fts_statp is
73654         sure to be defined, and corresponds to a top-level directory.
73655         This bug made du -x fail.  Here's the coreutils test case:
73656         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73657         Reported by Mike Frysinger.
73658
73659 2006-12-01  Jim Meyering  <jim@meyering.net>
73660
73661         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73662         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73663         Reported by Simon Josefsson.
73664
73665 2006-11-30  Jim Meyering  <jim@meyering.net>
73666
73667         * m4/warning.m4: Use the all-permissive copyright notice
73668         recommended by RMS (rather than LGPL).
73669         * m4/vararrays.m4: Likewise.
73670         * m4/flexmember.m4: Likewise.
73671
73672 2006-11-29  Bruno Haible  <bruno@clisp.org>
73673
73674         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73675         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73676         using +=.
73677         Reported by Simon Josefsson <simon@josefsson.org>.
73678
73679 2006-11-28  James Youngman <jay@gnu.org>
73680
73681         * README: Advise users that they might find the bug-gnulib@gnu.org
73682         and autotools-announce@gnu.org mailing lists useful.
73683
73684 2006-11-28  Bruno Haible  <bruno@clisp.org>
73685
73686         * m4/ptrdiff_max.m4: Remove file.
73687
73688 2006-11-21  Bruno Haible  <bruno@clisp.org>
73689
73690         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73691         _AC_COMPUTE_INT.
73692         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73693         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73694         _AC_COMPUTE_INT.
73695         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73696         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73697         _AC_COMPUTE_INT.
73698         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73699
73700 2006-11-28  Jim Meyering  <jim@meyering.net>
73701
73702         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73703         warning from "gcc -Wshadow" about shadowing the builtin.
73704
73705 2006-11-27  Bruno Haible  <bruno@clisp.org>
73706
73707         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73708         _AC_COMPUTE_INT.
73709         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73710
73711 2006-11-27  Bruno Haible  <bruno@clisp.org>
73712             Paul Eggert  <eggert@cs.ucla.edu>
73713
73714         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73715
73716 2006-11-26  Bruno Haible  <bruno@clisp.org>
73717
73718         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73719         noinst_LTLIBRARIES.
73720
73721 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73722             Bruno Haible  <bruno@clisp.org>
73723
73724         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73725         if compiling with "gcc -ansi".
73726
73727 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         Fix some incompatibilities with gcc -ansi -pedantic.
73730         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73731         if compiling pedantically with GCC, unless it's C99 or later.
73732         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73733         it mishandles gcc -ansi -pedantic as well.
73734         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73735         if gcc -pedantic.
73736         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73737         initializers for struct if -pedantic, unless it's C99 or later.
73738
73739 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73740
73741         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73742         Don't close an fd more than once. Identical atimes indicate
73743         success, not failure.
73744
73745 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73746
73747         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73748
73749 2006-11-23  Jim Meyering  <jim@meyering.net>
73750
73751         * build-aux/announce-gen: New file.  From coreutils.
73752
73753 2006-11-22  Jim Meyering  <jim@meyering.net>
73754
73755         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73756         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73757         (fts_read): Use a temporary to narrow the overused st_size member
73758         before using it in a switch statement.  Reported by Matthew Woehlke.
73759
73760         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73761         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73762
73763 2006-11-20  Bruno Haible  <bruno@clisp.org>
73764
73765         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73766         changequote instead of pairs of brackets.
73767         Reported by Andreas Schwab <schwab@suse.de>.
73768
73769 2006-11-21  Jim Meyering  <jim@meyering.net>
73770
73771         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73772         so as to remain compatible with older compilers.
73773         Patch from Michael Deutschmann.
73774
73775 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * MODULES.html.sh (File system functions): Add openat.
73778
73779         * lib/openat.h (rpl_fstatat): New macro, if
73780         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73781         (fstatat): Define to rpl_fstatat under the same conditions,
73782         unless COMPILING_FSTATAT.
73783         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73784         seems to have the bug.
73785         * lib/fstatat.c: New file.
73786         * modules/openat (Files): Add it.
73787
73788 2006-11-20  Bruno Haible  <bruno@clisp.org>
73789
73790         * Makefile: New file.
73791
73792 2006-11-20  Jim Meyering  <jim@meyering.net>
73793
73794         The beginnings of syntax-related checks for gnulib.
73795         * lib/Makefile: New file.
73796         * lib/t-idcache: New script.  Ensure that the two halves of
73797         idcache.c stay in sync.
73798
73799         * lib/idcache.c: Adjust comments in user- and group- portions to
73800         be more accurate, and to be consistent with one another.
73801
73802 2006-11-20  Jim Meyering  <jim@meyering.net>
73803
73804         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73805         continue using the flexible array member (thus, this module performs
73806         half as many malloc calls), with the addition that...
73807         (getgroup, getuser): Consistently record a non-match via an empty
73808         "name" string, and map an empty string match to a NULL return value.
73809         * modules/idcache (Depends-on): Re-add flexmember.
73810
73811         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73812         (getuidbyname, getgroup, getgidbyname): Likewise.
73813
73814         Use cleaner syntax: NULL rather than 0.
73815         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73816
73817 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73818
73819         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73820         It mishandled the case where the group was missing.
73821         Problem reported by Greg Schafer.
73822         * modules/idcache: Likewise.
73823
73824 2006-11-18  Jim Meyering  <jim@meyering.net>
73825
73826         * check-module (%exempt_header): Add exception for some
73827         conditionally-included headers.
73828
73829         * modules/i-ring (Depends-on): Add verify.
73830         (License): Change to LGPL.
73831
73832 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73835         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73836         and inttostr.h.  Use snprintf rather than uinttostr, so that
73837         LGPLed code doesn't depend on GPLed.
73838
73839 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * modules/inline (License): Change from GPL to LGPL.
73842
73843 2006-11-17  Jim Meyering  <jim@meyering.net>
73844
73845         * modules/d-type (License): Switch to LGPL.
73846
73847 2006-11-15  Bruno Haible  <bruno@clisp.org>
73848
73849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73850
73851 2006-11-15  Eric Blake  <ebb9@byu.net>
73852
73853         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73854         the module dependency.
73855
73856 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73857             Bruno Haible  <bruno@clisp.org>
73858
73859         * gnulib-tool (func_create_testdir): Add license consistency check.
73860
73861 2006-11-15  Eric Blake  <ebb9@byu.net>
73862
73863         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73864         random "(cached)" in configure output.
73865
73866 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73867
73868         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73869         test for conforming inttypes.h is both announced and cached.
73870
73871         * MODULES.html.sh (seen_modules, seen_files): New variables.
73872         (func_module): Rewrite to use a few less gnulib-tool and sed
73873         invocations.  Avoid a couple of quadratic algorithms for ...
73874         (missed_modules, missed_files): ... these, with ...
73875         (func_append, func_tmpdir): ... these new functions, from
73876         gnulib-tool.  Analogously, install traps for cleanup.
73877
73878         * tests/test-gc.c (main): Remove unused variables.
73879         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73880
73881 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * modules/inttostr (License): Change to LGPL.
73884
73885 2006-11-14  Eric Blake  <ebb9@byu.net>
73886
73887         * modules/tempname (License): Change to LGPL.
73888
73889 2006-11-14  Eric Blake  <ebb9@byu.net>
73890
73891         * doc/functions.texi (Function Portability): *printf functions on
73892         Cygwin now understand all POSIX size specifiers.
73893
73894 2006-11-14  Bruno Haible  <bruno@clisp.org>
73895
73896         * modules/c-ctype (License): Change to LGPL.
73897
73898 2006-11-12  Bruno Haible  <bruno@clisp.org>
73899
73900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73901         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73902         for GNOME libraries, for which the include files are installed in
73903         subdirectories of $prefix/include.
73904
73905 2006-11-12  Bruno Haible  <bruno@clisp.org>
73906
73907         * m4/lib-link.m4: Require at least autoconf-2.54.
73908         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73909         name to underscores for the --with option.
73910
73911 2006-11-13  Bruno Haible  <bruno@clisp.org>
73912
73913         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73914         the tests directory.
73915         Reported by Ralf Wildenhues.
73916
73917 2006-11-13  Bruno Haible  <bruno@clisp.org>
73918
73919         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73920         (func_emit_initmacro_end): Undo the override here.
73921         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73922         Works around the famous automake error in coreutils.
73923
73924 2006-11-13  Eric Blake  <ebb9@byu.net>
73925
73926         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73927         element, not its node.
73928
73929 2006-11-12  Bruno Haible  <bruno@clisp.org>
73930
73931         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73932         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73933
73934 2006-11-12  Bruno Haible  <bruno@clisp.org>
73935
73936         * gnulib-tool: New option --local-symlink.
73937         (func_usage): Document it.
73938         (lsymbolic): New variable.
73939         (func_import, func_create_testdir): If --symlink was not specified,
73940         test whether --local-symlink was specified and the file comes from
73941         the local_gnulib_dir.
73942
73943 2006-11-12  Bruno Haible  <bruno@clisp.org>
73944
73945         * gnulib-tool (func_ln): New function.
73946         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73947
73948 2006-11-12  Bruno Haible  <bruno@clisp.org>
73949
73950         Finish support for source files in subdirectories.
73951         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73952         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73953         AUTOMAKE_OPTIONS.
73954         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73955
73956 2006-11-12  Bruno Haible  <bruno@clisp.org>
73957
73958         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73959         EXTRA_lib_SOURCES augmentation.
73960         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73961
73962 2006-11-12  Jim Meyering  <jim@meyering.net>
73963
73964         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73965         file descriptors.  This also averts a failure on systems with
73966         native openat support when a traversed directory lacks "x" access.
73967         * lib/fts_.h: Include "i-ring.h"
73968         (struct FTS) [fts_fd_ring]: New member.
73969         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73970         (FCHDIR): Add parentheses.
73971         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73972         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73973         When descending, rather than simply closing the previous
73974         fts_cwd_fd value, push that file descriptor onto the ring.
73975         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73976         (fts_open): Initialize the new fd_ring member.
73977         (fts_close): Clear the ring.
73978         (fts_safe_changedir): When possible, use our new fd_ring to skip
73979         the diropen and fstat and dev/ino comparison that would normally
73980         accompany a virtual `chdir ("..")'.
73981
73982         * modules/fts (Depends-on): Add i-ring.
73983         * modules/i-ring: New module.
73984         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73985         * m4/i-ring.m4: New file.
73986
73987 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73988
73989         * gnulib-tool (func_create_testdir): Fix replacement of
73990         `build-aux' in configure.ac.  Run autotools in gltests
73991         subdirectory.
73992         (func_create_testdir, func_create_megatestdir, test): There is
73993         no need for '--force' in most autotool invocations in a new
73994         tree.  Actually fail the whole test if any of the tools, or the
73995         configure or make stages fail.
73996
73997         Sync from Automake.
73998         * build-aux/gnupload: Revert last change.  Add pointer to upload
73999         instructions of the GNU Maintenance Instructions.
74000         Suggestion by Karl Berry.
74001
74002 2006-11-10  Jim Meyering  <jim@meyering.net>
74003
74004         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74005
74006 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74009         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74010         (bind_textdomain_codeset) [! ENABLE_NLS]:
74011         Evaluate all the arguments.  That way, callers get compatible behavior
74012         if the arguments have side effects.  Also, it avoids some GCC
74013         diagnostics in some cases; Joel E. Denny reported problems when Bison
74014         was configured with --enable-gcc-warnigs.
74015
74016 2006-11-10  Jim Meyering  <jim@meyering.net>
74017
74018         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74019         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74020         account.
74021
74022 2006-11-10  Jim Meyering  <jim@meyering.net>
74023
74024         * modules/inline: New file/module.
74025         * modules/xalloc (Files): Remove m4/inline.m4.
74026         (Depends-on): Add inline, instead.
74027         * modules/oset: Likewise.
74028         * modules/list: Likewise.
74029
74030 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74033         Problem reported by Matthew Woehlke.
74034
74035 2006-11-09  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/tempname.c (gen_tempname): Remove variant that invokes
74038         __gen_tempname.
74039         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74040         __gen_tempname.
74041
74042 2006-11-08  Bruno Haible  <bruno@clisp.org>
74043
74044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74045         to 'yes' instead of 'cross-compiling'.
74046
74047 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * lib/quotearg.h (quotearg_free): New decl.
74050         * lib/quotearg.c (quotearg_free): New function.
74051         (slot0, nslots, slotvec0, slotvec):
74052         Now file-scope so that quotearg_free can get at them.
74053
74054 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74055
74056         Sync from Automake.
74057         * build-aux/gnupload: Add missing 'gnu' to example URL.
74058         Report by Karl Berry.
74059
74060 2006-11-08  Bruno Haible  <bruno@clisp.org>
74061
74062         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74063         Suggested by Paul Eggert.
74064
74065 2006-11-08  Jim Meyering  <jim@meyering.net>
74066
74067         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74068         It's already included if !_LIBC.
74069         (fts_safe_changedir): Add a comment.
74070
74071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74074         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74075         Matthew Woehlke.
74076
74077         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74078         definitions up, to avoid colliding with change below.
74079         (static_inline) [HAVE_INLINE]: New macro.
74080         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74081         Provide extern decls when !HAVE_INLINE.  Do not define unless
74082         static_inline is defined, either by us or by xmalloc.c.  Use
74083         static_inline rather than static inline.
74084         (XCALLOC): Optimize sizeof(T) = 1 case.
74085         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74086
74087 2006-11-07  Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74090         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74091         AC_C_INLINE.
74092         * modules/xalloc (Files): Add m4/inline.m4.
74093
74094 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74095
74096         * README: Fix typo.
74097         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74098         (Miscellanous Notes): ...from this.
74099
74100 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74101
74102         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74103         Mention that offsetof should be used instead of sizeof.
74104         From Bruno Haible.
74105
74106 2006-11-07  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74109
74110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74113         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74114         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74115         (gl_tree_add_before, gl_tree_add_after):
74116         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74117         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74118         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74119         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74120         (gl_linked_add_after, gl_linked_add_at): Likewise.
74121         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74122         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74123         (gl_tree_add_before, gl_tree_add_after): Likewise.
74124         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74125         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74126         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74127
74128 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74129
74130         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74131
74132 2006-11-06  Bruno Haible  <bruno@clisp.org>
74133
74134         * m4/inline.m4: New file.
74135         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74136         * modules/list (Files): Add m4/inline.m4.
74137         * modules/oset (Files): Likewise.
74138
74139 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * lib/idcache.c: Include <stddef.h>, for offsetof.
74142         (struct userid.name): Change from char * to a flexible array member.
74143         All uses changed.
74144         * modules/idcache (Depends-on): Add flexmember.
74145
74146         * MODULES.html.sh (Core language properties): New module flexmember.
74147         * modules/flexmember, m4/flexmember.m4: New files.
74148
74149         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74150         inline functions that are identical with the old xnmalloc_inline,
74151         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74152         that we can avoid some unnecessary integer multiplications and
74153         divisions in the common case where the element size is known at
74154         compile time.
74155         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74156         needed.
74157         (xnboundedmalloc): Remove.
74158         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74159         arguments, for consistency with rest of this header.
74160         (xcharalloc): Rewrite using XNMALLOC.
74161         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74162         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74163         versions have been moved to lib/xalloc.h and renamed to be the
74164         non-*_inline versions.
74165         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74166         and xnrealloc functions, since those functions are now inline and
74167         now call us.
74168         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74169         renaming described above.
74170         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74171         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74172         captures the dependency in AC_C_INLINE.
74173
74174         New module canonicalize-lgpl, proposed by Charles Wilson in
74175         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74176         with a few small changes afterwards.
74177         * MODULES.html.sh (File system functions): New module
74178         canonicalize-lgpl.
74179         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74180         and canonicalize_file_name.
74181         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74182         * modules/canonicalize-lgpl: New files.
74183
74184 2006-11-05  Bruno Haible  <bruno@clisp.org>
74185
74186         * gnulib-tool (func_import, func_create_testdir): Create directories
74187         also for files in subdirectories of lib/.
74188
74189 2006-11-05  Bruno Haible  <bruno@clisp.org>
74190
74191         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74192         ANSI C compliant.
74193
74194 2006-11-03  Bruno Haible  <bruno@clisp.org>
74195
74196         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74197         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74198         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74199         (xnboundedmalloc): New inline function.
74200         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74201         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74202         xmalloc.
74203         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74204         xmalloc.
74205         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74206         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74207         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74208         xmalloc.
74209         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74210         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74211         xmalloc.
74212         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74213         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74214         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74215         xmalloc.
74216         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74217         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74218         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74219         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74220         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74221         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74222         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74223
74224 2006-11-03  Bruno Haible  <bruno@clisp.org>
74225
74226         * lib/c-ctype.h [C++]: Define functions without name mangling.
74227         * lib/fwriteerror.h [C++]: Likewise.
74228         * lib/gcd.h [C++]: Likewise.
74229         * lib/linebreak.h [C++]: Likewise.
74230
74231 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74234         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74235         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74236         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74237         Check for functions and headers just once.
74238         Check for declaration of canonicalize_file_name.
74239         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74240
74241 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74242
74243         * gnulib-tool (func_import): Fix typo in actioncmd.
74244
74245 2006-11-02  Bruno Haible  <bruno@clisp.org>
74246
74247         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74248         newline sequence in the Makefile.am snippet as a space, like "make"
74249         does.
74250         Reported by Roger Persson <perrog@gmail.com>.
74251
74252 2006-11-01  Bruno Haible  <bruno@clisp.org>
74253
74254         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74255         already declared in <string.h>.
74256         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74257
74258 2006-11-01  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74261         * lib/strcase.h: Include <string.h>.
74262         (strcasecmp): Define to rpl_strcasecmp here.
74263
74264 2006-11-01  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74267
74268 2006-11-01  Eric Blake  <ebb9@byu.net>
74269
74270         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74271
74272         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74273
74274 2006-10-29  Bruno Haible  <bruno@clisp.org>
74275
74276         Make it compile in C++ mode.
74277         * lib/full-write.c (full_rw): Add a cast.
74278
74279 2006-11-01  Bruno Haible  <bruno@clisp.org>
74280
74281         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74282         be POSIX compliant.
74283         Reported by Roger Persson <perrog@gmail.com>.
74284
74285 2006-11-01  Eric Blake  <ebb9@byu.net>
74286
74287         * lib/getopt_.h: Fix comments.
74288
74289 2006-10-31  Eric Blake  <ebb9@byu.net>
74290
74291         * modules/tmpdir (Depends-on): Add sys_stat.
74292         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74293         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74294         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74295         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74296         tempname.
74297
74298 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         Avoid some C++ diagnostics reported by Bruno Haible.
74301         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74302         xmalloc.
74303         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74304         (struct slotvec): Move to top level.
74305         (quotearg_n_options): Rewrite to avoid xmalloc.
74306         * lib/xalloc.h (xcharalloc): New function.
74307         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74308         [defined __cplusplus]: Add function template that provides result
74309         type propagation.  This part of the change is from Bruno Haible.
74310
74311 2006-10-29  Bruno Haible  <bruno@clisp.org>
74312
74313         Make it compile in C++ mode.
74314         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74315         * lib/strnlen1.c (strnlen1): Cast memchr result.
74316         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74317         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74318         (create_temp_dir): Rename local variable 'template'.
74319         (compile_csharp_using_sscli): Add cast.
74320         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74321         * lib/findprog.c (find_in_path): Likewise.
74322         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74323         * lib/wait-process.c (register_slave_subprocess): Likewise.
74324
74325 2006-10-22  Bruno Haible  <bruno@clisp.org>
74326
74327         * modules/tsearch: New file.
74328         * lib/tsearch.h: New file.
74329         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74330         * m4/tsearch.m4: New file.
74331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74332
74333 2006-10-29  Eric Blake  <ebb9@byu.net>
74334
74335         * lib/arcfour.c: Assume config.h.
74336         * lib/arctwo.c: Likewise.
74337         * lib/base64.c: Likewise.
74338         * lib/check-version.c: Likewise.
74339         * lib/crc.c: Likewise.
74340         * lib/des.c: Likewise.
74341         * lib/gc-gnulib.c: Likewise.
74342         * lib/gc-libgcrypt.c: Likewise.
74343         * lib/gc-pbkdf2-sha1.c: Likewise.
74344         * lib/getaddrinfo.c: Likewise.
74345         * lib/getdelim.c: Likewise.
74346         * lib/getline.c: Likewise.
74347         * lib/hmac-md5.c: Likewise.
74348         * lib/hmac-sha1.c: Likewise.
74349         * lib/iconvme.c: Likewise.
74350         * lib/md2.c: Likewise.
74351         * lib/md4.c: Likewise.
74352         * lib/memxor.c: Likewise.
74353         * lib/read-file.c: Likewise.
74354         * lib/readline.c: Likewise.
74355         * lib/rijndael-alg-fst.c: Likewise.
74356         * lib/rijndael-api-fst.c: Likewise.
74357         * lib/xgetdomainname.c: Likewise.
74358
74359 2006-10-28  Eric Blake  <ebb9@byu.net>
74360
74361         * lib/xstrndup.c: Assume config.h.
74362
74363 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74364
74365         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74366         stat-macros.h is now for our own macros, whereas stat_h is for
74367         macros in the <sys/stat.h> name space.
74368         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74369         (STAT_MACROS_H): Remove.
74370         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74371         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74372         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74373         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74374         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74375         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74376         Move these macros to ...
74377         * lib/stat_.h: here.  Don't include stat-macros.h.
74378         * lib/canonicalize.c: Don't include stat-macros.h.
74379         * lib/chown.c: Likewise.
74380         * lib/euidaccess.c: Likewise.
74381         * lib/file-type.c: Likewise.
74382         * lib/filemode.c: Likewise.
74383         * lib/glob.c: Likewise.
74384         * lib/isapipe.c: Likewise.
74385         * lib/lchown.c: Likewise.
74386         * lib/lstat.c: Likewise.
74387         * lib/mkdir-p.c: Likewise.
74388         * lib/rmdir.c: Likewise.
74389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74391         unless mkdir isn't declared, to speed up 'configure'.
74392         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74393         would define all the S_* symbols.
74394         * modules/canonicalize (Depends-on):
74395         Depend on sys_stat, not stat-macros.
74396         * modules/chown: Likewise.
74397         * modules/euidaccess: Likewise.
74398         * modules/filemode: Likewise.
74399         * modules/file-type: Likewise.
74400         * modules/glob: Likewise.
74401         * modules/isapipe: Likewise.
74402         * modules/lchown: Likewise.
74403         * modules/lstat: Likewise.
74404         * modules/mkancesdirs: Likewise.
74405         * modules/rmdir: Likewise.
74406         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74407         * modules/modechange: Likewise.
74408         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74409         (configure.ac): Remove gl_STAT_MACROS.
74410         * modules/sys_stat (Depends-on): Remove stat-macros.
74411
74412 2006-10-27  Bruno Haible  <bruno@clisp.org>
74413
74414         * m4/signed.m4: Remove file.
74415         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74416         invocation.
74417         * modules/vasnprintf (Files): Remove m4/signed.m4.
74418
74419 2006-10-27  Bruno Haible  <bruno@clisp.org>
74420
74421         Update to GNU gettext 0.16.
74422         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74423         m4/inttypes-h.m4, m4/signed.m4.
74424         * m4/gettext.m4: Update to GNU gettext 0.16.
74425         * m4/intl.m4: New file, from GNU gettext.
74426         * m4/intldir.m4: New file, from GNU gettext.
74427         * config/srclist.txt: Update
74428
74429 2006-10-27  Eric Blake  <ebb9@byu.net>
74430
74431         * MODULES.html.sh: Document tempname.
74432         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74433         dependencies.
74434         (Files): Move lib/tempname.c...
74435         * modules/tempname: ...to this new module.
74436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74437         (gl_PREREQ_TEMPNAME): Move...
74438         * m4/tempname.m4: ...to this new file.
74439         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74440         * modules/sys_stat (Depends-on): Add stat-macros.
74441         * lib/stat_.h (includes): Pick up stat macros.
74442         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74443         if stat macros are broken.
74444         * lib/tempname.c (includes): No need to include "stat-macros.h".
74445         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74446         (direxists, __path_search) [!_LIBC]: Don't compile these in
74447         gnulib; the tmpdir module covers that.
74448         * lib/tempname.h: New file.
74449
74450 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74451
74452         * COPYING: Explain how gnulib-tool converts licence headers.
74453         Almost all wording by Eric Blake.
74454
74455 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * lib/mbchar.h (is_basic_table): Make read-only.
74458         * lib/mbchar.c (is_basic_table): Likewise.
74459         Reported by John Darrington.
74460
74461 2006-10-25  Bruno Haible  <bruno@clisp.org>
74462
74463         * lib/progname.h (set_program_name): Undefine before defining.
74464
74465 2006-10-25  Bruno Haible  <bruno@clisp.org>
74466
74467         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74468         false for non-gcc C++ compilers.
74469         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74470
74471 2006-10-24  Bruno Haible  <bruno@clisp.org>
74472
74473         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74474         iconv implementations like Irix iconv.
74475
74476 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74477
74478         * modules/vararrays: New file.
74479         * m4/vararrays.m4: New file, taken from diffutils.
74480         * MODULES.html.sh: New module vararrays.
74481
74482 2006-10-24  Karl Berry  <karl@gnu.org>
74483
74484         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74485         Don't call GNU Unix.
74486
74487 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74488
74489         * users.txt: Add Libtool.
74490
74491         Sync from Libtool:
74492
74493         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74496         to gnulib's policy of including config.h unconditionally.
74497
74498 2006-10-24  Bruno Haible  <bruno@clisp.org>
74499
74500         * modules/wcwidth (Files): Add m4/wint_t.m4.
74501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74502         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74503
74504 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74507         to pacify GCC with some -W flags enabled.  Problem reported by
74508         Bruno Haible.
74509
74510 2006-10-24  Jim Meyering  <jim@meyering.net>
74511
74512         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74513         Reported by Karl Berry.
74514
74515 2006-10-23  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74518
74519 2006-10-24  Bruno Haible  <bruno@clisp.org>
74520
74521         * lib/gl_list.h: Use C comment style, not C++ comment style.
74522
74523 2006-10-23  Eric Blake  <ebb9@byu.net>
74524
74525         * lib/getaddrinfo.c (includes): Add missing include.
74526
74527 2006-10-23  Bruno Haible  <bruno@clisp.org>
74528             Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         Ability to rename obstack_free.
74531         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74532         obstack_free.
74533         (obstack_free): Invoke the __obstack_free macro.
74534         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74535
74536 2006-10-23  Bruno Haible  <bruno@clisp.org>
74537             Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74540         __argc, __argv from the declaration. (They are defined as macros on
74541         mingw.)
74542
74543 2006-10-22  Bruno Haible  <bruno@clisp.org>
74544
74545         * doc/gnulib-intro.texi: New file.
74546         * doc/gnulib.texi: Include it.
74547
74548 2006-10-21  Bruno Haible  <bruno@clisp.org>
74549
74550         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74551         "Introduction", "Miscellanous Notes", "Particular Modules".
74552
74553 2006-10-21  Bruno Haible  <bruno@clisp.org>
74554
74555         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74556         Change mostlyclean-local rule to avoid sh syntax error from bash
74557         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74558
74559 2006-10-23  Jim Meyering  <jim@meyering.net>
74560
74561         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74562         in place of snprintf.
74563
74564         * modules/inttostr (Files): Add lib/uinttostr.c.
74565         * lib/uinttostr.c (inttostr): New file/function.
74566         * lib/inttostr.h (uinttostr): Declare.
74567         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74568         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74569         Add uinttostr.
74570         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74571
74572 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         * lib/canonicalize.c (ELOOP): Define if not already defined.
74575         Problem reported by Bruno Haible in
74576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74577
74578 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74581         Problem reported by Perry Smith and Ville Laurikari.
74582
74583         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74584         uses.
74585
74586 2006-10-19  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74589         for mingw.
74590
74591 2006-10-19  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74594         Needed for mingw.
74595
74596 2006-10-19  Bruno Haible  <bruno@clisp.org>
74597
74598         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74599
74600 2006-10-19  Bruno Haible  <bruno@clisp.org>
74601
74602         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74603         it.
74604
74605 2006-10-19  Bruno Haible  <bruno@clisp.org>
74606
74607         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74608         invocation.
74609
74610 2006-10-19  Bruno Haible  <bruno@clisp.org>
74611
74612         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74613         mountlist by default.
74614
74615 2006-10-16  Bruno Haible  <bruno@clisp.org>
74616
74617         * lib/c-strstr.c: Include c-strstr.h.
74618
74619 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74620
74621         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74622         in a slash.
74623
74624 2006-10-18  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/lock.h [C++]: Wrap definitions in extern "C".
74627
74628 2006-10-18  Bruno Haible  <bruno@clisp.org>
74629
74630         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74631         gl_LIBOBJS list.
74632
74633 2006-10-18  Bruno Haible  <bruno@clisp.org>
74634
74635         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74636
74637 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/xstrtol.h: Include gettext.h.
74640         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74641         Problem reported by Eric Blake.
74642         * modules/xstrtol (Depends-on): Add gettext-h.
74643
74644 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74645
74646         * lib/strftime.c (advance): New macro.
74647         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74648         incomplete type, so you can't add 0 to it.  Problem and patch
74649         reported by Eelco Dolstra for dietlibc.
74650
74651 2006-10-18  Jim Meyering  <jim@meyering.net>
74652
74653         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74654         type for a local, and rename it: s/up/user_proc/.
74655
74656 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74657
74658         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74659         READ_UTMP_USER_PROCESS.
74660         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74661
74662 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74663
74664         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74665         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74666
74667 2006-10-17  Eric Blake  <ebb9@byu.net>
74668
74669         * lib/sigprocmask.c (sigprocmask): Fix typo.
74670
74671         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74672
74673         * modules/clean-temp (Makefile.am): Don't add to make output...
74674         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74675         config.h.
74676
74677 2006-10-17  Bruno Haible  <bruno@clisp.org>
74678
74679         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74680         differently if DEFAULT_TEXT_DOMAIN is set.
74681
74682 2006-10-16  Bruno Haible  <bruno@clisp.org>
74683
74684         * lib/clean-temp.c: Include fwriteerror.h.
74685
74686 2006-10-16  Bruno Haible  <bruno@clisp.org>
74687
74688         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74689
74690 2006-10-16  Bruno Haible  <bruno@clisp.org>
74691
74692         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74693         * lib/sigprocmask.h: Include <sys/types.h>.
74694         (sigset_t): Use the system's definition if present.
74695
74696 2006-10-17  Eric Blake  <ebb9@byu.net>
74697
74698         * lib/xvasprintf.c (includes): Assume config.h.
74699         * lib/xasprintf.c (includes): Likewise.
74700
74701 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74704         at least as wide as intmax_t.
74705
74706 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74707
74708         (Imported from Automake.)
74709         * build-aux/gnupload: Update to version 1.1 of directive file.
74710
74711 2006-10-16  Eric Blake  <ebb9@byu.net>
74712
74713         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74714         match Automake 1.10a.
74715
74716 2006-10-14  Bruno Haible  <bruno@clisp.org>
74717
74718         * modules/sigprocmask: New file.
74719         * lib/sigprocmask.h: New file.
74720         * lib/sigprocmask.c: New file.
74721         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74722         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74723         request sigprocmask.o.
74724         (gl_PREREQ_SIGPROCMASK): New macro.
74725         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74726         (Depends-on): Add sigprocmask.
74727         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74728         gt_SIGNALBLOCKING. Test for 'raise' only once.
74729         * lib/fatal-signal.c: Include sigprocmask.h.
74730         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74731         unblock_fatal_signals): Define always.
74732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74733         sigprocmask.
74734
74735 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         Sync from Automake.
74738         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74739         which incorrectly sets the mode of an existing destination
74740         directory.  In some cases the unpatched install-sh could do the
74741         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74742         system.  We hope this is rare in practice, but it's clearly worth
74743         fixing.  Problem reported by Alex Unleashed in
74744         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74745         Also, don't bother to check for -m bugs unless we're using -m;
74746         suggested by Stepan Kasal.
74747
74748 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74749
74750         Sync from Automake.
74751         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74752         `-c' flag, so they appear at the same position as in %FASTDEP%
74753         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74754         which ignores unknown options only after the first non-option.
74755         Bug report against M4 by Nelson H. F. Beebe.
74756
74757 2006-10-13  Jim Meyering  <jim@meyering.net>
74758
74759         Fix a bug in yesterday's change.
74760         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74761         p->fts_statp->st_dev would be used uninitialized.
74762         Ensures that we always call fts_stat on the very first entry.
74763         Miklos Szeredi reported that find -xdev stopped working.
74764
74765 2006-10-12  Bruno Haible  <bruno@clisp.org>
74766
74767         * gnulib-tool (func_get_automake_snippet): Append an automatically
74768         computed EXTRA_DIST augmentation.
74769         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74770         * modules/alloca-opt (Makefile.am): Likewise.
74771         * modules/allocsa (Makefile.am): Likewise.
74772         * modules/arcfour (Makefile.am): Likewise.
74773         * modules/arctwo (Makefile.am): Likewise.
74774         * modules/argmatch (Makefile.am): Likewise.
74775         * modules/argz (Makefile.am): Likewise.
74776         * modules/atexit (Makefile.am): Likewise.
74777         * modules/backupfile (Makefile.am): Likewise.
74778         * modules/byteswap (Makefile.am): Likewise.
74779         * modules/c-strtod (Makefile.am): Likewise.
74780         * modules/c-strtold (Makefile.am): Likewise.
74781         * modules/calloc (Makefile.am): Likewise.
74782         * modules/canon-host (Makefile.am): Likewise.
74783         * modules/canonicalize (Makefile.am): Likewise.
74784         * modules/chdir-long (Makefile.am): Likewise.
74785         * modules/chdir-safer (Makefile.am): Likewise.
74786         * modules/check-version (Makefile.am): Likewise.
74787         * modules/chown (Makefile.am): Likewise.
74788         * modules/cloexec (Makefile.am): Likewise.
74789         * modules/close-stream (Makefile.am): Likewise.
74790         * modules/closeout (Makefile.am): Likewise.
74791         * modules/crc (Makefile.am): Likewise.
74792         * modules/csharpexec (Makefile.am): Likewise.
74793         * modules/cycle-check (Makefile.am): Likewise.
74794         * modules/des (Makefile.am): Likewise.
74795         * modules/dev-ino (Makefile.am): Likewise.
74796         * modules/dirfd (Makefile.am): Likewise.
74797         * modules/dirname (Makefile.am): Likewise.
74798         * modules/dup2 (Makefile.am): Likewise.
74799         * modules/eealloc (Makefile.am): Likewise.
74800         * modules/error (Makefile.am): Likewise.
74801         * modules/euidaccess (Makefile.am): Likewise.
74802         * modules/exclude (Makefile.am): Likewise.
74803         * modules/exitfail (Makefile.am): Likewise.
74804         * modules/fcntl-safer (Makefile.am): Likewise.
74805         * modules/fcntl (Makefile.am): Likewise.
74806         * modules/file-type (Makefile.am): Likewise.
74807         * modules/fileblocks (Makefile.am): Likewise.
74808         * modules/filemode (Makefile.am): Likewise.
74809         * modules/filenamecat (Makefile.am): Likewise.
74810         * modules/fnmatch (Makefile.am): Likewise.
74811         * modules/fopen-safer (Makefile.am): Likewise.
74812         * modules/fpending (Makefile.am): Likewise.
74813         * modules/fprintftime (Makefile.am): Likewise.
74814         * modules/free (Makefile.am): Likewise.
74815         * modules/fsusage (Makefile.am): Likewise.
74816         * modules/ftruncate (Makefile.am): Likewise.
74817         * modules/fts (Makefile.am): Likewise.
74818         * modules/gc-arcfour (Makefile.am): Likewise.
74819         * modules/gc-des (Makefile.am): Likewise.
74820         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74821         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74822         * modules/gc-md4 (Makefile.am): Likewise.
74823         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74824         * modules/gc-sha1 (Makefile.am): Likewise.
74825         * modules/gc (Makefile.am): Likewise.
74826         * modules/getaddrinfo (Makefile.am): Likewise.
74827         * modules/getcwd (Makefile.am): Likewise.
74828         * modules/getdelim (Makefile.am): Likewise.
74829         * modules/getdomainname (Makefile.am): Likewise.
74830         * modules/getgroups (Makefile.am): Likewise.
74831         * modules/gethostname (Makefile.am): Likewise.
74832         * modules/gethrxtime (Makefile.am): Likewise.
74833         * modules/getline (Makefile.am): Likewise.
74834         * modules/getloadavg (Makefile.am): Likewise.
74835         * modules/getlogin_r (Makefile.am): Likewise.
74836         * modules/getndelim2 (Makefile.am): Likewise.
74837         * modules/getopt (Makefile.am): Likewise.
74838         * modules/getpagesize (Makefile.am): Likewise.
74839         * modules/getpass-gnu (Makefile.am): Likewise.
74840         * modules/getpass (Makefile.am): Likewise.
74841         * modules/getsubopt (Makefile.am): Likewise.
74842         * modules/gettime (Makefile.am): Likewise.
74843         * modules/gettimeofday (Makefile.am): Likewise.
74844         * modules/getugroups (Makefile.am): Likewise.
74845         * modules/getusershell (Makefile.am): Likewise.
74846         * modules/glob (Makefile.am): Likewise.
74847         * modules/group-member (Makefile.am): Likewise.
74848         * modules/hard-locale (Makefile.am): Likewise.
74849         * modules/hash (Makefile.am): Likewise.
74850         * modules/hmac-md5 (Makefile.am): Likewise.
74851         * modules/hmac-sha1 (Makefile.am): Likewise.
74852         * modules/human (Makefile.am): Likewise.
74853         * modules/idcache (Makefile.am): Likewise.
74854         * modules/imaxabs (Makefile.am): Likewise.
74855         * modules/imaxdiv (Makefile.am): Likewise.
74856         * modules/inet_ntop (Makefile.am): Likewise.
74857         * modules/inet_pton (Makefile.am): Likewise.
74858         * modules/intprops (Makefile.am): Likewise.
74859         * modules/inttostr (Makefile.am): Likewise.
74860         * modules/inttypes (Makefile.am): Likewise.
74861         * modules/isapipe (Makefile.am): Likewise.
74862         * modules/javaversion (Makefile.am): Likewise.
74863         * modules/lchmod (Makefile.am): Likewise.
74864         * modules/lchown (Makefile.am): Likewise.
74865         * modules/localcharset (Makefile.am): Likewise.
74866         * modules/long-options (Makefile.am): Likewise.
74867         * modules/lstat (Makefile.am): Likewise.
74868         * modules/malloc (Makefile.am): Likewise.
74869         * modules/mathl (Makefile.am): Likewise.
74870         * modules/mbchar (Makefile.am): Likewise.
74871         * modules/md2 (Makefile.am): Likewise.
74872         * modules/md4 (Makefile.am): Likewise.
74873         * modules/md5 (Makefile.am): Likewise.
74874         * modules/memcasecmp (Makefile.am): Likewise.
74875         * modules/memchr (Makefile.am): Likewise.
74876         * modules/memcmp (Makefile.am): Likewise.
74877         * modules/memcoll (Makefile.am): Likewise.
74878         * modules/memcpy (Makefile.am): Likewise.
74879         * modules/memmem (Makefile.am): Likewise.
74880         * modules/memmove (Makefile.am): Likewise.
74881         * modules/mempcpy (Makefile.am): Likewise.
74882         * modules/memrchr (Makefile.am): Likewise.
74883         * modules/memset (Makefile.am): Likewise.
74884         * modules/memxor (Makefile.am): Likewise.
74885         * modules/mkancesdirs (Makefile.am): Likewise.
74886         * modules/mkdir-p (Makefile.am): Likewise.
74887         * modules/mkdir (Makefile.am): Likewise.
74888         * modules/mkdtemp (Makefile.am): Likewise.
74889         * modules/mkstemp (Makefile.am): Likewise.
74890         * modules/mktime (Makefile.am): Likewise.
74891         * modules/modechange (Makefile.am): Likewise.
74892         * modules/mountlist (Makefile.am): Likewise.
74893         * modules/nanosleep (Makefile.am): Likewise.
74894         * modules/obstack (Makefile.am): Likewise.
74895         * modules/openat (Makefile.am): Likewise.
74896         * modules/pagealign_alloc (Makefile.am): Likewise.
74897         * modules/pathmax (Makefile.am): Likewise.
74898         * modules/physmem (Makefile.am): Likewise.
74899         * modules/poll (Makefile.am): Likewise.
74900         * modules/posixtm (Makefile.am): Likewise.
74901         * modules/posixver (Makefile.am): Likewise.
74902         * modules/putenv (Makefile.am): Likewise.
74903         * modules/quote (Makefile.am): Likewise.
74904         * modules/quotearg (Makefile.am): Likewise.
74905         * modules/raise (Makefile.am): Likewise.
74906         * modules/read-file (Makefile.am): Likewise.
74907         * modules/readline (Makefile.am): Likewise.
74908         * modules/readlink (Makefile.am): Likewise.
74909         * modules/readtokens (Makefile.am): Likewise.
74910         * modules/readutmp (Makefile.am): Likewise.
74911         * modules/realloc (Makefile.am): Likewise.
74912         * modules/regex (Makefile.am): Likewise.
74913         * modules/rename-dest-slash (Makefile.am): Likewise.
74914         * modules/rename (Makefile.am): Likewise.
74915         * modules/rijndael (Makefile.am): Likewise.
74916         * modules/rmdir (Makefile.am): Likewise.
74917         * modules/rpmatch (Makefile.am): Likewise.
74918         * modules/safe-read (Makefile.am): Likewise.
74919         * modules/safe-write (Makefile.am): Likewise.
74920         * modules/same-inode (Makefile.am): Likewise.
74921         * modules/same (Makefile.am): Likewise.
74922         * modules/save-cwd (Makefile.am): Likewise.
74923         * modules/savedir (Makefile.am): Likewise.
74924         * modules/setenv (Makefile.am): Likewise.
74925         * modules/settime (Makefile.am): Likewise.
74926         * modules/sha1 (Makefile.am): Likewise.
74927         * modules/sig2str (Makefile.am): Likewise.
74928         * modules/snprintf (Makefile.am): Likewise.
74929         * modules/stat-macros (Makefile.am): Likewise.
74930         * modules/stat-time (Makefile.am): Likewise.
74931         * modules/stdbool (Makefile.am): Likewise.
74932         * modules/stdint (Makefile.am): Likewise.
74933         * modules/stdlib-safer (Makefile.am): Likewise.
74934         * modules/stpcpy (Makefile.am): Likewise.
74935         * modules/stpncpy (Makefile.am): Likewise.
74936         * modules/strcase (Makefile.am): Likewise.
74937         * modules/strcasestr (Makefile.am): Likewise.
74938         * modules/strchrnul (Makefile.am): Likewise.
74939         * modules/strcspn (Makefile.am): Likewise.
74940         * modules/strdup (Makefile.am): Likewise.
74941         * modules/strerror (Makefile.am): Likewise.
74942         * modules/strftime (Makefile.am): Likewise.
74943         * modules/strndup (Makefile.am): Likewise.
74944         * modules/strnlen (Makefile.am): Likewise.
74945         * modules/strpbrk (Makefile.am): Likewise.
74946         * modules/strsep (Makefile.am): Likewise.
74947         * modules/strstr (Makefile.am): Likewise.
74948         * modules/strtod (Makefile.am): Likewise.
74949         * modules/strtoimax (Makefile.am): Likewise.
74950         * modules/strtok_r (Makefile.am): Likewise.
74951         * modules/strtol (Makefile.am): Likewise.
74952         * modules/strtoll (Makefile.am): Likewise.
74953         * modules/strtoul (Makefile.am): Likewise.
74954         * modules/strtoull (Makefile.am): Likewise.
74955         * modules/strtoumax (Makefile.am): Likewise.
74956         * modules/strverscmp (Makefile.am): Likewise.
74957         * modules/sys_socket (Makefile.am): Likewise.
74958         * modules/sys_stat (Makefile.am): Likewise.
74959         * modules/sysexits (Makefile.am): Likewise.
74960         * modules/time_r (Makefile.am): Likewise.
74961         * modules/timegm (Makefile.am): Likewise.
74962         * modules/timespec (Makefile.am): Likewise.
74963         * modules/tmpfile-safer (Makefile.am): Likewise.
74964         * modules/trim (Makefile.am): Likewise.
74965         * modules/unistd-safer (Makefile.am): Likewise.
74966         * modules/unlinkdir (Makefile.am): Likewise.
74967         * modules/unlocked-io (Makefile.am): Likewise.
74968         * modules/userspec (Makefile.am): Likewise.
74969         * modules/utime (Makefile.am): Likewise.
74970         * modules/utimecmp (Makefile.am): Likewise.
74971         * modules/utimens (Makefile.am): Likewise.
74972         * modules/vasnprintf (Makefile.am): Likewise.
74973         * modules/vasprintf (Makefile.am): Likewise.
74974         * modules/vsnprintf (Makefile.am): Likewise.
74975         * modules/xalloc (Makefile.am): Likewise.
74976         * modules/xgetcwd (Makefile.am): Likewise.
74977         * modules/xnanosleep (Makefile.am): Likewise.
74978         * modules/xreadlink (Makefile.am): Likewise.
74979         * modules/xstrtod (Makefile.am): Likewise.
74980         * modules/xstrtol (Makefile.am): Likewise.
74981         * modules/xstrtold (Makefile.am): Likewise.
74982         * modules/yesno (Makefile.am): Likewise.
74983         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74984
74985 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74986
74987         * modules/error (Makefile.am): Distribute files through
74988         EXTRA_DIST, not lib_SOURCES.
74989
74990 2006-10-12  Eric Blake  <ebb9@byu.net>
74991
74992         * modules/error (Makefile.am): Distribute files in /lib.
74993         * modules/obstack (Makefile.am): Likewise.
74994
74995 2006-10-12  Bruno Haible  <bruno@clisp.org>
74996
74997         * modules/acl (Makefile.am): Distribute all files in lib/ through
74998         EXTRA_DIST.
74999         * modules/arcfour (Makefile.am): Likewise.
75000         * modules/arctwo (Makefile.am): Likewise.
75001         * modules/argmatch (Makefile.am): Likewise.
75002         * modules/argz (Makefile.am): Likewise.
75003         * modules/atexit (Makefile.am): Likewise.
75004         * modules/backupfile (Makefile.am): Likewise.
75005         * modules/c-strtod (Makefile.am): Likewise.
75006         * modules/c-strtold (Makefile.am): Likewise.
75007         * modules/calloc (Makefile.am): Likewise.
75008         * modules/canon-host (Makefile.am): Likewise.
75009         * modules/canonicalize (Makefile.am): Likewise.
75010         * modules/chdir-long (Makefile.am): Likewise.
75011         * modules/chdir-safer (Makefile.am): Likewise.
75012         * modules/check-version (Makefile.am): Likewise.
75013         * modules/chown (Makefile.am): Likewise.
75014         * modules/cloexec (Makefile.am): Likewise.
75015         * modules/close-stream (Makefile.am): Likewise.
75016         * modules/closeout (Makefile.am): Likewise.
75017         * modules/crc (Makefile.am): Likewise.
75018         * modules/cycle-check (Makefile.am): Likewise.
75019         * modules/des (Makefile.am): Likewise.
75020         * modules/dirfd (Makefile.am): Likewise.
75021         * modules/dirname (Makefile.am): Likewise.
75022         * modules/dup2 (Makefile.am): Likewise.
75023         * modules/euidaccess (Makefile.am): Likewise.
75024         * modules/exclude (Makefile.am): Likewise.
75025         * modules/exitfail (Makefile.am): Likewise.
75026         * modules/fcntl-safer (Makefile.am): Likewise.
75027         * modules/file-type (Makefile.am): Likewise.
75028         * modules/fileblocks (Makefile.am): Likewise.
75029         * modules/filemode (Makefile.am): Likewise.
75030         * modules/filenamecat (Makefile.am): Likewise.
75031         * modules/fnmatch (Makefile.am): Likewise.
75032         * modules/fopen-safer (Makefile.am): Likewise.
75033         * modules/fpending (Makefile.am): Likewise.
75034         * modules/fprintftime (Makefile.am): Likewise.
75035         * modules/free (Makefile.am): Likewise.
75036         * modules/fsusage (Makefile.am): Likewise.
75037         * modules/ftruncate (Makefile.am): Likewise.
75038         * modules/fts (Makefile.am): Likewise.
75039         * modules/gc (Makefile.am): Likewise.
75040         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75041         * modules/getaddrinfo (Makefile.am): Likewise.
75042         * modules/getcwd (Makefile.am): Likewise.
75043         * modules/getdelim (Makefile.am): Likewise.
75044         * modules/getdomainname (Makefile.am): Likewise.
75045         * modules/getgroups (Makefile.am): Likewise.
75046         * modules/gethostname (Makefile.am): Likewise.
75047         * modules/gethrxtime (Makefile.am): Likewise.
75048         * modules/getline (Makefile.am): Likewise.
75049         * modules/getloadavg (Makefile.am): Likewise.
75050         * modules/getlogin_r (Makefile.am): Likewise.
75051         * modules/getopt (Makefile.am): Likewise.
75052         * modules/getpass (Makefile.am): Likewise.
75053         * modules/getpass-gnu (Makefile.am): Likewise.
75054         * modules/getsubopt (Makefile.am): Likewise.
75055         * modules/gettime (Makefile.am): Likewise.
75056         * modules/gettimeofday (Makefile.am): Likewise.
75057         * modules/getugroups (Makefile.am): Likewise.
75058         * modules/getusershell (Makefile.am): Likewise.
75059         * modules/glob (Makefile.am): Likewise.
75060         * modules/group-member (Makefile.am): Likewise.
75061         * modules/hard-locale (Makefile.am): Likewise.
75062         * modules/hash (Makefile.am): Likewise.
75063         * modules/hmac-md5 (Makefile.am): Likewise.
75064         * modules/hmac-sha1 (Makefile.am): Likewise.
75065         * modules/human (Makefile.am): Likewise.
75066         * modules/idcache (Makefile.am): Likewise.
75067         * modules/imaxabs (Makefile.am): Likewise.
75068         * modules/imaxdiv (Makefile.am): Likewise.
75069         * modules/inet_ntop (Makefile.am): Likewise.
75070         * modules/inet_pton (Makefile.am): Likewise.
75071         * modules/inttostr (Makefile.am): Likewise.
75072         * modules/isapipe (Makefile.am): Likewise.
75073         * modules/lchown (Makefile.am): Likewise.
75074         * modules/long-options (Makefile.am): Likewise.
75075         * modules/lstat (Makefile.am): Likewise.
75076         * modules/malloc (Makefile.am): Likewise.
75077         * modules/mathl (Makefile.am): Likewise.
75078         * modules/mbchar (Makefile.am): Likewise.
75079         * modules/md2 (Makefile.am): Likewise.
75080         * modules/md4 (Makefile.am): Likewise.
75081         * modules/md5 (Makefile.am): Likewise.
75082         * modules/memcasecmp (Makefile.am): Likewise.
75083         * modules/memchr (Makefile.am): Likewise.
75084         * modules/memcmp (Makefile.am): Likewise.
75085         * modules/memcoll (Makefile.am): Likewise.
75086         * modules/memcpy (Makefile.am): Likewise.
75087         * modules/memmem (Makefile.am): Likewise.
75088         * modules/memmove (Makefile.am): Likewise.
75089         * modules/mempcpy (Makefile.am): Likewise.
75090         * modules/memrchr (Makefile.am): Likewise.
75091         * modules/memset (Makefile.am): Likewise.
75092         * modules/memxor (Makefile.am): Likewise.
75093         * modules/mkancesdirs (Makefile.am): Likewise.
75094         * modules/mkdir (Makefile.am): Likewise.
75095         * modules/mkdir-p (Makefile.am): Likewise.
75096         * modules/mkdtemp (Makefile.am): Likewise.
75097         * modules/mkstemp (Makefile.am): Likewise.
75098         * modules/mktime (Makefile.am): Likewise.
75099         * modules/modechange (Makefile.am): Likewise.
75100         * modules/mountlist (Makefile.am): Likewise.
75101         * modules/nanosleep (Makefile.am): Likewise.
75102         * modules/openat (Makefile.am): Likewise.
75103         * modules/pagealign_alloc (Makefile.am): Likewise.
75104         * modules/physmem (Makefile.am): Likewise.
75105         * modules/poll (Makefile.am): Likewise.
75106         * modules/posixtm (Makefile.am): Likewise.
75107         * modules/posixver (Makefile.am): Likewise.
75108         * modules/putenv (Makefile.am): Likewise.
75109         * modules/quote (Makefile.am): Likewise.
75110         * modules/quotearg (Makefile.am): Likewise.
75111         * modules/raise (Makefile.am): Likewise.
75112         * modules/read-file (Makefile.am): Likewise.
75113         * modules/readline (Makefile.am): Likewise.
75114         * modules/readlink (Makefile.am): Likewise.
75115         * modules/readtokens (Makefile.am): Likewise.
75116         * modules/readutmp (Makefile.am): Likewise.
75117         * modules/realloc (Makefile.am): Likewise.
75118         * modules/regex (Makefile.am): Likewise.
75119         * modules/rename (Makefile.am): Likewise.
75120         * modules/rename-dest-slash (Makefile.am): Likewise.
75121         * modules/rijndael (Makefile.am): Likewise.
75122         * modules/rmdir (Makefile.am): Likewise.
75123         * modules/rpmatch (Makefile.am): Likewise.
75124         * modules/safe-read (Makefile.am): Likewise.
75125         * modules/safe-write (Makefile.am): Likewise.
75126         * modules/same (Makefile.am): Likewise.
75127         * modules/save-cwd (Makefile.am): Likewise.
75128         * modules/savedir (Makefile.am): Likewise.
75129         * modules/setenv (Makefile.am): Likewise.
75130         * modules/settime (Makefile.am): Likewise.
75131         * modules/sha1 (Makefile.am): Likewise.
75132         * modules/sig2str (Makefile.am): Likewise.
75133         * modules/snprintf (Makefile.am): Likewise.
75134         * modules/stdlib-safer (Makefile.am): Likewise.
75135         * modules/stpcpy (Makefile.am): Likewise.
75136         * modules/stpncpy (Makefile.am): Likewise.
75137         * modules/strcase (Makefile.am): Likewise.
75138         * modules/strcasestr (Makefile.am): Likewise.
75139         * modules/strchrnul (Makefile.am): Likewise.
75140         * modules/strcspn (Makefile.am): Likewise.
75141         * modules/strdup (Makefile.am): Likewise.
75142         * modules/strerror (Makefile.am): Likewise.
75143         * modules/strftime (Makefile.am): Likewise.
75144         * modules/strndup (Makefile.am): Likewise.
75145         * modules/strnlen (Makefile.am): Likewise.
75146         * modules/strpbrk (Makefile.am): Likewise.
75147         * modules/strsep (Makefile.am): Likewise.
75148         * modules/strstr (Makefile.am): Likewise.
75149         * modules/strtod (Makefile.am): Likewise.
75150         * modules/strtoimax (Makefile.am): Likewise.
75151         * modules/strtok_r (Makefile.am): Likewise.
75152         * modules/strtol (Makefile.am): Likewise.
75153         * modules/strtoll (Makefile.am): Likewise.
75154         * modules/strtoul (Makefile.am): Likewise.
75155         * modules/strtoull (Makefile.am): Likewise.
75156         * modules/strtoumax (Makefile.am): Likewise.
75157         * modules/strverscmp (Makefile.am): Likewise.
75158         * modules/time_r (Makefile.am): Likewise.
75159         * modules/timegm (Makefile.am): Likewise.
75160         * modules/tmpfile-safer (Makefile.am): Likewise.
75161         * modules/unistd-safer (Makefile.am): Likewise.
75162         * modules/unlinkdir (Makefile.am): Likewise.
75163         * modules/userspec (Makefile.am): Likewise.
75164         * modules/utime (Makefile.am): Likewise.
75165         * modules/utimecmp (Makefile.am): Likewise.
75166         * modules/utimens (Makefile.am): Likewise.
75167         * modules/vasnprintf (Makefile.am): Likewise.
75168         * modules/vasprintf (Makefile.am): Likewise.
75169         * modules/vsnprintf (Makefile.am): Likewise.
75170         * modules/xalloc (Makefile.am): Likewise.
75171         * modules/xgetcwd (Makefile.am): Likewise.
75172         * modules/xnanosleep (Makefile.am): Likewise.
75173         * modules/xreadlink (Makefile.am): Likewise.
75174         * modules/xstrtod (Makefile.am): Likewise.
75175         * modules/xstrtol (Makefile.am): Likewise.
75176         * modules/xstrtold (Makefile.am): Likewise.
75177         * modules/yesno (Makefile.am): Likewise.
75178
75179 2006-10-12  Jim Meyering  <jim@meyering.net>
75180
75181         * m4/getloadavg.m4: Revert the change below.
75182
75183         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75184         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75185         fail with a symlink, which is what coreutils' ./bootstrap now
75186         creates by default.
75187
75188 2006-10-12  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75191         mingw.
75192         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75193         MSVC and mingw explicitly.
75194
75195 2006-10-11  Simon Josefsson  <jas@extundo.com>
75196             Bruno Haible  <bruno@clisp.org>
75197
75198         Add support for multiple gnulib-tool invocations in the scope of a
75199         single configure.ac file.
75200         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75201         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75202         with the same contents as the _LIBADD variable.
75203         (func_emit_initmacro_start, func_emit_initmacro_end,
75204         func_emit_initmacro_done): New functions.
75205         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75206         gl_LIBOBJS and gl_LTLIBOBJS.
75207
75208 2006-10-11  Bruno Haible  <bruno@clisp.org>
75209
75210         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75211         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75212         autoreconf. Instead, invoke autopoint explicitly but move back the
75213         *.m4 files from gnulib.
75214
75215 2006-10-11  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_usage): Make module names after --create-testdir
75218         optional.
75219         (func_create_testdir): If no module was specified, use nearly all
75220         modules.
75221
75222 2006-10-12  Jim Meyering  <jim@meyering.net>
75223
75224         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75225         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75226         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75227         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75228         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75229         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75230         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75231         (fts_set_stat_required): New function.
75232         (fts_open): Defer the calls to fts_stat, if possible or requested.
75233         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75234         into fts_stat itself.
75235         (fts_read): Perform any required (deferred) fts_stat call.
75236         (fts_build): Likewise, for the directory we're about to open and read.
75237         In the readdir loop, carefully decide whether each entry will require
75238         an eventual call to fts_stat, using dirent.d_type info if available.
75239         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75240         a command line argument into this function.  Update all callers.
75241         Map a return value of FTS_DOT to FTS_D for a command line argument.
75242         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75243         Thanks to Miklos Szeredi for his tenacity and for the initial
75244         bug report about "find" failing on a FUSE-based file system.
75245
75246         * lib/fts.c (fts_open): Use consistent indentation.
75247
75248 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75251         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75252         reported by Jim Meyering.  All uses of cache variables renamed
75253         to match Autoconf's.
75254         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75255         the other one.
75256
75257         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75258         Fix misspelling in diagnostic.
75259
75260 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75263         defined.  Problem reported by Matthew Woehlke.
75264
75265         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75266         Add support for Tandem NonStop R series.
75267         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75268         Use new macro.
75269
75270         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75271         (has_trailing_slash): Omit size arg; all callers changed.
75272         Omit 'inline', since it doesn't help performance and we'd
75273         need to configure it.
75274         Don't count //, ///, etc. as having a trailing slash.
75275         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75276         (rpl_rename_dest_slash): On failure, use rename's errno rather
75277         than (in some cases) an incorrect or junk errno.
75278         Simplify code by removing need to compute length; this does
75279         cause it to make two passes instead of one over the file name,
75280         but it's worth it.
75281
75282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75283         change, since Autoconf's version may no longer be appropriate now
75284         that we are using CVS Autoconf's version.  Add support for Tandem.
75285
75286 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75287             Bruno Haible  <bruno@clisp.org>
75288
75289         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75290         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75291         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75292         gl_AC_TYPE_LONG_LONG.
75293
75294         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75295         instead of HAVE_LONG_LONG.
75296         * lib/printf-args.c (printf_fetchargs): Likewise.
75297         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75298         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75300         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75301         gl_AC_TYPE_LONG_LONG.
75302
75303 2006-10-11  Bruno Haible  <bruno@clisp.org>
75304
75305         * m4/longlong.m4: Add comments.
75306         * m4/ulonglong.m4: Likewise.
75307
75308 2006-10-10  Bruno Haible  <bruno@clisp.org>
75309
75310         Make it possible to #define stpcpy, strdup to aliases.
75311         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75312         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75313
75314 2006-10-10  Bruno Haible  <bruno@clisp.org>
75315
75316         Make it possible to #define gcd to an alias.
75317         * lib/gcd.c: Include config.h.
75318
75319 2006-10-10  Bruno Haible  <bruno@clisp.org>
75320
75321         Make it possible to #define c_isascii to an alias.
75322         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75323         defined. Undefine the macros before defining them, to avoid gcc
75324         warnings.
75325         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75326         define NO_C_CTYPE_MACROS early.
75327
75328 2006-10-10  Bruno Haible  <bruno@clisp.org>
75329
75330         Make it possible to #define set_program_name to an alias.
75331         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75332         ENABLE_RELOCATABLE early.
75333
75334 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75337         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75338         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75339         More generally, don't assume that 64-bit signed int is available
75340         if unsigned int is, and vice versa.
75341         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75342         unsigned symbols, not on their signed counterparts.
75343         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75344         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75345         (UINT64_C, UINTMAX_C):
75346         Likewise.
75347         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75348         unsigned counterparts.
75349         (Have_long_long, Unsigned): New macros.
75350         (Int): Renamed from INT.
75351         (strtoimax): Use the new macros.
75352         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75353         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75354         * modules/inttypes (inttypes.h): Substitute
75355         HAVE_UNSIGNED_LONG_LONG_INT.
75356         * modules/stdint (stdint.h): Likewise.
75357         (Files): Add m4/ulonglong.m4.
75358
75359 2006-10-10  Bruno Haible  <bruno@clisp.org>
75360
75361         Fix a gcc -Wshadow warning.
75362         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75363         to 'bucket'.
75364         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75365         gl_linked_indexof_from_to): Likewise.
75366         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75367         Likewise.
75368         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75369         Likewise.
75370         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75371         Reported by Eric Blake.
75372
75373 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75376         for NetBSD.  Problem reported by Bruno Haible.
75377
75378 2006-10-09  Jim Meyering  <jim@meyering.net>
75379
75380         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75381         Patch from Bruno Haible.
75382
75383 2006-10-09  Jim Meyering  <jim@meyering.net>
75384
75385         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75386         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75387         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75388
75389 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         Don't include <config.h> twice; this doesn't work in some cases,
75392         e.g., when config.h has "#define intmax_t long long int" and
75393         we include <config.h>, <inttypes.h>, <config.h> in that order.
75394         Problem reported by Matthew Woehlke in:
75395         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75396         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75397         * lib/fts-cycle.c: Don't include config.h.
75398         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75399         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75400         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75401         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75402         inttypes.h.
75403         * lib/xstrtoumax.c: Likewise.
75404         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75405         __strtol and the like, so that this module is more like its siblings.
75406         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75407         Remove; no longer needed now that we assume gnulib inttypes.h.
75408
75409 2006-10-08  Bruno Haible  <bruno@clisp.org>
75410
75411         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75412         option.
75413
75414 2006-10-07  Jim Meyering  <jim@meyering.net>
75415
75416         * modules/inttypes (inttypes.h): Revert what seems to have been
75417         an inadvertent part of today's change: use "|", not "/" in the
75418         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75419
75420 2006-10-07  Bruno Haible  <bruno@clisp.org>
75421
75422         * modules/sublist: New file.
75423
75424 2006-10-07  Bruno Haible  <bruno@clisp.org>
75425
75426         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75427         * modules/argz (argz.h): Likewise.
75428         * modules/arpa_inet (arpa/inet.h): Likewise.
75429         * modules/byteswap (byteswap.h): Likewise.
75430         * modules/configmake (configmake.h): Likewise.
75431         * modules/fcntl (fcntl.h): Likewise.
75432         * modules/fnmatch (fnmatch.h): Likewise.
75433         * modules/getopt (getopt.h): Likewise.
75434         * modules/glob (glob.h): Likewise.
75435         * modules/inttypes (inttypes.h): Likewise.
75436         * modules/netinet_in (netinet/in.h): Likewise.
75437         * modules/poll (poll.h): Likewise.
75438         * modules/stdbool (stdbool.h): Likewise.
75439         * modules/stdint (stdint.h): Likewise.
75440         * modules/sys_select (sys/select.h): Likewise.
75441         * modules/sys_socket (sys/socket.h): Likewise.
75442         * modules/sys_stat (sys/stat.h): Likewise.
75443         * modules/sysexits (sysexits.h): Likewise.
75444         * modules/unistd (unistd.h): Likewise.
75445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75446         Add a "DO NOT EDIT" comment to the generated file.
75447         (func_import): Likewise for gnulib-comp.m4.
75448
75449 2006-10-07  Bruno Haible  <bruno@clisp.org>
75450
75451         * lib/gl_sublist.h: New file.
75452         * lib/gl_sublist.c: New file.
75453
75454 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75457         name (relative to the original working directory) and the file
75458         name component (relative to the temporary working directory).  All
75459         callers changed.
75460         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75461         * lib/mkdir-p.c (make_dir_parents): Likewise.
75462         * lib/mkdir-p.h (make_dir_parents): Likewise.
75463
75464 2006-10-06  Eric Blake  <ebb9@byu.net>
75465
75466         Define several macros for use by the clean-temp module.
75467         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75468         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75469         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75470
75471         * lib/clean-temp.h (close_stream_temp): New declaration.
75472         * lib/clean-temp.c (includes): Pull in headers according to what
75473         other modules are in use.
75474         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75475
75476 2006-10-06  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75479         instead of fopen, fwriteerror.
75480
75481 2006-10-06  Bruno Haible  <bruno@clisp.org>
75482
75483         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75484         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75485         int.
75486         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75487         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75488         Return an error indicator.
75489         Suggested by Eric Blake.
75490
75491 2006-10-06  Bruno Haible  <bruno@clisp.org>
75492
75493         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75494         Reported by Eric Blake.
75495
75496 2006-10-06  Bruno Haible  <bruno@clisp.org>
75497
75498         * modules/closeout (Description): Mention stderr too.
75499
75500 2006-10-06  Bruno Haible  <bruno@clisp.org>
75501         and Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * lib/closeout.c (close_stdout): Also close stderr.
75504         * lib/closeout.h: Update comment.
75505
75506 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75509         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75510         * lib/dirchownmod.c: Include lchown.h.
75511         * lib/lchown.c: Don't include files that lchown.h now includes.
75512         Don't declare chown, since lchown.h now does that.
75513         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75514         (lchown): Define to rpl_chown if lchown is declared but
75515         does not exist.  Declare using a prototype if lchown is not
75516         declared.  Add a copyright notice.
75517         * lib/mkstemp.h: Include <unistd.h>.
75518         * lib/openat.c: Include lchown.h.
75519
75520         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75521         we now test for that separately.
75522         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75523         rather than O_NOFOLLOW, when testing whether it's possible to
75524         avoid a race condition reliably.
75525         * lib/savewd.c (savewd_chdir): Likewise.
75526
75527         Remove macros that are no longer needed now that stdint.h is
75528         reliable.
75529         * lib/fsusage.c (UINTMAX_MAX): Remove.
75530         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75531         * lib/utimecmp.c (SIZE_MAX): Remove.
75532
75533         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75534
75535         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75536         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75537         O_NOATIME works.
75538
75539 2006-10-05  Bruno Haible  <bruno@clisp.org>
75540
75541         * lib/gl_list.h (gl_sortedlist_search_from_to,
75542         gl_sortedlist_indexof_from_to): New declarations.
75543         (gl_list_implementation): New fields sortedlist_search_from_to,
75544         sortedlist_indexof_from_to.
75545         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75546         inline functions.
75547         * lib/gl_list.c (gl_sortedlist_search_from_to,
75548         gl_sortedlist_indexof_from_to): New functions.
75549         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75550         function.
75551         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75552         (gl_array_sortedlist_search_from_to): New function.
75553         (gl_array_list_implementation): Update.
75554         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75555         function.
75556         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75557         (gl_carray_sortedlist_search_from_to): New function.
75558         (gl_carray_list_implementation): Update.
75559         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75560         gl_linked_sortedlist_indexof_from_to): New functions.
75561         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75562         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75563         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75564         gl_tree_sortedlist_indexof_from_to): New functions.
75565         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75566         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75567         Update.
75568         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75569         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75570         Update.
75571
75572 2006-10-05  Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75575         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75576         (struct gl_list_implementation): Add fields search_from_to,
75577         indexof_from_to. Remove fields search, indexof.
75578         (gl_list_search): Use the search_from_to method.
75579         (gl_list_search_from, gl_list_search_from_to): New functions.
75580         (gl_list_indexof): Use the indexof_from_to method.
75581         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75582         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75583         (gl_list_search_from, gl_list_search_from_to): New functions.
75584         (gl_list_indexof): Use the indexof_from_to method.
75585         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75586         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75587         gl_array_indexof. Add start_index, end_index arguments.
75588         (gl_array_search_from_to): Renamed from gl_array_search. Add
75589         start_index, end_index arguments.
75590         (gl_array_remove, gl_array_list_implementation): Update.
75591         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75592         gl_carray_indexof. Add start_index, end_index arguments.
75593         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75594         start_index, end_index arguments.
75595         (gl_carray_remove, gl_carray_list_implementation): Update.
75596         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75597         gl_linked_search. Add start_index, end_index arguments.
75598         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75599         start_index, end_index arguments.
75600         (gl_linked_remove): Update.
75601         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75602         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75603         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75604         field to 'size_t'.
75605         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75606         gl_tree_search. Add start_index, end_index arguments.
75607         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75608         start_index, end_index arguments.
75609         (gl_tree_remove): Update.
75610         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75611         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75612         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75613         function.
75614         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75615         gl_tree_search. Add start_index, end_index arguments.
75616         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75617         start_index, end_index arguments.
75618         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75619         Update.
75620         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75621
75622 2006-10-05  Bruno Haible  <bruno@clisp.org>
75623
75624         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75625
75626         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75627         fwriteerror_temp): New declarations.
75628         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75629         (descriptors): New variable.
75630         (cleanup): First, close the descriptors.
75631         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75632         fclose_temp, fwriteerror_temp): New functions.
75633
75634 2006-10-04  Jim Meyering  <jim@meyering.net>
75635
75636         * lib/fts.c (fts_open): Tiny comment change.
75637
75638 2006-10-04  Bruno Haible  <bruno@clisp.org>
75639
75640         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75641         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75642         gl_LOCK_BODY.
75643         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75644         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75645         gl_LOCK_EARLY_BODY.
75646         (gl_LOCK): Require gl_LOCK_BODY.
75647
75648 2006-10-04  Bruno Haible  <bruno@clisp.org>
75649
75650         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75651         (gl_oset_search_atleast): New declaration.
75652         (struct gl_oset_implementation): Add field 'search_atleast'.
75653         (gl_oset_search_atleast): New inline function.
75654         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75655         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75656         (gl_array_oset_implementation): Update.
75657         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75658         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75659         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75660
75661 2006-10-04  Bruno Haible  <bruno@clisp.org>
75662
75663         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75664
75665 2006-10-03  Bruno Haible  <bruno@clisp.org>
75666
75667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75668         from gl_avltreehash_list_implementation.
75669
75670 2006-10-03  Bruno Haible  <bruno@clisp.org>
75671
75672         * lib/gl_oset.c (gl_oset_add): Fix return type.
75673
75674 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75675
75676         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75677
75678 2006-10-02  Eric Blake  <ebb9@byu.net>
75679
75680         * modules/strnlen (Depends-on): Add extensions.
75681
75682 2006-10-02  Eric Blake  <ebb9@byu.net>
75683
75684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75685         definition in 2.60+.
75686
75687 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75688
75689         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75690         checks.
75691
75692 2006-10-02  Bruno Haible  <bruno@clisp.org>
75693
75694         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75695         to the AUTOMAKE_OPTIONS.
75696         Reported by Jim Meyering.
75697
75698 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75699
75700         Work around bug in Solaris 10 /proc file system:
75701         /proc/self/fd/NNN/.. isn't the parent directory of
75702         the directory whose file descriptor is NNN.  This needs to
75703         be worked around at run time, not compile time, since a
75704         program might be built on Solaris 8, where things work, and
75705         run on Solaris 10.
75706         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75707         to use the following interface instead:
75708         (OPENAT_BUFFER_SIZE): New macro.
75709         (openat_proc_name): New function.
75710         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75711         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75712         Likewise.
75713         * lib/openat-proc.c: New file.
75714         * modules/openat (Files): Add lib/openat-proc.c.
75715         (Depends-on): Add same-inode, stdbool.
75716         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75717
75718 2006-09-29  Bruno Haible  <bruno@clisp.org>
75719
75720         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75721         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75722         argument. Set stdout_closed before testing for ferror, not after.
75723         (fwriteerror, fwriteerror_no_ebadf): New functions.
75724
75725 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75726
75727         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75728
75729 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75730
75731         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75732         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75733
75734 2006-09-28  Jim Meyering  <jim@meyering.net>
75735
75736         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75737         Include <unistd.h>.
75738
75739 2006-09-28  Bruno Haible  <bruno@clisp.org>
75740
75741         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75742         * modules/linkedhash-list (Depends-on): Likewise.
75743         * modules/rbtreehash-list (Depends-on): Likewise.
75744
75745 2006-09-28  Bruno Haible  <bruno@clisp.org>
75746
75747         * lib/strndup.h: Simplify the redefinition of strndup.
75748         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75749         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75750
75751 2006-09-28  Bruno Haible  <bruno@clisp.org>
75752
75753         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75754         * lib/gl_linkedhash_list.c: Likewise.
75755         * lib/gl_rbtreehash_list.c: Likewise.
75756
75757 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75758
75759         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75760         getaddrinfo.
75761
75762         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75763         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75764         it causes <stdio_ext.h> to cause a compile-time error.
75765         Problem reported by Nelson H. F. Beebe.
75766         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75767         of HAVE_DECL___PENDING.
75768
75769         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75771         declaration.
75772
75773 2006-09-27  Jim Meyering  <jim@meyering.net>
75774
75775         This file could end up with a definition for a function
75776         named __strndup, rather than rpl_strndup on a system with
75777         incomplete weak_alias support.
75778         * lib/strndup.c (strndup): Rename from __strndup.
75779         Remove #defines that used to map __strndup to strndup.
75780         Don't use K&R prototypes.
75781         Remove LIBC-related code, since this file is not sync'd with glibc.
75782         * lib/strndup.h: Revamp, accordingly.
75783         * m4/strndup.m4: Modernize.
75784
75785 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * modules/savewd (Depends-on): Add 'raise'.
75788         * lib/savewd.c: Include <signal.h>, for 'raise'.
75789
75790 2006-09-26  Jim Meyering  <jim@meyering.net>
75791
75792         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75793         when we detect Darwin 8.7.0's acl_get_file bug.
75794         Rearrange to perform the new (below) run-test while $LIBS
75795         contains any acl-related library.  Set USE_ACL at the end.
75796         (gl_ACL_GET_FILE): New function.
75797
75798 2006-09-26  Eric Blake  <ebb9@byu.net>
75799
75800         * lib/verror.c: Include <config.h> unconditionally.
75801
75802 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * modules/clock-time (Maintainer): Add self.
75805         * modules/getlogin_r (Depends-on): Add extensions.
75806
75807 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75808
75809         * modules/clock-time: New module.
75810         * modules/nanosleep (Depends-on): Add clock-time.
75811         * modules/gethrxtime (Depends-on): Likewise.
75812         * modules/gettime (Depends-on): Likewise.
75813         * modules/settime (Depends-on): Likewise.
75814
75815         * modules/fts-lgpl: Depend on openat.
75816         * modules/mkancesdirs: Depend on savewd.
75817         * modules/mkdir-p: Likewise.
75818
75819 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75820
75821         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75822
75823         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75824         `gl_have_arbitrary_file_name_length_limit' to
75825         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75826         actually works between configure runs.
75827
75828 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75829             Bruno Haible  <bruno@clisp.org>
75830
75831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75832
75833 2006-09-25  Jim Meyering  <jim@meyering.net>
75834
75835         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75836         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75837
75838 2006-09-25  Eric Blake  <ebb9@byu.net>
75839
75840         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75841         exec's in 2006-09-18 patch when shuffling fds.
75842
75843 2006-09-25  Bruno Haible  <bruno@clisp.org>
75844
75845         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75846         Reported by Jim Meyering.
75847
75848 2006-09-24  Jim Meyering  <jim@meyering.net>
75849
75850         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75851         compare a pointer against a literal "0".  That caused failures with
75852         at least HP-UX's hpcc.
75853
75854 2006-09-22  Simon Josefsson  <jas@extundo.com>
75855
75856         * modules/gc-sha1:
75857         * modules/gc-md4:
75858         * modules/gc-hmac-sha1:
75859         * modules/gc-hmac-md5:
75860         * modules/gc-des:
75861         * modules/gc-arcfour: Distribute more files.
75862
75863 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75864
75865         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75866         (gl_linked_iterator_from_to): Initialize struct completely.
75867         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75868         (gl_tree_iterator_from_to): Likewise
75869         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75870         * lib/gl_array_list.c [lint] (gl_array_iterator)
75871         (gl_array_iterator_from_to): Likewise.
75872         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75873         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75874         (gl_carray_iterator_from_to): Likewise.
75875
75876         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75877         * lib/md4.c (md4_process_block): Remove unused variable.
75878         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75879         parentheses for clarity.
75880
75881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75882
75883         * modules/bison-i18n (Depends-on): Add gettext.
75884
75885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75886
75887         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75888         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75889         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75890         also add missing comma that caused broken test.
75891         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75892         stdlib.h, for `abort'.
75893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75894         variables.
75895         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75896         include unistd.h if present, for `rmdir'.
75897         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75898         variables.
75899         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75900         in the process include standard headers for prototypes.
75901         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75902         gets declared on GNU/Linux.
75903         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75904         unistd.h, for `rmdir'.
75905         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75906
75907         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75908         always true.
75909         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75910
75911         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75912
75913 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75914
75915         * gnulib-tool (func_version): Create output all at once.  This
75916         may help avoid triggering unnecessary SIGPIPEs, and at any
75917         rate it doesn't hurt.
75918
75919 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75920             Bruno Haible  <bruno@clisp.org>
75921
75922         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75923         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75924         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75925
75926         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75927         (gl_FUNC_VASPRINTF): Invoke it.
75928
75929 2006-09-22  Bruno Haible  <bruno@clisp.org>
75930
75931         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75932         getloadavg.c as first argument.
75933
75934 2006-09-22  Bruno Haible  <bruno@clisp.org>
75935
75936         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75937         at the beginning of the gl_INIT macro.
75938         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75939         gl_GETLOADAVG.
75940
75941 2006-09-22  Bruno Haible  <bruno@clisp.org>
75942
75943         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75944         module.
75945         Suggested by Ralf Wildenhues.
75946
75947 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         Import this patch from libc:
75950
75951         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75952
75953         * lib/regex_internal.c (re_string_reconstruct): Handle
75954         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75955         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75956         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75957         re_string_context_at.
75958
75959         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75960         now requires it.
75961         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75962         gl_REGEX now does it for us.
75963         (gl_REGEX): Add test taken from
75964         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75965
75966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75967         Check that large offsets work.  Modernize Autoconf usages.
75968         Prefer "yes" to mean a good thing rather than a bad.
75969         Don't put "#define mkstemp" in config.h, as this might interfere
75970         with standard system headers that "#define mkstemp mkstemp64".
75971
75972         * modules/mkstemp (Depends-on): Add extensions, so that
75973         mkstemp is visible on some platforms.
75974         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75975         (Include): Change to "mkstemp.h" from <stdlib.h>.
75976         (Files): Add mkstemp.h.
75977
75978         * lib/mkstemp.h: New file, since some standard headers
75979         #define mkstemp.
75980         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75981         Include "mkstemp.h".
75982         Make the _LIBC code resemble glibc original more,
75983         e.g., use K&R style.
75984         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75985         (mkstemp): Remove, since mkstemp.h does this for us.
75986         * lib/stdlib--.h: Include mkstemp.h.
75987
75988         Import this patch from libc:
75989
75990         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75991
75992         * lib/tempname.c (__gen_tempname): Change attempts_min
75993         into a macro.  Use preprocessor to decide how to initialize
75994         attempts [Coverity CID 67].
75995
75996 2006-09-20  Bruno Haible  <bruno@clisp.org>
75997
75998         * lib/mkdtemp.c: Import from libc.
75999         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76000                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76001                 attempts_min into a macro.  Use preprocessor to decide how to
76002                 initialize attempts [Coverity CID 67].
76003         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76004                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76005                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76006
76007 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76008
76009         * gnulib-tool (func_exit): New function, to allow to pass the
76010         exit status portably through the trap.  Use everywhere.
76011         (--help, --version): Signal a write error.
76012         (trap): catch SIGPIPE, for write errors.
76013         Exit at the end of the trap, with the correct exit status.
76014
76015 2006-09-19  Karl Berry  <karl@gnu.org>
76016
76017         * doc/gnulib.texi: note about the license texinfo files.
76018
76019 2006-09-19  Eric Blake  <ebb9@byu.net>
76020
76021         * gnulib-tool: Avoid space-tab.
76022
76023 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76026         that prevented coreutils 6.1 from building.  Problem reported
76027         by Petter Reinholdtsen.
76028
76029 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * gnulib-tool (avoidlist): Fix typo that broke options like
76032         --avoid=lock that are used by coreutils bootstrap.
76033
76034 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76035
76036         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76037         more systematically.
76038
76039 2006-09-18  Jim Meyering  <jim@meyering.net>
76040
76041         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76042
76043 2006-09-18  Bruno Haible  <bruno@clisp.org>
76044
76045         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76046
76047 2006-09-18  Bruno Haible  <bruno@clisp.org>
76048
76049         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76050         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76051         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76052         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76053         * m4/gettext.m4: Require autoconf >= 2.52.
76054         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76055         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76056         of gl_cv_header_inttypes_h.
76057
76058 2006-09-18  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/javaversion.c: Include configmake.h.
76061
76062 2006-09-18  Bruno Haible  <bruno@clisp.org>
76063
76064         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76065         avoid that the while loops be executed in a subshell.
76066
76067 2006-09-18  Bruno Haible  <bruno@clisp.org>
76068
76069         * MODULES.html.sh (func_module): Break long lines.
76070         Suggested by Bruce Korb <bkorb@gnu.org>.
76071
76072 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76073
76074         Speed up by a factor of 1.12.
76075         * gnulib-tool (nl): New variable.
76076         (func_import): Rewrite include directive extraction to only read each
76077         directive once.
76078
76079 2006-09-17  Bruno Haible  <bruno@clisp.org>
76080
76081         * modules/javaversion (Makefile.am): Remove DEFS setting.
76082         (Depends-on): Add configmake, for PKGDATADIR definition.
76083
76084 2006-09-17  Bruno Haible  <bruno@clisp.org>
76085
76086         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76087
76088 2006-09-17  Bruno Haible  <bruno@clisp.org>
76089
76090         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76091         (func_modules_transitive_closure, func_modules_add_dummy,
76092         func_modules_to_filelist, func_import, func_create_testdir,
76093         func_create_megatestdir, ...): Use it wherever possible.
76094         Suggested by Ralf Wildenhues.
76095
76096 2006-09-16  Karl Berry  <karl@gnu.org>
76097
76098         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76099         to avoid sectioning errors.
76100         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76101         [ifinfo]: blank line after @center-ed titles.
76102         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76103         Spell FSF address consistently with others.
76104         (These changes approved by rms.)
76105
76106 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76107
76108         Speed up by a factor of 1.61.
76109         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76110         already checked module names again.
76111
76112 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76113
76114         Speed up by a factor of 1.13.
76115         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76116         for new_files, and the input to func_add_or_update.
76117
76118 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76119
76120         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76121         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76122
76123 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76124
76125         * modules/mkancesdirs (Depends-on): Add fcntl.
76126         * modules/savewd: New file.
76127         * MODULES.html.sh (File system functions): Add savewd.
76128
76129         * modules/configmake (Makefile.am): Add support for the
76130         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76131
76132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         * m4/savewd.m4: New file.
76135
76136 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76139         (dirchownmod): New arg FD.  All callers changed.
76140         Use FD rather than opening the directory ourself, as opening is
76141         now the caller's responsibility.
76142         * lib/dirchownmod.h: Likewise.
76143         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76144         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76145         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76146         (test_dir): Remove.
76147         (mkancesdirs): Return length of prefix of FILE that has already
76148         been made, or -2 if there is a child doing the work.  Redo
76149         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76150         ".", and treat ".." specially since it might stray back into
76151         already-created areas.  Use a subprocess if necessary.  New arg
76152         WD; all users changed.  MAKE_DIR function should now return 1
76153         if it creates a directory that is not readable.  Return -2 if
76154         a child process is spun off.
76155         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76156         Adjust signature to match code.
76157         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76158         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76159         all users changed.
76160         * lib/savewd.c, lib/savewd.h: New files.
76161
76162 2006-09-15  Jim Meyering  <jim@meyering.net>
76163
76164         * modules/rename-dest-slash: New module.
76165         * MODULES.html.sh (posix_compat): Add it here.
76166
76167         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76168
76169 2006-09-15  Jim Meyering  <jim@meyering.net>
76170
76171         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76172         file.
76173
76174         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76175
76176 2006-09-15  Jim Meyering  <jim@meyering.net>
76177
76178         * lib/rename-dest-slash.c (has_trailing_slash): Use
76179         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76180         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76181         test before testing whether SRC is a directory.
76182         Suggestions from Bruno Haible.
76183
76184         Avoid a warning about an unused variable.
76185         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76186         into the #ifdef block where it's used.
76187
76188         * lib/rename-dest-slash.c: New file.
76189
76190 2006-09-14  Bruno Haible  <bruno@clisp.org>
76191
76192         * lib/allocsa.c: Include <config.h> unconditionally.
76193         * lib/asnprintf.c: Likewise.
76194         * lib/asprintf.c: Likewise.
76195         * lib/c-strcasecmp.c: Likewise.
76196         * lib/c-strcasestr.c: Likewise.
76197         * lib/c-strncasecmp.c: Likewise.
76198         * lib/c-strstr.c: Likewise.
76199         * lib/classpath.c: Likewise.
76200         * lib/clean-temp.c: Likewise.
76201         * lib/concatpath.c: Likewise.
76202         * lib/copy-file.c: Likewise.
76203         * lib/csharpcomp.c: Likewise.
76204         * lib/csharpexec.c: Likewise.
76205         * lib/execute.c: Likewise.
76206         * lib/fatal-signal.c: Likewise.
76207         * lib/findprog.c: Likewise.
76208         * lib/fwriteerror.c: Likewise.
76209         * lib/gl_array_list.c: Likewise.
76210         * lib/gl_array_oset.c: Likewise.
76211         * lib/gl_avltree_list.c: Likewise.
76212         * lib/gl_avltree_oset.c: Likewise.
76213         * lib/gl_avltreehash_list.c: Likewise.
76214         * lib/gl_carray_list.c: Likewise.
76215         * lib/gl_linked_list.c: Likewise.
76216         * lib/gl_linkedhash_list.c: Likewise.
76217         * lib/gl_list.c: Likewise.
76218         * lib/gl_oset.c: Likewise.
76219         * lib/gl_rbtree_list.c: Likewise.
76220         * lib/gl_rbtree_oset.c: Likewise.
76221         * lib/gl_rbtreehash_list.c: Likewise.
76222         * lib/imaxabs.c: Likewise.
76223         * lib/imaxdiv.c: Likewise.
76224         * lib/javacomp.c: Likewise.
76225         * lib/javaexec.c: Likewise.
76226         * lib/javaversion.c: Likewise.
76227         * lib/linebreak.c: Likewise.
76228         * lib/localcharset.c: Likewise.
76229         * lib/lock.c: Likewise.
76230         * lib/mbchar.c: Likewise.
76231         * lib/mbswidth.c: Likewise.
76232         * lib/mkdtemp.c: Likewise.
76233         * lib/pipe.c: Likewise.
76234         * lib/printf-args.c: Likewise.
76235         * lib/printf-parse.c: Likewise.
76236         * lib/progname.c: Likewise.
76237         * lib/progreloc.c: Likewise.
76238         * lib/readlink.c: Likewise.
76239         * lib/sh-quote.c: Likewise.
76240         * lib/stpcpy.c: Likewise.
76241         * lib/stpncpy.c: Likewise.
76242         * lib/strcasecmp.c: Likewise.
76243         * lib/strcasestr.c: Likewise.
76244         * lib/strcspn.c: Likewise.
76245         * lib/striconv.c: Likewise.
76246         * lib/strncasecmp.c: Likewise.
76247         * lib/strnlen1.c: Likewise.
76248         * lib/strstr.c: Likewise.
76249         * lib/strtok_r.c: Likewise.
76250         * lib/tls.c: Likewise.
76251         * lib/tmpdir.c: Likewise.
76252         * lib/unicodeio.c: Likewise.
76253         * lib/unsetenv.c: Likewise.
76254         * lib/vasnprintf.c: Likewise.
76255         * lib/vasprintf.c: Likewise.
76256         * lib/wait-process.c: Likewise.
76257         * lib/xallocsa.c: Likewise.
76258         * lib/xsetenv.c: Likewise.
76259         * lib/xstriconv.c: Likewise.
76260
76261 2006-09-13  Simon Josefsson  <jas@extundo.com>
76262
76263         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76264         that internally, suggested by Ralf Wildenhues
76265         <Ralf.Wildenhues@gmx.de>.
76266
76267 2006-09-13  Simon Josefsson  <jas@extundo.com>
76268
76269         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76270         @LIBOBJS@.
76271         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76272
76273 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76276         longer worry about uses that don't define HAVE_CONFIG_H.
76277         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76278         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76279         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76280         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76281         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76282         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76283         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76284         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76285         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76286         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76287         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76288         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76289         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76290         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76291         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76292         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76293         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76294         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76295         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76296         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76297         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76298         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76299         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76300         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76301         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76302         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76303         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76304         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76305         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76306         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76307         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76308         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76309         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76310         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76311         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76312         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76313         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76314         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76315         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76316         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76317         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76318         Likewise.
76319
76320 2006-09-13  Eric Blake  <ebb9@byu.net>
76321
76322         * lib/getopt.c: Fix typo in last commit.
76323
76324 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76325
76326         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76327         dgettext.
76328
76329 2006-09-12  Jim Meyering  <jim@meyering.net>
76330
76331         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76332         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76333         Reported by Nelson H. F. Beebe.
76334
76335 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76336
76337         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76338         program_invocation_name and program_invocation_short_name are
76339         initialized.
76340         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76341         and program_invocation_short_name to argp.h, so they are visible
76342         to user programs.
76343         * lib/argp.h: Likewise
76344
76345 2006-09-10  Bruno Haible  <bruno@clisp.org>
76346
76347         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76348         m4/inttypes_h.m4, m4/uintmax_t.m4.
76349
76350 2006-09-10  Bruno Haible  <bruno@clisp.org>
76351
76352         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76353         gl_AC_TYPE_UINTMAX_T.
76354
76355 2006-09-10  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76358
76359 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76360
76361         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76362         convention.  Text proposed by Bruno Haible.
76363         (struct argp_option): Document the use of N_() wrappers.
76364
76365         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76366         '\v', and translate the two parts separately, instead of feeding
76367         the whole string to gettext.  This allows to exclude
76368         '\v' from the strings visible to the translator by writing doc
76369         strings as N_("..") "\v" N_("..").
76370
76371 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         * config/srclist.txt: Undo latest change; the bug was fixed.
76374
76375 2006-09-09  Bruno Haible  <bruno@clisp.org>
76376
76377         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76378         assignments if building a library without libtool.
76379         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76380         in func_emit_lib_Makefile_am.
76381         (func_import): When building a static library libfoo.a, arrange to
76382         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76383         (func_create_testdir): Likewise.
76384         * modules/gc (configure.ac, Makefile.am): If building statically,
76385         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76386         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76387         * modules/striconv (configure.ac, Makefile.am): Likewise.
76388         Based on a suggestion by Ralf Wildenhues.
76389
76390 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76393         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76394         Also:
76395
76396         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76397         Add year_2050_test to catch glibc bug 2821
76398         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76399
76400         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76401         Prefer #ifdef to #if.
76402
76403         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76404         Return from 'main' instead of calling 'exit'.
76405
76406 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76409         returned the maximum time_t value rather than (time_t) -1.
76410         Problem originally reported by William Bardwell
76411         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76412
76413         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76414         Moved to here ...
76415         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76416         ... from here.
76417
76418 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76419
76420         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76421         2821 is fixed.
76422
76423 2006-09-08  Jim Meyering  <jim@meyering.net>
76424
76425         Don't make generated files read-only.  That would bother too many
76426         people.  However, do retain the ability to work when targets are
76427         read-only: remove the destination and temporary files before writing
76428         them (when generated via sed or echo), or by using the -f option for
76429         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76430         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76431         * modules/byteswap, modules/configmake, modules/fcntl:
76432         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76433         * modules/localcharset, modules/netinet_in, modules/poll:
76434         * modules/stdbool, modules/stdint, modules/sys_select:
76435         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76436
76437 2006-09-08  Jim Meyering  <jim@meyering.net>
76438
76439         Avoid new build failure on FreeBSD 6.0.
76440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76441         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76442         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76443
76444 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76445
76446         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76447
76448 2006-09-07  Jim Meyering  <jim@meyering.net>
76449
76450         Fix global typo in last change: use chmod u-w, not chmod u-x.
76451         Spotted by Paul Eggert and Bruce Korb.
76452         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76453         * modules/byteswap, modules/configmake, modules/fcntl:
76454         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76455         * modules/localcharset, modules/netinet_in, modules/poll:
76456         * modules/stdbool, modules/stdint, modules/sys_select:
76457         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76458
76459 2006-09-06  Jim Meyering  <jim@meyering.net>
76460
76461         Make generated files be read-only.
76462         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76463         Ensure that each generated file is now read-only.
76464         * modules/argz: Likewise.
76465         * modules/arpa_inet: Likewise.
76466         * modules/byteswap: Likewise.
76467         * modules/configmake: Likewise.
76468         * modules/fcntl: Likewise.
76469         * modules/fnmatch: Likewise.
76470         * modules/getopt: Likewise.
76471         * modules/glob: Likewise.
76472         * modules/inttypes: Likewise.
76473         * modules/netinet_in: Likewise.
76474         * modules/poll: Likewise.
76475         * modules/stdbool: Likewise.
76476         * modules/stdint: Likewise.
76477         * modules/sys_select: Likewise.
76478         * modules/sys_socket: Likewise.
76479         * modules/sys_stat: Likewise.
76480         * modules/sysexits: Likewise.
76481         * modules/localcharset: Same as above, but continue using temporary
76482         file named "t-$@" (why different?) rather than the "$@-t" used
76483         everywhere else.
76484
76485         * modules/sysexits (Makefile.am): Replace literal occurrences
76486         of "sysexit.h" more readable, and more consistent, "$@".
76487
76488 2006-09-06  Bruno Haible  <bruno@clisp.org>
76489
76490         * modules/striconv: New file.
76491         * modules/xstriconv: New file.
76492         * MODULES.html.sh (Internationalization functions): Add striconv,
76493         xstriconv.
76494
76495 2006-09-06  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76498         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76499         not using libtool correctly.
76500
76501 2006-09-06  Bruno Haible  <bruno@clisp.org>
76502
76503         * lib/striconv.h: New file.
76504         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76505         iconvstring.c.
76506         * lib/xstriconv.h: New file.
76507         * lib/xstriconv.c: New file.
76508
76509 2006-09-06  Bruno Haible  <bruno@clisp.org>
76510
76511         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76512         lib_..._LDFLAGS.
76513
76514 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76515
76516         * lib/argz_.h: Sync from Libtool.
76517
76518         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76519                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76520
76521         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76522
76523 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76524
76525         * modules/trim: New file.
76526
76527 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76528
76529         * lib/trim.h: New file.
76530         * lib/trim.c: New file.
76531
76532 2006-09-05  Bruno Haible  <bruno@clisp.org>
76533
76534         * MODULES.html.sh (String handling): Add trim.
76535
76536 2006-09-04  Karl Berry  <karl@gnu.org>
76537
76538         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76539         until next release.
76540
76541 2006-09-03  Bruno Haible  <bruno@clisp.org>
76542
76543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76544         correctly.
76545
76546 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76549         not gl_GETLOADAVG.  Omit unneeded semicolons.
76550         Problems reported by Ralf Wildenhues in
76551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76552         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76553         at the end, which is the usual gnulib style.
76554
76555         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76556         of doing all the work ourselves.
76557         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76558         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76559
76560 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76563         Problem reported by Ralf Wildenhues in
76564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76565
76566         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76567         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76568
76569 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76572         yesterday's patch by changing test -n to test -z.
76573
76574 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76577         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76578         the former is now obsolescent.
76579
76580         * modules/chdir-long (Depends-on): Add fcntl.
76581
76582 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76585         obsolescent, and programs should use gnulib instead.
76586         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76587         but with prefixes changed.
76588
76589 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76590
76591         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76592         or stdbool.h, because they might not exist while configuring.
76593
76594         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76595         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76596         does that for us.
76597         (O_DIRECTORY): Remove.
76598
76599 2006-08-31  Eric Blake  <ebb9@byu.net>
76600
76601         * gnulib-tool: Don't let emacs change spaces to TAB.
76602
76603 2006-08-31  Bruno Haible  <bruno@clisp.org>
76604
76605         * gnulib-tool: When calling func_import more than once, do it in a
76606         subshell.
76607         Reported by Eric Blake <ebb9@byu.net>.
76608
76609 2006-08-31  Bruno Haible  <bruno@clisp.org>
76610
76611         * gnulib-tool (nl): Remove variable.
76612         (sed_transform_lib_file): Use more robust test for config-h module.
76613         (func_import): Fix typo in 2006-08-25 patch.
76614
76615 2006-08-31  Bruno Haible  <bruno@clisp.org>
76616
76617         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76618         specified, augment Makefile.am variables instead of assigning them.
76619
76620 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         Work around a bug in both the Linux and SunOS 64-bit kernels:
76623         nanosleep mishandles sleeps for longer than 2**31 seconds.
76624         Problem reported by Frank v Waveren in
76625         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76627         Check for nanosleep bug.
76628         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76629
76630 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         Work around a bug in both the Linux and SunOS 64-bit kernels:
76633         nanosleep mishandles sleeps for longer than 2**31 seconds.
76634         Problem reported by Frank v Waveren in
76635         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76636         * lib/nanosleep.c (BILLION): New constant.
76637         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76638         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76639         implementation.
76640
76641 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76642
76643         * modules/nanosleep (Depends-on): Add gettime.
76644
76645 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76646         and Simon Josefsson  <jas@extundo.com>
76647         and Oskar Liljeblad  <oskar@osk.mine.nu>
76648
76649         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76650         * gnulib-tool (func_import): New license type 'unmodifiable license
76651         text'.
76652         * modules/fdl: Use it.  Longer description.
76653         * module/gpl, module/lgpl: New files.
76654
76655 2006-08-30  Jim Meyering  <jim@meyering.net>
76656
76657         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76658         shadowing the parameter.
76659
76660 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76661
76662         Sync from Libtool:
76663
76664         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76665
76666         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76667         sharing with gnulib.  Report by Eric Blake.
76668
76669 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * modules/isapipe: New file.
76672         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76673
76674 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * modules/configmake (Makefile.am): Add a comment, and omit
76677         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76678         by Bruno Haible.
76679
76680 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * m4/isapipe.m4: New file.
76683
76684 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * lib/isapipe.c, lib/isapipe.h: New files.
76687
76688 2006-08-29  Jim Meyering  <jim@meyering.net>
76689
76690         * modules/configmake (Makefile.am): Make configmake.h depend on
76691         Makefile.  Otherwise, a stale configmake.h could hang around.
76692
76693 2006-08-29  Eric Blake  <ebb9@byu.net>
76694
76695         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76696         resolution of upstream bug 3044.
76697
76698 2006-08-29  Bruno Haible  <bruno@clisp.org>
76699
76700         * modules/localcharset (Depends-on): Add configmake.
76701         (Makefile.am): Remove setting of LIBDIR through DEFS.
76702
76703 2006-08-29  Bruno Haible  <bruno@clisp.org>
76704
76705         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76706         defined.
76707
76708 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * modules/fcntl: New file.
76711         * modules/chdir-safer (Depends-on): Add fcntl.
76712         * modules/fts: Likewise.
76713         * modules/mkdir-p: Likewise.
76714
76715         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76716         This undoes the most recent change, since we're now addressing the
76717         problem in a different way.
76718
76719         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76720         into output, since the output might be called Makefile.am even
76721         if $makefile_name is something different.
76722         (func_import): Use $makefile_am rather than
76723         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76724         empty.
76725
76726         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76727
76728 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76731         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76732         recent change to stdint.m4, since we're now addressing the problem in a
76733         different way.
76734
76735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * m4/fcntl_h.m4: New file.
76738
76739 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * lib/fcntl_.h: New file.
76742         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76743         the fcntl module.
76744         * lib/dirchownmod.c: Likewise.
76745         * lib/fts.c: Likewise.
76746
76747         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76748         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76749         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76750         just before including <inttypes.h>, to avoid circular inclusion.
76751
76752 2006-08-28  Jim Meyering  <jim@meyering.net>
76753
76754         * doc/visibility.texi: Actually read and correct the grammar of the
76755         sentence affected by yesterday's change.
76756
76757 2006-08-28  Eric Blake  <ebb9@byu.net>
76758
76759         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76760         needs wrapper.
76761
76762 2006-08-28  Eric Blake  <ebb9@byu.net>
76763
76764         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76765
76766 2006-08-28  Eric Blake  <ebb9@byu.net>
76767
76768         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76769
76770 2006-08-28  Bruno Haible  <bruno@clisp.org>
76771
76772         * modules/c-strstr: New file, from GNU gettext.
76773         * MODULES.html.sh (String handling): Add c-strstr.
76774
76775 2006-08-28  Bruno Haible  <bruno@clisp.org>
76776
76777         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76778         macros.
76779         Reported by Eric Blake.
76780
76781 2006-08-28  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76784         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76785         * lib/vasprintf.c: Include errno.h, limits.h.
76786         (EOVERFLOW): New fallback definition.
76787         (vasprintf): Test here whether the string length is > INT_MAX.
76788         * lib/vsnprintf.c: Include errno.h, limits.h.
76789         (EOVERFLOW): New fallback definition.
76790         (vsnprintf): Fix bug when generated string was too long for the buffer.
76791         Test here whether the string length is > INT_MAX.
76792
76793 2006-08-28  Bruno Haible  <bruno@clisp.org>
76794
76795         * lib/inttypes_.h (SCNX*): Remove definitions.
76796         Reported by Eric Blake.
76797
76798 2006-08-28  Bruno Haible  <bruno@clisp.org>
76799
76800         * lib/c-strstr.h: New file, from GNU gettext.
76801         * lib/c-strstr.c: New file, from GNU gettext.
76802
76803 2006-08-28  Bruno Haible  <bruno@clisp.org>
76804
76805         * gnulib-tool: Reorder some statements.
76806
76807 2006-08-28  Bruno Haible  <bruno@clisp.org>
76808
76809         * gnulib-tool: New option --makefile-name.
76810         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76811         $makefile_name.
76812         (func_import): Write $makefile_name to the cache file, and read it from
76813         there unless explicitly specified. Use $makefile_name as file name
76814         instead of Makefile.am. Adjust the recommendations accordingly.
76815
76816 2006-08-28  Bruno Haible  <bruno@clisp.org>
76817
76818         * gnulib-tool (func_verify_module): Check against misapplying patch.
76819
76820 2006-08-28  Bruno Haible  <bruno@clisp.org>
76821
76822         * gnulib-tool (func_relativize, func_relconcat): New functions.
76823         Give an error if --local-dir is given with --update.
76824         Remove trailing slashes from $local_gnulib_dir.
76825         (func_import): Store the relativized $local_gnulib_dir in
76826         gnulib-cache.m4, and read it from there if not specified explicitly.
76827
76828 2006-08-28  Bruno Haible  <bruno@clisp.org>
76829
76830         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76831         is the current directory. Respect also $local_gnulib_dir.
76832
76833 2006-08-28  Bruno Haible  <bruno@clisp.org>
76834             Simon Josefsson  <jas@extundo.com>
76835
76836         BeOS portability.
76837         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76838
76839 2006-08-27  Jim Meyering  <jim@meyering.net>
76840
76841         * doc/visibility.texi: Remove duplicate word: "pointer".
76842
76843 2006-08-26  Bruno Haible  <bruno@clisp.org>
76844
76845         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76846         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76847         (Makefile.am): Create inttypes.h from inttypes_.h.
76848         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76849
76850         * modules/imaxabs: New file.
76851
76852         * modules/imaxdiv: New file.
76853
76854 2006-08-26  Bruno Haible  <bruno@clisp.org>
76855
76856         * m4/inttypes.m4: New file.
76857         * m4/_inttypes_h.m4: Remove file.
76858         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76859         PRI_MACROS_BROKEN.
76860         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76861
76862         * m4/imaxabs.m4: New file.
76863
76864         * m4/imaxdiv.m4: New file.
76865
76866 2006-08-26  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/inttypes_.h: New file.
76869         * lib/inttypes.h: Remove file.
76870         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76871
76872         * lib/imaxabs.c: New file.
76873
76874         * lib/imaxdiv.c: New file.
76875
76876 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76877
76878         New config-h module, so that "make" output needn't be cluttered
76879         by -DHAVE_CONFIG_H.
76880         * MODULES.html.sh (Support for building libraries and executables):
76881         Add config-h.
76882         * modules/config-h: New file.
76883         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76884         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76885         the config-h module is used.
76886
76887         New configmake module, so that "make" output needn't be cluttered
76888         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76889         * MODULES.html.sh (Support for building libraries and executables):
76890         Add configmake.
76891         * modules/configmake: New file.
76892
76893 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * m4/config-h.m4: New file.
76896
76897 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * config/srclist.txt: Add elisp-comp.
76900
76901 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * MODULES.html.sh (Support for building libraries and executables):
76904         Add elisp-comp.
76905         * build-aux/elisp-comp: New file.
76906         * modules/elisp-comp: New file.
76907
76908 2006-08-24  Bruno Haible  <bruno@clisp.org>
76909
76910         * gnulib-tool (func_create_testdir): Use non-default values of
76911         sourcebase and m4base.
76912
76913 2006-08-24  Bruno Haible  <bruno@clisp.org>
76914
76915         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76916         HTML structure.
76917
76918 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * modules/openat (Depends-on): Add lchown.
76921
76922 2006-08-23  Bruno Haible  <bruno@clisp.org>
76923
76924         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76925         of gl_LOCK_EARLY instead of gl_LOCK.
76926
76927 2006-08-23  Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76930         on OSF/1 to no.
76931         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76932
76933 2006-08-23  Bruno Haible  <bruno@clisp.org>
76934
76935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76936         as unusable.
76937
76938         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76939         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76940         (gl_LOCK): New macro.
76941
76942 2006-08-22  Simon Josefsson  <jas@extundo.com>
76943
76944         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76945         to md5 module.
76946
76947 2006-08-22  Simon Josefsson  <jas@extundo.com>
76948
76949         * MODULES.html.sh: Add "Support for maintaining and release
76950         projects".
76951
76952         * build-aux/gnupload: New file, from coreutils.
76953
76954 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         Avoid the need for AC_LIBSOURCES in m4 macros.
76957         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76958         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76959         * modules/check-version (EXTRA_DIST): Add check-version.h.
76960         * modules/crc (EXTRA_DIST): Add crc.h.
76961         * modules/des (EXTRA_DIST): Add des.h.
76962         * modules/gc (EXTRA_DIST): Add gc.h.
76963         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76964         * modules/getline (EXTRA_DIST): Add getline.h.
76965         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76966         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76967         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76968         * modules/md2 (EXTRA_DIST): Add md2.h.
76969         * modules/md4 (EXTRA_DIST): Add md4.h.
76970         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76971         * modules/read-file (EXTRA_DIST): Add read-file.h.
76972         * modules/readline (EXTRA_DIST): Add readline.h.
76973         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76974         rijndael-api-fst.h.
76975
76976 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * m4/rijndael.m4 (gl_ARCFOUR):
76979         * m4/arctwo.m4 (gl_ARCTWO):
76980         * m4/check-version.m4 (gl_CHECK_VERSION):
76981         * m4/crc.m4 (gl_CRC):
76982         * m4/des.m4 (gl_DES):
76983         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76984         * m4/gc.m4 (gl_GC):
76985         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76986         * m4/getline.m4 (gl_FUNC_GETLINE):
76987         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76988         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76989         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76990         * m4/md2.m4 (gl_MD2):
76991         * m4/md4.m4 (gl_MD4):
76992         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76993         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76994         * m4/readline.m4 (gl_FUNC_READLINE):
76995         * m4/rijndael.m4 (gl_RIJNDAEL):
76996         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76997         to get the necessary .h files and whatnot.
76998
76999 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77002         gnulib rather than the other way around.
77003         * config/srclistvars.sh (COREUTILS): Remove.
77004
77005 2006-08-22  Jim Meyering  <jim@meyering.net>
77006
77007         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77008
77009         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77010
77011 2006-08-22  Eric Blake  <ebb9@byu.net>
77012
77013         * modules/regexprops-generic: New file.
77014         * MODULES.html.sh (Support for building documentation): List it.
77015
77016 2006-08-22  Eric Blake  <ebb9@byu.net>
77017
77018         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77019         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77020         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77021         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77022
77023 2006-08-22  Bruno Haible  <bruno@clisp.org>
77024
77025         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77026         and lib_LTLIBRARIES like the other lib_* variables.
77027
77028 2006-08-22  Bruno Haible  <bruno@clisp.org>
77029
77030         * build-aux/x-to-1.in: New file, from GNU gettext.
77031
77032 2006-08-22  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77035         <utmpx.h> exists.
77036
77037 2006-08-22  Bruno Haible  <bruno@clisp.org>
77038
77039         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77040         <utmpx.h> exists.
77041
77042 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         BeOS portability.
77045         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77046         exist.
77047         Problem reported by Bruno Haible.
77048
77049 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         Avoid the need for AC_LIBSOURCES in m4 macros.
77052         * modules/acl (EXTRA_DIST): Add acl.h.
77053         * modules/argmatch (Files): Add m4/argmatch.m4.
77054         (configure.ac): Add gl_ARGMATCH.
77055         (EXTRA_DIST): Renamed from lib_SOURCES, for
77056         consistency with the other modules.  Remove argmatch.c.
77057         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77058         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77059         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77060         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77061         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77062         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77063         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77064         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77065         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77066         * modules/closeout (EXTRA_DIST): Add closeout.h.
77067         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77068         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77069         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77070         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77071         dirname.h; remove basename.c and stripslash.c.
77072         * modules/exclude (EXTRA_DIST): Add exclude.h.
77073         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77074         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77075         * modules/file-type (EXTRA_DIST): Add file-type.h.
77076         * modules/filemode (EXTRA_DIST): Add filemode.h.
77077         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77078         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77079         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77080         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77081         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77082         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77083         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77084         * modules/getdate (EXTRA_DIST): Add getdate.c.
77085         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77086         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77087         * modules/getpass (EXTRA_DIST): Add getpass.h.
77088         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77089         * modules/group-member (EXTRA_DIST): Add group-member.h.
77090         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77091         * modules/hash (EXTRA_DIST): Add hash.h.
77092         * modules/human (EXTRA_DIST): Add human.h.
77093         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77094         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77095         * modules/lchown (EXTRA_DIST): Add lchown.h.
77096         * modules/long-options (EXTRA_DIST): Add long-options.h.
77097         * modules/lstat (EXTRA_DIST): Add lstat.h.
77098         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77099         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77100         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77101         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77102         * modules/memxor (EXTRA_DIST): Add memxor.h.
77103         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77104         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77105         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77106         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77107         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77108         * modules/physmem (EXTRA_DIST): Add physmem.h.
77109         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77110         * modules/posixver (EXTRA_DIST): Add posixver.h.
77111         * modules/quote (EXTRA_DIST): Add quote.h.
77112         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77113         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77114         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77115         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77116         regex_internal.h regexec.c.
77117         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77118         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77119         * modules/same (EXTRA_DIST): Add same.h.
77120         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77121         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77122         * modules/savedir (EXTRA_DIST): Add savedir.h.
77123         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77124         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77125         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77126         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77127         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77128         * modules/strdup (EXTRA_DIST): Add strdup.h.
77129         * modules/strftime (EXTRA_DIST): Add strftime.h.
77130         * modules/strndup (EXTRA_DIST): Add strndup.h.
77131         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77132         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77133         * modules/time_r (EXTRA_DIST): Add time_r.h.
77134         * modules/timespec (EXTRA_DIST): Add timespec.h.
77135         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77136         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77137         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77138         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77139         * modules/userspec (EXTRA_DIST): Add userspec.h.
77140         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77141         * modules/utimens (EXTRA_DIST): Add utimens.h.
77142         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77143         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77144         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77145         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77146         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77147         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77148         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77149         * modules/yesno (EXTRA_DIST): Add yesno.h.
77150
77151 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77152
77153         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77154
77155         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77156         * m4/dev-ino.m4, same-inode.m4: Remove.
77157
77158         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77159         * m4/acl.m4 (AC_FUNC_ACL):
77160         * m4/backupfile.m4 (gl_BACKUPFILE):
77161         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77162         * m4/canon-host.m4 (gl_CANON_HOST):
77163         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77165         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77166         * m4/cloexec.m4 (gl_CLOEXEC):
77167         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77168         * m4/closeout.m4 (gl_CLOSEOUT):
77169         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77170         * m4/dirname.m4 (gl_DIRNAME):
77171         * m4/exclude.m4 (gl_EXCLUDE):
77172         * m4/exitfail.m4 (gl_EXITFAIL):
77173         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77174         * m4/file-type.m4 (gl_FILE_TYPE):
77175         * m4/filemode.m4 (gl_FILEMODE):
77176         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77177         * m4/fpending.m4 (gl_FUNC_FPENDING):
77178         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77179         * m4/fts.m4 (gl_FUNC_FTS):
77180         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77181         * m4/getdate.m4 (gl_GETDATE):
77182         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77183         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77184         * m4/getpass.m4 (gl_FUNC_GETPASS):
77185         * m4/gettime.m4 (gl_GETTIME):
77186         * m4/getugroups.m4 (gl_GETUGROUPS):
77187         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77188         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77189         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77190         * m4/hash.m4 (gl_HASH):
77191         * m4/idcache.m4 (gl_IDCACHE):
77192         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77193         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77194         * m4/long-options.m4 (gl_LONG_OPTIONS):
77195         * m4/lstat.m4 (gl_FUNC_LSTAT):
77196         * m4/md5.m4 (gl_MD5):
77197         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77198         * m4/memcoll.m4 (gl_MEMCOLL):
77199         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77200         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77201         * m4/memxor.m4 (gl_MEMXOR):
77202         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77203         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77204         * m4/modechange.m4 (gl_MODECHANGE):
77205         * m4/mountlist.m4 (gl_MOUNTLIST):
77206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77207         * m4/openat.m4 (gl_FUNC_OPENAT):
77208         * m4/pathmax.m4 (gl_PATHMAX):
77209         * m4/physmem.m4 (gl_PHYSMEM):
77210         * m4/posixtm.m4 (gl_POSIXTM):
77211         * m4/posixver.m4 (gl_POSIXVER):
77212         * m4/quote.m4 (gl_QUOTE):
77213         * m4/quotearg.m4 (gl_QUOTEARG):
77214         * m4/readtokens.m4 (gl_READTOKENS):
77215         * m4/readutmp.m4 (gl_READUTMP):
77216         * m4/regex.m4 (gl_REGEX):
77217         * m4/safe-read.m4 (gl_SAFE_READ):
77218         * m4/safe-write.m4 (gl_SAFE_WRITE):
77219         * m4/same.m4 (gl_SAME):
77220         * m4/save-cwd.m4 (gl_SAVE_CWD):
77221         * m4/savedir.m4 (gl_SAVEDIR):
77222         * m4/settime.m4 (gl_SETTIME):
77223         * m4/sha1.m4 (gl_SHA1):
77224         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77225         * m4/stat-macros.m4 (gl_STAT_MACROS):
77226         * m4/stat-time.m4 (gl_STAT_TIME):
77227         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77228         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77229         * m4/strdup.m4 (gl_FUNC_STRDUP):
77230         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77231         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77232         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77233         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77234         * m4/time_r.m4 (gl_TIME_R):
77235         * m4/timespec.m4 (gl_TIMESPEC):
77236         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77237         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77238         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77239         * m4/userspec.m4 (gl_USERSPEC):
77240         * m4/utimecmp.m4 (gl_UTIMECMP):
77241         * m4/utimens.m4 (gl_UTIMENS):
77242         * m4/xalloc.m4 (gl_XALLOC):
77243         * m4/xgetcwd.m4 (gl_XGETCWD):
77244         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77245         * m4/xreadlink.m4 (gl_XREADLINK):
77246         * m4/xstrtod.m4 (gl_XSTRTOD):
77247         * m4/yesno.m4 (gl_YESNO):
77248         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77249         to get the necessary .h files and whatnot.
77250
77251 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77252             Bruno Haible  <bruno@clisp.org>
77253
77254         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77255         /bin/sh understanding of '!' conditional negation.
77256
77257 2006-08-21  Jim Meyering  <jim@meyering.net>
77258
77259         * modules/openat (Depends-on): Really alphabetize.
77260
77261         * modules/acl (Depends-on): Add error and quote.
77262
77263         * check-module (find_included_lib_files): Add at-func.c to the
77264         ok-to-include-more-than-once white list.
77265
77266         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77267
77268 2006-08-21  Bruno Haible  <bruno@clisp.org>
77269
77270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77271         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77272         Reported by Martin Lambers <marlam@marlam.de>.
77273
77274 2006-08-21  Bruno Haible  <bruno@clisp.org>
77275
77276         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77277         specify an installation location, don't emit a noinst_LIBRARIES or
77278         noinst_LTLIBRARIES assignment.
77279
77280 2006-08-21  Bruno Haible  <bruno@clisp.org>
77281
77282         BeOS portability.
77283         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77284         BeOS has mbrtowc() but no <wctype.h>.
77285
77286 2006-08-21  Bruno Haible  <bruno@clisp.org>
77287
77288         BeOS portability.
77289         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77290         exist.
77291
77292 2006-08-21  Bruno Haible  <bruno@clisp.org>
77293
77294         BeOS portability.
77295         * lib/mbchar.h: Include <wctype.h> only if it exists.
77296
77297 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77298
77299         Remove files that are no longer needed by their respective modules.
77300         * m4/obstack.m4: Remove.
77301         * m4/strerror_r.m4: Remove.
77302         * m4/uint32_t.m4: Remove.
77303         * m4/uintptr_t.m4: Remove.
77304         * m4/ullong_max.m4: Remove.
77305         * m4/xstrtoimax.m4: Remove.
77306         * m4/xstrtoumax.m4: Remove.
77307
77308         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77309         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77310         dependencies now capture this.
77311
77312         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77313         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77314         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77315         * m4/human.m4 (gl_HUMAN): Likewise.
77316         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77317         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77318
77319         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77320
77321         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77322         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77323         stdint.
77324         * m4/human.m4 (gl_HUMAN): Likewise.
77325         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77326         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77327         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77328         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77329         * m4/xstrtol (gl_XSTRTOL): Likewise.
77330
77331         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77332         AC_TYPE_LONG_LONG_INT.
77333         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77334         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77335         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77336         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77337
77338         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77339         on stdbool.
77340
77341         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77342         (gl_PREREQ_XSTRTOUL): Remove.
77343
77344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77345
77346         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77347         mode.
77348
77349 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         Add and change modules to make it easier for coreutils to use
77352         gnulib-tool.
77353         * modules/backupfile (Files): Remove m4/d-ino.m4.
77354         (Depends-on): Add d-ino.
77355         * modules/cycle-check (Depends-on): Add stdint.
77356         (lib_SOURCES): Add cycle-check.h.
77357         * modules/d-ino: New module.
77358         * modules/d-type: New module.
77359         * modules/error (Files): Remove m4/strerror_r.m4.
77360         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77361         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77362         m4/inttypes_h.m4, m4/uintmax_t.m4.
77363         (Depends-on): Add stdint.
77364         (lib_SOURCES): Add fsusage.h.
77365         * modules/getcwd (Files): Remove d-ino.m4.
77366         (Depends-on): Add d-ino.
77367         * modules/getndelim2 (Depends-on): Add stdint.
77368         * modules/glob (Files): Remove m4/d-type.m4.
77369         (Depends-on): Add d-type.
77370         * modules/host-os: New module.
77371         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77372         m4/inttypes_h.m4, m4/uintmax_t.m4.
77373         * Depends-on: Add stdint.
77374         (lib_SOURCES): Add human.h.
77375         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77376         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77377         m4/uintmax_t.m4, m4/ulonglong.m4.
77378         (Depends-on): Add stdint.
77379         (EXTRA_DIST): Add inttostr.h.
77380         * modules/lchmod: New module.
77381         * modules/link-follow: New module.
77382         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77383         (Depends-on): Add lchmod.
77384         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77385         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77386         (Depends-on): Add stdint.
77387         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77388         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77389         (Depends-on): Add stdint.
77390         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77391         * modules/perl: New module.
77392         * modules/regex (Depends-on): Add stdint.
77393         * modules/rmdir-errno: New module.
77394         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77395         m4/intmax_t.m4.
77396         (Depends-on): Add stdint.
77397         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77398         m4/uintmax_t.m4.
77399         (Depends-on): Add stdint.
77400         * modules/unlink-busy: New module.
77401         * modules/utimecmp (Depends-on): Add stdint.
77402         * modules/uptime: New module.
77403         * modules/winsz-ioctl: New module.
77404         * modules/winsz-termios: New module.
77405         * modules/xnanosleep (Depends-on): Add nanosleep.
77406         * modules/ullong_max: Remove.
77407         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77408         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77409         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77410         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77411         (Depends-on): Add inttypes.
77412         (lib_SOURCES): Add xstrtol.h.
77413         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77414         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77415         * MODULES.html.sh: Move 'assert' into the assert section.
77416         Move 'dummy' into the linking section.
77417         Remove ullong_max.
77418         Add section for compatibility checks for POSIX:2001 functions,
77419         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77420         winsz-ioctl, and winsz-termios into it.
77421         Add lchmod.
77422         Add top-level Misc section and put host-os, perl, and uptime
77423         into it.
77424
77425 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77428         now assume the stdint module.  Do not include inttypes.h.
77429         * lib/fsusage.h: Likewise.
77430         * lib/getndelim2.c: Likewise.
77431         * lib/human.h: Likewise.
77432         * lib/inttostr.h: Likewise.
77433         * lib/obstack.c: Likewise.
77434         * lib/regex_internal.h: Likewise.
77435         * lib/tempname.c: Likewise.
77436         * lib/utimecmp.c: Likewise.
77437         * lib/xstrtol.h: Likewise.
77438
77439         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77440
77441         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77442         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77443         * lib/xtime.h: Likewise.
77444
77445 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77446
77447         * modules/openat (Files): Add lib/fchmodat.c.
77448         Fixes problem reported by Jay Youngman.
77449
77450 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77453         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77454
77455 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77456             Bruno Haible  <bruno@clisp.org>
77457
77458         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77459         and is a script that invokes bison. Tighten the code. Add comments.
77460
77461 2006-08-18  Jim Meyering  <jim@meyering.net>
77462
77463         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77464         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77465         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77466         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77467
77468 2006-08-18  Bruno Haible  <bruno@clisp.org>
77469
77470         * modules/bison-i18n: New file.
77471         * MODULES.html.sh (Internationalization functions): Add it.
77472
77473 2006-08-18  Bruno Haible  <bruno@clisp.org>
77474
77475         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77476         sys/statvfs.h. When getmntinfo was found, check its declaration and
77477         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77478
77479 2006-08-18  Bruno Haible  <bruno@clisp.org>
77480
77481         * m4/bison-i18n.m4: New file, from bison.
77482
77483 2006-08-18  Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77486         (ME_DUMMY): Treat "kernfs" as a dummy.
77487         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77488
77489 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         Update from coreutils.
77492
77493         2006-08-15  Jim Meyering  <jim@meyering.net>
77494
77495         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77496
77497         2006-01-17  Jim Meyering  <jim@meyering.net>
77498
77499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77500
77501         2006-01-11  Jim Meyering  <jim@meyering.net>
77502
77503         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77504         Check for the lchmod function.
77505
77506 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         Update from coreutils.
77509
77510         * lib/__fpending.h: Add copyright notice.
77511         * lib/fprintftime.h: Likewise.
77512         * lib/savedir.c: Use (C) in copyright notice.
77513         * lib/savedir.h: Likewise.
77514
77515         2006-08-15  Jim Meyering  <jim@meyering.net>
77516
77517         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77518         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77519         in support of the EXPECTED_ERRNO macro.
77520         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77521         definitions.  Instead, define the appropriate symbols and include
77522         "at-func.c".
77523         * lib/mkdirat.c (mkdirat): Likewise.
77524         * lib/fchmodat.c (fchmodat): Likewise.
77525         (ENOSYS): Remove definition.
77526         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77527         it.  Don't include "unistd--.h" -- it wasn't ever used.
77528
77529         2006-01-17  Jim Meyering  <jim@meyering.net>
77530
77531         Rewrite fts.c not to change the current working directory,
77532         by using openat, fstatat, fdopendir, etc..
77533
77534         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77535         (HAVE_OPENAT_SUPPORT): Define.
77536         [_LIBC] (fchdir): Don't undef or define; no longer used.
77537         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77538         Now, this `function' always succeeds, and consumes its file descriptor
77539         parameter -- so callers must not close such FDs.  Update callers.
77540         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77541         (diropen): Add parameter, SP.  Adjust all callers.
77542         Implement using diropen_fd, rather than open.
77543         (fts_open): Initialize new member, fts_cwd_fd.
77544         Remove fts_rft-setting code.
77545         (fts_close): Close fts_cwd_fd, if necessary.
77546         (__opendir2): Define in terms of opendir or opendirat,
77547         depending on whether the FST_NOCHDIR flag is set.
77548         (fts_build): Since fts_safe_changedir consumes its FD, and since
77549         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77550         and close the dup'd file descriptor upon failure.
77551         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77552         (fts_safe_changedir): Tweak semantics to reflect that this function
77553         now calls cwd_advance_fd and hence consumes its FD argument.
77554         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77555         [struct FTS] (fts_rft): Remove now-unused member.
77556         [struct FTS] (fts_cycle.state): Improve comment.
77557
77558         * lib/openat.c (openat_needs_fchdir): New function.
77559         * lib/openat.h (openat_needs_fchdir): Declare it.
77560
77561 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77564         Problem and fix reported by Pádraig Brady in
77565         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77566
77567 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77570
77571 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * lib/memcoll.c (memcoll): Optimize for the common case where the
77574         arguments are bytewise equal.
77575
77576 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * doc/regexprops-generic.texi: Add a copyright notice.
77579
77580 2006-08-15  Bruno Haible  <bruno@clisp.org>
77581
77582         * modules/tmpdir (License): Change to LGPL.
77583
77584 2006-08-15  Bruno Haible  <bruno@clisp.org>
77585
77586         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77587         module.
77588
77589 2006-08-14  Simon Josefsson  <jas@extundo.com>
77590
77591         * config/srclist.txt: Add gnupload.
77592
77593 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         Change copyright notice from LGPL 2 to GPL 2, since that's the
77596         standard form used in the gnulib repository.
77597         * tests/test-lock.c: Likewise.
77598         * tests/test-stdint.c: Likewise.
77599         * tests/test-tls.c: Likewise.
77600
77601         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77602         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77603         Add copyright notice.
77604
77605         * check-module: Add copyright notice.  Output a copyright
77606         notice if "--version" is specified.
77607         * modules/COPYING: New file.
77608         * tests/test-getaddrinfo.c: Add copyright notice.
77609         * tests/test-verify.c: Likewise.
77610
77611 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         Change copyright notice from LGPL 2 to GPL 2, since that's the
77614         standard form used in the gnulib repository.
77615         * lib/lock.c: LGPL -> GPL.
77616         * lib/lock.h: Likewise.
77617         * lib/strnlen1.c: Likewise.
77618         * lib/strnlen1.h: Likewise.
77619         * lib/tls.c: Likewise.
77620         * lib/tls.h: Likewise.
77621         * lib/tmpdir.c: Likewise.
77622
77623         * lib/TODO: Remove; this belongs only in coreutils.
77624
77625 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         Add copyright notices to long-enough files that lack them, since
77628         otherwise the files aren't clearly free.  Use the same notice that
77629         getdate.texi already uses.
77630         * doc/alloca-opt.texi: Add copyright notice.
77631         * doc/alloca.texi: Likewise.
77632         * doc/ctime.texi: Likewise.
77633         * doc/functions.texi: Likewise.
77634         * doc/gcd.texi: Likewise.
77635         * doc/gnulib-tool.texi: Likewise.
77636         * doc/inet_ntoa.texi: Likewise.
77637         * doc/visibility.texi: Likewise.
77638
77639         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77640         * doc/quote.texi: Add copyright notice.
77641
77642         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77643         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77644         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77645         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77646         is now obsolete, and give a pointer to the Sun list.
77647         Add copyright notice.
77648
77649 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77650
77651         * config/srclistvars.sh: Add copyright notice.
77652
77653 2006-08-14  Eric Blake  <ebb9@byu.net>
77654
77655         Import the following change from libc:
77656
77657         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77658
77659         Upstream bug 2997.
77660         * lib/misc/error.c: Add space between program name and message if file
77661         name is missing.
77662
77663 2006-08-12  Karl Berry  <karl@gnu.org>
77664
77665         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77666         remove, these originate in gnulib now.
77667
77668 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77669
77670         * doc/Makefile (standards.info standards.html standards.dvi):
77671         Also depend on make-stds.texi.
77672
77673 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77676         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77677
77678         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77679         in wchar_t.  Problem reported by Eric Blake.
77680
77681         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77682         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77683         Also, help the compiler to keep LEN in a register.
77684
77685 2006-08-11  Eric Blake  <ebb9@byu.net>
77686
77687         * users.txt: Sort.  Add tar.
77688
77689 2006-08-11  Bruno Haible  <bruno@clisp.org>
77690
77691         * users.txt: New file.
77692
77693 2006-08-11  Bruno Haible  <bruno@clisp.org>
77694
77695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77696         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77697
77698 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * modules/snprintf (Depends-on): Remove minmax.
77701         (Maintainer): Add self and Bruno.
77702
77703 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77706         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77707         (EOVERFLOW): Define if the system does not.
77708         Do not include "minmax.h"; it wasn't used.
77709         (snprintf): Don't assume size_t promotes to an unsigned type.
77710         Fix bug when generated string was too long for the buffer: the
77711         buffer's contents are supposed to be the initial prefix of the
77712         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77713         exceeds INT_MAX; do the check ourselves.
77714
77715         Import the following changes from libc:
77716
77717         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77718
77719         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77720         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77721         set wc to the byte which couldn't be converted.
77722         (re_string_reconstruct): Don't clear valid_raw_len before calling
77723         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77724         tip_context using re_string_context_at.
77725
77726         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77727
77728         * lib/posix/regex.h: g++ still cannot handled [restrict].
77729
77730         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77731
77732         * lib/posix/regex.h: Remove special handling for VMS.
77733
77734 2006-08-10  Jim Meyering  <jim@meyering.net>
77735
77736         * modules/same-inode: New module.
77737         * modules/dev-ino: New module.
77738         * modules/cycle-check: Depend on these modules, rather than simply
77739         including their .h files.
77740         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77741         required via m4/cycle-check.m4.
77742         * modules/same: Depend on new same-inode module, rather than
77743         including same-inode.h.
77744         * modules/chdir-safer: New file.
77745
77746         * modules/chown (Depends-on): Add stat-macros.
77747
77748 2006-08-10  Jim Meyering  <jim@meyering.net>
77749
77750         * m4/cycle-check.m4: New file.
77751         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77752         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77753
77754 2006-08-10  Eric Blake  <ebb9@byu.net>
77755
77756         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77757         in from original proposal.
77758
77759 2006-08-10  Eric Blake  <ebb9@byu.net>
77760         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77761
77762         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77763         namespace.
77764
77765 2006-08-10  Bruno Haible  <bruno@clisp.org>
77766
77767         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77768         as well.
77769
77770 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         Sync from coreutils.
77773
77774         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77775
77776         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77777         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77778
77779 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * modules/restrict: Remove; no longer needed now that we assume
77782         Autoconf 2.59 or later.
77783         * MODULES.html.sh: Remove 'restrict'.
77784         * modules/argp (Depends-on): Remove 'restrict'.
77785         * modules/base64 (Depends-on): Likewise.
77786         * modules/gc (Depends-on): Likewise.
77787         * modules/getaddrinfo (Depends-on): Likewise.
77788         * modules/glob (Depends-on): Likewise.
77789         * modules/inet_ntop (Depends-on): Likewise.
77790         * modules/inet_pton (Depends-on): Likewise.
77791         * modules/memxor (Depends-on): Likewise.
77792         * modules/regex (Depends-on): Likewise.
77793         * modules/strtok_r (Depends-on): Likewise.
77794         * modules/time_r (Depends-on): Likewise.
77795
77796 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77799         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77800         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77801         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77802         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77803         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77804         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77805         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77806
77807         Merge from coreutils.
77808         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77809         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77810         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77811         * m4/time_r.m4 (gl_TIME_R): Likewise.
77812
77813 2006-08-09  Karl Berry  <karl@gnu.org>
77814
77815         * config/srclist.txt: no more gettext-tools, per Bruno.
77816
77817 2006-08-08  Eric Blake  <ebb9@byu.net>
77818
77819         * modules/verror: New module.
77820         * MODULES.html.sh: Document it.
77821
77822 2006-08-08  Eric Blake  <ebb9@byu.net>
77823
77824         * lib/verror.h, lib/verror.c: New files.
77825
77826 2006-08-08  Eric Blake  <ebb9@byu.net>
77827
77828         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77829         verror_at_line output complies with GNU Coding Standards even when
77830         file is NULL.
77831
77832 2006-08-07  Bruno Haible  <bruno@clisp.org>
77833
77834         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77835         versions of AIX.
77836         Reported by Ralf Wildenhues.
77837
77838 2006-08-07  Bruno Haible  <bruno@clisp.org>
77839
77840         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77841         in an AC_DEFUN. Needed so that the autoconf snippets can use
77842         AC_REQUIRE.
77843
77844 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77845
77846         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77847         Initialize pkgdata_DATA.
77848         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77849         overriding it.
77850
77851 2006-08-06  Eric Blake  <ebb9@byu.net>
77852
77853         * lib/error.h: Fold in some upstream changes from glibc.
77854         * lib/error.c: Likewise.
77855
77856 2006-08-04  Bruno Haible  <bruno@clisp.org>
77857
77858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77859         Make the mostlyclean-local rule depend on mostlyclean-generic.
77860         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77861
77862 2006-07-31  Bruno Haible  <bruno@clisp.org>
77863
77864         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77865         <stdlib.h>, <string.h>.
77866
77867 2006-07-30  Bruno Haible  <bruno@clisp.org>
77868
77869         * modules/readlink (License): Change to LGPL.
77870
77871 2006-07-30  Bruno Haible  <bruno@clisp.org>
77872
77873         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77874         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77875         set PKGDATADIR to point to it.
77876
77877 2006-07-30  Bruno Haible  <bruno@clisp.org>
77878
77879         * modules/csharpexec (configure.ac): Comment out macro invocation.
77880         * modules/javaexec (configure.ac): Likewise.
77881         * modules/javacomp-script (configure.ac): Likewise.
77882
77883         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77884
77885 2006-07-30  Bruno Haible  <bruno@clisp.org>
77886
77887         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77888         linked-list.
77889
77890 2006-07-30  Bruno Haible  <bruno@clisp.org>
77891
77892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77893
77894 2006-07-30  Bruno Haible  <bruno@clisp.org>
77895
77896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77897         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77898         get removed.
77899
77900 2006-07-29  Bruno Haible  <bruno@clisp.org>
77901
77902         Make it possible for gnulib-tool to work with locally modified or
77903         augmented gnulib repositories.
77904         * gnulib-tool (func_usage): Document --local-dir option.
77905         (local_gnulib_dir): New variable.
77906         Handle --local-dir option.
77907         (func_lookup_file): New function.
77908         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77909         (func_get_description, func_get_filelist, func_get_description,
77910         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77911         func_get_automake_snippet, func_get_include_directive,
77912         func_get_license, func_get_maintainer): Use func_lookup_file.
77913         (func_import, func_create_testdir): Use func_lookup_file.
77914
77915 2006-07-29  Bruno Haible  <bruno@clisp.org>
77916
77917         * modules/setenv (Depends-on): Add unistd.
77918
77919 2006-07-29  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77922
77923 2006-07-29  Bruno Haible  <bruno@clisp.org>
77924
77925         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77926
77927 2006-07-29  Bruno Haible  <bruno@clisp.org>
77928
77929         * gnulib-tool (import, update): If there is no Makefile.am, look at
77930         aclocal.m4, instead of bailing out.
77931
77932 2006-07-29  Bruno Haible  <bruno@clisp.org>
77933
77934         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77935         Categorize the options by when they are useful.
77936
77937 2006-07-29  Bruno Haible  <bruno@clisp.org>
77938
77939         * gnulib-tool (func_usage): Document option --no-libtool.
77940         Handle option --no-libtool.
77941         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77942         for changed semantics of $libtool variable.
77943         (func_import): Likewise. If libtool is not used, show this through
77944         an option --no-libtool.
77945         (func_create_testdir): Update.
77946
77947 2006-07-29  Bruno Haible  <bruno@clisp.org>
77948
77949         * gnulib-tool (func_import): Extend error message about missing
77950         --doc-base.
77951
77952 2006-07-29  Bruno Haible  <bruno@clisp.org>
77953
77954         * gnulib-tool (func_import): Don't create the $docbase directory if
77955         there is no file to store there.
77956
77957 2006-07-29  Bruno Haible  <bruno@clisp.org>
77958
77959         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77960         relevant, look for configure.ac there, not in the current directory.
77961         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77962
77963 2006-07-29  Bruno Haible  <bruno@clisp.org>
77964
77965         * gnulib-tool (SORT): New variable.
77966         (func_usage): Undocument --assume-autoconf option.
77967         Remove --assume-autoconf option handling.
77968         (autoconf_minversion): Determine from the contents of configure.ac.
77969         (func_import): Remove autoconf_minversion handling.
77970         Suggested by Eric Blake.
77971
77972 2006-07-29  Bruno Haible  <bruno@clisp.org>
77973
77974         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77975
77976 2006-07-29  Bruno Haible  <bruno@clisp.org>
77977
77978         * config/srclist.txt (*setenv.[ch]): Remove rules.
77979
77980 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77981
77982         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77983
77984 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77985
77986         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77987         arpa/inet.h.
77988
77989 2006-07-28  Simon Josefsson  <jas@extundo.com>
77990
77991         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77992         * modules/inet_pton (Depends-on): Likewise.
77993
77994 2006-07-28  Simon Josefsson  <jas@extundo.com>
77995
77996         * m4/netinet_in_h.m4: New file.
77997
77998 2006-07-28  Simon Josefsson  <jas@extundo.com>
77999
78000         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78001         #include's.
78002
78003 2006-07-28  Simon Josefsson  <jas@extundo.com>
78004
78005         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78006         #include's.
78007
78008 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78011         setgid on directories only if they set these bits.
78012         * lib/modechange.h: Remove obsolete comment about masks.
78013
78014 2006-07-28  Eric Blake  <ebb9@byu.net>
78015
78016         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78017         macro expansion.
78018
78019 2006-07-28  Bruno Haible  <bruno@clisp.org>
78020
78021         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78022
78023 2006-07-28  Bruno Haible  <bruno@clisp.org>
78024
78025         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78026
78027 2006-07-28  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78030         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78031         Define fallbacks.
78032         Avoids link error on FreeBSD 4.x.
78033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78034
78035         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78036         encoding.
78037         * lib/mbswidth.c (iswcntrl): Likewise.
78038
78039 2006-07-27  Bruno Haible  <bruno@clisp.org>
78040
78041         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78042         test.
78043
78044 2006-07-27  Bruno Haible  <bruno@clisp.org>
78045
78046         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78047         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78048         defined.
78049
78050 2006-07-26  Eric Blake  <ebb9@byu.net>
78051
78052         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78053
78054 2006-07-26  Eric Blake  <ebb9@byu.net>
78055
78056         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78057         like mingw that lack mkstemp.
78058         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78059         avoid compilation warning on mingw.
78060
78061 2006-07-26  Bruno Haible  <bruno@clisp.org>
78062
78063         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78064         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78065         INT_FAST*_MIN, INTPTR_MIN.
78066
78067 2006-07-25  Bruno Haible  <bruno@clisp.org>
78068
78069         * modules/version-etc (Depends-on): Add stdarg.
78070
78071 2006-07-25  Bruno Haible  <bruno@clisp.org>
78072
78073         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78074         complex commands.
78075
78076 2006-07-25  Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78079         defined in <stdarg.h> or config.h.
78080
78081 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78084         (gl_STDIO_SAFER): Remove.
78085
78086 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * MODULES.html.sh (File stream based Input/Output):
78089         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78090         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78091         * modules/fopen-safer, modules/tmpfile-safer: New files.
78092         * modules/stdio-safer: Remove.
78093
78094 2006-07-24  Bruno Haible  <bruno@clisp.org>
78095
78096         * modules/tmpdir: New file.
78097         * MODULES.html.sh (File system functions): Add it.
78098
78099 2006-07-24  Bruno Haible  <bruno@clisp.org>
78100
78101         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78102         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78103
78104 2006-07-24  Bruno Haible  <bruno@clisp.org>
78105
78106         * modules/clean-temp: New file.
78107
78108 2006-07-24  Bruno Haible  <bruno@clisp.org>
78109
78110         * m4/tmpdir.m4: New file, from GNU gettext.
78111
78112 2006-07-24  Bruno Haible  <bruno@clisp.org>
78113
78114         * lib/tmpdir.h: New file, from GNU gettext.
78115         * lib/tmpdir.c: New file, from GNU gettext.
78116
78117 2006-07-24  Bruno Haible  <bruno@clisp.org>
78118
78119         * lib/clean-temp.h: New file, from GNU gettext.
78120         * lib/clean-temp.c: New file, from GNU gettext.
78121
78122 2006-07-23  Eric Blake  <ebb9@byu.net>
78123
78124         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78125         (Depends-on): Add binary-io.
78126
78127 2006-07-23  Eric Blake  <ebb9@byu.net>
78128
78129         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78130
78131 2006-07-23  Eric Blake  <ebb9@byu.net>
78132
78133         * lib/tmpfile-safer.c: New file.
78134         * lib/stdio-safer.h (fopen_safer): Add prototype.
78135         * lib/stdio--.h (tmpfile): Make safer.
78136
78137 2006-07-23  Bruno Haible  <bruno@clisp.org>
78138
78139         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78140         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78141         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78142         gl_linked_remove_at): Use it.
78143
78144 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78145         and Simon Josefsson <jas@extundo.com>
78146
78147         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78148
78149         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78150
78151 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         * modules/close-stream: New file.
78154         * modules/closeout (Description): Make it clear that it exits
78155         with a diagnostic on error.
78156         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78157         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78158
78159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * m4/close-stream.m4: New file.
78162
78163 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * lib/close-stream.c, lib/close-stream.h: New files.
78166
78167 2006-07-22  Bruno Haible  <bruno@clisp.org>
78168
78169         Merge from GNU gettext 0.15.
78170
78171         2006-05-01  Bruno Haible  <bruno@clisp.org>
78172
78173                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78174
78175         2006-07-22  Bruno Haible  <bruno@clisp.org>
78176
78177                 * modules/javaversion: New file.
78178                 * MODULES.html.sh (Java): Add javaversion.
78179
78180         2006-03-12  Bruno Haible  <bruno@clisp.org>
78181
78182                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78183
78184         2005-12-04  Bruno Haible  <bruno@clisp.org>
78185
78186                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78187                 (untested).
78188
78189         2006-06-21  Bruno Haible  <bruno@clisp.org>
78190
78191                 Avoid warnings from recent versions of mcs.
78192                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78193                 -o, -L, -r any more. Use options documented since mcs-1.0
78194                 instead. Similarly for -g.
78195
78196         2005-12-04  Bruno Haible  <bruno@clisp.org>
78197
78198                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78199                 .resources, not .resource.
78200
78201         2005-07-09  Bruno Haible  <bruno@clisp.org>
78202
78203                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78204                 add a .dll suffix.
78205                 Reported by Mark Junker <mjscod@gmx.de>.
78206
78207         2006-07-22  Bruno Haible  <bruno@clisp.org>
78208
78209                 * modules/gettext: Upgrade to gettext-0.15.
78210                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78211                 m4/visibility.m4.
78212                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78213
78214 2006-07-22  Bruno Haible  <bruno@clisp.org>
78215
78216         Merge from GNU gettext 0.15.
78217
78218         2006-03-25  Bruno Haible  <bruno@clisp.org>
78219
78220                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78221
78222         2006-07-21  Bruno Haible  <bruno@clisp.org>
78223
78224                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78225                 "1.1".
78226
78227         2006-05-09  Bruno Haible  <bruno@clisp.org>
78228
78229                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78230                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78231                 for the conftestver execution.
78232
78233         2006-05-01  Bruno Haible  <bruno@clisp.org>
78234
78235                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78236                 optional target-version argument. Verify that the compiler
78237                 groks source of the specified source-version, or add -source
78238                 option as necessary. Verify that the compiler produces
78239                 bytecode in the specified target-version, or add -target and
78240                 -source options as necessary. Make the result of the test
78241                 available as variable CONF_JAVAC. Also log error output in
78242                 config.log.
78243
78244         2006-03-11  Bruno Haible  <bruno@clisp.org>
78245
78246                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78247
78248         2006-05-09  Bruno Haible  <bruno@clisp.org>
78249
78250                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78251                 CLASSPATH_SEPARATOR to a semicolon.
78252
78253         2006-03-12  Bruno Haible  <bruno@clisp.org>
78254
78255                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78256                 available as variable CONF_JAVA, for subsequent autoconf
78257                 tests. Also log error output in config.log.
78258
78259         2006-07-19  Bruno Haible  <bruno@clisp.org>
78260
78261                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78262                 that getline works on glibc2 systems. Needed to avoid trouble
78263                 in relocatable.c.
78264                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78265
78266         2005-12-04  Bruno Haible  <bruno@clisp.org>
78267
78268                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78269                 launcher (untested).
78270
78271         2005-12-04  Bruno Haible  <bruno@clisp.org>
78272
78273                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78274
78275         2006-07-22  Bruno Haible  <bruno@clisp.org>
78276
78277                 * gettext.m4: Update from GNU gettext-0.15.
78278                 * nls.m4: Likewise.
78279                 * po.m4: Likewise.
78280                 * inttypes-pri.m4: Likewise.
78281                 * inttypes-h.m4: Renamed from inttypes.m4.
78282                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78283
78284 2006-07-22  Bruno Haible  <bruno@clisp.org>
78285
78286         Merge from GNU gettext 0.15.
78287
78288         2005-07-05  Bruno Haible  <bruno@clisp.org>
78289
78290                 * printf-args.c (printf_fetchargs): Work around broken
78291                 definition of wint_t on mingw.
78292
78293         2005-02-12  Bruno Haible  <bruno@clisp.org>
78294
78295                 * xallocsa.h: Add extern "C" for C++.
78296
78297         2006-05-17  Bruno Haible  <bruno@clisp.org>
78298
78299                 Cygwin portability.
78300                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78301
78302         2006-04-30  Bruno Haible  <bruno@clisp.org>
78303
78304                 * progreloc.c: Include <mach-o/dyld.h> if available.
78305                 (find_executable): Use _NSGetExecutablePath when possible.
78306
78307         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78308
78309                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78310                 function.
78311
78312         2005-12-29  Bruno Haible  <bruno@clisp.org>
78313
78314                 * progreloc.c (set_program_name_and_installdir): Fix
78315                 compilation error.
78316
78317         2005-12-04  Bruno Haible  <bruno@clisp.org>
78318
78319                 Cygwin portability.
78320                 * progreloc.c: Include <windows.h> also on Cygwin.
78321                 (find_executable): Add support for Cygwin.
78322                 (set_program_name_and_installdir): Handle also platforms with
78323                 nonempty EXEEXT.
78324
78325         2006-07-11  Bruno Haible  <bruno@clisp.org>
78326
78327                 * javacomp.c: Fix a comment.
78328                 Reported by Jim Meyering.
78329
78330         2006-04-30  Bruno Haible  <bruno@clisp.org>
78331
78332                 * javacomp.h (compile_java_class): Add source_version,
78333                 target_version arguments.
78334                 * javacomp.c: Rewritten to choose only a compiler that
78335                 respects the specified source_version and target_version.
78336
78337         2006-06-27  Bruno Haible  <bruno@clisp.org>
78338
78339                 Assume correct S_ISDIR macro.
78340                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78341
78342         2006-07-22  Bruno Haible  <bruno@clisp.org>
78343
78344                 * javaversion.h: New file, from GNU gettext.
78345                 * javaversion.c: New file, from GNU gettext.
78346                 * javaversion.java: New file, from GNU gettext.
78347                 * javaversion.class: New file, from GNU gettext.
78348
78349         2006-05-17  Bruno Haible  <bruno@clisp.org>
78350
78351                 Cygwin portability.
78352                 * javaexec.c (execute_java_class): Test for jview program
78353                 also on Cygwin.
78354
78355         2006-04-09  Bruno Haible  <bruno@clisp.org>
78356
78357                 * fatal-signal.c: Don't include string.h.
78358                 (at_fatal_signal): Use a copying loop instead of memcpy.
78359
78360         2005-12-04  Bruno Haible  <bruno@clisp.org>
78361
78362                 * csharpexec.c: Add support for 'clix' launcher (untested).
78363                 (execute_csharp_using_sscli): New function.
78364                 (execute_csharp_program): Call it.
78365
78366         2006-06-21  Bruno Haible  <bruno@clisp.org>
78367
78368                 Avoid warnings from recent versions of mcs.
78369                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78370                 -o, -L, -r any more. Use options documented since mcs-1.0
78371                 instead. Similarly for -g.
78372
78373         2005-07-09  Bruno Haible  <bruno@clisp.org>
78374
78375                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78376                 add a .dll suffix.
78377                 Reported by Mark Junker <mjscod@gmx.de>.
78378
78379         2006-06-17  Bruno Haible  <bruno@clisp.org>
78380
78381                 * config.charset: Update for NetBSD 3.0.
78382
78383         2006-05-17  Bruno Haible  <bruno@clisp.org>
78384
78385                 Cygwin portability.
78386                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78387
78388         2006-05-16  Bruno Haible  <bruno@clisp.org>
78389
78390                 * localcharset.c [CYGWIN]: Include <windows.h>.
78391                 (get_charset_aliases): For Cygwin, return the same CPxxx
78392                 aliases list as under WIN32.
78393                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78394                 the environment variables. Fall back to GetACP().
78395
78396         2006-04-05  Bruno Haible  <bruno@clisp.org>
78397
78398                 * config.charset: Update Juan Manuel Guerrero's address.
78399
78400         2005-02-12  Bruno Haible  <bruno@clisp.org>
78401
78402                 * allocsa.h: Add extern "C" for C++.
78403
78404         2005-02-10  Bruno Haible  <bruno@clisp.org>
78405
78406                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78407                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78408
78409         2006-07-22  Bruno Haible  <bruno@clisp.org>
78410
78411                 * gettext.h: Update to GNU gettext-0.15.
78412
78413 2006-07-22  Bruno Haible  <bruno@clisp.org>
78414
78415         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78416         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78417         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78418
78419 2006-07-21  Eric Blake  <ebb9@byu.net>
78420
78421         * modules/stdlib-safer: New file.
78422         * MODULES.html.sh (File stream based Input/Output): Add
78423         stdlib-safer.
78424
78425 2006-07-21  Eric Blake  <ebb9@byu.net>
78426
78427         * lib/stdlib-safer.h: New file from coreutils, required by
78428         stdlib--.h.
78429
78430 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78433
78434 2006-07-20  Bruno Haible  <bruno@clisp.org>
78435
78436         * gnulib-tool: Recognize new option --assume-autoconf.
78437         (autoconf_minversion): New variable.
78438         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78439
78440 2006-07-20  Bruno Haible  <bruno@clisp.org>
78441
78442         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78443
78444 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78445
78446         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78447         Reindent and repaginate.
78448
78449 2006-07-19  Derek Price  <derek@ximbiot.com>
78450
78451         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78452         Correct grammar.
78453
78454 2006-07-17  Bruno Haible  <bruno@clisp.org>
78455
78456         * modules/list: New file.
78457         * modules/array-list: New file.
78458         * modules/carray-list, modules/carray-list-tests: New files.
78459         * modules/linked-list, modules/linked-list-tests: New files.
78460         * modules/avltree-list, modules/avltree-list-tests: New files.
78461         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78462         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78463         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78464         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78465         * modules/oset: New file.
78466         * modules/array-oset: New file.
78467         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78468         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78469         * tests/test-carray_list.c: New file.
78470         * tests/test-linked_list.c: New file.
78471         * tests/test-avltree_list.c: New file.
78472         * tests/test-rbtree_list.c: New file.
78473         * tests/test-linkedhash_list.c: New file.
78474         * tests/test-avltreehash_list.c: New file.
78475         * tests/test-rbtreehash_list.c: New file.
78476         * tests/test-avltree_oset.c: New file.
78477         * tests/test-rbtree_oset.c: New file.
78478         * MODULES.html.sh (Container data structures): New section.
78479
78480 2006-07-17  Bruno Haible  <bruno@clisp.org>
78481
78482         * m4/gl_list.m4: New file.
78483
78484 2006-07-17  Bruno Haible  <bruno@clisp.org>
78485
78486         * lib/gl_list.h: New file.
78487         * lib/gl_list.c: New file.
78488         * lib/gl_array_list.h: New file.
78489         * lib/gl_array_list.c: New file.
78490         * lib/gl_carray_list.h: New file.
78491         * lib/gl_carray_list.c: New file.
78492         * lib/gl_linked_list.h: New file.
78493         * lib/gl_linked_list.c: New file.
78494         * lib/gl_anylinked_list1.h: New file.
78495         * lib/gl_anylinked_list2.h: New file.
78496         * lib/gl_avltree_list.h: New file.
78497         * lib/gl_avltree_list.c: New file.
78498         * lib/gl_anyavltree_list1.h: New file.
78499         * lib/gl_anyavltree_list2.h: New file.
78500         * lib/gl_rbtree_list.h: New file.
78501         * lib/gl_rbtree_list.c: New file.
78502         * lib/gl_anyrbtree_list1.h: New file.
78503         * lib/gl_anyrbtree_list2.h: New file.
78504         * lib/gl_anytree_list1.h: New file.
78505         * lib/gl_anytree_list2.h: New file.
78506         * lib/gl_linkedhash_list.h: New file.
78507         * lib/gl_linkedhash_list.c: New file.
78508         * lib/gl_anyhash_list1.h: New file.
78509         * lib/gl_anyhash_list2.h: New file.
78510         * lib/gl_avltreehash_list.h: New file.
78511         * lib/gl_avltreehash_list.c: New file.
78512         * lib/gl_rbtreehash_list.h: New file.
78513         * lib/gl_rbtreehash_list.c: New file.
78514         * lib/gl_anytreehash_list1.h: New file.
78515         * lib/gl_anytreehash_list2.h: New file.
78516
78517         * lib/gl_oset.h: New file.
78518         * lib/gl_oset.c: New file.
78519         * lib/gl_array_oset.h: New file.
78520         * lib/gl_array_oset.c: New file.
78521         * lib/gl_avltree_oset.h: New file.
78522         * lib/gl_avltree_oset.c: New file.
78523         * lib/gl_rbtree_oset.h: New file.
78524         * lib/gl_rbtree_oset.c: New file.
78525         * lib/gl_anytree_oset.h: New file.
78526
78527 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * m4/mkancesdirs.m4: New file.
78530         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78531         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78532         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78533         it.
78534
78535 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78538         * lib/mkancesdirs.h: New files.
78539         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78540         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78541         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78542         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78543         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78544         callers changed.  Revamp internals significantly, by not
78545         attempting to create directories that are temporarily more
78546         permissive than the final results.  Do not attempt to use
78547         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78548         This removes some race conditions, fixes some bugs, and simplifies
78549         things.  Use new dirchownmod function to do owner and mode changes.
78550         * lib/mkdir-p.h: Likewise.
78551         * lib/modechange.c (octal_to_mode): New function.
78552         (struct mode_change): New member mentioned.
78553         (make_node_op_equals): New arg mentioned.  All callers changed.
78554         (mode_compile): Keep track of which mode bits the user has explicitly
78555         mentioned.
78556         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78557         New arg PMODE_BITS, to keep track of which mode bits the user
78558         mentioned; it treats S_ISUID and S_ISGID speciall.
78559         All callers changed.
78560         * lib/modechange.h: Likewise.
78561
78562 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * MODULES.html.sh: Add mkancestors.
78565         * modules/mkancesdirs: New module.
78566         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78567         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78568         The chdir-safer and afs files are now orphans; I'll remove them
78569         unless someone speaks up.
78570         Add lib/dirchownmod.c, lib/dirchownmod.h.
78571         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78572         Add lchown, mkancesdirs.
78573         (Maintainer): Add self.
78574
78575 2006-07-15  Karl Berry  <karl@gnu.org>
78576
78577         * gnulib-tool: help message wording/arrangement.
78578
78579 2006-07-14  Simon Josefsson  <jas@extundo.com>
78580
78581         * doc/gnulib.texi (Libtool and Windows): New section.
78582
78583 2006-07-12  Simon Josefsson  <jas@extundo.com>
78584
78585         * modules/gendocs (License): Fix license, approved by Karl.
78586
78587 2006-07-12  Eric Blake  <ebb9@byu.net>
78588
78589         * MODULES.html.sh: Add gendocs.
78590
78591 2006-07-11  Eric Blake  <ebb9@byu.net>
78592
78593         * modules/fdl: New module, to install doc/fdl.texi.
78594         * MODULES.html.sh: Add new section for documentation modules.
78595         * gnulib-tool: Avoid space-tab.
78596         (--doc-base): New option, to manage files from doc.
78597
78598 2006-07-11  Eric Blake  <ebb9@byu.net>
78599
78600         * m4/absolute-header.m4: Fix comments to match recent change.
78601
78602 2006-07-11  Eric Blake  <ebb9@byu.net>
78603
78604         * gnulib-tool: List --doc-base before --tests-base.
78605
78606 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78607
78608         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78609
78610 2006-07-11  Bruno Haible  <bruno@clisp.org>
78611
78612         * README: Mention where to put documentation.
78613
78614 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78615
78616         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78617
78618 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78621         to stdint.m4.
78622
78623 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78626         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78627         "no/such/file/stdint.h" when there is no such file, so that
78628         the resulting C code can be parsed by dodgy compilers.
78629         Problems reported by Bob Proulx.
78630
78631 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78632
78633         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78634         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78635         macros into the GNU _D_EXACT_NAMLEN.
78636         * lib/savedir.c:  Likewise.
78637         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78638
78639 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78640         and Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78643         * m4/savedir.m4:
78644         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78645         macros into the GNU _D_EXACT_NAMLEN.
78646
78647 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78650         around the absolute name, to work around a problem with the HP-UX
78651         11.23 native C compiler, reported by Bob Proulx.
78652
78653 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * doc/maintain.texi, make-stds.texi: Sync from
78656         <http://savannah.gnu.org/projects/gnustandards>.
78657
78658 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78659
78660         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78661
78662 2006-07-09  Jim Meyering  <jim@meyering.net>
78663
78664         * m4/glob.m4: Remove a doubled word in a comment.
78665
78666 2006-07-09  Jim Meyering  <jim@meyering.net>
78667
78668         * lib/argp-pv.c: Remove a doubled word in a comment.
78669         * lib/check-version.c (check_version): Likewise.
78670         * lib/javacomp.c (compile_java_class): Likewise.
78671
78672 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78675         for the benefit of people using Autoconf 2.60.  If you want to
78676         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78677         (or m4/onceonly.m4, if pre-2.57) manually.
78678
78679 2006-07-08  Jim Meyering  <jim@meyering.net>
78680
78681         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78682         comment.
78683         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78684         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78685         comment.
78686
78687 2006-07-08  Jim Meyering  <jim@meyering.net>
78688
78689         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78690
78691 2006-07-07  Simon Josefsson  <jas@extundo.com>
78692
78693         * tests/test-crc.c: Change expected crc value, the test vector
78694         were probably computed using the old broken crc.c?
78695
78696 2006-07-06  Simon Josefsson  <jas@extundo.com>
78697
78698         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78699         now the canonical place for the M4 file).
78700
78701         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78702         from the sys_socket dependency now.
78703
78704         * modules/inet_pton (Files): Ditto.
78705
78706         * modules/inet_ntop (Files): Ditto.
78707
78708 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78709
78710         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78711         not gl_PREREQ_GETUSERSHELL.
78712
78713 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78714
78715         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78716         with only one argument, for Autoconf 2.60.
78717         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78718         expand to nothing, so add a shell command to avoid syntax error.
78719         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78720
78721 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78722
78723         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78724
78725 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78728         no longer needed.  Check for isblank decl.
78729         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78730         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78731         of existence.
78732
78733 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78734
78735         * lib/getloadavg.c: Use __VMS, not VMS.
78736         * lib/getopt.c: Likewise.
78737         * lib/getpagesize.h: Likewise.
78738         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78739         and probably does not work.
78740
78741 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * lib/.cppi-disable: Add wcwidth.
78744         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78745         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78746         (ISGRAPH): Remove.  All uses changed to isgraph.
78747         (FOLD) [!defined _LIBC]: Remove special case.
78748         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78749         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78750         HAVE_ISBLANK.
78751         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78752         case.
78753
78754 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78755
78756         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78757         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78758         brackets.  Other minor changes to suppress some compiler
78759         warnings.
78760
78761 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78762         and Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78765         of invoking obsolescent AC_HEADER_DIRENT macro.
78766         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78767         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78768         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78770         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78772         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78773         * m4/readdir.m4: Remove; no longer needed.
78774
78775 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78776         and Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78779         Don't worry about this obsolete case any more.
78780         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78781         directories.
78782         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78783         worry about this obsolete case any more.
78784         * lib/fts.c: Likewise.
78785         * lib/getcwd.c: Likewise.
78786         * lib/glob.h: Likewise.
78787         * lib/savedir.c: Likewise.
78788
78789 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78790
78791         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78792         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78793         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78794         needed.
78795         All uses removed.
78796         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78797         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78798         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78799         needed.
78800         * m4/getdate.m4 (gl_GETDATE): Likewise.
78801         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78802         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78803         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78804         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78805         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78806         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78807         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78808         needed.
78809
78810 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * lib/memcasecmp.c: Include <limits.h>.
78813         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78814         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78815         Don't assume isdigit succeeds only on '0' through '9'.
78816
78817 2006-07-05  Eric Blake  <ebb9@byu.net>
78818
78819         * modules/getaddrinfo (Depends-on): Add snprintf.
78820
78821 2006-07-05  Eric Blake  <ebb9@byu.net>
78822
78823         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78824         to avoid 'header present but could not be compiled' on cygwin.
78825
78826 2006-07-05  Eric Blake  <ebb9@byu.net>
78827
78828         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78829         missing from netdb.h.
78830         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78831
78832 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78833
78834         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78835         no longer needed.
78836         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78837         * m4/getdate.m4 (gl_GETDATE): Likewise.
78838         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78839         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78840         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78841         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78843
78844 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78845
78846         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78847         All uses of is_space replaced by isspace.
78848         * lib/exit.h: Don't talk about STDC_HEADERS.
78849         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78850         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78851         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78852         replaced by isprint etc.
78853         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78854         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78855         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78856         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78857         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78858         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78859
78860 2006-07-05  Bruno Haible  <bruno@clisp.org>
78861
78862         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78863         the function exists, before testing against AIX.
78864         Reported by Martin Lambers <marlam@marlam.de>.
78865
78866 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78869         From Mark D. Baushke.
78870
78871 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78874         to the absolute name, not just one, to bypass Sun C 5.8's
78875         "warning: #include of /usr/include/... may be non-portable".
78876
78877 2006-07-04  Eric Blake  <ebb9@byu.net>
78878
78879         * modules/dirname-tests: New test module.
78880         * tests/test-dirname.c: New file, replacing dirname.c
78881         TEST_DIRNAME section that was recently deleted.
78882
78883 2006-07-04  Bruno Haible  <bruno@clisp.org>
78884
78885         Assume ANSI C header files and <ctype.h> functions.
78886         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78887         (mbsnwidth): Use isprint, iscntrl instead.
78888
78889 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         Merge from coreutils.
78892         * MODULES.html.sh: Add xstrtold.
78893         * modules/xstrtold: New file.
78894         * modules/cycle-check (Files): Add lib/same-inode.h.
78895         * modules/dirname (Files): Add m4/double-slash-root.m4.
78896         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78897         * modules/mkdir-p (Files): Add lib/same-inode.h.
78898         * modules/same (Files): Add lib/same-inode.h.
78899
78900 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78903         This is to keep the terminology clean; POSIX talks about
78904         "absolute pathnames", not "full pathnames", but the GNU
78905         Coding Standards say to use "path" for something else;
78906         so use "absolute" to keep both sides happy.
78907         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78908         Set gl_absolute_header, not gl_full_header_path.
78909         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78910         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78911         All uses changed.
78912
78913         Merge from coreutils.
78914
78915         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78916
78917         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78918         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78919         want to require the building of c-strtod.o.
78920         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78921         needs -lm directly.
78922         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78923
78924         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78927         --as-needed option if available.  Problem reported by Albert Chin in
78928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78929         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78930         cc merely issues a bunch of annoying warnings for --as-needed
78931         (this problem was reported by Bob Proulx).  Also, try linking with
78932         -lm to detect a bug in binutils 2.16 (this problem was reported
78933         by Ralf Wildenhues).
78934
78935         2006-06-18  Jim Meyering  <jim@meyering.net>
78936
78937         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78938         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78939         macro.
78940         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78941         also check for glibc-2.4's abort-inducing bug.
78942
78943         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78944         Low-probability clean-up should be to use rmdir to get rid of
78945         the just-created directory, not unlink.
78946
78947         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78948         configure fail, and request a bug report to inform us about it.
78949         Add a comment that, barring reports to the contrary, in 2007 we'll
78950         assume ftruncate is universally available.
78951
78952         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78955
78956         2006-03-12  Jim Meyering  <jim@meyering.net>
78957
78958         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78959         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78960         * m4/same.m4 (gl_SAME): Likewise.
78961         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78962
78963         2006-03-11  Eric Blake  <ebb9@byu.net>
78964
78965         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78966         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78967         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78968         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78969
78970 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78973         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78974         reported by Mark D. Baushke, one in
78975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78976
78977         Merge from coreutils.
78978
78979         * lib/.cppi-disable: Add stdint_.h.
78980         * lib/.cvsignore: Add stdint.h.
78981
78982         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78985         both double and long double versions.
78986         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78987         * lib/xstrtold.c: New file.
78988         * lib/xstrtod.h (xstrtold): New decl.
78989
78990         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * lib/filemode.c (setst): Remove.
78993         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78994         (arguably) clearer, and the generated code is a bit smaller on my
78995         Debian GNU/Linux stable x86 host.
78996
78997         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79000         Assume that filemode.h includes sys/types.h and sys/stat.h.
79001         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79002         (ftypelet): Reorder to put common cases first, for efficiency.
79003         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79004         to do 'M'.
79005         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79006         of 10, for compatibility with FreeBSD.  All callers changed.
79007         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79008         types that can't be deduced solely from st_mode.  First arg is now a
79009         const pointer.
79010         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79011         (strmode): Renamed from mode_string.
79012         (filemodestring): New decl.
79013         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79014         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79015         needed.
79016         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79017
79018         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79021         fsusage.h now does that.  Include fsusage.h first, to test interface.
79022         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79023         at most one method (the old code could have generated decls that
79024         didn't conform to C89, not that this was ever exercised).
79025         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79026
79027         2006-03-19  Jim Meyering  <jim@meyering.net>
79028
79029         Work even in a chroot where d_ino values for entries in "/"
79030         don't match the stat.st_ino values for the same names.
79031         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79032         number, iterate through all entries again, using lstat instead.
79033         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79034         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79035
79036         * lib/getcwd.c (__getcwd): Clarify a comment.
79037         Use memcpy in place of a call to strcpy.
79038
79039         2006-03-12  Jim Meyering  <jim@meyering.net>
79040
79041         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79042         matches that of the current directory (which we're about to chdir ".."
79043         out of), then save the dev-ino of the parent, instead.
79044
79045         * lib/same-inode.h (SAME_INODE): New file/macro.
79046         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79047         Include "same-inode.h", instead.
79048         * lib/same.c: Likewise.
79049         * lib/cycle-check.h: Include "same-inode.h".
79050         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79051         * lib/cycle-check.c (SAME_INODE): Remove definition.
79052         * lib/root-dev-ino.h: Include "same-inode.h".
79053
79054         2006-03-11  Eric Blake  <ebb9@byu.net>
79055
79056         * lib/same.c (same_name): s/base_name/last_component/
79057         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79058         * lib/filenamecat.c (file_name_concat): Likewise.
79059
79060         2006-03-11  Eric Blake  <ebb9@byu.net>,
79061                     Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79064         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79065         drive prefix.
79066         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79067         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79068         (last_component): New method.
79069         * lib/dirname.c (dir_len): Determine when drive letters need a
79070         subsequent slash.  Preserve // when it is special.
79071         (dir_name): Don't append dot when drive letter is absolute.
79072         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79073         * lib/basename.c (base_name): New semantics - malloc the result.
79074         Preserve // when it is special.  Preserve relative files that look
79075         like drive letters.
79076         (base_len): Preserve // when it is special.
79077         (last_component): New method, similar to old base_name semantics.
79078         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79079         base_name.  Strip redundant slashes from ///.
79080
79081 2006-07-03  Jim Meyering  <jim@meyering.net>
79082
79083         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79084         macro is used before the first cycle_check call.
79085
79086 2006-07-03  Eric Blake  <ebb9@byu.net>
79087
79088         * modules/dirname (Depends-on): Add xstrndup.
79089
79090 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79093         test cases, so that config.log is a bit easier to follow.
79094
79095 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79098         both are 64 bits, since this seems to be the tradition, and this
79099         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79100         we ever run into a host that prefers long long to long in this
79101         case, we'll need another configure-time test.  Problem reported by
79102         Jim Meyering.
79103
79104 2006-07-02  Eric Blake  <ebb9@byu.net>
79105
79106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79107
79108 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * modules/inttypes (Depends-on): No longer depends on stdint.
79111         * modules/stdint (Description): Say more about assumptions.
79112         Say that the fast types might differ.  Say macros are used.
79113         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79114         (Makefile.am): Revise list of substituted symbols to match
79115         new stdint.m4.
79116         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79117         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79118         * tests/test-stdint.c (verify_same_types)
79119         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79120         the code conforms to C99/C89.
79121         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79122         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79123
79124 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79127         but fix a bug, by requiring at least 64 bits.
79128         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79129         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79130         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79131         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79132
79133         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79134         changes.  Make 2.59 a prerequisite.  Check and substitute for
79135         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79136         inttypes.h.  Do not use special include files; just use the
79137         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79138         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79139         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79140         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79141         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79142         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79143         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79144         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79145         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79146         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79147         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79148         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79149         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79150         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79151         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79152         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79153         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79154         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79155         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79156         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79157         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79158         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79159         not check for things that C99 does not require, e.g., int8_t.  If
79160         a test isn't needed unless <stdint.h> isn't working, and is
79161         unlikely to be needed for any other reason, then don't do it
79162         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79163         size_t, since we assume C89 freestanding at least.  Do not check
79164         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79165         the right thing even if the types are not defined.  Instead use:
79166         (gl_STDINT_TYPE_PROPERTIES): New macro.
79167         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79168         testing whether <sys/types.h> clashes, as Autoconf does this for
79169         us now.  All uses removed.
79170         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79171         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79172         (gl_CHECK_TYPE_SAME):
79173         Remove; no longer needed.
79174         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79175         exists, since we'll return 0 anyway in that case.
79176         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79177
79178 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79181         possible collision with system files.
79182         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79183         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79184         WCHAR_MIN and WCHAR_MAX in this case.
79185         (<stddef.h>): Do not include; no longer needed.
79186         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79187         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79188         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79189         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79190         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79191         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79192         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79193         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79194         !defined(__c99))]: Include in this case too, since it's harmless
79195         now.
79196         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79197         dangerous to do so.
79198         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79199         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79200         (_STDINT_MIN, _STDINT_MAX): New macros.
79201         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79202         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79203         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79204         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79205         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79206         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79207         macros, not typedefs; this simplifies things quite a bit.
79208         Use long int for all types narrower than int64_t.
79209         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79210         Define in terms of long long int or int64_t or long int,
79211         not int64_t or int32_t.  This saves some compile-time testing.
79212         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79213         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79214         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79215         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79216         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79217         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79218         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79219         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79220         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79221         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79222         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79223         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79224         undef any previous version and define our own version, for
79225         simplicity and consistency with the new macros for types.
79226         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79227         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79228         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79229         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79230         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79231         @WINT_T_SUFFIX@ to keep things simple here.
79232         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79233         Simplify by assuming typical 8/16/32/64 host, since we're
79234         already doing that elsewhere anyway.
79235         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79236         and assume long long int is 64 bits if available.  This
79237         speeds up 'configure'.
79238
79239 2006-07-01  Eric Blake  <ebb9@byu.net>
79240
79241         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79242         Reported by Andreas Buening.
79243
79244 2006-07-01  Eric Blake  <ebb9@byu.net>
79245
79246         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79247
79248 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79249
79250         * lib/getaddrinfo.c: fixed typo
79251
79252 2006-06-29  Jim Meyering  <jim@meyering.net>
79253
79254         * modules/strftime (Maintainer): Add my name, since with the
79255         FPRINTFTIME changes strftime.c has forked from glibc.
79256
79257 2006-06-29  Eric Blake  <ebb9@byu.net>
79258
79259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79260
79261 2006-06-29  Eric Blake  <ebb9@byu.net>
79262
79263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79264
79265 2006-06-29  Eric Blake  <ebb9@byu.net>
79266
79267         * lib/stat_.h: New file.
79268
79269 2006-06-29  Eric Blake  <ebb9@byu.net>
79270
79271         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79272         unused static function.
79273
79274 2006-06-29  Eric Blake  <ebb9@byu.net>
79275
79276         * doc/functions.texi (Function Portability): Document missing lstat
79277         on mingw.
79278
79279 2006-06-29  Eric Blake  <ebb9@byu.net>
79280
79281         * MODULES.html.sh: Add sys_stat.
79282         * modules/sys_stat: New module.
79283         * modules/mkstemp (Depends-on): Add sys_stat.
79284
79285 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79286
79287         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79288
79289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79290
79291         * m4/c-bs-a.m4: Removed.
79292
79293 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79294
79295         * lib/strftime.c: Assume strftime() exists.
79296
79297 2006-06-29  Derek Price  <derek@ximbiot.com>
79298
79299         * modules/c-bs-a: Removed - \a is C89.
79300         * MODULES.html.sh: Remove c-bs-a.
79301
79302 2006-06-29  Bruno Haible  <bruno@clisp.org>
79303
79304         * modules/wcwidth (License): Change to LGPL.
79305
79306 2006-06-28  Simon Josefsson  <jas@extundo.com>
79307
79308         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79309         on _WIN32.
79310
79311         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79312         getnameinfo.
79313
79314 2006-06-28  Simon Josefsson  <jas@extundo.com>
79315
79316         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79317
79318 2006-06-28  Simon Josefsson  <jas@extundo.com>
79319
79320         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79321         functions there.  It will succeed on Windows XP, but on Windows
79322         2000 and (presumably) earlier, it will fail, and use the internal
79323         re-implementation.
79324         (use_win32_p): New function.
79325         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79326         Support AI_NUMERICSERV to disable getservbyname.
79327         (getnameinfo): New function, only supports
79328         NI_NUMERICHOST|NI_NUMERICSERV for now.
79329
79330         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79331         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79332         getnameinfo.
79333
79334 2006-06-28  Eric Blake  <ebb9@byu.net>
79335
79336         * modules/wcwidth: New file.
79337         * modules/mbchar (Depends-on): Add wcwidth.
79338         * modules/mbswidth (Depends-on): Add wcwidth.
79339         * MODULES.html.sh: Add wcwidth.
79340
79341 2006-06-28  Eric Blake  <ebb9@byu.net>
79342
79343         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79345
79346 2006-06-28  Eric Blake  <ebb9@byu.net>
79347
79348         * lib/xvasprintf.h: Fix comments.
79349
79350 2006-06-28  Eric Blake  <ebb9@byu.net>
79351
79352         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79353         * lib/mbswidth.c (wcwidth): Move from here...
79354         * lib/wcwidth.h: ...to this new file.
79355
79356 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79357
79358         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79359
79360         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79361         it's obsolete.
79362         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79363
79364 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79365
79366         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79367         Autoconf 2.60 says this stuff was obsolete.
79368
79369 2006-06-28  Bruno Haible  <bruno@clisp.org>
79370
79371         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79372
79373 2006-06-28  Bruno Haible  <bruno@clisp.org>
79374
79375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79376         gt_TYPE_WCHAR_T.
79377
79378 2006-06-28  Bruno Haible  <bruno@clisp.org>
79379
79380         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79381         declaration for wcwidth.
79382         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79383
79384 2006-06-28  Bruno Haible  <bruno@clisp.org>
79385
79386         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79387         (mkdir): Define using _mkdir.
79388
79389 2006-06-28  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/getaddrinfo.h: Fix POSIX URL.
79392         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79393         _WIN32.
79394         (use_win32_p): Make static.
79395         (getaddrinfo): Reject service name if it is empty or does not consist
79396         solely of decimal digits, or if its value is > 65535.
79397         (getnameinfo): Remove useless casts.
79398
79399 2006-06-27  Simon Josefsson  <jas@extundo.com>
79400
79401         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79402         Eggert and Martin Lambers.
79403
79404 2006-06-27  Simon Josefsson  <jas@extundo.com>
79405
79406         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79407         Eggert and Martin Lambers.
79408
79409 2006-06-27  Bruno Haible  <bruno@clisp.org>
79410
79411         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79412         result to 0, not to empty.
79413         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79414
79415 2006-06-27  Bruno Haible  <bruno@clisp.org>
79416
79417         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79418
79419 2006-06-26  Simon Josefsson  <jas@extundo.com>
79420
79421         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79422         present.
79423
79424 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79427         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79429
79430 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79431
79432         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79433
79434 2006-06-26  Bruno Haible  <bruno@clisp.org>
79435
79436         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79437
79438 2006-06-26  Bruno Haible  <bruno@clisp.org>
79439
79440         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79441
79442 2006-06-26  Bruno Haible  <bruno@clisp.org>
79443
79444         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79445         SGI C compiler in pre-C99 mode.
79446         Suggested by Mark D. Baushke and Larry Jones.
79447
79448 2006-06-26  Bruno Haible  <bruno@clisp.org>
79449
79450         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79451         WCHAR_MAX.
79452         Reported by Mark D. Baushke and Larry Jones.
79453
79454 2006-06-26  Bruno Haible  <bruno@clisp.org>
79455
79456         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79457         in pre-C99 mode.
79458         Suggested by Mark D. Baushke and Larry Jones.
79459
79460 2006-06-23  Simon Josefsson  <jas@extundo.com>
79461             Bruno Haible  <bruno@clisp.org>
79462
79463         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79464         Emit mostlyclean-local rule.
79465         (func_emit_tests_Makefile_am): Likewise.
79466         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79467
79468 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79469
79470         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79471
79472 2006-06-23  Bruno Haible  <bruno@clisp.org>
79473
79474         * tests/test-stdint.c: Update to match ISO C 99 Technical
79475         Corrigendum 1.
79476
79477 2006-06-23  Bruno Haible  <bruno@clisp.org>
79478
79479         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79480
79481 2006-06-23  Bruno Haible  <bruno@clisp.org>
79482
79483         * lib/stdint_.h: Treat IRIX like OpenBSD.
79484
79485 2006-06-23  Bruno Haible  <bruno@clisp.org>
79486
79487         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79488         ISO C 99 Technical Corrigendum 1.
79489
79490 2006-06-22  Simon Josefsson  <jas@extundo.com>
79491
79492         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79493         MinGW.
79494
79495 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79498         needed.  Some compiler complained about some of them.  Problem reported
79499         by Larry Jones in
79500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79501
79502 2006-06-21  Simon Josefsson  <jas@extundo.com>
79503
79504         * tests/test-getaddrinfo.c: New file.
79505
79506         * modules/getaddrinfo-tests: New file.
79507
79508         * MODULES.html.sh: Add inet_pton.
79509
79510         * modules/inet_pton: New file.
79511
79512 2006-06-21  Simon Josefsson  <jas@extundo.com>
79513
79514         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79515         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79516         of using the (limited) gnulib implementation on Windows XP.
79517
79518         * m4/inet_pton.m4: New file.
79519
79520 2006-06-21  Simon Josefsson  <jas@extundo.com>
79521
79522         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79523         variable.
79524
79525         * lib/socket_.h: Don't define WINVER.
79526
79527         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79528         slightly modified to work in gnulib.
79529
79530 2006-06-21  Simon Josefsson  <jas@extundo.com>
79531
79532         * doc/gnulib.texi (Windows sockets): Add.
79533
79534 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         * lib/read-file.c (fread_file): Start with buffer allocation of
79537         0 bytes rather than 1 byte; this simplifies the code.
79538         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79539         code to free buffer and save/restore errno.
79540         (internal_read_file): Remove unused local.
79541
79542 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79545         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79546         Problem reported by Denis Excoffier in
79547         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79548
79549 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79550
79551         * modules/sys_socket, modules/socklen: Include sys/types since
79552         FreeBSD 4.x's sys/socket.h needs it.
79553
79554 2006-06-19  Simon Josefsson  <jas@extundo.com>
79555
79556         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79557
79558 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79561
79562 2006-06-19  Bruno Haible  <bruno@clisp.org>
79563
79564         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79565         and FULL_PATH_INTTYPES_H in angle brackets.
79566         Reported by Mark D. Baushke <mdb@gnu.org>.
79567
79568 2006-06-17  Eric Blake  <ebb9@byu.net>
79569
79570         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79571         errno.
79572
79573 2006-06-17  Bruno Haible  <bruno@clisp.org>
79574
79575         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79576         <sys/inttypes.h>.
79577
79578 2006-06-17  Bruno Haible  <bruno@clisp.org>
79579
79580         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79581         whether errno is declared. Assume <errno.h> declares errno.
79582
79583 2006-06-17  Bruno Haible  <bruno@clisp.org>
79584
79585         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79586
79587 2006-06-17  Bruno Haible  <bruno@clisp.org>
79588
79589         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79590         problem on Solaris 2.5.1.
79591
79592 2006-06-16  Eric Blake  <ebb9@byu.net>
79593
79594         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79595         * lib/unicodeio.c [!defined errno]: Likewise.
79596         * lib/strtol.c [!defined errno]: Likewise.
79597         * lib/strtod.c [!defined errno]: Likewise.
79598
79599 2006-06-15  Eric Blake  <ebb9@byu.net>
79600
79601         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79602
79603 2006-06-15  Eric Blake  <ebb9@byu.net>
79604
79605         * config/srclist.txt (ssize_t.m4): Lose sync.
79606
79607 2006-06-15  Bruno Haible  <bruno@clisp.org>
79608
79609         * modules/stdint (Files): Include m4/full-header-path.m4,
79610         m4/size_max.m4, m4/wchar_t.m4.
79611         (Makefile.am): Many more substitutions.
79612         * modules/stdint-tests: New file.
79613         * tests/test-stdint.c: New file.
79614
79615 2006-06-15  Bruno Haible  <bruno@clisp.org>
79616
79617         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79618         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79619         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79620         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79621         gl_CHECK_TYPE_SAME): New macros.
79622
79623 2006-06-15  Bruno Haible  <bruno@clisp.org>
79624
79625         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79626
79627 2006-06-15  Bruno Haible  <bruno@clisp.org>
79628
79629         * lib/stdint_.h: Rewritten to be fully auto-configured.
79630         Fixes bug on HP-UX/IA64.
79631
79632 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         * lib/getdate.y (__attribute__): Don't define if already defined.
79635         Problem reported by Larry Jones.
79636         * lib/utimens.c (__attribute__): Likewise.
79637
79638 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79641         reported by Andreas Schwab.
79642
79643 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79644             Bruno Haible  <bruno@clisp.org>
79645
79646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79647         check for the declaration of strnlen and a run test that exposes the
79648         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79649         rpl_strndup.
79650
79651 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79652             Bruno Haible  <bruno@clisp.org>
79653
79654         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79655
79656 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79657
79658         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79659         compile test, for Tru64 4.0D.
79660
79661 2006-05-28  Karl Berry  <karl@gnu.org>
79662
79663         * config/srclist.txt (printf-args.c): lose sync.
79664
79665 2006-05-26  Martin Lambers  <marlam@marlam.de>
79666
79667         * lib/getpass.c: Updates the test for the native W32 API, and adds
79668         missing includes, thus fixing compilation warnings.
79669
79670 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79671
79672         * lib/exclude.c (exclude_fnmatch): New function.
79673         (excluded_file_name): Call exclude_fnmatch.
79674         * lib/exclude.h (excluded_file_name): New prototype
79675
79676 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         * lib/tempname.c (small_open, large_open): New macros.
79679         (__open, __open64) [!_LIBC]: Remove.
79680         (__gen_tempname): Use small_open and large_open instead of __open
79681         and __open64.  This fixes a portability bug on HP-UX 11.11i
79682         reported by Simon Wing-Tang in
79683         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79684
79685 2006-05-24  Bruno Haible  <bruno@clisp.org>
79686
79687         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79688         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79689         Reported by Thorsten Maerz <torte@netztorte.de> via
79690         Aaron Stone <aaron@serendipity.cx>.
79691
79692 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79695         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79696         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79697         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79698         not really conditional on the cache.
79699         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79700
79701 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79704         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79705         (my_usleep): Don't mishandle maximum value.
79706
79707 2006-05-19  Jim Meyering  <jim@meyering.net>
79708
79709         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79710
79711 2006-05-17  Bruno Haible  <bruno@clisp.org>
79712
79713         Cygwin portability.
79714         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79715
79716 2006-05-17  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/stdint_.h: Fix recognition of Cygwin.
79719
79720 2006-05-15  Bruno Haible  <bruno@clisp.org>
79721
79722         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79723         on libtool patch by Ralf Wildenhues.
79724
79725 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79728         test for C99 conformance; (bool) 0.5 is an integer constant
79729         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79730         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79731
79732 2006-05-11  Simon Josefsson  <jas@extundo.com>
79733
79734         * m4/xvasprintf.m4: Fix obvious typo.
79735
79736 2006-05-11  Jim Meyering  <jim@meyering.net>
79737
79738         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79739         James Lemley.
79740
79741 2006-05-10  Simon Josefsson  <jas@extundo.com>
79742
79743         * lib/md4.c: Typo fix, update copyright years.
79744         (K1, K2): Don't use L because it turn computations into 64-bit on
79745         64-bit platforms.
79746
79747 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79750         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79751         unwanted sign propagation, e.g., on hosts with 64-bit int.
79752         There still are some problems with reeelly weird theoretical hosts
79753         (e.g., 33-bit int) but it's not worth worrying about now.
79754         * lib/sha1.c (rol): Likewise.
79755         (K1, K2, K3, K4): Remove unnecessary L suffix.
79756
79757 2006-05-10  Bruno Haible  <bruno@clisp.org>
79758
79759         * lib/des.c: Cast to avoid warnings.
79760
79761 2006-05-09  Bruno Haible  <bruno@clisp.org>
79762
79763         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79764         (Depends-on): Depend also on xsize, stdarg.
79765         (configure.ac): Add gl_XVASPRINTF.
79766
79767 2006-05-09  Bruno Haible  <bruno@clisp.org>
79768
79769         * m4/xvasprintf.m4: New file.
79770
79771 2006-05-09  Bruno Haible  <bruno@clisp.org>
79772
79773         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79774         (EOVERFLOW): Define fallback value.
79775         (xstrcat): New function.
79776         (xvasprintf): Recognize the special case of a string concatenation.
79777
79778 2006-05-08  Eric Blake  <ebb9@byu.net>
79779
79780         * gnulib-tool (func_version): Base copyright year on CVS date.
79781         (func_emit_copyright_notice): New function.
79782         (func_emit_lib_Makefile_am): Use it.
79783         (func_emit_tests_Makefile_am): Likewise.
79784         (func_import): Likewise.
79785
79786 2006-05-08  Bruno Haible  <bruno@clisp.org>
79787
79788         * modules/stdarg: New file.
79789         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79790
79791 2006-05-08  Bruno Haible  <bruno@clisp.org>
79792
79793         * m4/stdarg.m4: New file, from GNU gettext.
79794
79795 2006-05-08  Bruno Haible  <bruno@clisp.org>
79796
79797         * config/srclist.txt (build-aux/config.rpath): different from latest
79798         release.
79799
79800 2006-05-08  Bruno Haible  <bruno@clisp.org>
79801
79802         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79803
79804 2006-05-05  Jim Meyering  <jim@meyering.net>
79805
79806         * m4/warning.m4: New file, derived from bison's file by the same name.
79807
79808 2006-05-03  Bruno Haible  <bruno@clisp.org>
79809
79810         * lib/stdint_.h: Shorter URL.
79811         * lib/inttypes.h: Likewise.
79812
79813 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79816
79817 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         * lib/verify.h: Document the internals better.  Most of this change
79820         was written by Bruno Haible.
79821
79822 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         * doc/verify.texi: New file, partly based on a proposal by
79825         Bruno Haible.
79826
79827 2006-05-02  Bruno Haible  <bruno@clisp.org>
79828
79829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79830         test from here...
79831         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79832
79833 2006-04-29  Bruno Haible  <bruno@clisp.org>
79834
79835         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79836         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79837
79838 2006-04-29  Bruno Haible  <bruno@clisp.org>
79839
79840         * gnulib-tool: Make --update option actually work.
79841
79842 2006-04-29  Bruno Haible  <bruno@clisp.org>
79843
79844         * doc/gcd.texi: New file.
79845         * doc/gnulib.texi: Include it.
79846
79847 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * lib/getdate.y (get_date): When adding relative date, start with the
79850         initial time, not with the result of the first mktime call.
79851
79852 2006-04-25  Bruno Haible  <bruno@clisp.org>
79853
79854         * gnulib-tool (func_import): Output the include directives in three
79855         blocks, sorted separately.
79856         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79857
79858 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79861         to define main with arguments, for C++.  Reported by Eric Blake.
79862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79863         Prefer 'int main ()' to 'int main (void)', for C++.
79864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79865         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79866         for 'main', for C99 and C++.
79867
79868 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79871         Don't assume that exit status -1 is valid.
79872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79873         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79875         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79876         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79877         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79878         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79879         functions can be used without declaring them, or that you can
79880         exit with status -1.
79881         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79882
79883 2006-04-24  Karl Berry  <karl@gnu.org>
79884
79885         * config/srclist.txt (longdouble.m4): sync lost.
79886
79887 2006-04-24  Eric Blake  <ebb9@byu.net>
79888
79889         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79890
79891 2006-04-24  Bruno Haible  <bruno@clisp.org>
79892
79893         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79894         poll() implementation in AIX.
79895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79896
79897 2006-04-24  Bruno Haible  <bruno@clisp.org>
79898
79899         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79900         assigned exactly once.
79901
79902 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79903             Bruno Haible  <bruno@clisp.org>
79904
79905         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79906         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79907         for AM_CPPFLAGS.
79908
79909 2006-04-23  Bruno Haible  <bruno@clisp.org>
79910
79911         * modules/copy-file: Depend on unistd.
79912         * modules/execute: Likewise.
79913         * modules/fatal-signal: Likewise.
79914         * modules/findprog: Likewise.
79915         * modules/mkdtemp : Likewise.
79916         * modules/pipe: Likewise.
79917         * modules/wait-process: Likewise.
79918
79919 2006-04-23  Bruno Haible  <bruno@clisp.org>
79920
79921         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79922         condition was already detected.
79923         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79924
79925 2006-04-23  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/copy-file.c: Include <unistd.h> unconditionally.
79928         * lib/execute.c: Likewise.
79929         * lib/fatal-signal.c: Likewise.
79930         * lib/findprog.c: Likewise.
79931         * lib/mkdtemp.c: Likewise.
79932         * lib/pipe.h: Likewise.
79933         * lib/pipe.c: Likewise.
79934         * lib/wait-process.h: Likewise.
79935
79936 2006-04-23  Bruno Haible  <bruno@clisp.org>
79937
79938         * gnulib-tool (func_usage): Fix --import description. Document
79939         --update.
79940         (func_import): Create temporary file in a temporary directory, if
79941         --dry-run is specified. Silence errors from 'grep' when there are no
79942         m4 files in $m4dir.
79943         (func_create_testdir): Silence errors from 'grep' when there are no
79944         m4 files in $m4dir.
79945         Reported by Karl Berry <karl@freefriends.org>.
79946
79947 2006-04-20  Bruno Haible  <bruno@clisp.org>
79948
79949         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79950         one argument, so that the code will be portable to Autoconf 2.60.
79951         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79952         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79953         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79954
79955 2006-04-19  Derek Price  <derek@ximbiot.com>
79956             Eric Blake  <ebb9@byu.net>
79957
79958         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79959         rather than "/full/path.h".  Update comment to match.  Shorten &
79960         generalize m4_translit call via AS_TR_CPP.
79961
79962 2006-04-19  Derek Price  <derek@ximbiot.com>
79963             Eric Blake  <ebb9@byu.net>
79964
79965         * lib/inttypes.h: Correct grammar in comment.
79966
79967 2006-04-18  Derek Price  <derek@ximbiot.com>
79968             Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * modules/inttypes: New file.
79971         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79972
79973 2006-04-18  Derek Price  <derek@ximbiot.com>
79974             Paul Eggert  <eggert@cs.ucla.edu>
79975
79976         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79977         New files.
79978
79979 2006-04-18  Derek Price  <derek@ximbiot.com>
79980             Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         * lib/inttypes.h: New file.
79983         * lib/strtoimax.c: Assume <inttypes.h>.
79984
79985 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79988         isn't mounted.  Problem reported by Kir Kolyshkin.
79989
79990 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79993         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79994         Derek R. Price.
79995         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79996         implementation.
79997
79998 2006-04-12  Eric Blake  <ebb9@byu.net>
79999
80000         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80001         is now done automatically by the corresponding Autoconf macro.
80002
80003 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80006         time_r.h.
80007
80008 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         Merge regex changes from libc, removing some of our
80011         POSIX-conformance changes that were rejected and redoing them in a
80012         less-intrusive way.
80013
80014         * lib/regcomp.c (re_compile_internal, init_dfa):
80015         Length arg is now size_t, not Idx.  All uses changed.
80016         (peek_token): Forward decl now says internal_function.
80017         (__re_error_msgid, __re_error_msgid_idx):
80018         Now static rather than extern with attribute_hidden.
80019         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80020         For some reason libc prefers K&R style defns for external functions.
80021         (regerror) [!defined _LIBC]: Likewise.
80022         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80023         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80024         (build_range_exp, build_collating_symbol):
80025         Use K&R-style defn.
80026         (re_compile_fastmap): Use '\0' to memset, not 0.
80027         (utf8_sb_map): Make the calculations more obvious.
80028         (init_dfa, parse_bracket_exp, build_charclass_op):
80029         Call calloc and cast result, as glibc does.
80030         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80031         (build_range_exp, build_collating_symbol):
80032         Now internal functions.
80033
80034         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80035
80036         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80037         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80038         Don't depend on VMS; depend on __VMS instead, for POSIX
80039         namespace cleanness.
80040         (regoff_t): Define to ssize_t, not long int.
80041
80042         Remove the REG_ macros named below.  Instead, make the old names
80043         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80044         __USE_GNU_REGEX.
80045         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80046         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80047         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80048         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80049         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80050         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80051         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80052         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80053         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80054         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80055         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80056         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80057         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80058         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80059         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80060         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80061         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80062         (REG_NREGS):
80063         Remove.  All uses replaced by the old RE_* names.
80064         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80065         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80066         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80067         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80068         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80069         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80070         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80071         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80072         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80073         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80074         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80075         Don't bother having these macros be independent of each others'
80076         values, since they no longer exist in the POSIX name space.
80077
80078         Rename the following member names back to their old names,
80079         unless !__USE_GNU_REGEX.  All uses changed back.
80080         (buffer): Renamed from re_buffer.
80081         (allocated): Renamed from re_allocated.
80082         (used): Renamed from re_used.
80083         (syntax): Renamed from re_syntax.
80084         (fastmap): Renamed from re_fastmap.
80085         (translate): Renamed from re_translate.
80086         (can_be_null): Renamed from re_can_be_null.
80087         (regs_allocated): Renamed from re_regs_allocated.
80088         (fastmap_accurate): Renamed from re_fastmap_accurate.
80089         (no_sub): Renamed from re_no_sub.
80090         (not_bol): Renamed from re_not_bol.
80091         (not_eol): Renamed from re_not_eol.
80092         (newline_anchor): Renamed from re_newline_anchor.
80093         (num_regs): Renamed from rm_num_regs.
80094         (start): Renamed from rm_start.
80095         (end): Renamed from rm_end.
80096
80097         (free_state): Move up a bit.
80098
80099         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80100         #define to be empty.
80101         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80102         when that is what is intended.
80103         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80104         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80105         (MAX): New macro.
80106         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80107         All uses changed back to re_malloc, etc.  It's now the caller's
80108         responsibility to check for overflow; all callers changed.
80109         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80110         (re_x2nrealloc): Remove.
80111         (free_state): Remove decl.
80112
80113         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80114         (re_set_registers, re_exec):
80115         Use K&R-style defn.
80116
80117         2006-01-31  Roland McGrath  <roland@redhat.com>
80118
80119         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80120         Reported by Mike Frysinger <vapier@gentoo.org>.
80121
80122         2006-01-15  Andreas Jaeger  <aj@suse.de>
80123
80124         [BZ #1950]
80125         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80126         build_wcs_upper_buffer change.
80127         (build_wcs_upper_buffer): Change return type.
80128
80129         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80130
80131         * lib/regex_internal.h: Include <stdint.h> if available.
80132
80133         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80134
80135         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80136
80137         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80138
80139         * lib/regcomp.c: Adjust for changed secondary hash function.
80140
80141         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80142
80143         * lib/regex.h: Pretty printing.
80144         Clean up namespace a bit.
80145
80146         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80147
80148         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80149         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80150
80151         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80152                     Ulrich Drepper  <drepper@redhat.com>
80153
80154         [BZ #1302]
80155         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80156         changed.
80157         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80158
80159         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80160
80161         [BZ #281]
80162         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80163         * lib/regcomp.c: Remove unnecessary uses of
80164         unsigned RE_TRANSLATE_TYPE.
80165         * lib/regex_internal.h: Likewise.
80166         * lib/regex_internal.c: Likewise.
80167         * lib/regexec.c: Likewise.
80168         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80169
80170         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80171
80172         * lib/regexec.c (find_recover_state): Remove unnecessary
80173         initialization.
80174         (transit_state_bkref): Make DFA a const pointer.
80175         (get_subexp): Likewise.
80176         (check_arrival): Likewise.
80177         (update_cur_sifted_state): Likewise.
80178         (re_search_internal): Likewise.
80179         (prune_impossible_nodes): Likewise.
80180         (acquire_init_state_context): Likewise.
80181         (proceed_next_node): Likewise.
80182         (set_regs): Likewise.
80183         (free_fail_stack_return): Likewise.
80184         (check_arrival_expand_ecl): Mark DFA parameter as const.
80185         (check_arrival_expand_ecl_sub): Likewise.
80186         (check_subexp_limits): Likewise.
80187         (sub_epsilon_src_nodes):  Likewise.
80188         (add_epsilon_src_nodes):  Likewise.
80189         (merge_state_array): Likewise.
80190         (update_regs): Likewise.
80191         (build_trtable): Likewise.
80192         (sift_states_backward): Mark MCTX parameter as const.
80193         (build_sifted_states): Likewise.
80194         (update_cur_sifted_state): Likewise.
80195         (sift_states_mkref): Likewise.
80196         (check_arrival_expand_ecl): Mark eclosure as const.
80197         (check_dst_limits_calc_pos_1): Likewise.
80198         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80199         pointer.
80200
80201         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80202
80203         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80204         (transit_state_sb): Likewise.
80205         (transit_state_mb): Likewise.
80206         (sift_states_iter_mb): Likewise.
80207         (check_arrival_add_next_nodes): Likewise.
80208         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80209         [_LIBC] (re_search_2_stub): Use mempcpy.
80210
80211         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80212         mbrtowc for very simple UTF-8 case.
80213
80214         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80215         a pointer-to-const.
80216         (re_acquire_state_context): Likewise.
80217         * lib/regex_internal.h: Adjust prototypes.
80218
80219         * lib/regex.c: Prevent using C++ compilers.
80220
80221         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80222         (re_acquire_state_context): Likewise.
80223
80224 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * modules/regex (Depends-on): Add ssize_t.
80227
80228 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80231         translation table.
80232
80233 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80236
80237 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80238             Bruno Haible  <bruno@clisp.org>
80239
80240         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80241         <sys/types.h> and <inttypes.h>.
80242
80243 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80244
80245         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80246         `__error_t_defined', so argp.h will not typedef the former.
80247
80248 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80251         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80252         glibc names.  Even if glibc is changed to conform to POSIX, the
80253         traditional names will be available anyway, since regex depends on
80254         the extensions module.  Also, fix a longstanding typo in the
80255         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80256         reported by Emanuele Giaquinta.  Also, change sense of cached
80257         variable, so that the message makes sense.
80258
80259 2006-03-24  Simon Josefsson  <jas@extundo.com>
80260
80261         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80262         including some doc fixes.
80263         (base64_encode_alloc): Fix +1 bug on allocation failures.
80264
80265 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80266
80267         * lib/base64.c (base64_encode): Do not read past end of array with
80268         unsanitized input on systems with CHAR_BIT > 8.
80269
80270 2006-03-24  Eric Blake  <ebb9@byu.net>
80271
80272         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80273
80274 2006-03-22  Karl Berry  <karl@gnu.org>
80275
80276         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80277         * config/srclistvars.sh (COREUTILS): new var.
80278
80279 2006-03-17  Jim Meyering  <jim@meyering.net>
80280
80281         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80282         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80283
80284 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80287         no longer needs it.  Instead, check that regoff_t is as least
80288         as wide as ptrdiff_t.
80289
80290         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80291         so that our regex.h stays compatible with the installed regex.
80292         This is helpful for installers who configure --without-included-regex.
80293         Problem reported by Emanuele Giaquinta.
80294
80295 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80298         Typedef to long int, not to off_, as POSIX will likely change
80299         in that direction.
80300
80301 2006-03-15  Eric Blake  <ebb9@byu.net>
80302
80303         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80304
80305 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80306
80307         * lib/argp-help.c (validate_uparams): Fix typo
80308         * lib/argp-parse.c (argp_default_options): Consistently begin help
80309         messages with a lowercase letter.
80310
80311 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80314         overrun buffers and shouldn't be used (much as gets shouldn't be
80315         used).
80316         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80317
80318 2006-03-08  Simon Josefsson  <jas@extundo.com>
80319
80320         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80321         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80322
80323 2006-03-08  Simon Josefsson  <jas@extundo.com>
80324
80325         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80326         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80327
80328 2006-03-08  Simon Josefsson  <jas@extundo.com>
80329
80330         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80331         signal that configure disabled the device.
80332
80333 2006-03-08  Simon Josefsson  <jas@extundo.com>
80334
80335         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80336         languages.
80337
80338 2006-03-07  Simon Josefsson  <jas@extundo.com>
80339
80340         * modules/getopt (Depends-on): Add unistd.
80341
80342         * modules/unistd: New file.
80343
80344 2006-03-07  Simon Josefsson  <jas@extundo.com>
80345
80346         * modules/gc-random: New file.
80347
80348 2006-03-07  Simon Josefsson  <jas@extundo.com>
80349
80350         * m4/unistd_h.m4: New file.
80351
80352 2006-03-07  Simon Josefsson  <jas@extundo.com>
80353
80354         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80355         test to be side-effect free by storing the result in the cache
80356         variable gl_cv_lib_readline, and moving the assignment of
80357         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80358         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80359
80360 2006-03-07  Simon Josefsson  <jas@extundo.com>
80361
80362         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80363         error on missing devices (the functions will return an error).
80364
80365         * m4/gc.m4: Move random stuff to gc-random.m4
80366
80367 2006-03-07  Simon Josefsson  <jas@extundo.com>
80368
80369         * lib/unistd_.h: New file.
80370
80371 2006-03-07  Simon Josefsson  <jas@extundo.com>
80372
80373         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80374
80375 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80378         Problem reported by Juan Manuel Guerrero.
80379
80380 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80383         the unistd module.
80384         * lib/getlogin_r.c: Likewise.
80385         * lib/getlogin_r.h: Likewise.
80386         * lib/glob.c: Likewise.
80387         * lib/pagealign_alloc.c: Likewise.
80388         * lib/unistd_.h: Remove; no longer needed.
80389
80390 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80393         Add unistd.
80394         * modules/c-stack (Depends-on): Add unistd.
80395         * modules/getlogin_r: Likewise.
80396         * modules/glob: Likewise.
80397         * modules/pagealign_alloc: Likewise.
80398         * modules/unistd (Files): Remove lib/unistd_.h.
80399         (EXTRA_DIST): Remove.
80400         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80401         need unistd_.h.
80402         (MOSTLYCLEANFILES): Remove unistd.h-t.
80403
80404 2006-03-03  Simon Josefsson  <jas@extundo.com>
80405
80406         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80407
80408 2006-03-03  Simon Josefsson  <jas@extundo.com>
80409
80410         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80411         libidn and bison.
80412
80413 2006-03-03  Simon Josefsson  <jas@extundo.com>
80414
80415         * build-aux/maint.mk: Add indent target.
80416
80417 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80418
80419         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80420         our replacement poll.h in any case, to avoid a differing
80421         declaration from a system header.  Seen on AIX.
80422
80423 2006-03-01  Simon Josefsson  <jas@extundo.com>
80424
80425         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80426         <kasal@ucw.cz>.
80427
80428 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * modules/gettime (Depends-on): Add extensions module.
80431         * modules/nanosleep (Depends-on): Likewise.
80432         * modules/settime (Depends-on): Likewise.
80433
80434 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80437         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80438         pedantically.
80439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80440         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80441
80442         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80443         not "==".  Reported by Ralf Wildenhues.
80444
80445 2006-03-01  Karl Berry  <karl@gnu.org>
80446
80447         * doc/Copyright/request-*: new files, synced from gnuorg.
80448
80449 2006-03-01  Karl Berry  <karl@gnu.org>
80450
80451         * config/srclist.txt (Copyright/*): new entries.
80452
80453 2006-02-28  Simon Josefsson  <jas@extundo.com>
80454
80455         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80456
80457 2006-02-27  Simon Josefsson  <jas@extundo.com>
80458
80459         * lib/base64.h: Indent #define's.  From Jim Meyering
80460         <jim@meyering.net>.
80461
80462 2006-02-27  Jim Meyering  <jim@meyering.net>
80463
80464         Revert the change of 2006-02-24, so these files can continue
80465         to be sync'd from gettext.
80466         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80467         of `config.h'.
80468
80469 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * modules/intprops: New file.
80472         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80473         Add intprops.
80474         * modules/getloadavg (Files): Remove lib/intprops.h.
80475         (Depends-on): Add intprops.
80476         * modules/human: Likewise.
80477         * modules/inttostr: Likewise.
80478         * modules/openat: Likewise.
80479         * modules/sig2str: Likewise.
80480         * modules/userspec: Likewise.
80481         * modules/utimecmp: Likewise.
80482         * modules/xnanosleep: Likewise.
80483         * modules/xstrtol: Likewise.
80484
80485 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80486
80487         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80488         * modules/lock-tests (TESTS): Use $(EXEEXT).
80489         * modules/tls-tests: Likewise.
80490         * modules/argp-tests: Likewise.
80491         (check_PROGRAMS): New var, replacing...
80492         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80493
80494 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80495
80496         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80497         `config.h'.
80498
80499 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80502
80503 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80504
80505         Sync from coreutils.
80506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80507         gl_CHDIR_SAFER.
80508
80509 2006-02-22  Jim Meyering  <jim@meyering.net>
80510
80511         Sync from coreutils.
80512         * m4/chdir-safer.m4: New file.
80513
80514 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80517         AT_FDCWD exceeds INT_MAX.
80518         * lib/openat.h (AT_FDCWD): Likewise.
80519
80520 2006-02-17  Eric Blake  <address@hidden>
80521
80522         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80523
80524 2006-02-16  Simon Josefsson  <jas@extundo.com>
80525
80526         * modules/getaddrinfo (Depends-on): Add sys_socket.
80527
80528 2006-02-15  Simon Josefsson  <jas@extundo.com>
80529
80530         * build-aux/maint.mk: Add dsyntax-check rule.
80531
80532 2006-02-15  Eric Blake  <ebb9@byu.net>
80533
80534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80535         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80536         'present but cannot compile' warnings on cygwin.
80537         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80538         use ws2tcpip.h if sys/socket.h works.
80539         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80540         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80541
80542 2006-02-14  Simon Josefsson  <jas@extundo.com>
80543
80544         * modules/maintainer-makefile (Files): Rename.
80545
80546         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80547         and (the local) Makefile.cfg to maint-cfg.mk.
80548
80549         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80550         to the latter.
80551
80552         * modules/maintainer-makefile: New module.
80553
80554         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80555         severaly stripped to make it possible to build it up from scratch
80556         with reliable tests.
80557
80558         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80559         fixes to permit overriding the default actions when configure and
80560         makefile are not available.
80561
80562 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         Sync from coreutils.
80565         * modules/lstat (Depends-on): Don't depend on xalloc.
80566         (License): Change from GPL to LGPL, since this is now simply a
80567         replacement for a libc function.
80568
80569 2006-02-14  Jim Meyering  <jim@meyering.net>
80570
80571         Sync from coreutils.
80572
80573         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80574         failure on deficient systems, and simplify gnulib lgpl dependencies.
80575         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80576         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80577
80578         * lib/xalloc-die.c: Remove unused definition of N_.
80579
80580 2006-02-14  Jim Meyering  <jim@meyering.net>
80581
80582         Sync from coreutils.
80583         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80584         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80585         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80586         double-quote uses of that variable, to accommodate the rare case in
80587         which getmntent is available in none of the libraries checked.  This
80588         happens at least on FreeBSD 5.0.
80589
80590 2006-02-13  Simon Josefsson  <jas@extundo.com>
80591
80592         * gnulib-tool (Usage): Fix --import, from
80593         karl@freefriends.org (Karl Berry).
80594
80595 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80596
80597         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80598
80599 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80600
80601         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80602         "autoupdate" on 2005-12-12.
80603
80604 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * modules/closeout (Depends-on): Remove atexit.
80607
80608 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80611         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80612
80613 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80614
80615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80616         __EXTENSIONS__ if this causes compilation to fail.  Problem
80617         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80618         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80619
80620 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80623         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80625         All uses changed.
80626
80627 2006-01-26  Simon Josefsson  <jas@extundo.com>
80628
80629         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80630         prototype is visible on mingw32.
80631
80632         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80633         for mingw32.
80634
80635         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80636         mingw32).
80637
80638 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80641         attempt to open for write; this always fails, at least on POSIX
80642         hosts.  This reinstates the 2006-01-09 change, which was
80643         inadvertently removed.
80644
80645 2006-01-26  Bruno Haible  <bruno@clisp.org>
80646
80647         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80648         Reported by Paul Eggert.
80649
80650 2006-01-26  Bruno Haible  <bruno@clisp.org>
80651             Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * lib/stdbool_.h (_Bool)
80654         [(! (defined __cplusplus || defined __BEOS__)
80655           && !defined __GNUC__
80656           && !(defined __HP_cc || defined __xlc__
80657                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80658                || defined __sgi))]:
80659         #define to signed char in these cases too; this simplifies
80660         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80661         etc., separately) and makes it more conservative.
80662
80663 2006-01-25  Simon Josefsson  <jas@extundo.com>
80664
80665         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80666         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80667         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80668
80669 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80670
80671         * lib/argp-namefrob.h: Bugfix. Remove stray #
80672
80673 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80676         so that we test the test.
80677         Check for yet another HP-UX cc bug involving *bool |= bool.
80678
80679 2006-01-25  Karl Berry  <karl@gnu.org>
80680
80681         * config/srclist.txt (vasnprintf.c): sync lost.
80682
80683 2006-01-25  Jim Meyering  <jim@meyering.net>
80684
80685         Sync from the stable (b5) branch of coreutils:
80686
80687         * lib/fts.c (fts_children): Don't let close() clobber errno from
80688         failed fchdir().
80689
80690         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80691         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80692         a dangling symlink.  That can also happen at least for ELOOP.
80693         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80694         FYI, this bug predates the inclusion of fts.c in coreutils.
80695
80696         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80697         in their own block, so pre-c99 compilers don't object.
80698
80699         Avoid the double-free (first in fts_read, second in fts_close) that
80700         would occur when an `active' directory is made inaccessible (e.g.,
80701         via chmod a-x) during a traversal.
80702         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80703         before returning.  Reproduce this failure by
80704         mkdir -p a/b; cd a; chmod a-x . b
80705         Reported by Stavros Passas.
80706
80707 2006-01-25  Jim Meyering  <jim@meyering.net>
80708
80709         * lib/fileblocks.c: Remove more useless parentheses.
80710         * lib/readutmp.h: Likewise.
80711
80712 2006-01-25  Bruno Haible  <bruno@clisp.org>
80713
80714         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80715         warnings.
80716         Reported by Paul Eggert.
80717
80718 2006-01-25  Bruno Haible  <bruno@clisp.org>
80719
80720         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80721         rid of a trap command. For Solaris sh.
80722         Reported by Mark D. Baushke <mdb@gnu.org>.
80723
80724 2006-01-24  Simon Josefsson  <jas@extundo.com>
80725
80726         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80727         Bruno.
80728
80729 2006-01-24  Karl Berry  <karl@gnu.org>
80730
80731         * config/srclist.txt (argp-namefrob.h): sync lost.
80732
80733 2006-01-24  Jim Meyering  <jim@meyering.net>
80734
80735         * modules/openat (Files): Add lib/intprops.h.
80736         From Mark D. Baushke.
80737
80738 2006-01-24  Jim Meyering  <jim@meyering.net>
80739
80740         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80741         Reported by Mark D. Baushke.
80742
80743 2006-01-24  Jim Meyering  <jim@meyering.net>
80744
80745         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80746
80747 2006-01-24  Bruno Haible  <bruno@clisp.org>
80748
80749         * modules/strnlen (Maintainer): Change from glibc to all.
80750
80751 2006-01-24  Bruno Haible  <bruno@clisp.org>
80752
80753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80754         Patch by Paul Eggert.
80755
80756 2006-01-24  Bruno Haible  <bruno@clisp.org>
80757
80758         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80759         already has it.
80760         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80761         2005-11-26.
80762
80763         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80764         'signed char' to avoid problems with the built-in _Bool type.
80765         Reported by Paul Eggert on 2005-11-26.
80766
80767 2006-01-24  Bruno Haible  <bruno@clisp.org>
80768
80769         * gnulib-tool (func_import): Avoid constructing complicated sed
80770         expressions inside backquote.
80771         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80772
80773 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80774
80775         These changes imported from libc.
80776         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80777         test and two separate function calls.
80778         * lib/strndup.c (__strndup): Add libc_hidden_def.
80779
80780 2006-01-23  Simon Josefsson  <jas@extundo.com>
80781
80782         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80783         Remove the test_*_SOURCES variable: automake infers it by default.
80784         * modules/tls-tests: Likewise.
80785
80786 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         Work around porting bugs reported by Dieter in
80789         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80790         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80791         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80792         Include "getopt.h" first, to check interface.
80793         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80794         !HAVE_DECL_GETENV.
80795         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80796         (__strndup): Revert to K&R-style function dfns, the glibc style.
80797         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80798         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80799         Include strnlen.h first, to get prototype properly.
80800         (strnlen): Renamed from __strnlen.
80801         Remove weak alias.
80802
80803 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80804
80805         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80806
80807 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80808
80809         * config/srclist.txt: Adjust to reflect glibc reorganization.
80810         This affects only comments.
80811
80812 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80813
80814          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80815          Reported by Bruce Korb <bkorb@gnu.org>.
80816
80817 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80818
80819         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80820         to pacify gcc -Wswitch-default.
80821
80822 2006-01-22  Bruno Haible  <bruno@clisp.org>
80823
80824         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80825         temporary buffer for sprintf, take into account the precision also
80826         for 'd', 'i', 'u', 'o', 'x', 'X'.
80827
80828 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80829
80830         * modules/argp-tests: New module
80831         * tests/test-argp.c: New file
80832         * tests/test-argp-2.sh: New file
80833
80834 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80835
80836         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80837         (__argp_base_name): Removed
80838         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80839         typo.
80840         (__argp_base_name): Provide macro definition or extern declaration
80841         depending on the configuration
80842
80843 2006-01-20  Simon Josefsson  <jas@extundo.com>
80844
80845         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80846
80847 2006-01-20  Simon Josefsson  <jas@extundo.com>
80848
80849         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80850
80851 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80854         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80855         Suggested by Bruno Haible.
80856
80857 2006-01-20  Karl Berry  <karl@gnu.org>
80858
80859         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80860         until changes propagate, I guess.
80861
80862 2006-01-19  Simon Josefsson  <jas@extundo.com>
80863
80864         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80865
80866 2006-01-19  Simon Josefsson  <jas@extundo.com>
80867
80868         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80869
80870 2006-01-19  Simon Josefsson  <jas@extundo.com>
80871
80872         * gnulib-tool: Set check_PROGRAMS.
80873
80874         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80875         modules/des-tests, modules/gc-arcfour-tests,
80876         modules/gc-arctwo-tests, modules/gc-des-tests,
80877         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80878         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80879         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80880         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80881         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80882         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80883         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80884         test_*_SOURCES.
80885
80886 2006-01-18  Simon Josefsson  <jas@extundo.com>
80887
80888         * modules/socklen (Depends-on): Depend on sys_socket.
80889
80890 2006-01-18  Simon Josefsson  <jas@extundo.com>
80891
80892         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80893         modules/des-tests, modules/gc-arcfour-tests,
80894         modules/gc-arctwo-tests, modules/gc-des-tests,
80895         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80896         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80897         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80898         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80899         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80900         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80901         $(EXEEXT) to automake TESTS variable, for mingw32.
80902
80903 2006-01-17  Simon Josefsson  <jas@extundo.com>
80904
80905         * modules/socklen (Include): Need sys/socket.h.
80906
80907 2006-01-17  Bruno Haible  <bruno@clisp.org>
80908
80909         * modules/ssize_t (Include): Add <sys/types.h>.
80910
80911 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80914         it's not portable and it doesn't work with cross-compiles.
80915         Problem reported by Bruno Haible.  Fix missing-$ typo in
80916         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80917         -zignore from being used with Sun's C compiler.
80918
80919 2006-01-12  Simon Josefsson  <jas@extundo.com>
80920
80921         * lib/base64.c: Fix warning, reported by Bruno Haible
80922         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80923
80924 2006-01-12  Bruno Haible  <bruno@clisp.org>
80925
80926         * modules/ldd: New file.
80927         * build-aux/ldd.sh.in: New file.
80928         * MODULES.html.sh (Support for building libraries and executables): Add
80929         ldd.
80930
80931 2006-01-12  Bruno Haible  <bruno@clisp.org>
80932
80933         * m4/ldd.m4: New file.
80934
80935 2006-01-12  Bruno Haible  <bruno@clisp.org>
80936
80937         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80938         endless loop while replacing $auxdir with build-aux.
80939
80940 2006-01-11  Simon Josefsson  <jas@extundo.com>
80941
80942         * lib/stdint_.h (SIZE_MAX): Add missing (.
80943
80944 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80945
80946         Sync from coreutils.
80947         * lib/md5.c: Fix commentary typos.
80948         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80949         * lib/md5.h (__attribute__): Remove; unused.
80950         * lib/sha1.c: Fix commentary to match md5 better.
80951         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80952         so that we don't need to worry about alignment.  All uses changed.
80953         This merges the 2005-10-28 md5 change into sha1.
80954
80955 2006-01-11  Jim Meyering  <jim@meyering.net>
80956
80957         Sync from coreutils.
80958         * lib/md5.c (OP): Fix spacing.
80959
80960 2006-01-11  Bruno Haible  <bruno@clisp.org>
80961
80962         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80963         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80964         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80965
80966 2006-01-11  Bruno Haible  <bruno@clisp.org>
80967
80968         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80969         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80970         the "early" section as well.
80971
80972 2006-01-11  Bruno Haible  <bruno@clisp.org>
80973
80974         Avoid "ar: no archive members specified" error on MacOS X.
80975         * gnulib-tool (func_modules_add_dummy): New function.
80976         (func_import, func_create_testdir): Invoke it.
80977
80978 2006-01-11  Bruno Haible  <bruno@clisp.org>
80979
80980         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80981         with $auxdir in AC_CONFIG_FILES statements.
80982
80983 2006-01-11  Bruno Haible  <bruno@clisp.org>
80984
80985         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80986         Initialize also noinst_HEADERS to empty.
80987
80988 2006-01-11  Bruno Haible  <bruno@clisp.org>
80989
80990         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80991         variables.
80992         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80993         autoreconf.
80994
80995 2006-01-11  Bruno Haible  <bruno@clisp.org>
80996
80997         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80998         overridable by the user.
80999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81000
81001 2006-01-10  Simon Josefsson  <jas@extundo.com>
81002
81003         * modules/sys_socket: New file.
81004
81005 2006-01-10  Simon Josefsson  <jas@extundo.com>
81006
81007         * m4/sys_socket_h.m4: New file.
81008
81009 2006-01-10  Simon Josefsson  <jas@extundo.com>
81010
81011         * lib/socket_.h: New file.
81012
81013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81014
81015         * modules/readutmp (Maintainer): Add myself.
81016
81017 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81020         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81021         People who are still concerned with buggy memcmp implementations
81022         can invoke gl_FUNC_MEMCMP themselves.
81023
81024 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * lib/regex_internal.h (BITSET_WORD_BITS):
81027         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81028         preprocessor mishandles large unsigned values as if they were signed.
81029         Problem reported by Claudio Fontana in
81030         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81031
81032 2006-01-10  Jim Meyering  <jim@meyering.net>
81033
81034         Avoid the double-free (first in fts_read, second in fts_close) that
81035         would occur when an `active' directory is made inaccessible (e.g.,
81036         via chmod a-x) during a traversal.
81037         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81038         before returning.  Reproduce this failure by
81039         mkdir -p a/b; cd a; chmod a-x . b
81040         Reported by Stavros Passas.
81041
81042         Sync from coreutils.
81043         * lib/sha1.c: Tweak grammar in a comment.
81044
81045 2006-01-10  Jim Meyering  <jim@meyering.net>
81046
81047         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81048         Patch by Joerg Sonnenberger.
81049
81050 2006-01-10  Bruno Haible  <bruno@clisp.org>
81051
81052         * modules/readutmp: Depend on module free.
81053         * modules/strtok_r: Depend on module restrict.
81054
81055 2006-01-10  Bruno Haible  <bruno@clisp.org>
81056
81057         * modules/gettext (configure.ac): Add an invocation of
81058         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81059
81060 2006-01-10  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81063         Reported by Werner Lemberg <wl@gnu.org>.
81064
81065 2006-01-10  Bruno Haible  <bruno@clisp.org>
81066
81067         * lib/localcharset.c: Update from GNU gettext.
81068
81069 2006-01-10  Bruno Haible  <bruno@clisp.org>
81070
81071         * lib/argp.h (__const): Remove macro. Use const instead.
81072         * lib/argp-fmtstream.h (__const): Likewise.
81073         * lib/glob_.h (__const): Remove macro.
81074         * lib/glob-libc.h: Use const instead of __const.
81075
81076 2006-01-10  Bruno Haible  <bruno@clisp.org>
81077
81078         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81079         variable.
81080         Needed to avoid an automake error regarding the 'gettext' module.
81081
81082 2006-01-09  Simon Josefsson  <jas@extundo.com>
81083
81084         * modules/inet_ntop (Depends-on): Add restrict.
81085
81086 2006-01-09  Simon Josefsson  <jas@extundo.com>
81087
81088         * modules/gc-rijndael-tests (License): Put under LGPL.
81089
81090         * modules/gc-des-tests (License): Likewise.
81091
81092         * modules/gc-arcfour-tests (License): Likewise.
81093
81094         * modules/gc-arctwo-tests (License): Likewise.
81095
81096         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81097
81098         * modules/gc-hmac-sha1-tests (Files): Likewise.
81099
81100         * modules/gc-hmac-md5-tests (License): Likewise.
81101
81102         * modules/gc-sha1-tests (License): Likewise.
81103
81104         * modules/gc-md5-tests (License): Likewise.
81105
81106         * modules/gc-md4-tests (License): Likewise.
81107
81108         * modules/gc-md2-tests (License): Likewise.
81109
81110         * modules/gc-tests (License): Likewise.
81111
81112         * modules/des-tests (License): Likewise.
81113
81114         * modules/md4-tests (License): Likewise.
81115
81116         * modules/md2-tests (License): Likewise.
81117
81118 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81119
81120         Sync from coreutils:
81121
81122         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81123         * modules/lib-ignore: New file.
81124         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81125         chdir-safer.m4, lchmod.m4.
81126         * modules/openat: Add mkdirat.c, openat-priv.h.
81127
81128 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         Sync from coreutils.
81131         * m4/lib-ignore.m4: New file.
81132         * m4/lchmod.m4: New file.
81133
81134 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         Sync from coreutils.
81137         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81138         for write access: POSIX says that must fail.
81139         * lib/fts.c (diropen): Likewise.
81140         * lib/save-cwd.c (save_cwd): Likewise.
81141         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81142         well, for minor improvements on hosts that lack O_DIRECTORY.
81143         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81144         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81145         Fall back on chown if open failed with EACCES.
81146
81147         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81148         Report an error at compile-time if only a 1-second nominal clock
81149         resolution is found.
81150
81151         * lib/lchmod.h: New file.
81152         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81153         (make_dir_parents): Use lchown rather than chown, and
81154         lchmod rather than chmod.
81155
81156         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81157         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81158         "proc" reported by n0dalus.
81159
81160         * lib/mountlist.c: Include <limits.h>.
81161         (dev_from_mount_options)
81162         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81163         New function.  It no longer assumes "dev=" has the System V meaning
81164         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81165         (read_file_system_list)
81166         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81167         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81168         dev= in that case.
81169
81170         * lib/posixtm.h (PDS_PRE_2000): New macro.
81171         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81172         allow_century.  All usages changed.  Reject dates outside the range
81173         1969-1999 if PDS_PRE_2000 is used.
81174
81175 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81176
81177         Sync from coreutils.
81178         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81179         (Time of day items): Mention the possibility of leap seconds.
81180         Problem reported by Dr. David Alan Gilbert.
81181
81182 2006-01-09  Jim Meyering  <jim@meyering.net>
81183
81184         Sync from coreutils.
81185
81186         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81187
81188         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81189
81190         * lib/modechange.c (mode_compile): Reject an invalid mode string
81191         that starts with an octal digit.  From Andreas Gruenbacher.
81192
81193         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81194         and dup to open_safer and dup_safer, respectively.
81195         (openat_permissive): Fix typo in comment.
81196
81197         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81198         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81199         (_): Remove; no longer needed.
81200         (openat): Renamed from rpl_openat; no need for rpl_openat
81201         since openat.h renames openat for us.
81202         Replace most of the body with a call to openat_permissive,
81203         to avoid duplicate code.
81204         Port to (probably hypothetical) environments were mode_t is
81205         wider than int.
81206         (openat_permissive): Require mode arg, so that we can check
81207         types better.  Put it just after flags.  Change cwd failure
81208         indicator from pointer-to-bool to pointer-to-errno-value.
81209         All callers changed.
81210         Invoke openat_save_fail and/or openat_restore_fail if
81211         cwd_errno is null, so that openat can call us.
81212         (openat_permissive, fdopendir, fstatat, unlinkat):
81213         Simplify errno handling to avoid some duplicate code,
81214         as it's OK to set errno on success.
81215         * lib/openat.h: Revamp code so that function macros depend on
81216         __OPENAT_PREFIX only, not also on AT_FDCWD.
81217         (openat_ro): Remove.  Caller changed to use openat_permissive.
81218         (openat_permissive): Now a macro, if not a function.
81219         (openat_restore_fail, openat_save_fail): Now always functions,
81220         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81221
81222         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81223         and openat.c.
81224         * lib/mkdirat.c: Include openat-priv.h.
81225         Remove definitions of macros defined therein.
81226         * lib/openat.c: Likewise.
81227
81228         * lib/mkdirat.c (mkdirat): New file and function.
81229         * lib/openat.h (mkdirat): Declare.
81230
81231         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81232
81233         * lib/openat.h (openat_permissive): Declare.
81234         (openat_ro): Define.
81235
81236         * lib/openat.c (EXPECTED_ERRNO): New macro.
81237         (openat_permissive): New function -- used in remove.c rewrite.
81238         (all functions): Set errno just before returning, only if there
81239         was an actual failure.
81240         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81241
81242         Emulate openat-family functions using Linux's procfs, if possible.
81243         Idea and some code based on Ulrich Drepper's glibc changes.
81244
81245         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81246         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81247         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81248         before falling back on save_cwd and restore_cwd.
81249         (fdopendir, fstatat, unlinkat): Likewise.
81250
81251         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81252         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81253
81254         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81255         as second argument to va_arg.  Otherwise, some versions of gcc
81256         warn that `if this code is reached, the program will abort'.
81257
81258 2006-01-09  Jim Meyering  <jim@meyering.net>
81259
81260         Sync from coreutils.
81261         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81262         Require openat-priv.h.
81263
81264 2006-01-09  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/strnlen (Include): Use strnlen.h.
81267
81268 2006-01-09  Bruno Haible  <bruno@clisp.org>
81269
81270         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81271
81272 2006-01-09  Bruno Haible  <bruno@clisp.org>
81273
81274         * lib/sysexit_.h (EX_OK): New macro.
81275         Suggested by Martin Lambers <marlam@marlam.de>.
81276
81277 2006-01-09  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81280         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81281
81282 2006-01-09  Bruno Haible  <bruno@clisp.org>
81283
81284         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81285         numbers.
81286
81287 2006-01-09  Bruno Haible  <bruno@clisp.org>
81288
81289         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81290         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81291         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81292         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81293
81294 2006-01-09  Bruno Haible  <bruno@clisp.org>
81295
81296         * build-aux/javacomp.sh.in: New file, moved from lib/.
81297         * modules/javacomp-script (Files): Update.
81298         (configure.ac): Add AC_CONFIG_FILES invocation.
81299         (EXTRA_DIST): Remove variable.
81300
81301         * build-aux/javaexec.sh.in: New file, moved from lib/.
81302         * modules/javaexec (Files): Update.
81303         (configure.ac): Add AC_CONFIG_FILES invocation.
81304         (EXTRA_DIST): Remove javaexec.sh.in.
81305
81306         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81307         * modules/csharpcomp-script (Files): Update.
81308         (configure.ac): Add AC_CONFIG_FILES invocation.
81309         (EXTRA_DIST): Remove variable.
81310
81311         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81312         * modules/csharpexec (Files): Update.
81313         (configure.ac): Add AC_CONFIG_FILES invocation.
81314         (EXTRA_DIST): Remove csharpexec.sh.in.
81315
81316 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81317
81318         Sync from coreutils.
81319
81320         Add POSIX ACL support
81321         * lib/acl.h (copy_acl, set_acl): Add declarations.
81322         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81323         systems other than Linux.
81324         (chmod_or_fchmod): New function: use fchmod when possible,
81325         and chmod otherwise.
81326         (file_has_acl): Add a POSIX ACL implementation, with a
81327         Linux-specific subcase.
81328         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81329         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81330         acls are unsupported.
81331         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81332         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81333         are unsupported.
81334
81335 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81336
81337         Sync from coreutils.
81338         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81339
81340 2006-01-07  Bruno Haible  <bruno@clisp.org>
81341
81342         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81343         gl_EARLY.
81344
81345 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81346
81347         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81348         Problem reported for Mingw by Mark Junker.
81349
81350 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81351
81352         * README: Gnulib normally doesn't generate a tarball.
81353
81354 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81357         long int, not int, for nanosecond counts, so that people who are
81358         used to POSIX struct timespec won't be surprised.  Reported by Jim
81359         Meyering.
81360
81361 2005-12-28  Bruno Haible  <bruno@clisp.org>
81362
81363         * build-aux/config.rpath: Update from GNU gettext.
81364
81365 2005-12-16  Jim Meyering  <jim@meyering.net>
81366
81367         * modules/fprintftime: New module.
81368         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81369
81370 2005-12-16  Jim Meyering  <jim@meyering.net>
81371
81372         * m4/fprintftime.m4: New file.
81373
81374 2005-12-16  Jim Meyering  <jim@meyering.net>
81375
81376         * lib/fprintftime.c, lib/fprintftime.h: New files.
81377
81378 2005-12-15  Simon Josefsson  <jas@extundo.com>
81379
81380         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81381         new m4/socklen.m4.
81382
81383 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81384
81385         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81386         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81387
81388 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81389
81390         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81391         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81392         struct uparams is valid. Fall back to the default values if it is
81393         not.
81394
81395 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81396
81397         * modules/argp (Files): Add argp-pin.c
81398         (Depends-on): dirname
81399         (lib_SOURCES): Add argp-pin.c
81400
81401 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81402
81403         * m4/argp.m4:  Check if program_invocation_name and
81404         program_invocation_short_name are declared and define appropriate
81405         macros if they are not.
81406
81407 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81408
81409         * lib/argp-help.c (__argp_base_name): New function
81410         (__argp_short_program_name): Rewrite using __argp_base_name
81411         * lib/argp-namefrob.h: Define program_invocation_name and
81412         program_invocation_short_name if requested
81413         (__argp_base_name): Add prototype
81414         * lib/argp-parse.c (argp_def): Use gettext wrappers
81415         (argp_default_parser): Use __argp_base_name
81416         * lib/argp-pin.c: New file. Defines program_invocation_name and
81417         program_invocation_short_name on systems that lack them.
81418
81419 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81420
81421         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81422         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81423         porting problem reported by Georg Schwarz in
81424         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81425
81426 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81429         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81430         porting problem reported by Georg Schwarz in
81431         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81432
81433 2005-12-05  Bruno Haible  <bruno@clisp.org>
81434
81435         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81436         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81437         Reported by Mark Junker <mjscod@gmx.de>.
81438
81439 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81442         Use implementation from Albert Chin, with some
81443         comments/corrections by Stepan Kasal and myself.
81444
81445 2005-12-02  Bruno Haible  <bruno@clisp.org>
81446
81447         * gnulib-tool (func_import): Accept GPLed build tool modules when
81448         --lgpl is given.
81449         * modules/csharpcomp-script: New file.
81450         * modules/csharpcomp: Depend on it.
81451         * modules/javacomp-script: New file.
81452         * modules/javacomp: Depend on it.
81453         Suggested by Simon Josefsson.
81454
81455 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81456
81457         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81458         statement, to work around an HP-UX 10.20 compiler bug reported by
81459         Peter O'Gorman.
81460
81461 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * modules/savedir (Depends-on): Add openat.
81464
81465 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81466
81467         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81468         (uintmax_t) [defined uintmax_t]: Do not declare.
81469         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81470         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81471         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81472         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81473         sake of portability to weird hosts that C allows (though we don't
81474         know of any practical examples).
81475
81476         * lib/savedir.h (fdsavedir): New decl.
81477         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81478         contains most of the former guts of savedir.
81479         (savedir): Use savedirstream.
81480         Include "openat.h".
81481
81482 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * modules/obstack (Files): Add m4/ulonglong.m4.
81485         Problem reported by Davide Angelocola.
81486
81487 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81490         coreutils no longer futzes with rounding modes.
81491
81492 2005-11-14  Jim Meyering  <jim@meyering.net>
81493
81494         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81495         replacement of mkstemp.
81496
81497 2005-11-10  Simon Josefsson  <jas@extundo.com>
81498
81499         * lib/readline.c: Remove EOL.
81500
81501 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81502
81503         * modules/gethrxtime (Depends-on): Add gettime.
81504
81505 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81506
81507         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81508         or gettimeofday; no longer needed.
81509
81510 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81511
81512         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81513         time business.
81514         (gethrxtime) [! (HAVE_NANOUPTIME
81515         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81516         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81517         our own approximation.
81518
81519 2005-11-08  Eric Blake  <ebb9@byu.net>
81520
81521         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81522
81523 2005-11-08  Eric Blake  <ebb9@byu.net>
81524
81525         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81526
81527 2005-11-04  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool: Implement --update mode.
81530
81531 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         Fix porting problem reported by Theodoros V. Kalamatianos.
81534         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81535         Don't assume that futimes failing means we must fail.
81536
81537 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81540         variables to suggest the intended function of the PATH_MAX check.
81541
81542 2005-10-30  Kean Johnston  <jkj@sco.com>
81543
81544         Trivial changes to support SCO systems.
81545         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81546         as PATH_MAX.
81547         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81548         where __ptr is null when no I/O is pending.
81549
81550 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81553         leave errno alone.  Problem reported by Dmitry V. Levin.
81554
81555 2005-10-28  Simon Josefsson  <jas@extundo.com>
81556
81557         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81558         Test more.
81559
81560         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81561
81562         * modules/md2, modules/md2-tests: New files.
81563
81564 2005-10-28  Simon Josefsson  <jas@extundo.com>
81565
81566         * m4/inet_ntop.m4: More tests.
81567
81568         * m4/gc-md2.m4, md2.m4: New file.
81569
81570 2005-10-28  Simon Josefsson  <jas@extundo.com>
81571
81572         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81573         "restrict" keywords, as per POSIX.  Protect the function
81574         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81575         Don't use K&R prototypes.  Check the sprintf return values.
81576         Re-define EAFNOSUPPORT if not present.  Indent.
81577
81578         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81579         suggested by Bruno Haible <bruno@clisp.org>.
81580
81581         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81582
81583         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81584
81585         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81586         libgcrypt).
81587
81588         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81589
81590         * lib/md2.h, lib/md2.c: New files.
81591
81592 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81595         errno alone.  Problem reported by Frederic Jolliton.
81596
81597 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         * modules/verify (License): Change from GPL to LGPL.  This is a
81600         tiny module and there are apparently near-equivalents that are
81601         under the BSD license.
81602
81603 2005-10-24  Simon Josefsson  <jas@extundo.com>
81604
81605         * modules/sha1: Relicense to LGPL.
81606
81607 2005-10-24  Simon Josefsson  <jas@extundo.com>
81608
81609         * lib/md4.h: Shrink buffer size, now that we changed the type.
81610
81611 2005-10-23  Simon Josefsson  <jas@extundo.com>
81612
81613         * gnulib-tool (func_import): Fix --tests-base.
81614
81615 2005-10-22  Simon Josefsson  <jas@extundo.com>
81616
81617         * modules/arcfour (Depends-on): Need stdint.
81618
81619 2005-10-22  Simon Josefsson  <jas@extundo.com>
81620
81621         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81622         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81623
81624 2005-10-22  Simon Josefsson  <jas@extundo.com>
81625
81626         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81627         suggested by Bruno Haible <bruno@clisp.org>.
81628
81629 2005-10-22  Simon Josefsson  <jas@extundo.com>
81630
81631         * lib/crc.h: Include stddef.h, for size_t.
81632
81633 2005-10-22  Simon Josefsson  <jas@extundo.com>
81634
81635         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81636         arcfour_context struct (simplify test vector testing in GNU
81637         Shishi).
81638
81639 2005-10-21  Simon Josefsson  <jas@extundo.com>
81640
81641         * modules/des, modules/des-tests: New files.
81642
81643         * modules/gc-des, modules/gc-des-tests: New files.
81644
81645         * tests/test-des.c, tests/test-gc-des.c: New file.
81646
81647 2005-10-21  Simon Josefsson  <jas@extundo.com>
81648
81649         * modules/arctwo, modules/arctwo-tests: New files.
81650
81651         * tests/test-arctwo.c: New file.
81652
81653         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81654
81655         * tests/test-gc-arctwo.c: New file.
81656
81657 2005-10-21  Simon Josefsson  <jas@extundo.com>
81658
81659         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81660         Bruno Haible <bruno@clisp.org>.
81661
81662         * m4/gc-des.m4: New file.
81663
81664 2005-10-21  Simon Josefsson  <jas@extundo.com>
81665
81666         * m4/arctwo.m4: New file.
81667
81668         * m4/gc-arctwo.m4: New file.
81669
81670 2005-10-21  Simon Josefsson  <jas@extundo.com>
81671
81672         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81673         block.
81674
81675 2005-10-21  Simon Josefsson  <jas@extundo.com>
81676
81677         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81678         <bruno@clisp.org>.
81679
81680         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81681
81682         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81683         Bruno Haible <bruno@clisp.org>.
81684
81685         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81686         <bruno@clisp.org>.
81687
81688 2005-10-21  Simon Josefsson  <jas@extundo.com>
81689
81690         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81691
81692 2005-10-21  Simon Josefsson  <jas@extundo.com>
81693
81694         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81695
81696 2005-10-21  Simon Josefsson  <jas@extundo.com>
81697
81698         * lib/des.h, lib/des.c: New files.
81699
81700         * lib/gc-gnulib.c: Support DES.c
81701
81702 2005-10-21  Simon Josefsson  <jas@extundo.com>
81703
81704         * lib/arctwo.h, lib/arctwo.c: New files.
81705
81706         * lib/gc-gnulib.c: Support ARCTWO.
81707
81708 2005-10-21  Simon Josefsson  <jas@extundo.com>
81709
81710         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81711         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81712
81713 2005-10-21  Simon Josefsson  <jas@extundo.com>
81714
81715         * gnulib-tool (func_import, func_create_testdir): Define automake
81716         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81717         Makefile.am snippet),
81718         suggested by Bruno Haible <bruno@clisp.org>.
81719
81720         * modules/gc (Makefile.am): Use it.
81721
81722 2005-10-21  Bruno Haible  <bruno@clisp.org>
81723
81724         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81725         patch.
81726
81727 2005-10-19  Simon Josefsson  <jas@extundo.com>
81728
81729         * tests/test-gc-rijndael.c: New file.
81730
81731         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81732
81733 2005-10-19  Simon Josefsson  <jas@extundo.com>
81734
81735         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81736         interface too.
81737
81738 2005-10-19  Simon Josefsson  <jas@extundo.com>
81739
81740         * tests/test-gc-arcfour.c: New file.
81741
81742         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81743
81744 2005-10-19  Simon Josefsson  <jas@extundo.com>
81745
81746         * modules/gc-md4, modules/gc-md4-tests: New file.
81747
81748         * tests/test-gc-md4.c: New file.
81749
81750 2005-10-19  Simon Josefsson  <jas@extundo.com>
81751
81752         * m4/gc-md4.m4: New file.
81753
81754 2005-10-19  Simon Josefsson  <jas@extundo.com>
81755
81756         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81757         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81758         <kasal@ucw.cz>.
81759
81760 2005-10-19  Simon Josefsson  <jas@extundo.com>
81761
81762         * m4/gc-arcfour.m4: New file.
81763
81764         * m4/gc-rijndael.m4: New file.
81765
81766 2005-10-19  Simon Josefsson  <jas@extundo.com>
81767
81768         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81769
81770 2005-10-19  Simon Josefsson  <jas@extundo.com>
81771
81772         * lib/gc-gnulib.c: Support ARCFOUR.
81773
81774 2005-10-19  Simon Josefsson  <jas@extundo.com>
81775
81776         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81777         support.
81778
81779         * lib/gc.h: Add ECB enum type.
81780
81781         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81782
81783 2005-10-18  Simon Josefsson  <jas@extundo.com>
81784
81785         * tests/test-md5.c: New file.
81786
81787         * modules/md5-tests: New file.
81788
81789 2005-10-18  Simon Josefsson  <jas@extundo.com>
81790
81791         * tests/test-md4.c: New file.
81792
81793         * modules/md4, modules/md4-tests: New files.
81794
81795 2005-10-18  Simon Josefsson  <jas@extundo.com>
81796
81797         * m4/md4.m4: New file.
81798
81799 2005-10-18  Simon Josefsson  <jas@extundo.com>
81800
81801         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81802
81803 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81804
81805         * gnulib-tool (func_create_testdir): Omit the second check whether
81806         BUILT_SOURCES in nonempty.
81807
81808 2005-10-17  Simon Josefsson  <jas@extundo.com>
81809
81810         * tests/test-rijndael.c: New file.
81811
81812 2005-10-17  Simon Josefsson  <jas@extundo.com>
81813
81814         * modules/sha1: Depend on stdint instead of md5.
81815
81816         * modules/md5: Depend on stdint, remove uint32_t.
81817
81818 2005-10-17  Simon Josefsson  <jas@extundo.com>
81819
81820         * modules/gc-sha1-tests: New file.
81821
81822         * tests/test-gc-sha1.c: New file.
81823
81824 2005-10-17  Simon Josefsson  <jas@extundo.com>
81825
81826         * m4/md5.m4: Remove call to uint32_t.m4.
81827
81828 2005-10-17  Simon Josefsson  <jas@extundo.com>
81829
81830         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81831
81832         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81833         md5.h.
81834
81835         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81836
81837         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81838
81839 2005-10-17  Simon Josefsson  <jas@extundo.com>
81840
81841         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81842
81843 2005-10-17  Simon Josefsson  <jas@extundo.com>
81844
81845         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81846
81847 2005-10-17  Simon Josefsson  <jas@extundo.com>
81848
81849         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81850
81851         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81852
81853 2005-10-17  Bruno Haible  <bruno@clisp.org>
81854
81855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81856         that it can also be used in a test.
81857
81858 2005-10-16  Bruno Haible  <bruno@clisp.org>
81859
81860         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81861         TESTS_ENVIRONMENT, so that individual tests can augment it.
81862
81863         * gnulib-tool (func_create_testdir): Use an intermediate target for
81864         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81865         macros, like $(ALLOCA_H), which cannot be passed through the command
81866         line.
81867
81868 2005-10-15  Simon Josefsson  <jas@extundo.com>
81869
81870         * modules/rijndael-tests: New file.
81871
81872         * modules/rijndael: New file.
81873
81874 2005-10-15  Simon Josefsson  <jas@extundo.com>
81875
81876         * m4/rijndael.m4: New file.
81877
81878 2005-10-15  Simon Josefsson  <jas@extundo.com>
81879
81880         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81881
81882         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81883
81884 2005-10-14  Simon Josefsson  <jas@extundo.com>
81885
81886         * tests/test-arcfour.c: New file.
81887
81888         * modules/arcfour, modules/arcfour-tests: New files.
81889
81890 2005-10-14  Simon Josefsson  <jas@extundo.com>
81891
81892         * m4/arcfour.m4: New file.
81893
81894 2005-10-14  Simon Josefsson  <jas@extundo.com>
81895
81896         * lib/arcfour.h, lib/arcfour.c: New files.
81897
81898 2005-10-14  Roland McGrath  <roland@redhat.com>
81899
81900         Import from libc.  [BZ #1331]
81901         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81902         macro argument.
81903         Reported by Matej Vela <vela@debian.org>.
81904
81905 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81906
81907         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81908         include <wchar.h>; no longer needed.
81909
81910 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81913
81914 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81915         and  Ulrich Drepper  <drepper@redhat.com>
81916
81917         Import from libc.
81918         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81919         instead of inline stream orientation test and two separate
81920         function calls.  Pay no attention to USE_IN_LIBIO.
81921
81922 2005-10-13  Simon Josefsson  <jas@extundo.com>
81923
81924         * modules/gc-hmac-md5-tests: New file.
81925
81926         * tests/test-gc-hmac-sha1.c: New file.
81927
81928         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81929
81930         * modules/gc-hmac-md5-tests: New file.
81931
81932         * tests/test-gc-md5.c: New file.
81933
81934         * modules/gc-md5-tests: New file.
81935
81936 2005-10-13  Simon Josefsson  <jas@extundo.com>
81937
81938         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81939         Move memory allocation outside of loop.
81940
81941 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81944         intermediate directory is in a read-only file system.  Problem
81945         reported by Eric Blake.
81946
81947 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81948
81949         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81950
81951 2005-10-12  Simon Josefsson  <jas@extundo.com>
81952
81953         * tests/test-hmac-sha1.c: New file.
81954
81955         * modules/hmac-sha1-tests: New file.
81956
81957         * modules/hmac-sha1: New file.
81958
81959 2005-10-12  Simon Josefsson  <jas@extundo.com>
81960
81961         * modules/gc-sha1: New file.
81962
81963 2005-10-12  Simon Josefsson  <jas@extundo.com>
81964
81965         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81966
81967         * tests/test-gc-pbkdf2-sha1.c: New file.
81968
81969 2005-10-12  Simon Josefsson  <jas@extundo.com>
81970
81971         * modules/gc-md5, modules/gc-hmac-md5: New files.
81972
81973         * modules/gc (Files): Remove md5, memxor and hmac files.
81974
81975 2005-10-12  Simon Josefsson  <jas@extundo.com>
81976
81977         * m4/gc-pbkdf2-sha1.m4: New file.
81978
81979         * m4/gc-hmac-sha1.m4: New file.
81980
81981         * m4/gc-sha1: New file.
81982
81983         * m4/hmac-sha1.m4: New file.
81984
81985 2005-10-12  Simon Josefsson  <jas@extundo.com>
81986
81987         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81988
81989         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81990
81991 2005-10-12  Simon Josefsson  <jas@extundo.com>
81992
81993         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81994         suggested by Bruno Haible <bruno@clisp.org>.
81995
81996 2005-10-12  Simon Josefsson  <jas@extundo.com>
81997
81998         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81999
82000 2005-10-12  Simon Josefsson  <jas@extundo.com>
82001
82002         * lib/gc-pbkdf2-sha1.c: New file.
82003
82004         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82005
82006 2005-10-12  Simon Josefsson  <jas@extundo.com>
82007
82008         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82009
82010         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82011
82012 2005-10-12  Simon Josefsson  <jas@extundo.com>
82013
82014         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82015         GC_USE_HMAC_MD5, respectively.
82016
82017         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82018         (gc_md5): Fix typo.
82019
82020         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82021
82022         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82023
82024         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82025
82026 2005-10-12  Bruno Haible  <bruno@clisp.org>
82027
82028         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82029         Reported by Stepan Kasal <kasal@ucw.cz>.
82030
82031 2005-10-11  Simon Josefsson  <jas@extundo.com>
82032
82033         * tests/test-crc.c: New file.
82034
82035         * modules/crc, modules/crc-tests: New files.
82036
82037 2005-10-11  Simon Josefsson  <jas@extundo.com>
82038
82039         * m4/crc.m4: New file.
82040
82041 2005-10-11  Simon Josefsson  <jas@extundo.com>
82042
82043         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82044
82045         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82046
82047         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82048
82049 2005-10-11  Simon Josefsson  <jas@extundo.com>
82050
82051         * lib/crc.h, lib/crc.c: New files.
82052
82053         * lib/gc.h (gc_hash_buffer): Add doc.
82054
82055 2005-10-11  Bruno Haible  <bruno@clisp.org>
82056
82057         * modules/c-strcasestr: New file.
82058         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82059
82060 2005-10-11  Bruno Haible  <bruno@clisp.org>
82061
82062         * modules/c-strcase: New file.
82063         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82064
82065 2005-10-11  Bruno Haible  <bruno@clisp.org>
82066
82067         * lib/strcasecmp.c: Include limits.h.
82068         (strcasecmp): Avoid integer overflow on exotic platforms.
82069         * lib/strncasecmp.c: Include limits.h.
82070         (strncasecmp): Avoid integer overflow on exotic platforms.
82071         Reported by Paul Eggert.
82072
82073 2005-10-11  Bruno Haible  <bruno@clisp.org>
82074
82075         * lib/c-strcasestr.h: New file, from GNU gettext.
82076         * lib/c-strcasestr.c: New file, from GNU gettext.
82077
82078 2005-10-11  Bruno Haible  <bruno@clisp.org>
82079
82080         * lib/c-strcase.h: New file, from GNU gettext.
82081         * lib/c-strcasecmp.c: New file, from GNU gettext.
82082         * lib/c-strncasecmp.c: New file, from GNU gettext.
82083
82084 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         * modules/mempcpy (License): GPL -> LGPL.
82087         * modules/strchrnul (License): Likewise.
82088         * modules/sysexits (License): Likewise.
82089
82090 2005-10-08  Simon Josefsson  <jas@extundo.com>
82091
82092         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82093
82094 2005-10-07  Simon Josefsson  <jas@extundo.com>
82095
82096         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82097
82098 2005-10-06  Simon Josefsson  <jas@extundo.com>
82099
82100         * tests/test-hmac-md5.c: New file.
82101
82102         * modules/hmac-md5-tests: New file.
82103
82104         * modules/hmac-md5: New file.
82105
82106 2005-10-06  Simon Josefsson  <jas@extundo.com>
82107
82108         * m4/hmac-md5.m4: New file.
82109
82110         * m4/memxor.m4: Require gl_C_RESTRICT.
82111
82112 2005-10-06  Simon Josefsson  <jas@extundo.com>
82113
82114         * lib/memxor.c (memxor): Avoid casts and warnings.
82115
82116 2005-10-06  Simon Josefsson  <jas@extundo.com>
82117
82118         * lib/hmac-md5.c: New file.
82119
82120         * lib/hmac.h: New file.
82121
82122 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82123
82124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82125         promotes to int, not unsigned int, to catch the AIX 5.3
82126         compiler bug.
82127
82128 2005-10-05  Simon Josefsson  <jas@extundo.com>
82129
82130         * modules/memxor: New file.
82131
82132         * modules/iconv (Files): Move config.rpath to havelib, it is used
82133         there.
82134
82135         * modules/havelib (Files): Add config.rpath.
82136
82137 2005-10-05  Simon Josefsson  <jas@extundo.com>
82138
82139         * m4/memxor.m4: New file.
82140
82141 2005-10-05  Simon Josefsson  <jas@extundo.com>
82142
82143         * lib/memxor.c (memxor): Fix compiler error.
82144
82145         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82146         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82147
82148         * lib/memxor.h, lib/memxor.c: New files.
82149
82150         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82151         we assume all systems have it, suggested by Jim Meyering
82152         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82153         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82154         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82155         same reasons.
82156
82157 2005-10-05  Simon Josefsson  <jas@extundo.com>
82158
82159         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82160
82161 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82164         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82165         needed, since the source code now assumes these .h files.
82166
82167 2005-10-05  Derek Price  <derek@ximbiot.com>
82168
82169         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82170
82171 2005-10-05  Bruno Haible  <bruno@clisp.org>
82172
82173         * modules/stdint (License): Change to LGPL.
82174
82175 2005-10-04  Simon Josefsson  <jas@extundo.com>
82176
82177         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82178         D. Baushke" <mdb@gnu.org>.
82179
82180 2005-10-04  Bruno Haible  <bruno@clisp.org>
82181
82182         * lib/verify.h (verify_true): Provide alternative definition for C++.
82183
82184 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82187         (SSIZE_MAX): New macro, if not already defined.
82188         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82189         than 2 GiB.
82190
82191 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         Sync from coreutils.
82194         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82195         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82196         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82197         ULLONG_MAX doesn't work with 2.7.2.1.
82198
82199 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82202         From Ben Pfaff.
82203
82204         * modules/exclude (Depends-on): Depend on verify.
82205         * modules/strtoimax (Depends-on): Likewise.
82206         * modules/utimecmp (Depends-on): Likewise.
82207
82208 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * lib/exclude.c: Include verify.h.
82211         (verify): Remove.  All callers changed to use verify.h's version.
82212         * lib/strtoimax.c: Likewise.
82213         * lib/utimecmp.c: Likewis.e
82214
82215         Sync from coreutils.
82216         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82217         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82218         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82219         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82220         bother returning ENOSYS if settimeofday or stime fails; just let
82221         them return whatever errno they want to return.
82222         * lib/utimens.c: Include unistd.h, for dup2.
82223         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82224         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82225
82226 2005-10-02  Jim Meyering  <jim@meyering.net>
82227
82228         Sync from coreutils.
82229         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82230         from glibc-2.2.5 that fails for read-only files.
82231
82232 2005-10-02  Jim Meyering  <jim@meyering.net>
82233
82234         Sync from coreutils.
82235         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82236         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82237         `#if HAVE_CONFIG_H'.
82238         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82239         Remove AT_FDCWD test.
82240         Do not consume the fd unless successful.
82241         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82242         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82243         block, so that we don't even try to compile it if settimeofday is
82244         available.  This works around a compilation failure on OSF1 V5.1,
82245         due to stime requiring a `long int*' while tv_sec is `int'.
82246
82247 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82248
82249         Sync from coreutils.
82250         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82251         against `yes', rather than just testing for nonempty.
82252
82253 2005-10-01  Simon Josefsson  <jas@extundo.com>
82254
82255         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82256         and Darwin.
82257
82258         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82259         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82260         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82261         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82262         Check if struct addrinfo is declared.
82263
82264 2005-10-01  Simon Josefsson  <jas@extundo.com>
82265
82266         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82267         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82268         AI_* and EAI_* definitions.  Protect function declarations.
82269
82270 2005-10-01  Jim Meyering  <jim@meyering.net>
82271
82272         Sync from coreutils.
82273
82274         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82275         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82276         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82278         in the inet and nsl libraries.  Required on Solaris 5.7.
82279
82280 2005-10-01  Jim Meyering  <jim@meyering.net>
82281
82282         Sync from coreutils.
82283         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82284         in the inet and nsl libraries.  Required on Solaris 5.7.
82285
82286 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82287
82288         * lib/getdelim.c (getdelim): Remove unused variables.
82289
82290 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82293         so that the code works even with ancient cpp.  Portability problem
82294         with GCC 2.7.2.1 reported by Thomas M.Ott.
82295
82296 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         * modules/regex (Depends-on): Add strcase.
82299
82300         * modules/gethostname (Licence): Change from GPL to LGPL, since
82301         gethostname.c is a trivial implementation of a standard library
82302         function.
82303         * modules/poll (License): Change from GPL to LGPL, since it's
82304         derived from LGPL code.
82305
82306 2005-09-27  Jim Meyering  <jim@meyering.net>
82307
82308         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82309         HAVE_CONFIG_H.
82310
82311         * lib/intprops.h (signed_type_or_expr__): Define.
82312         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82313         for unsigned types.
82314
82315 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/verify.h (verify_expr): Remove, replacing with:
82318         (verify_true): New macro that returns true instead of void.
82319         (verify_type__): Remove.
82320         (verify): Use verify_true rather than verify_type__.
82321
82322 2005-09-26  Bruno Haible  <bruno@clisp.org>
82323
82324         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82325         is necessary.
82326         (lib_SOURCES): Remove mbchar.c.
82327         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82328         (Files): Add m4/mbrtowc.m4.
82329         * modules/mbiter: Likewise.
82330         * modules/mbuiter: Likewise.
82331
82332 2005-09-26  Bruno Haible  <bruno@clisp.org>
82333
82334         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82335         compile mbchar.c if they are not both present.
82336         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82337         * m4/mbiter.m4 (gl_MBITER): Likewise.
82338         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82339         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82340         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82341
82342 2005-09-25  Jim Meyering  <jim@meyering.net>
82343
82344         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82345         also uses socklen_t.
82346
82347 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82348
82349         * lib/utimens.c (ENOSYS): Define if not already defined.
82350         (futimens): Support having a null PATH if the file descriptor
82351         is nonnegative.
82352
82353         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82354         Remove.
82355         (__attribute): Define to empty unless GCC 3.1 or later.
82356         This works around a core dump on OpenBSD 3.4, which has GCC
82357         2.95.3, which dumps core when given __attribute__(()).  It also
82358         simplifies other tests, since we really don't want to bother with
82359         worrying about which ancient version of GCC supported what.
82360         Original problem reported by Yoann Vandoorselaere, with part of
82361         the fix suggested by Derek Price.
82362
82363 2005-09-24  Jim Meyering  <jim@meyering.net>
82364
82365         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82366         so we can once again use a positive bitfield width of 1 -- now we
82367         don't have to explain why we were using a bitfield width of 2.
82368
82369 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82370
82371         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82372         and similarly for the other external symbols.  Problem reported
82373         by James Gallager.
82374
82375         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82376         bug reported by Jim Meyering.
82377
82378         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82380         not needed, since socklen is a prerequisite module.
82381
82382 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82385         Problem reported by Eric Blake.
82386         (getaddrinfo): Initialize se so that it's not garbage.
82387         Redo internal storage allocation so that it doesn't make unportable
82388         assumptions about alignment.
82389         Fix a memory leak.
82390
82391         * lib/utimens.c (futimens): Use futimesat if available.
82392         Prefer it to futimes since it doesn't have the futimes bug.
82393
82394         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82395         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82396         Instead, declare a function that returns a pointer to an array,
82397         and use verify_type__ to declare the size of the array.
82398         Problem and germ of a solution reported by Bruno Haible.
82399         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82400         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82401
82402 2005-09-23  Jim Meyering  <jim@meyering.net>
82403
82404         Sync from coreutils.
82405         Correct build failure (socklen_t not defined) on at least
82406         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82408
82409 2005-09-23  Jim Meyering  <jim@meyering.net>
82410
82411         * modules/getaddrinfo (Depends-on): Add socklen.
82412
82413 2005-09-23  Bruno Haible  <bruno@clisp.org>
82414
82415         * tests/test-verify.c: New file.
82416
82417 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82418
82419         Sync from coreutils.
82420
82421         * modules/argmatch (Depends-on): Add verify.
82422         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82423         unistd-safer.
82424         * modules/save-cwd (Depends-on): Likewise.
82425
82426         * modules/openat (Files): Add lib/openat-die.c.
82427         (Depends-on): Remove error, exitfail.
82428         Add dirname.
82429
82430         * modules/verify: New file.
82431         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82432         with "verify" module.
82433
82434 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82435
82436         Sync from coreutils.
82437
82438         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82439         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82440         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82441         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82442         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82443         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82444         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82445         Don't bother checking for string.h, stdlib.h, unistd.h.
82446         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82447         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82448         module's job.
82449         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82450         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82451
82452         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82453         (gl_GETDATE): Use it.
82454
82455         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82456
82457 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         Sync from coreutils.
82460
82461         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82462         stat-time.h.
82463         * lib/argmatch.h: Include verify.h
82464         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82465         (ARGMATCH_ASSERT): Remove; unused.
82466         * lib/canonicalize.c: Assume STDC_HEADERS.
82467         * lib/exclude.c: Include "strcase.h".
82468         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82469         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82470         and stdio-safer.h.
82471         (getusershell): Call fopen, not fopen_safer.
82472         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82473         Do not include unistd-safer.h.
82474         (save_cwd): Don't call fd_safer; no longer needed
82475         now that we include fcntl--.h.
82476
82477         * lib/getdate.y (relative_time): New type.
82478         (RELATIVE_TIME_0): New constant.
82479         (parser_control): Use relative_time instead of doing it ourselves.
82480         (%union): Add new relative_time rel member.
82481         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82482         Now typeless.
82483         (relunit, relunit_snumber): Now of type rel.
82484         (zone, rel, relunit, get_date): Adjust to above changes.
82485
82486         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82487         Do not include unistd-safer.h.
82488         (getloadavg): Don't call fd_safer; no longer needed
82489         now that we include fcntl--.h.
82490
82491         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82492         (make_dir_parents): Treat ENOSYS like EEXIST.
82493
82494         Improve quality of diagnostics on restore_cwd failure.
82495         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82496         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82497         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82498         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82499         each time through the loop.  Do not diagnose restore_cwd failure;
82500         that is the caller's job (and perhaps the caller does not care).
82501
82502         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82503         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82504         If the file already exists but is not a directory, don't bother
82505         to try to make its parents.
82506         Close potential file descriptor leak if we can't chdir("/") (!).
82507         Don't always return true if chdir($PWD) fails; return true only
82508         if the requested action was done successfully (except for the
82509         chdir($PWD)).
82510         Don't log final directory unless we actually made it.
82511         Refactor to avoid duplicate code to fix up permissions.
82512         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82513
82514         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82515         to make it a bit faster and (I hope) clearer.
82516         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82517         Fix bug in formats like %2N.
82518
82519         * lib/verify.h: New file.
82520
82521 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82522
82523         Sync from coreutils.
82524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82525
82526 2005-09-22  Jim Meyering  <jim@meyering.net>
82527
82528         Sync from coreutils.
82529
82530         * m4/lstat.m4 (gl_FUNC_LSTAT):
82531         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82532         Remove obsolete comment.
82533         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82534         * m4/xstrtod.m4: Likewise.
82535
82536         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82537
82538 2005-09-22  Jim Meyering  <jim@meyering.net>
82539
82540         Sync from coreutils.
82541
82542         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82543
82544         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82545         the .tm_year member, since otherwise gcc-4.0 would now warn about
82546         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82547
82548         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82549         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82550
82551         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82552         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82553         when run in a time zone for which daylight savings time is in effect
82554         for the starting date.
82555
82556         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82557         stop us from restricting permissions of just-created absolute-named
82558         directories.
82559         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82560         to restore initial working directory.
82561         * lib/mkdir-p.c (make_dir_parents): New parameter:
82562         different_working_dir, to tell caller if/when we change the working
82563         directory and are unable to return to the initial one.
82564         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82565         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82566         `return false'.  This fixes a bug introduced on 2004-07-30.
82567
82568         * lib/openat.c (fdopendir): Be sure to close the supplied
82569         file descriptor before returning.  This makes our replacement
82570         implementation a little closer to Solaris's, where fdopendir
82571         ties the file descriptor to the returned DIR* pointer.
82572         * lib/openat.c (unlinkat): New function.
82573         * lib/openat.h (unlinkat): Add prototype.
82574         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82575         (openat_restore_fail): Rename from openat_restore_die.
82576         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82577
82578         Provide an alternative to exiting immediately upon save_cwd or
82579         restore_cwd failure.  Now, an application can arrange e.g.,
82580         to perform a longjump in that case.
82581         * lib/openat.c: Include dirname.h.
82582         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82583         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82584         and openat_restore_die rather than calling error directly.
82585         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82586
82587         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82588         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82589         define.
82590
82591         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82592         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82593                             int utc, int nanoseconds);
82594         Background:
82595         date should not have to allocate a megabyte of virtual memory to
82596         handle a format argument like +%1048575T.  When implemented with
82597         strftime, it must allocate such a buffer, use strftime to fill it
82598         in, print it, then free it.
82599         With fprintftime, it simply prints everything and exits.
82600         With no need for memory allocation, that's one fewer way to fail.
82601         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82602         optional field width, not before, so we accept %9:z, not %:9z.
82603         (my_strftime): Be sure to use L_('x') for literals.
82604
82605         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82606         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82607         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82608         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82609         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82610         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82611         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82612         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82613         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82614         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82615         * lib/xgethostname.c, lib/xreadlink.c:
82616         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82617
82618         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82619         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82620         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82621         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82622         and don't include <sys/file.h>).
82623
82624 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82625
82626         Sync from coreutils.
82627
82628         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82629         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82630         [!LDAV_DONE]: Avoid unused variable warning.
82631
82632 2005-09-21  Bruno Haible  <bruno@clisp.org>
82633
82634         * lib/unicodeio.h (unicode_to_mb): New declaration.
82635
82636 2005-09-20  Derek Price  <derek@ximbiot.com>
82637
82638         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82639         getaddrinfo.h.
82640
82641 2005-09-20  Bruno Haible  <bruno@clisp.org>
82642
82643         * gnulib-tool: Remove trailing slashes from the values specified for
82644         --source-base, --m4-base, --tests-base, --aux-dir.
82645         Suggested by Simon Josefsson <jas@extundo.com>.
82646
82647 2005-09-20  Bruno Haible  <bruno@clisp.org>
82648
82649         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82650         func_modules_to_filelist, func_import, func_create_testdir): Make all
82651         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82652         change when gnulib-tool is invoked in a different locale.
82653
82654 2005-09-19  Simon Josefsson  <jas@extundo.com>
82655
82656         * m4/socklen.m4: Fix typo.
82657
82658 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82659
82660         Use a consistent style for including <config.h>.
82661         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82662         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82663         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82664         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82665         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82666         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82667         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82668         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82669         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82670         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82671         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82672         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82673         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82674         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82675         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82676         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82677         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82678         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82679         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82680         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82681         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82682         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82683         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82684         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82685         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82686         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82687         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82688         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82689         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82690         lib/xstrtoumax.c, lib/yesno.c:
82691         Standardize inclusion of config.h.
82692         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82693         lib/inttostr.h:  Removed inclusion of config.h from header files.
82694         * lib/inttostr.c:  Adjusted in-tree users.
82695         * lib/timespec.h: Remove superfluous warning to include config.h.
82696         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82697         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82698         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82699         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82700         config.h with HAVE_CONFIG_H.
82701
82702 2005-09-19  Jim Meyering  <jim@meyering.net>
82703
82704         * modules/pathmax (License): Change to LGPL.
82705
82706 2005-09-19  Derek Price  <derek@ximbiot.com>
82707
82708         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82709
82710 2005-09-19  Bruno Haible  <bruno@clisp.org>
82711
82712         * gnulib-tool (import): Provide default for --tests-base.
82713
82714 2005-09-19  Bruno Haible  <bruno@clisp.org>
82715
82716         * doc/quote.texi: New file, extracted from gnulib.texi.
82717         * doc/ctime.texi: New file, extracted from gnulib.texi.
82718         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82719         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82720         * doc/gnulib.texi: Include them.
82721
82722 2005-09-18  Bruno Haible  <bruno@clisp.org>
82723
82724         Portability fix.
82725         * gnulib-tool (func_readlink): New function.
82726         (func_ln_if_changed): Use it.
82727
82728 2005-09-18  Bruno Haible  <bruno@clisp.org>
82729
82730         * gnulib-tool: Support --with-tests also with --import.
82731         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82732         (func_import): Use variables $testsbase and $inctests. Emit a
82733         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82734         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82735         SUBDIRS += $testsdir.
82736         (func_create_testdir): Update.
82737
82738 2005-09-18  Bruno Haible  <bruno@clisp.org>
82739
82740         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82741         instead of $dry_run.
82742         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82743         (func_ln_if_changed): Don't handle dry-run here.
82744         (func_import): In dry-run mode, detect more precisely which actions
82745         would be performed, and don't use "...ing" verbs.
82746
82747 2005-09-18  Bruno Haible  <bruno@clisp.org>
82748
82749         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82750         (func_import): Use join on two temporary files instead of three nested
82751         loops, in order to determine which files are new or old.
82752
82753 2005-09-18  Bruno Haible  <bruno@clisp.org>
82754
82755         * gnulib-tool (func_import): Comment out code that spits out the
82756         new files with --dry-run.
82757
82758 2005-09-18  Bruno Haible  <bruno@clisp.org>
82759
82760         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82761
82762 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * lib/stat-time.h: New file.
82765         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82766         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82767         in a different way.
82768         (timespec_cmp): New function.
82769         * lib/utimecmp.c: Include stat-time.h.
82770         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82771         members exist, not on the obsolescent ST_MTIM_NSEC.
82772         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82773
82774 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82777
82778 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * MODULES.html.sh (File system functions): Add stat-time.
82781         * modules/stat-time: New file.
82782         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82783         is now done in a different way, by the stat-time module.
82784         * modules/utimecmp (Depends-on): Add stat-time.
82785
82786 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * m4/st_mtim.m4: Remove.  Superseded by...
82789         * m4/stat-time.m4: New file.
82790         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82791         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82792
82793 2005-09-15  Derek Price  <derek@ximbiot.com>
82794
82795         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82796
82797 2005-09-15  Derek Price  <derek@ximbiot.com>
82798
82799         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82800         * lib/regex_internal.c: Ditto, using this...
82801         (__GNUC_PREREQ): ...new macro.
82802         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82803         using...
82804         (__GNUC_PREREQ): ...this new macro.
82805
82806         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82807
82808 2005-09-15  Derek Price  <derek@ximbiot.com>
82809             Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82812         changes, consolidating in...
82813         * lib/regex_internal.h: ...this file.
82814
82815 2005-09-13  Jim Meyering  <jim@meyering.net>
82816
82817         * lib/canon-host.c: Filter through gnu indent and reword comments
82818         slightly.
82819         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82820
82821 2005-09-13  Derek Price  <derek@ximbiot.com>
82822
82823         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82824         failure.
82825         Reported by Jim Meyering  <jim@meyering.net>.
82826
82827 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82828
82829         * lib/base64.c: Typo.
82830         (base64_encode): Put b64str in initialized data section.
82831
82832 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         Merge glibc and coreutils changes into gnulib, plus a few
82835         extra fixes.
82836         * lib/md5.c: Use #error rather than a string.
82837         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82838         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82839         (__attribute__): Define to empty for non recent-GCC.
82840         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82841         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82842         Renamed from their non-__ counterparts, with new macros replacing
82843         them if not _LIBC.  Add __THROW attribute.
82844         (rol): Remove.
82845         (struct md5_ctx): Align buffer if using GCC.
82846         * lib/sha1.h (struct sha1_ctx): Likewise.
82847         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82848         The old name was backwards.
82849         (NOTSWAP): Remove; not used.
82850         (rol): New macro, moved here from md5.h.
82851         (sha1_process_block): Remove a FIXME that doesn't make sense.
82852
82853 2005-09-12  Derek Price  <derek@ximbiot.com>
82854
82855         Return usable errors from canon-host.
82856         * lib/canon-host.h: New file.
82857         * lib/canon-host.c (canon_host): Wrap...
82858         (canon_host_r): ...this new function, which now relies exclusively on
82859         getaddrinfo.
82860         (ch_strerror): New function.
82861         (last_cherror): New global.
82862         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82863         interface.
82864         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82865         void *.
82866         (freeaddrinfo): Free ai->ai_canonname when set.
82867
82868 2005-09-12  Derek Price  <derek@ximbiot.com>
82869
82870         Make canon-host require getaddrinfo.
82871         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82872         AC_LIBSOURCE canon-host.h.  Call...
82873         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82874         gl_GETADDRINFO.
82875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82876
82877 2005-09-12  Derek Price  <derek@ximbiot.com>
82878
82879         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82880         LGPL.
82881         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82882
82883 2005-09-12  Derek Price  <derek@ximbiot.com>
82884
82885         * lib/gai_strerror.c: Include config.h when available.  Include
82886         getaddrinfo.h before other headers to test interface.
82887         Reported by Larry Jones <lawrence.jones@ugs.com>.
82888
82889 2005-09-12  Derek Price  <derek@ximbiot.com>
82890             Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * modules/glob (Files): Add glob-libc.h.
82893
82894 2005-09-12  Derek Price  <derek@ximbiot.com>
82895             Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82898         glob_.h, glob-libc.h.
82899         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82900
82901 2005-09-12  Derek Price  <derek@ximbiot.com>
82902             Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82905         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82906         protecting things that should be done only in gnulib contexts.
82907         * lib/glob_.h: New file, containing only the glob things needed for
82908         gnulib.
82909         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82910         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82911         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82912         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82913         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82914         and to respect the namespace rules better.
82915
82916 2005-09-08  Simon Josefsson  <jas@extundo.com>
82917
82918         * modules/socklen: New file.
82919
82920 2005-09-08  Simon Josefsson  <jas@extundo.com>
82921
82922         * m4/socklen.m4: New file.
82923
82924 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * modules/utimens (Files): Add m4/utimbuf.m4, since
82927         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82928         Reported by Sergey Poznyakoff.
82929
82930 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82933         definitions, since that's the preferred style in glibc.
82934         Fix a minor spacing issue, and update copyright notice to match
82935         glibc's.
82936
82937 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82938
82939         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82940
82941 2005-09-06  Simon Josefsson  <jas@extundo.com>
82942
82943         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82944         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82945
82946 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82949         warning.
82950
82951 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         * config/srclist.txt: Add glibc bug 1302.
82954
82955 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         Change bitset word type from unsigned int to unsigned long int,
82958         as this has better performance on typical 64-bit hosts.
82959         Port bitset code to hosts with unusual word sizes.
82960         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82961         (build_collating_symbol):
82962         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82963         argument is a bitset.  This is merely a style issue, but it makes
82964         it clearer that an entire array is expected.
82965         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82966         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82967         Port to the case where bitset_word is not the same as unsigned int.
82968         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82969         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82970         Likewise.
82971         * lib/regexec.c (check_dst_limits_calc_pos_1,
82972         check_subexp_matching_top):
82973         (build_trtable, group_nodes_into_DFAstates):
82974         Likewise.
82975         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82976         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82977         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82978         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82979         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82980         * lib/regcomp.c (optimize_subexps, lower_subexp):
82981         Work even if bitset_word has holes in its bitwise representation.
82982         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82983         * lib/regexec.c (check_dst_limits_calc_pos_1,
82984         check_subexp_matching_top):
82985         Likewise.
82986         * lib/regex_internal.c (re_string_reconstruct):
82987         Don't assume UCHAR_MAX == 255.
82988         * lib/regex_internal.h (bitset_set_all): Likewise.
82989         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82990         All uses changed.
82991         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82992         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82993         All uses changed.
82994         (BITSET_WORD_MAX): New macro.
82995         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82996         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82997         (bitset_empty, bitset_copy):
82998         Prefer sizeof (bitset) to multiplying it out ourselves.
82999         (bitset_not_merge): Remove; unused.
83000         (bitset_contain): Return bool, not unsigned int with one bit on.
83001         All callers changed.
83002         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83003         alignment than re_node_set; do this by defining a new internal
83004         type struct dests_alloc and using it to allocate memory.
83005
83006 2005-09-05  Bruno Haible  <bruno@clisp.org>
83007
83008         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83009         links.
83010
83011 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83012
83013         * modules/size_max (Makefile.am): Add size_max.h
83014
83015 2005-09-04  Derek Price  <derek@ximbiot.com>
83016
83017         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83018
83019 2005-09-03  Simon Josefsson  <jas@extundo.com>
83020
83021         * gnulib-tool: Fix typo.
83022
83023 2005-09-03  Simon Josefsson  <jas@extundo.com>
83024
83025         * config/srclist.txt: Add glibc bug 1293.
83026
83027 2005-09-03  Derek Price  <derek@ximbiot.com>
83028
83029         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83030         From Larry Jones <lawrence.jones@ugs.com>.
83031
83032 2005-09-02  Simon Josefsson  <jas@extundo.com>
83033
83034         * modules/socklen: New file.
83035
83036 2005-09-02  Simon Josefsson  <jas@extundo.com>
83037
83038         * modules/havelib: New module.
83039
83040         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83041         Use havelib.
83042
83043 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         Check for arithmetic overflow when calculating sizes, to prevent
83046         some buffer-overflow issues.  These patches are conservative, in the
83047         sense that when I couldn't determine whether an overflow was possible,
83048         I inserted a run-time check.
83049         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83050         macros.
83051         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83052         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83053         (re_xnrealloc, re_x2nrealloc): New inline functions.
83054         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83055         parse_bracket_exp):
83056         (build_equiv_class, build_charclass): Check for arithmetic overflow
83057         in size expression calculations.
83058         * lib/regex_internal.c (re_string_realloc_buffers):
83059         (build_wcs_upper_buffer, re_node_set_add_intersect):
83060         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83061         (re_dfa_add_node, register_state): Likewise.
83062         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83063         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83064         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83065         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83066
83067 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83070         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83071
83072 2005-09-02  Bruno Haible  <bruno@clisp.org>
83073
83074         Support for lib vs. lib64 distinction on biarch platforms.
83075         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83076         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83078
83079 2005-09-02  Bruno Haible  <bruno@clisp.org>
83080
83081         * gnulib-tool (import): In the other first-use case, provide defaults
83082         as well.
83083
83084 2005-09-02  Bruno Haible  <bruno@clisp.org>
83085
83086         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83087         patches not yet found in the latest gettext release.
83088
83089 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83092         to avoid a collision with bits/local_lim.h in glibc.
83093         All uses changed.  Problem reported by Dmitry V. Levin in
83094         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83095
83096         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83097         bugs in int versus size_t comparisons.
83098         (re_string_context_at): Fix bug where the code assumed that
83099         Idx is signed.
83100
83101         Use bool where appropriate.
83102         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83103         All callers changed.
83104         (calc_eclosure_iter): Likewise, for ROOT arg.
83105         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83106         (build_charclass_op): Likewise, for NON_MATCH arg.
83107         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83108         (re_string_construct_common): Likewise, for ICASE arg.
83109         * lib/regexec.c (re_search_2_stub, re_search_stub):
83110         Likewise, for RET_LEN arg.
83111         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83112         (set_regs): Likewise, for FL_BACKTRACK arg.
83113         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83114         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83115         (calc_eclosure_iter, parse_bracket_exp):
83116         Use bool for internal variables that are booleans.
83117         * lib/regexec.c (re_search_internal, check_matching,
83118         proceed_next_node):
83119         (set_regs, build_sifted_states, sift_states_bkref):
83120         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83121         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83122         (find_collation_sequence_value):
83123         Likewise.
83124         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83125         (re_node_set_compare):
83126         Return bool, not int. All callers changed.
83127         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83128         (build_trtable, check_node_accept): Likewise.
83129         * lib/regex_internal.h: Include stdbool.h.
83130
83131         Fix bugs uncovered when converting to bool.
83132         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83133         failure instead of charging ahead blindly.
83134         * lib/regex_internal.c (register_state): Likewise.
83135         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83136         for freeing internal storage.
83137         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83138         bitset pieces used as boolean, to avoid undefined behavior
83139         on hosts that do int overflow checking.
83140
83141 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         * config/srclist.txt: Add glibc bugs 1285-1287.
83144
83145 2005-09-01  Jim Meyering  <jim@meyering.net>
83146
83147         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83148         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83149         Require gl_STAT_MACROS, too.
83150
83151 2005-09-01  Bruno Haible  <bruno@clisp.org>
83152
83153         * gnulib-tool (import): In the first-use case, provide defaults.
83154
83155 2005-09-01  Bruno Haible  <bruno@clisp.org>
83156
83157         * gnulib-tool (func_import): Remove the .tmp files.
83158
83159 2005-09-01  Bruno Haible  <bruno@clisp.org>
83160
83161         * gnulib-tool (func_import): Fix handling of symbolic links.
83162
83163 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83166         old glibc regex code mishandles strings longer than 2**31 bytes.
83167         This patch fixes this when the regex code is used in gnulib
83168         (i.e., outside glibc).
83169
83170         This patch should not affect the use of the regex code inside
83171         glibc.  No doubt this problem also needs to be handled for glibc
83172         as well, but the result will be an incompatible change to the
83173         glibc ABI, and the old ABI will have to be supported too.  That
83174         can be the the subject for another patch.
83175
83176         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83177         governing whether the rest of this patch is active.  By default,
83178         the macro is disabled and the patch has no effect.
83179         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83180         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83181         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83182         (re_match_2, re_set_registers): Use the new types.
83183         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83184         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83185         New macros.
83186         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83187         (re_string_context_at, bin_tree_t, re_dfastate_t):
83188         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83189         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83190         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83191         (re_string_char_size_at, re_string_wchar_at):
83192         (re_string_elem_size_at):
83193         Use the new types and macros to port to 64-bit hosts.
83194         Use unsigned types for internal values, so that the code
83195         mostly works even for arrays larger than SSIZE_MAX.
83196         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83197         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83198         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83199         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83200         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83201         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83202         (calc_inveclosure, parse_dup_op, build_range_exp):
83203         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83204         (fetch_number, create_token_tree, mark_opt_subexp):
83205         Likewise.
83206         * lib/regex_internal.c (re_string_construct_common,
83207         create_ci_newstate):
83208         (create_cd_newstate, re_string_allocate, re_string_construct):
83209         (re_string_realloc_buffers, build_wcs_upper_buffer):
83210         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83211         (re_string_reconstruct, re_string_peek_byte_case):
83212         (re_string_fetch_byte_case, re_string_context_at):
83213         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83214         (re_node_set_init_copy, re_node_set_add_intersect):
83215         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83216         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83217         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83218         (re_acquire_state, re_acquire_state_context, register_state):
83219         Likewise.
83220         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83221         search_cur_bkref_entry):
83222         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83223         (re_search_internal, re_search_2_stub, re_search_stub)
83224         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83225         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83226         (update_cur_sifted_state, check_dst_limits):
83227         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83228         (check_subexp_limits, sift_states_bkref, merge_state_array):
83229         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83230         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83231         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83232         (expand_bkref_cache, check_node_accept_bytes):
83233         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83234         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83235         (acquire_init_state_context, check_halt_node_context):
83236         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83237         (sift_states_backward, clean_state_log_if_needed):
83238         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83239         (find_recover_state, transit_state_sb, transit_state_mb):
83240         (transit_state_bkref, build_trtable, match_ctx_clean):
83241         Likewise.
83242         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83243         to work around an assumption that REG_MISSING is negative.
83244
83245         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83246         (seek_collating_symbol_entry) [defined _LIBC]:
83247         (lookup_collation_sequence_value) [defined _LIBC]:
83248         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83249         Use prototypes rather than old-style function definitions.
83250         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83251         (transit_state_sb) [0]:
83252         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83253
83254         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83255         rm_eo.
83256
83257         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83258         (optimize_subexps, lower_subexp):
83259         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83260         since the signed shift might overflow.  Use 1u<<31 instead.
83261         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83262         Likewise.
83263         * lib/regexec.c (check_dst_limits_calc_pos_1,
83264         check_subexp_matching_top): Likewise.
83265
83266         * lib/regcomp.c (optimize_subexps, lower_subexp):
83267         Use CHAR_BIT rather than 8, for clarity.
83268         * lib/regexec.c (check_dst_limits_calc_pos_1):
83269         (check_subexp_matching_top): Likewise.
83270         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83271         have to worry about portability issues when shifting it left.
83272         Remove no-longer-needed test for table_size > 0.
83273         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83274         in a word, as the resulting behavior is undefined.
83275         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83276         in one case, a <= should have been an <, and in another case the
83277         whole test was missing.
83278         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83279         the standard name CHAR_BIT.
83280         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83281         this is not true on one's complement and signed-magnitude hosts.
83282
83283         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83284         next_last_offset.
83285         (struct re_dfa_t): Remove unused member states_alloc.
83286         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83287
83288 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83291         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83292         and large-file glibc and in 32-bit large-file Solaris.
83293
83294 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83297         lengths fit in regoff_t; this isn't true if regoff_t is the same
83298         width as size_t.
83299         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83300         (= START + RANGE) instead of RANGE.  This avoids overflow
83301         problems when regoff_t is the same width as size_t.
83302         All callers changed.
83303         (re_search_2_stub): Check for overflow when adding the
83304         sizes of the two strings.
83305         (re_search_stub): Check for overflow when adding START
83306         to RANGE; if it occurs, substitute the extreme value.
83307
83308 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83311
83312 2005-08-31  Jim Meyering  <jim@meyering.net>
83313
83314         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83315         a pointer-to-const.
83316         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83317         (register_state): Likewise.
83318         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83319         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83320         (group_nodes_into_DFAstates): Likewise.
83321
83322 2005-08-31  Jim Meyering  <jim@meyering.net>
83323
83324         * check-module: Add a FIXME comment.
83325
83326 2005-08-31  Eric Blake  <ebb9@byu.net>
83327
83328         * modules/unistd-safer (Files): Add unistd--.h.
83329         * modules/stdio-safer (Files): Add stdio--.h.
83330
83331 2005-08-31  Derek Price  <derek@ximbiot.com>
83332
83333         * lib/getdelim.c (getdelim): Return EOF on EOF.
83334         Reported by Larry Jones <lawrence.jones@ugs.com>.
83335
83336 2005-08-31  Bruno Haible  <bruno@clisp.org>
83337
83338         Avoid unnecessary diffs in the generated lib/Makefile.am.
83339         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83340         the generated files.
83341         (func_import): Don't set cmd.
83342
83343 2005-08-31  Bruno Haible  <bruno@clisp.org>
83344
83345         * lib/strstr.c: Include <stddef.h>, for NULL.
83346         * lib/strcasestr.c: Likewise.
83347         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83348
83349 2005-08-31  Bruno Haible  <bruno@clisp.org>
83350
83351         * gnulib-tool: New option --macro-prefix.
83352         (func_import): Use macro_prefix.
83353         (import): Handle option --macro-prefix.
83354
83355 2005-08-31  Bruno Haible  <bruno@clisp.org>
83356
83357         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83358         Also use new variables cached_lgpl, cached_libtool.
83359
83360 2005-08-31  Bruno Haible  <bruno@clisp.org>
83361
83362         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83363         always instantiating them.
83364
83365 2005-08-31  Bruno Haible  <bruno@clisp.org>
83366
83367         * gnulib-tool (func_import): Read the previous cached settings
83368         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83369         earlier added by gnulib but are now dropped. Warn when a gnulib file
83370         overwrites a non-gnulib file.
83371
83372 2005-08-31  Bruno Haible  <bruno@clisp.org>
83373
83374         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83375         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83376         projects that don't keep autogenerated files in CVS. Put into
83377         actioncmd only the specified modules, not the transitive closure.
83378
83379 2005-08-31  Bruno Haible  <bruno@clisp.org>
83380
83381         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83382         Create directories that shall be filled.
83383         (import): Don't look for gl_* macros in configure.ac. Recurse across
83384         all directories containing a gnulib-cache.m4 files, if meaningful.
83385
83386 2005-08-31  Bruno Haible  <bruno@clisp.org>
83387
83388         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83389         (import): Set seen_libtool when we see gl_LIBTOOL.
83390
83391 2005-08-31  Bruno Haible  <bruno@clisp.org>
83392
83393         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83394         declaration macro definitions from generated gnulib.m4.
83395
83396 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83397
83398         * lib/iconvme.h: Add prototype for iconv_alloc.
83399
83400 2005-08-29  Simon Josefsson  <jas@extundo.com>
83401
83402         * lib/iconvme.c: Fix errno.
83403
83404 2005-08-29  Bruno Haible  <bruno@clisp.org>
83405
83406         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83407         that it works when the directory contains spaces.
83408
83409 2005-08-29  Bruno Haible  <bruno@clisp.org>
83410
83411         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83412
83413 2005-08-29  Bruno Haible  <bruno@clisp.org>
83414
83415         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83416         Emit more advice.
83417
83418 2005-08-29  Bruno Haible  <bruno@clisp.org>
83419         and Stepan Kasal  <kasal@ucw.cz>
83420
83421         * check-module: If more parameters are given, check each of them
83422         separately; add more exceptions, as noted by Jim Meyering.
83423         (check_module): New procedure.
83424         (%exempt_header): Now contains all exceptions.
83425
83426 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83427
83428         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83429
83430 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83431
83432         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83433
83434 2005-08-28  Bruno Haible  <bruno@clisp.org>
83435
83436         * m4/gnulib-tool.m4: New file.
83437
83438 2005-08-27  Jim Meyering  <jim@meyering.net>
83439
83440         * modules/unistd-safer (Files): Add pipe-safer.c.
83441         * modules/fcntl-safer (Files): Add creat-safer.c.
83442
83443 2005-08-27  Jim Meyering  <jim@meyering.net>
83444
83445         * m4/stdlib-safer.m4: New file.  From coreutils.
83446         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83447         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83448         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83450         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83451
83452 2005-08-27  Jim Meyering  <jim@meyering.net>
83453
83454         * lib/fopen-safer.c: Merge minor changes from coreutils.
83455         * lib/dup-safer.c: Likewise.
83456         * lib/fd-safer.c: Likewise.
83457
83458         Merge from coreutils.
83459         * lib/stdio--.h: New file.
83460         * lib/stdlib--.h: New file.
83461         * lib/mkstemp-safer.c: New file.
83462
83463         GNU tar needs these.
83464         * lib/pipe-safer.c: New file.
83465         * lib/creat-safer.c: New file.
83466         * lib/fcntl--.h (creat): Define to creat_safer.
83467         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83468         * lib/unistd--.h (pipe): Define to pipe_safer.
83469         * lib/unistd-safer.h: Declare pipe_safer.
83470
83471 2005-08-26  Simon Josefsson  <jas@extundo.com>
83472
83473         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83474         Haible <bruno@clisp.org>.
83475
83476 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * lib/regex_internal.h: Remove all references to
83479         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83480         or better.
83481         (bitset_not, bitset_merge, bitset_not_merge):
83482         (bitset_mask, re_string_allocate, re_string_construct):
83483         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83484         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83485         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83486         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83487         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83488         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83489         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83490         (re_acquire_state_context):
83491         Remove unnecessary forward decls.
83492         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83493         Put __attribute at function definition,
83494         now that the function decl has been removed.
83495         * lib/regex_internal.c (re_string_peek_byte_case):
83496         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83497         Likewise.
83498
83499 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83500
83501         * m4/regex.m4: Add AC_PREREQ(2.50).
83502         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83503
83504 2005-08-25  Simon Josefsson  <jas@extundo.com>
83505
83506         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83507         __fsetlocking.
83508
83509 2005-08-25  Simon Josefsson  <jas@extundo.com>
83510
83511         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83512         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83513         GLIBC specific code.
83514
83515 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83516
83517         Make regex safe for g++.  This fixes one real bug (an "err"
83518         that should have been "*err").  g++ problem reported by
83519         Sam Steingold.
83520         * lib/regex_internal.h (re_calloc): New macro, consistent with
83521         re_malloc etc.  All callers of calloc changed to use re_calloc.
83522         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83523         not int.  All callers changed.
83524         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83525         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83526         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83527         (find_recover_state): Change "err" to "*err"; this fixes what
83528         appears to be a real bug.
83529         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83530         versus int.
83531
83532 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         * modules/regex (Depends-on): Add malloc, since the code
83535         assumes that !malloc(0) means failure.
83536
83537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83540
83541         alloca modernization/simplification for regex.
83542         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83543         needs to be at the start of the file, and can be moved into
83544         regex_internal.h and simplified.
83545         * lib/regex_internal.h: Include <alloca.h>.
83546         (__libc_use_alloca) [!defined _LIBC]: New macro.
83547         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83548         now works outside glibc.
83549
83550 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * config/srclist.txt: Add glibc bugs 1241, 1245.
83553
83554 2005-08-25  Jim Meyering  <jim@meyering.net>
83555
83556         * lib/open-safer.c: Include <config.h>.
83557         Otherwise, we'd lose LARGEFILE support in any file using
83558         e.g. "fcntl--.h"
83559
83560 2005-08-25  Bruno Haible  <bruno@clisp.org>
83561
83562         * m4/minmax.m4: Require autoconf 2.52.
83563         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83564         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83565         alternatives of translit over the alphabet.
83566         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83567
83568 2005-08-24  Simon Josefsson  <jas@extundo.com>
83569
83570         * tests/test-getpass.c: New file.
83571
83572 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83575         for GNU regex features.
83576
83577 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83580         * lib/regex.h (regerror): Likewise.
83581
83582         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83583         requires this.  (The code never needed it.)
83584
83585         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83586         All uses of recently-renamed identifiers changed to use the new,
83587         POSIX-compliant names.  The code will build and run just fine
83588         without these changes, but it's better to eat our own dog food
83589         and use the standard-conforming names.
83590
83591         * lib/regex.h: Fix a multitude of POSIX name space violations.
83592         These changes have an effect only for programs that define
83593         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83594         do not change anything for programs compiled in the normal way.
83595         Also, there is no effect on the ABI.
83596
83597         (_REGEX_SOURCE): New macro.
83598         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83599         defined and _GNU_SOURCE is not; this fixes a name space violation.
83600
83601         Rename the following macros to obey POSIX requirements.
83602         The old names are still visible as macros if _REGEX_SOURCE is defined.
83603         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83604         RE_BACKSLASH_ESCAPE_IN_LISTS.
83605         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83606         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83607         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83608         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83609         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83610         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83611         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83612         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83613         (REG_INTERVALS): renamed from RE_INTERVALS.
83614         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83615         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83616         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83617         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83618         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83619         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83620         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83621         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83622         RE_UNMATCHED_RIGHT_PAREN_ORD.
83623         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83624         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83625         (REG_DEBUG): renamed from RE_DEBUG.
83626         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83627         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83628         unusual, since we can't clash with the POSIX REG_ICASE.
83629         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83630         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83631         (REG_NO_SUB): renamed from RE_NO_SUB.
83632         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83633         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83634         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83635         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83636         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83637         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83638         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83639         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83640         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83641         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83642         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83643         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83644         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83645         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83646         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83647         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83648         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83649         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83650         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83651         (REG_FIXED): Renamed from REGS_FIXED.
83652         (REG_NREGS): Renamed from RE_NREGS.
83653
83654         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83655         of other REG_* macros, since POSIX says the user is allowed to
83656         #undef these macros selectively.
83657
83658         (reg_errcode_t): Update comment stating what other tables need
83659         to be consistent.
83660
83661         Rename the following enum values to obey POSIX requirements.
83662         The old names are still visible as macros.
83663         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83664         is not defined, since GNU is supposed to be a superset of POSIX as
83665         much as possible, and since we want reg_errcode_t to be a signed
83666         type for implementation consistency.
83667         (_REG_NOERROR): Renamed from REG_NOERROR.
83668         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83669         (_REG_BADPAT): Renamed from REG_BADPAT.
83670         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83671         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83672         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83673         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83674         (_REG_EBRACK): Renamed from REG_EBRACK.
83675         (_REG_EPAREN): Renamed from REG_EPAREN.
83676         (_REG_EBRACE): Renamed from REG_EBRACE.
83677         (_REG_BADBR): Renamed from REG_BADBR.
83678         (_REG_ERANGE): Renamed from REG_ERANGE.
83679         (_REG_ESPACE): Renamed from REG_ESPACE.
83680         (_REG_BADRPT): Renamed from REG_BADRPT.
83681         (_REG_EEND): Renamed from REG_EEND.
83682         (_REG_ESIZE): Renamed from REG_ESIZE.
83683         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83684         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83685         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83686         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83687         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83688
83689         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83690         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83691         changed.  But support the old name if the new one is not defined
83692         and if _REGEX_SOURCE.
83693
83694         Change the following member names in struct re_pattern_buffer.
83695         The old names are still supported if !_REGEX_SOURCE.
83696         The new names are always supported, regardless of _REGEX_SOURCE.
83697         (re_buffer): Renamed from buffer.
83698         (re_allocated): Renamed from allocated.
83699         (re_used): Renamed from used.
83700         (re_syntax): Renamed from syntax.
83701         (re_fastmap): Renamed from fastmap.
83702         (re_translate): Renamed from translate.
83703         (re_can_be_null): Renamed from can_be_null.
83704         (re_regs_allocated): Renamed from regs_allocated.
83705         (re_fastmap_accurate): Renamed from fastmap_accurate.
83706         (re_no_sub): Renamed from no_sub.
83707         (re_not_bol): Renamed from not_bol.
83708         (re_not_eol): Renamed from not_eol.
83709         (re_newline_anchor): Renamed from newline_anchor.
83710
83711         Change the following member names in struct re_registers.
83712         The old names are still supported if !_REGEX_SOURCE.
83713         The new names are always supported, regardless of _REGEX_SOURCE.
83714         (rm_num_regs): Renamed from num_regs.
83715         (rm_start): Renamed from start.
83716         (rm_end): Renamed from end.
83717
83718         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83719         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83720         Prepend __ to parameter names.
83721
83722         Undo yesterday's changes.
83723
83724 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83725
83726         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83727         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83728         lib/regex.c.
83729
83730 2005-08-24  Jim Meyering  <jim@meyering.net>
83731
83732         Sync from coreutils.
83733         * m4/fcntl-safer.m4: New file.
83734
83735         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83736         and object files for this module.
83737
83738 2005-08-24  Jim Meyering  <jim@meyering.net>
83739
83740         Sync from coreutils.
83741         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83742
83743 2005-08-24  Jim Meyering  <jim@meyering.net>
83744
83745         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83746         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83747
83748 2005-08-24  Jim Meyering  <jim@meyering.net>
83749
83750         * modules/fcntl-safer: New module.
83751         * modules/fts (Depends-on): Add fcntl-safer.
83752         * MODULES.html.sh (File descriptor based Input/Output):
83753         Add fcntl-safer.
83754
83755 2005-08-24  Bruno Haible  <bruno@clisp.org>
83756
83757         Support for unit test modules.
83758         * modules/README: Mention tests modules.
83759         * modules/TEMPLATE-TESTS: New file.
83760         * gnulib-tool: New options --extract-tests-module, --with-tests and
83761         --tests-base (unused for the moment).
83762         (testsbase, inctests): New variables.
83763         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83764         (func_verify_module): Exclude TEMPLATE-TESTS.
83765         (func_verify_nontests_module, func_verify_tests_module): New functions.
83766         (func_get_dependencies): Add implicit dependency for tests modules.
83767         (func_get_tests_module): New function.
83768         (func_modules_transitive_closure): When --with-tests was specified,
83769         include the unit tests as well, unless explicitly avoided.
83770         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83771         (func_emit_tests_Makefile_am): New function.
83772         (func_create_testdir): When --with-tests was specified, emit a
83773         tests/ directory.
83774         * MODULES.html.sh (Future developments): Update.
83775
83776 2005-08-24  Bruno Haible  <bruno@clisp.org>
83777
83778         * modules/tls-tests: New file.
83779         * tests/test-tls.c: New file, from GNU gettext.
83780
83781 2005-08-24  Bruno Haible  <bruno@clisp.org>
83782
83783         * modules/lock-tests: New file.
83784         * tests/test-lock.c: New file, from GNU gettext.
83785
83786 2005-08-24  Bruno Haible  <bruno@clisp.org>
83787
83788         * lib/lock.h: Add multiple inclusion guard.
83789         * lib/tls.h: Add multiple inclusion guard.
83790
83791 2005-08-24  Bruno Haible  <bruno@clisp.org>
83792
83793         * gnulib-tool: Add support for the --aux-dir option to
83794         --create-testdir, --create-megatestdir, --test, --megatest.
83795         (func_create_testdir, func_create_megatestdir): Optionally emit a
83796         AC_CONFIG_AUX_DIR directive.
83797         (create-testdir, create-megatestdir, test, megatest): Provide a
83798         default value for $auxdir.
83799
83800 2005-08-24  Bruno Haible  <bruno@clisp.org>
83801
83802         * gnulib-tool (import): Use compound statement instead of subshell
83803         where possible.
83804
83805 2005-08-24  Bruno Haible  <bruno@clisp.org>
83806
83807         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83808
83809 2005-08-24  Bruno Haible  <bruno@clisp.org>
83810
83811         * gnulib-tool (func_version): Update.
83812
83813 2005-08-24  Bruno Haible  <bruno@clisp.org>
83814
83815         * gnulib-tool (func_import, func_create_testdir,
83816         func_create_megatestdir): Quote all autoconf macro arguments.
83817
83818 2005-08-24  Bruno Haible  <bruno@clisp.org>
83819
83820         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83821         option --force, because --force causes the aclocal.m4 of each
83822         subdirectory to be newer than the corresponding config.h.in.
83823
83824 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83827         All contents moved to gl_REGEX.
83828         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83829         assume that it does.
83830
83831 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * lib/regex.h (REG_NOSYS)
83834         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83835         Define, since POSIX requires it as of 2001.
83836         (_REG_ENOSYS)
83837         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83838         New private symbol, used to keep the enum signed in all cases.
83839         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83840         Youngman in
83841         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83842
83843         * lib/regex_internal.c (re_string_skip_chars, register_state):
83844         (calc_state_hash):
83845         Remove forward decls; no longer needed now that we use prototypes.
83846         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83847         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83848         (clean_state_log_if_needed): Likewise.
83849
83850 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * config/srclist.txt: Add glibc bugs 1231-1233.
83853
83854 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         Fix problems reported by Sam Steingold in
83857         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83858         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83859         assumed that reg_errcode_t is a signed type, which is not
83860         necessarily true if _XOPEN_SOURCE is not defined.
83861         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83862         since some compilers warn about it otherwise.
83863
83864 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83867         (init_word_char, create_initial_state, duplicate_node_closure):
83868         (fetch_token, peek_token_bracket, build_range_exp):
83869         (build_collating_symbol): Remove forward decls; no longer needed
83870         now that we use prototypes.
83871
83872         * lib/regcomp.c:
83873         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83874         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83875         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83876         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83877         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83878         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83879         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83880         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83881         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83882         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83883         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83884         (build_charclass, build_charclass_op, fetch_number, create_tree):
83885         (create_token_tree, mark_opt_subexp, duplicate_tree):
83886         Use prototypes rather than old-style definitions.
83887
83888         * lib/regex_internal.c:
83889         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83890         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83891         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83892         (re_string_reconstruct, re_string_peek_byte_case):
83893         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83894         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83895         (re_node_set_init_copy, re_node_set_add_intersect):
83896         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83897         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83898         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83899         (re_acquire_state, re_acquire_state_context, register_state):
83900         (create_ci_newstate, create_cd_newstate, free_state):
83901         Likewise.
83902         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83903         re_search_2):
83904         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83905         (re_search_internal, prune_impossible_nodes):
83906         (acquire_init_state_context, check_matching, static):
83907         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83908         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83909         (update_regs, sift_states_backward, build_sifted_states):
83910         (clean_state_log_if_needed, merge_state_array):
83911         (update_cur_sifted_state, add_epsilon_src_nodes):
83912         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83913         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83914         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83915         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83916         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83917         (check_arrival, check_arrival_add_next_nodes):
83918         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83919         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83920         (check_node_accept_bytes, check_node_accept, extend_buffers):
83921         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83922         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83923         (sift_ctx_init):
83924         Likewise.
83925
83926         * lib/regex_internal.h:
83927         (re_string_allocate, re_string_construct, re_string_reconstruct):
83928         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83929         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83930         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83931         (re_string_context_at, re_string_peek_byte_case):
83932         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83933         is defined, since we now use prototypes always.
83934
83935         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83936         C89 or better.  All uses removed.
83937
83938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * config/srclist.txt: Add glibc bugs 1220-1227.
83941
83942 2005-08-20  Jim Meyering  <jim@meyering.net>
83943
83944         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83945         of unused local, dfa.
83946
83947 2005-08-20  Bruno Haible  <bruno@clisp.org>
83948
83949         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83950
83951 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83952
83953         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83954         (re_node_set_insert_last, re_dfa_add_node):
83955         Rename local variables to avoid GCC shadowing warnings.
83956
83957 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83958
83959         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83960         [defined lint]: Suppress bogus uninitialized-variable warnings.
83961
83962         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83963         and let the caller return REG_ESPACE if out of space.  This
83964         removes an uninitialied-variable warning with GCC 4.0.1, and also
83965         avoids taking the address of a local variable.  All callers
83966         changed.
83967
83968 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83971         $LIBCSRC/posix/regexec.c.
83972         Add glibc bug 1217 for regcomp.c.
83973
83974 2005-08-19  Jim Meyering  <jim@meyering.net>
83975
83976         * lib/regexec.c (proceed_next_node): Redo local variables to
83977         avoid GCC shadowing warnings.
83978
83979 2005-08-18  Bruno Haible  <bruno@clisp.org>
83980
83981         * lib/strstr.c (strstr): Fix return value in multibyte case.
83982         * lib/strcasestr.c (strcasestr): Likewise.
83983
83984 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83987
83988 2005-08-17  Jim Meyering  <jim@meyering.net>
83989
83990         Make the %s format (seconds since the epoch) work for a negative
83991         number and when used with a zero-padded field width, e.g. %015s.
83992
83993         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83994         label so that it precedes the code to set `digits'.  Otherwise,
83995         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83996         print `00-22'.  Now, it prints `-0022', as it should.
83997
83998 2005-08-17  Bruno Haible  <bruno@clisp.org>
83999
84000         * modules/strstr (Files): Add m4/mbrtowc.m4.
84001         (Depends-on): Add mbuiter.
84002
84003 2005-08-17  Bruno Haible  <bruno@clisp.org>
84004
84005         * modules/strcasestr: New file.
84006         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84007         strcasestr.
84008
84009 2005-08-17  Bruno Haible  <bruno@clisp.org>
84010
84011         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84012
84013 2005-08-17  Bruno Haible  <bruno@clisp.org>
84014
84015         * modules/mbuiter: New file.
84016         * MODULES.html.sh (Extended multibyte and wide character utilities):
84017         Add mbuiter.
84018
84019 2005-08-17  Bruno Haible  <bruno@clisp.org>
84020
84021         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84022         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84023
84024 2005-08-17  Bruno Haible  <bruno@clisp.org>
84025
84026         * m4/strcasestr.m4: New file.
84027
84028 2005-08-17  Bruno Haible  <bruno@clisp.org>
84029
84030         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84031         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84032
84033 2005-08-17  Bruno Haible  <bruno@clisp.org>
84034
84035         * lib/strcasestr.h: New file.
84036         * lib/strcasestr.c: New file.
84037
84038 2005-08-17  Bruno Haible  <bruno@clisp.org>
84039
84040         * lib/strcasecmp.c: Use mbuiter.h.
84041
84042 2005-08-17  Bruno Haible  <bruno@clisp.org>
84043
84044         * lib/mbuiter.h: New file.
84045
84046 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84047
84048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84049         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84050         and gl_GETOPT are both invoked via different paths (as happens
84051         with GNU tar CVS because it uses both argp and getopt), the former
84052         wins.
84053
84054 2005-08-16  Bruno Haible  <bruno@clisp.org>
84055
84056         * modules/tls: New file.
84057         * MODULES.html.sh (Multithreading): Add tls.
84058
84059 2005-08-16  Bruno Haible  <bruno@clisp.org>
84060
84061         * modules/strnlen1: New file.
84062         * MODULES.html.sh (String handling): Add strnlen1.
84063
84064 2005-08-16  Bruno Haible  <bruno@clisp.org>
84065
84066         * modules/strcase (Files): Add m4/mbrtowc.m4.
84067         (Depends-on): Add strnlen1, mbchar.
84068
84069 2005-08-16  Bruno Haible  <bruno@clisp.org>
84070
84071         * modules/mbiter: New file.
84072         * MODULES.html.sh (Extended multibyte and wide character utilities):
84073         Add mbiter.
84074
84075 2005-08-16  Bruno Haible  <bruno@clisp.org>
84076
84077         * modules/mbfile: New file.
84078         * MODULES.html.sh (Extended multibyte and wide character utilities):
84079         Add mbfile.
84080
84081 2005-08-16  Bruno Haible  <bruno@clisp.org>
84082
84083         * modules/mbchar: New file.
84084         * MODULES.html.sh (Extended multibyte and wide character utilities):
84085         New section.
84086
84087 2005-08-16  Bruno Haible  <bruno@clisp.org>
84088
84089         * m4/tls.m4: New file, from GNU gettext.
84090
84091 2005-08-16  Bruno Haible  <bruno@clisp.org>
84092
84093         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84094         always.
84095         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84096
84097 2005-08-16  Bruno Haible  <bruno@clisp.org>
84098
84099         * m4/mbiter.m4: New file.
84100
84101 2005-08-16  Bruno Haible  <bruno@clisp.org>
84102
84103         * m4/mbfile.m4: New file.
84104
84105 2005-08-16  Bruno Haible  <bruno@clisp.org>
84106
84107         * m4/mbchar.m4: New file.
84108
84109 2005-08-16  Bruno Haible  <bruno@clisp.org>
84110
84111         * lib/tls.h: New file, from GNU gettext.
84112         * lib/tls.c: New file, from GNU gettext.
84113
84114 2005-08-16  Bruno Haible  <bruno@clisp.org>
84115
84116         * lib/strnlen1.h: New file.
84117         * lib/strnlen1.c: New file.
84118
84119 2005-08-16  Bruno Haible  <bruno@clisp.org>
84120
84121         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84122         (mbi_init): Update.
84123         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84124         NUL byte, not after it.
84125
84126 2005-08-16  Bruno Haible  <bruno@clisp.org>
84127
84128         * lib/strcase.h (strcasecmp): Add note in comments.
84129         * lib/strncasecmp.c: Use code from strcasecmp.c.
84130         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84131         (strcasecmp): Work correctly in multibyte locales.
84132
84133 2005-08-16  Bruno Haible  <bruno@clisp.org>
84134
84135         * lib/mbiter.h: New file.
84136
84137 2005-08-16  Bruno Haible  <bruno@clisp.org>
84138
84139         * lib/mbfile.h: New file.
84140
84141 2005-08-16  Bruno Haible  <bruno@clisp.org>
84142
84143         * lib/mbchar.h: New file.
84144         * lib/mbchar.c: New file.
84145
84146 2005-08-16  Bruno Haible  <bruno@clisp.org>
84147
84148         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84149         the valid ones. Makes the comparison operations transitive:
84150         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84151         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84152
84153 2005-08-15  Simon Josefsson  <jas@extundo.com>
84154
84155         * modules/ssize_t (License): Change to 'unlimited'.
84156
84157         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84158
84159 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84160
84161         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84162         Add comments for each pending glibc patch.
84163
84164 2005-08-15  Bruno Haible  <bruno@clisp.org>
84165
84166         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84167         __cplusplus is defined.
84168
84169 2005-08-14  Jim Meyering  <jim@meyering.net>
84170
84171         Sync from coreutils.
84172
84173         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84174         Use the hash-table-based cycle-detection code not just when
84175         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84176         Reported by James Youngman in
84177         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84178         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84179         FTS_TIGHT_CYCLE_CHECK.
84180         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84181         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84182         once again.
84183         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84184         * lib/fts.c (fd_safer): Remove decl.
84185         Include fcntl--.h rather than unistd-safer.h
84186         (fts_safe_changedir): Don't call fd_safer; no longer needed
84187         now that we include fcntl--.h.
84188
84189 2005-08-12  Simon Josefsson  <jas@extundo.com>
84190
84191         * modules/getndelim2: Use ssize_t module.
84192         * modules/getnline: Likewise.
84193         * modules/safe-read: Likewise.
84194         * modules/xreadlink: Likewise.
84195
84196         * modules/ssize_t: New file.
84197
84198 2005-08-12  Simon Josefsson  <jas@extundo.com>
84199
84200         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84201
84202 2005-08-12  Simon Josefsson  <jas@extundo.com>
84203
84204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84205         ssize_t.
84206
84207 2005-08-12  Simon Josefsson  <jas@extundo.com>
84208
84209         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84210         readline, getdelim and check_version.
84211         (Support for systems lacking ISO C 99: Sizes of integer types):
84212         Add size_max.
84213
84214 2005-08-12  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84217
84218 2005-08-11  Simon Josefsson  <jas@extundo.com>
84219
84220         * modules/readline: New file.
84221
84222         * modules/strnlen (Files): Add strnlen.h.
84223
84224 2005-08-11  Simon Josefsson  <jas@extundo.com>
84225
84226         * m4/readline.m4: New file.
84227
84228 2005-08-11  Simon Josefsson  <jas@extundo.com>
84229
84230         * lib/readline.h, readline.c: New file.
84231
84232 2005-08-11  Simon Josefsson  <jas@extundo.com>
84233
84234         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84235         gl_AVOID.
84236
84237 2005-08-11  Bruno Haible  <bruno@clisp.org>
84238
84239         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84240
84241 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84242
84243         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84244
84245 2005-08-10  Simon Josefsson  <jas@extundo.com>
84246
84247         * tests/test-iconvme.c: New file.
84248
84249 2005-08-10  Simon Josefsson  <jas@extundo.com>
84250
84251         * m4/strnlen.m4: New file.
84252
84253         * m4/strndup.m4: Don't check for strnlen declaration, done in
84254         strnlen.m4.
84255
84256 2005-08-10  Simon Josefsson  <jas@extundo.com>
84257
84258         * lib/strndup.c: Use strnlen.h.
84259
84260         * lib/strnlen.h: New file.
84261
84262 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84263
84264         * README: Typos.
84265
84266 2005-08-02  Simon Josefsson  <jas@extundo.com>
84267
84268         * modules/readline: New file.
84269
84270 2005-08-02  Simon Josefsson  <jas@extundo.com>
84271
84272         * modules/getdelim: New file.
84273
84274         * modules/getline: Rewrite, don't use getndelim2.
84275
84276 2005-08-02  Simon Josefsson  <jas@extundo.com>
84277
84278         * m4/getline.m4: Separate out getdelim stuff into separate module.
84279
84280         * m4/getdelim.m4: New file.
84281
84282 2005-08-02  Simon Josefsson  <jas@extundo.com>
84283
84284         * lib/getline.h, getline.c: Rewrite.
84285
84286         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84287
84288 2005-07-31  Bruno Haible  <bruno@clisp.org>
84289
84290         * lib/lock.h (gl_lock_initializer): New macro.
84291         (gl_lock_define_initialized): Use it.
84292         (gl_rwlock_initializer): New macro.
84293         (gl_rwlock_define_initialized): Use it.
84294         (gl_recursive_lock_initializer): New macro.
84295         (gl_recursive_lock_define_initialized): Use it.
84296
84297 2005-07-30  Karl Berry  <karl@gnu.org>
84298
84299         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84300         Report from Ben Pfaff, regarding getopt.
84301
84302 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84305         normal way.
84306         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84307         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84308         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84309         (gl_GETOPT): Use the new macros.  Most of the implementation
84310         is moved to the new macros.  This is for programs like Emacs
84311         that don't want all the functionality of gl_GETOPT.
84312
84313 2005-07-26  Bruno Haible  <bruno@clisp.org>
84314
84315         * m4/lock.m4: Update from GNU gettext.
84316
84317 2005-07-26  Bruno Haible  <bruno@clisp.org>
84318
84319         * lib/lock.h: Update from GNU gettext.
84320         * lib/lock.c: Update from GNU gettext.
84321
84322 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84325         obsolescent AC_TRY_RUN.  Include the default includes files, for
84326         'exit'.
84327
84328 2005-07-24  Bruno Haible  <bruno@clisp.org>
84329
84330         * modules/visibility: New file.
84331         * MODULES.html.sh (Misc): Add visibility.
84332
84333 2005-07-24  Bruno Haible  <bruno@clisp.org>
84334
84335         * m4/visibility.m4: New file.
84336
84337 2005-07-24  Bruno Haible  <bruno@clisp.org>
84338
84339         * doc/visibility.texi: New file.
84340
84341 2005-07-22  Bruno Haible  <bruno@clisp.org>
84342
84343         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84344         $(ALLOCA_H), redundant through BUILT_SOURCES.
84345         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84346         redundant through BUILT_SOURCES.
84347         * modules/byteswap (Makefile.am): Remove explicit dependency on
84348         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84349         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84350         $(FNMATCH_H), redundant through BUILT_SOURCES.
84351         * modules/getopt (Makefile.am): Remove explicit dependency on
84352         $(GETOPT_H), redundant through BUILT_SOURCES.
84353         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84354         redundant through BUILT_SOURCES.
84355         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84356         redundant through BUILT_SOURCES.
84357         * modules/stdbool (Makefile.am): Remove explicit dependency on
84358         $(STDBOOL_H), redundant through BUILT_SOURCES.
84359         * modules/stdint (Makefile.am): Remove explicit dependency on
84360         $(STDINT_H), redundant through BUILT_SOURCES.
84361         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84362         Remove explicit dependency on $(SYSEXITS_H).
84363         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84364
84365 2005-07-18  Simon Josefsson  <jas@extundo.com>
84366
84367         * lib/check-version.c (check_version): Accept identical versions too.
84368
84369 2005-07-18  Bruno Haible  <bruno@clisp.org>
84370
84371         * modules/lock: New file.
84372         * MODULES.html.sh (Multithreading): New section.
84373
84374 2005-07-18  Bruno Haible  <bruno@clisp.org>
84375
84376         * m4/lock.m4: New file, from GNU gettext.
84377
84378 2005-07-18  Bruno Haible  <bruno@clisp.org>
84379
84380         * lib/lock.h: New file, from GNU gettext.
84381         * lib/lock.c: New file, from GNU gettext.
84382
84383 2005-07-18  Bruno Haible  <bruno@clisp.org>
84384
84385         * lib/lock.h (gl_once_t): New type.
84386         (gl_once_define, gl_once): New macros.
84387         * lib/lock.c (fresh_once): New variable.
84388         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84389         functions.
84390
84391 2005-07-16  Simon Josefsson  <jas@extundo.com>
84392
84393         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84394         workaround, suggested by Bruno.
84395
84396 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * modules/xalloc (Depends-on): Add xalloc-die.
84399         * modules/xvasprintf (Depends-on): Add xalloc-die.
84400
84401 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84404         with a minor change.
84405
84406 2005-07-15  Bruno Haible  <bruno@clisp.org>
84407
84408         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84409         When using lib/poll.c, define poll as rpl_poll.
84410
84411 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * modules/argp (Depends-on): Remove unlocked-io.
84414
84415 2005-07-14  Derek Price  <derek@ximbiot.com>
84416
84417         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84418         for glob symlink bug.
84419
84420 2005-07-14  Bruno Haible  <bruno@clisp.org>
84421
84422         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84423         Instead, test for *_unlocked function declarations directly.
84424
84425 2005-07-11  Simon Josefsson  <jas@extundo.com>
84426
84427         * modules/size_max: New file.
84428
84429         * modules/xsize: Depend on size_max module for size_max.m4.
84430
84431 2005-07-11  Simon Josefsson  <jas@extundo.com>
84432
84433         * lib/size_max.h: New file.
84434
84435 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84438         copyright symbol and the year.
84439         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84440         (version_etc_va): Use parameterized copyright notice.
84441         Reword to conform to the current GNU coding standards.
84442
84443 2005-07-11  Karl Berry  <karl@gnu.org>
84444
84445         * doc/gnulib.texi (Quoting): new node.
84446         (Initial import): more info, from Patrice.
84447
84448 2005-07-11  Bruno Haible  <bruno@clisp.org>
84449
84450         * gnulib-tool (func_usage): Document option --avoid.
84451         (Command line options): Handle --avoid.
84452         (func_acceptable): New function.
84453         (func_modules_transitive_closure): Use it.
84454
84455 2005-07-11  Bruno Haible  <bruno@clisp.org>
84456
84457         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84458         Reported by Jim Meyering.
84459
84460 2005-07-10  Bruno Haible  <bruno@clisp.org>
84461
84462         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84463         Needed when size_t is smaller than 'unsigned int'.
84464         Reported by Paul Eggert.
84465
84466 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84467
84468         * modules/argp (Depends-on): Add unlocked-io
84469
84470 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84471
84472         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84473         block of defines.
84474
84475 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84478         fix now.
84479
84480 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84481         and Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84484         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84485
84486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * modules/regex (Files): Add lib/regex_internal.c,
84489         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84490         (Depends-on): Add extensions.
84491         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84492
84493 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84496         pathconf.
84497         * m4/same.m4 (gl_SAME): Likewise.
84498         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84499
84500         * m4/regex.m4: Adjust to new libc regex implementation.
84501         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84502         all the .c and .h parts of (the new) regex.
84503         Quote the m4 stuff better.
84504         Check for RE_ICASE bug of old gnulib.
84505         Check for REG_STARTEND of recent libc.
84506         Rename local variables from jm_* to gl_*.
84507         Quote operand of "test -f".
84508         Say "recent enough" version of libc, not "version 2".
84509         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84510         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84511         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84512         Remove check for btowc, isascii.
84513         Require AM_LANGINFO_CODESET.
84514
84515 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84516
84517         * lib/regex.c, regex.h: Sync from libc.
84518         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84519         * lib/regexec.c:
84520         New files, synced from libc, except that regex_internal.h
84521         currently has a small porting fix.
84522
84523 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84524
84525         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84526         regex_internal.c, regexec.c.
84527         Add regex_internal.h too, but as a comment, since the libc version
84528         is currently broken in gnulib mode.
84529
84530 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         Support programs like Emacs that use gnulib but not gettext.
84533         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84534         * modules/gettext-h: New file.
84535         * modules/gettext (Files): Remove lib/gettext.h.
84536         (Depends-on): Add gettext-h.
84537         (Makefile.am): Remove lib_SOURCES.
84538         * modules/argmatch, modules/c-stack, modules/closeout:
84539         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84540         * modules/execute, modules/file-type, modules/getaddrinfo:
84541         * modules/getopt, modules/human, modules/javacomp:
84542         * modules/javaexec, modules/mkdir-p, modules/obstack:
84543         * modules/openat, modules/pagealign_alloc, modules/pipe:
84544         * modules/quotearg, modules/regex, modules/rpmatch:
84545         * modules/unicodeio, modules/userspec, modules/version-etc:
84546         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84547         * modules/xsetenv:
84548         Depend on gettext-h, not gettext.
84549
84550 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         * gnulib-tool (func_import): Add support for 'public domain' license.
84553         * modules/alloca, modules/atexit, modules/memmove:
84554         Now public domain, not GPL.
84555         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84556         * modules/realloc, modules/strerror, modules/strtod:
84557         Now LGPL, not GPL.
84558
84559 2005-07-05  Bruno Haible  <bruno@clisp.org>
84560
84561         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84562         autoconf CVS. Needed for mingw.
84563
84564 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84565
84566         Remove the dependency of the strftime module on the tzset module.
84567         * modules/strftime (Depends-on): Remove dependency on tzset.
84568
84569 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         Remove the dependency of the strftime module on the tzset module.
84572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84573         gl_FUNC_TZSET_CLOBBER.
84574
84575 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         Remove the dependency of the strftime module on the tzset module.
84578         * lib/strftime.c (my_strftime)
84579         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84580         Copy the input structure, to work around some of the bug with
84581         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84582         Solaris releases, you should also use the tzset module, but we won't
84583         require it as a dependency any more since we don't want LGPLed code
84584         to depend on GPLed code.
84585
84586 2005-07-02  Jim Meyering  <jim@meyering.net>
84587
84588         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84589         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84590         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84591         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84592
84593 2005-07-02  Jim Meyering  <jim@meyering.net>
84594
84595         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84596
84597 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84600         declares only 'struct timespec;' (!).
84601
84602 2005-07-01  Jim Meyering  <jim@meyering.net>
84603
84604         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84605         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84606         * lib/save-cwd.c, tempname.c:
84607         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84608         and don't include <sys/file.h>).
84609
84610 2005-06-29  Jim Meyering  <jim@meyering.net>
84611
84612         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84613         type name.  Use the variable name instead.
84614         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84615         Likewise.
84616
84617 2005-06-28  Simon Josefsson  <jas@extundo.com>
84618
84619         * modules/check-version (Files): Add check-version.m4.
84620
84621 2005-06-28  Simon Josefsson  <jas@extundo.com>
84622
84623         * m4/check-version.m4: New file, suggested by Jim Meyering
84624         <jim@meyering.net>.
84625
84626 2005-06-28  Simon Josefsson  <jas@extundo.com>
84627
84628         * lib/check-version.h, lib/check-version.c: New files.
84629
84630 2005-06-28  Simon Josefsson  <jas@extundo.com>
84631
84632         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84633         collision with global variable.  Better indentation.  Don't
84634         increment buffer pointer beyond buffer end.  Based on comments
84635         from Paul Eggert <eggert@cs.ucla.edu>.
84636
84637         * lib/base64.h: Indent.
84638
84639 2005-06-28  Simon Josefsson  <jas@extundo.com>
84640
84641         * doc/gnulib.texi (Library version handling): New section.
84642
84643 2005-06-28  Jim Meyering  <jim@meyering.net>
84644
84645         * check-module (find_included_lib_files): Hard-code another
84646         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84647         but modules/fts-lgpl (correctly) does not list those files.
84648
84649         * modules/canonicalize (Files): Add lib/pathmax.h.
84650
84651 2005-06-25  Simon Josefsson  <jas@extundo.com>
84652
84653         * modules/check-version: New file.
84654
84655 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84656
84657         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84658         initializer of struct addrinfo, as an indication that we don't
84659         care how many members the structure has.
84660
84661 2005-06-24  Derek Price  <derek@ximbiot.com>
84662         and Bruno Haible  <bruno@clisp.org>
84663
84664         Remove stat module & update lstat.
84665         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84666         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84667         * m4/stat.m4: Remove this file.
84668
84669 2005-06-24  Derek Price  <derek@ximbiot.com>
84670         and Bruno Haible  <bruno@clisp.org>
84671
84672         Remove stat module & update lstat.
84673         * lib/stat.c: Remove this file...
84674         (slash_aware_lstat): ...moving this content and its support...
84675         * lib/lstat.c (rpl_lstat): ...into here.
84676         * lib/lstat.h: New file.
84677
84678 2005-06-24  Derek Price  <derek@ximbiot.com>
84679         and Bruno Haible  <bruno@clisp.org>
84680
84681         Remove stat module & update lstat.
84682         * config/srclist.txt (libc sources): Remove stat.
84683
84684 2005-06-24  Derek Price  <derek@ximbiot.com>
84685         and Bruno Haible  <bruno@clisp.org>
84686
84687         Remove stat module & update lstat.
84688         * MODULES.html.sh (stat): Remove.
84689         * MODULES.html: Regenerated.
84690         * modules/lstat (Description): Correct function name.
84691         (Files): Add "lstat.h".
84692         (Depends-on): Remove stat, add xalloc, stat-macros.
84693         * modules/stat: Remove this file.
84694         (Include): Add "lstat.h", remove <sys/stat.h>.
84695
84696 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84699         (ranged_convert): Don't save conversion in a temporary struct.
84700         This causes a warning with GCC 4.0.0, and anyway in the typical
84701         case it's not worth the extra 100 bytes or so of code.
84702         (ranged_convert, __mktime_internal): When calling a function via a
84703         pointer P, use P () rather than (*P) (), as we now assume C89 or
84704         better.
84705
84706 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84707
84708         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84709         "who -r" failed to give output.  Problem reported by Tim Waugh.
84710
84711         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84712         (xcalloc): Use it to avoid needless tests.
84713         Problem reported by Jim Meyering.
84714
84715 2005-06-20  Derek Price  <derek@ximbiot.com>
84716
84717         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84718         unnecessary for Autoconfs > 2.59c.
84719
84720 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84721
84722         * lib/argp.h (__option_is_short): Check upper limit of
84723         __key. Isprint() requires its argument to have the value
84724         of an unsigned char or EOF.
84725
84726 2005-06-16  Jim Meyering  <jim@meyering.net>
84727
84728         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84729         when either N or S is zero.
84730
84731 2005-06-16  Derek Price  <derek@ximbiot.com>
84732
84733         * m4/bison.m4: Declare YACC & YFLAGS precious.
84734
84735 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84738         multibyte string or pattern, fall back on unibyte matching.
84739         Problem reported by James Youngman.
84740
84741 2005-06-08  Bruno Haible  <bruno@clisp.org>
84742
84743         * modules/csharpcomp: New file.
84744         * MODULES.html.sh (C#): Add csharpcomp.
84745
84746 2005-06-08  Bruno Haible  <bruno@clisp.org>
84747
84748         * m4/csharpcomp.m4: New file, from GNU gettext.
84749
84750 2005-06-08  Bruno Haible  <bruno@clisp.org>
84751
84752         * lib/csharpcomp.h: New file, from GNU gettext.
84753         * lib/csharpcomp.c: New file, from GNU gettext.
84754         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84755
84756 2005-06-08  Bruno Haible  <bruno@clisp.org>
84757
84758         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84759         warning on mingw.
84760
84761 2005-06-07  Derek Price  <derek@ximbiot.com>
84762
84763         Sync from CVS.
84764         * lib/glob_.h: Indent nested #ifdef.
84765
84766 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84767
84768         Sync from coreutils.
84769         Use "file name" when talking about file names, instead of "filename"
84770         or "path", as per the GNU coding standards.
84771         * lib/mkdir-p.c: Renamed from makepath.c.
84772         (make_dir_parents): Renamed from make_path.  All callers changed.
84773         * lib/mkdir-p.h: Likewise.  All includers changed.
84774         * lib/filenamecat.c: Renamed from path-concat.c.
84775         (file_name_concat): Renamed from path_concat.  All callers changed.
84776         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84777         * lib/filenamecat.h: Likewise.  All includers changed.
84778         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84779         in comments or local variable names.
84780         * lib/basename.c: Likewise.
84781         * lib/canonicalize.c, canonicalize.h: Likewise.
84782         * lib/dirname.c, dirname.h: Likewise.
84783         * lib/euidaccess.c: Likewise.
84784         * lib/exclude.c: Likewise
84785         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84786         * lib/fsusage.c, fsuage.h: Likewise.
84787         * lib/fts.c, fts_.h: Likewise.
84788         * lib/getcwd.c: Likewise.
84789         * lib/getloadavg.c: Likewise.
84790         * lib/mkstemp.c: Likewise.
84791         * lib/mountlist.c, mountlist.h: Likewise.
84792         * lib/openat.c, openat.h: Likewise.
84793         * lib/readlink-stub.c: Likewise.
84794         * lib/readutmp.c, readutmp.h: Likewise.
84795         * lib/rename.c: Likewise.
84796         * lib/rmdir.c: Likewise.
84797         * lib/same.c: Likewise.
84798         * lib/savedir.c: Likewise.
84799         * lib/stripslash.c: Likewise.
84800         * lib/tempname.c: Likewise.
84801         * lib/xreadlink.c: Likewise.
84802         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84803         All uses changed.
84804         * lib/exclude.h: Likewise.
84805
84806         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84807         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84808         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84809         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84810         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84811         files have been getting away with it for years (MORE/BSD 4.3
84812         is extinct now).
84813         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84814         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84815
84816         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84817         Define to 256, not 255, as per modern POSIX.
84818
84819 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         Sync from coreutils.
84822         Use "file name" when talking about file names, instead of "filename"
84823         or "path", as per the GNU coding standards.
84824         * MODULES.html.sh: mkdir-p renamed from makepath.
84825         filenamecat renamed from path-concat.
84826         * modules/filenamecat: Renamed from modules/path-concat.
84827         (Files): filenamecat.h and filenamecat.c renamed from
84828         path-concat.h and path-concat.c.
84829         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84830         (Include): filenamecat.h, not path-concat.h.
84831         * modules/mkdir-p: Renamed from modules/makepath.
84832         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84833         makepath.c.
84834         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84835         (Include): mkdir-p.h, not makepath.h.
84836
84837 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         Sync from coreutils.
84840         * m4/mkdir-p.m4: Renamed from makepath.m4.
84841         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84842         Rename files from makepath.c to mkdir-p.c, and from
84843         makepath.h to mkdir-p.h.
84844         * m4/filenamecat.m4: Renamed from path-concat.m4.
84845         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84846         Rename files from path-concat.c to filenamecat.c,
84847         and from path-concat.h to filenamecat.h.
84848         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84849         "file name" in local variables or comments.
84850         * m4/rename.m4: Likewise.
84851
84852 2005-06-01  Bruno Haible  <bruno@clisp.org>
84853
84854         * modules/csharpexec: New file.
84855         * MODULES.html.sh (C#): New section.
84856
84857 2005-06-01  Bruno Haible  <bruno@clisp.org>
84858
84859         * m4/csharp.m4: New file, from GNU gettext.
84860         * m4/csharpexec.m4: New file, from GNU gettext.
84861
84862 2005-06-01  Bruno Haible  <bruno@clisp.org>
84863
84864         * lib/csharpexec.h: New file, from GNU gettext.
84865         * lib/csharpexec.c: New file, from GNU gettext.
84866         * lib/csharpexec.sh.in: New file, from GNU gettext.
84867
84868 2005-05-31  Derek Price  <derek@ximbiot.com>
84869             Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         Sync from cvs.
84872         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84873
84874 2005-05-31  Derek Price  <derek@ximbiot.com>
84875             Paul Eggert  <eggert@cs.ucla.edu>
84876
84877         Sync from cvs.
84878         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84879
84880 2005-05-29  Derek Price  <derek@ximbiot.com>
84881
84882         * config/srclist.txt (glob_.h, glob.c): Add these files.
84883
84884 2005-05-29  Derek Price  <derek@ximbiot.com>
84885
84886         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84887         * modules/glob: New file.
84888         * modules/getlogin_r: Add link to POSIX spec in description.
84889
84890 2005-05-29  Derek Price  <derek@ximbiot.com>
84891             Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         * m4/glob.m4: New file.
84894
84895 2005-05-29  Derek Price  <derek@ximbiot.com>
84896             Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         * lib/glob_.h, lib/glob.c: New files.
84899
84900 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84901
84902         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84903         * modules/fts-lgpl (Depends-on): Remove gettext.
84904
84905 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84908         and don't require gt_INTTYPES_PRI.
84909
84910 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84913
84914         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84915         the configuration hassle isn't worth it.
84916         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84917         (LONGEST_MODIFIER, PRIuMAX): Remove.
84918
84919 2005-05-27  Bruno Haible  <bruno@clisp.org>
84920
84921         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84922
84923 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84926         _POSIX_PTHREAD_SEMANTICS for Solaris.
84927
84928 2005-05-25  Derek Price  <derek@ximbiot.com>
84929
84930         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84931
84932 2005-05-25  Derek Price  <derek@ximbiot.com>
84933             Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84936         * lib/getlogin_r.c, getlogin_r.h: New files.
84937
84938 2005-05-25  Bruno Haible  <bruno@clisp.org>
84939             Derek Price  <derek@ximbiot.com>
84940
84941         * lib/getlogin_r.h: Simplify API documentation.
84942
84943 2005-05-23  Derek Price  <derek@ximbiot.com>
84944
84945         * modules/minmax (Files): Add m4/minmax.m4.
84946         (configure.ac): Add gl_MINMAX.
84947
84948 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84949
84950         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84951         so that unistd-safer.h (GPL'ed code) need not be included.
84952
84953 2005-05-22  Bruno Haible  <bruno@clisp.org>
84954
84955         * m4/minmax.m4: New file.
84956         Based on a patch by Derek Price <derek@ximbiot.com>.
84957
84958 2005-05-22  Bruno Haible  <bruno@clisp.org>
84959
84960         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84961         (INT64_MIN): Fix definition.
84962         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84963
84964         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84965         NEED_SIGNED_INT_TYPES.
84966
84967         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84968         HAVE_SYSTEM_INTTYPES.
84969
84970 2005-05-22  Bruno Haible  <bruno@clisp.org>
84971
84972         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84973         Also include <sys/param.h> if it defines MIN, MAX.
84974         Based on a patch by Derek Price <derek@ximbiot.com>.
84975
84976 2005-05-21  Jim Meyering  <jim@meyering.net>
84977
84978         * modules/fts (Files): Add m4/inttypes-pri.m4.
84979         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84980
84981 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84982
84983         New fts module.
84984         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84985         (setup_dir, free_dir): New functions.
84986         (enter_dir, leave_dir): Define trivial
84987         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84988         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84989         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84990         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84991         Move to fts-cycle.c.
84992         (fts_open): Use setup_dir.
84993         (fts_close): Use free_dir.
84994         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84995         This adds a label and some gotos, but the alternatives were messier.
84996         Check for memory allocation failure when entering a dir.
84997         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84998         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84999         (FTS): New member fts_cycle, that is a union that contains the
85000         old active_dir_ht and cycle_state.  All uses changed to mention
85001         fts_cycle.ht and fts_cycle.state.
85002         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85003         fts.c, with the following changes:
85004         (setup_dir, free_dir): New functions.
85005         (enter_dir): Now returns bool.  Return true if successful, false
85006         if memory exhausted.  All callers changed.
85007         Do not bother partly cleaning up on
85008         memory allocation failure; that is free_dir's job.
85009         However, free ad if hash_insert fails, to avoid memory leak.
85010         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85011         fts->fts_options to see which union member to use.
85012
85013 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85016         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85017
85018 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85021
85022 2005-05-20  Jim Meyering  <jim@meyering.net>
85023
85024         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85025         Now a macro, to pacify GCC.
85026
85027 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85028
85029         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85030         of -1.
85031
85032 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85033
85034         * lib/chown.c (rpl_chown): Return -1 on failure.
85035
85036 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85039         Don't check for stddef.h.
85040         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85041         don't use its results.
85042         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85043         since we include them unconditionally.  Don't require
85044         AM_STDBOOL_H, since stdbool is a prerequisite.
85045         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85046         since we assume C89 or better.
85047         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85048         as we don't use their results.
85049         Don't check for fchdir, memmove, memset, strrchr, as we use
85050         them unconditionally.
85051         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85052         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85053
85054 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85055
85056         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85057         Include <stddef.h> unconditionally, since we assume C89 now.
85058         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85059         * lib/fts.c: Include fts_.h first, to check interface.
85060         Do not include intprops.h; no longer needed.
85061         Include cycle-check.h and hash.h, since fts_.h no longer does.
85062         Remove unnecessary casts of closedir to void.
85063         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85064         decide whether to decrement nlinks.
85065         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85066         (FTS): Use struct hash_table * instead of Hash_table, so that
85067         we no longer need to include hash.h here.
85068
85069 2005-05-18  Jim Meyering  <jim@meyering.net>
85070
85071         * modules/dirfd (License): Change to LGPL.  Most of the code
85072         is already in the public domain.
85073
85074 2005-05-18  Jim Meyering  <jim@meyering.net>
85075
85076         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85077         Reported by Yoann Vandoorselaere.
85078
85079 2005-05-17  Jim Meyering  <jim@meyering.net>
85080
85081         * m4/fts.m4: New file, from coreutils.
85082
85083 2005-05-17  Jim Meyering  <jim@meyering.net>
85084
85085         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85086
85087 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         Sync from coreutils.
85090         * m4/unlinkdir.m4: New file.
85091
85092 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85093
85094         Sync from coreutils.
85095         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85096         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85097         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85098         White space changes only.
85099         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85100         special.
85101         * lib/yesno.c: Include getline.h, not ctype.h.
85102         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85103         Use getline to remove arbitrary restriction on response length.
85104
85105 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * config/srclist-update: Spell out "Street" in FSF postal
85108         mail address; this is the style the FSF seems to prefer.
85109
85110         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85111         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85112         this updates FSF postal mail address.
85113
85114         Sync from coreutils.
85115         * modules/unlinkdir: New file.
85116         * modules/yesno (Depends-on): Add getline.
85117         * MODULES.html.sh (File system functions): Add unlinkdir.
85118
85119 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85120
85121         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85122         lib/strsep.h:
85123         Change the initial comment to refer to GPL, not LGPL.
85124         gnulib-tool will change it to LGPL as needed.
85125
85126         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85127         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85128         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85129         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85130         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85131         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85132         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85133         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85134         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85135         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85136         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85137         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85138         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85139         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85140         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85141         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85142         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85143         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85144         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85145         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85146         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85147         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85148         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85149         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85150         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85151         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85152         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85153         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85154         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85155         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85156         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85157         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85158         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85159         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85160         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85161         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85162         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85163         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85164         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85165         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85166         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85167         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85168         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85169         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85170         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85171         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85172         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85173         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85174         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85175         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85176         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85177         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85178         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85179         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85180         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85181         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85182         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85183         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85184         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85185         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85186         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85187         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85188         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85189         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85190         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85191         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85192         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85193         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85194         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85195         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85196         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85197         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85198         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85199         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85200         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85201         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85202         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85203         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85204         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85205         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85206         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85207         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85208         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85209         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85210         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85211         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85212         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85213         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85214         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85215         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85216         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85217         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85218         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85219         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85220         lib/yesno.c, lib/yesno.h:
85221         Update FSF postal mail address.
85222
85223 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85226         tests/test-memmem.c, tests/test-stpncpy.c:
85227         Update FSF postal mail address.
85228
85229 2005-05-13  Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85232         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85233         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85234         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85235         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85236         Add support for 64-bit integers in the MSVC compiler.
85237
85238 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85239
85240         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85241
85242 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85243
85244         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85245
85246 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85247
85248         * doc/getdate.texi (General date syntax): Don't say that date
85249         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85250         Problem reported by Nic Ferrier.
85251
85252 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85253
85254         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85255         specified in ai_socktype. Fix invalid ai_protocol
85256         check. ai_protocol is usually set to 0 or depending on
85257         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85258         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85259         ai_socktype / ai_protocol in the returned addrinfo structure.
85260
85261 2005-05-10  Simon Josefsson  <jas@extundo.com>
85262
85263         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85264         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85265
85266 2005-05-10  Karl Berry  <karl@gnu.org>
85267
85268         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85269         (from http://www.gnu.org/licenses).
85270         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85271         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85272         fdl.texi suffices.
85273
85274 2005-05-10  Karl Berry  <karl@gnu.org>
85275
85276         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85277         (COPYING.DOC): remove.
85278
85279         * config/srclist-update: new FSF address.
85280
85281 2005-05-10  Derek Price  <derek@ximbiot.com>
85282
85283         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85284         possible.
85285
85286 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85287             Bruno Haible  <bruno@clisp.org>
85288
85289         * modules/inet_ntop: New file.
85290         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85291         inet_ntop.
85292
85293 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85294             Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/inet_ntop.m4: New file.
85297
85298 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85299             Bruno Haible  <bruno@clisp.org>
85300
85301         * lib/inet_ntop.h: New file.
85302         * lib/inet_ntop.c: New file, from glibc with modifications.
85303
85304 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * modules/time_r (License): Change to LGPL.
85307         * modules/extensions (License): Change to LGPL.  Actually,
85308         the license is more permissive than that, but currently gnulib-tool
85309         doesn't know how to handle more-permissive licenses.
85310
85311         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85312         Problem reported by Dave Love.
85313
85314 2005-05-08  Jim Meyering  <jim@meyering.net>
85315
85316         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85317         blank.
85318
85319 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         * modules/argmatch (Depends-on): Add stdbool.
85322         * modules/backupfile (Depends-on): Likewise.
85323         * modules/chdir-long (Depends-on): Likewise.
85324         * modules/closeout (Depends-on): Likewise.
85325         * modules/cycle-check (Depends-on): Likewise.
85326         * modules/dirname (Depends-on): Likewise.
85327         * modules/fnmatch (Depends-on): Likewise.
85328         * modules/fsusage (Depends-on): Likewise.
85329         * modules/fwriteerror (Depends-on): Likewise.
85330         * modules/getcwd (Depends-on): Likewise.
85331         * modules/getloadavg (Depends-on): Likewise.
85332         * modules/hard-locale (Depends-on): Likewise.
85333         * modules/makepath (Depends-on): Likewise.
85334         * modules/mountlist (Depends-on): Likewise.
85335         * modules/nanosleep (Depends-on): Likewise.
85336         * modules/posixtm (Depends-on): Likewise.
85337         * modules/quotearg (Depends-on): Likewise.
85338         * modules/readtokens (Depends-on): Likewise.
85339         * modules/readtokens0 (Depends-on): Likewise.
85340         * modules/readutmp (Depends-on): Likewise.
85341         * modules/save-cwd (Depends-on): Likewise.
85342         * modules/strftime (Depends-on): Likewise.
85343         * modules/userspec (Depends-on): Likewise.
85344         * modules/utimecmp (Depends-on): Likewise.
85345         * modules/xgetcwd (Depends-on): Likewise.
85346         * modules/xnanosleep (Depends-on): Likewise.
85347         * modules/xstrtod (Depends-on): Likewise.
85348         * modules/yesno (Depends-on): Likewise.
85349
85350 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85351
85352         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85353         needless checks.
85354
85355 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85356
85357         Merge from coreutils.  Among other things,
85358         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85359         * lib/fd-safer.c: New file.
85360         * lib/fcntl-safer.h, open-safer.c: Remove.
85361         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85362         * lib/dup-safer.c: Include unistd-safer.h first.
85363         Don't include errno.h.
85364         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85365         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85366         * lib/file-type.c: Rely on file-type.h change.
85367         * lib/getloadavg.c: Include unistd-safer.h.
85368         (getloadavg): Use safer open.
85369         * lib/getusershell.c: Include "stdio-safer.h".
85370         (getusershell): Use safer fopen.
85371         * lib/long-options.c (long_options): Use NULL rather than 0.
85372         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85373         'free'.
85374         * lib/modechange.c: Likewise.
85375         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85376         (MODE_DONE): New constant.
85377         (struct mode_change): Remove 'next' member.
85378         (make_node_op_equals): New function; like the old one of the
85379         same name, except it allocates an array.
85380         (mode_compile, mode_create_from_ref): Use it.
85381         (mode_compile): Allocate result as an array, not a linked list.
85382         Parse octal string ourself, so that we catch mistakes like "+0".
85383         (mode_adjust): Arg is an array, not a linked list.
85384         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85385         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85386         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85387         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85388         Remove.  This is now stat-macros.h's job.
85389         (talloc): Remove.  All callers replaced by xalloc, so that
85390         our invokers don't have to worry about reporting memory failures.
85391         (make_node_op_equals): Remove.
85392         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85393         New constants.
85394         (struct mode_change): Moved here from modechange.h.
85395         (mode_append_entry): Remove.
85396         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85397         apps to have incorrect behavior.  Use simpler algorithm for head
85398         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85399         Detect more invalid usages rather than having somewhat-random behavior.
85400         Don't insert an "a=" action, as that leads to incorrect behavior.
85401         (mode_compile, mode_create_from_ref): Return NULL on error instead
85402         of an enum, since now there's only one way to have an error.  All
85403         callers changed.
85404         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85405         at the correct time.  Simplify calculation of "+u" and its ilk.
85406         Don't mishandle "+X".
85407         (mode_free): Remove "register" and localize decls.
85408         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85409         (struct mode_change): Move to modechange.c; callers don't
85410         need to see this stuff.
85411         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85412         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85413         (mode_change, mode_adjust): Reflect the new signatures noted above.
85414         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85415         that might redefine system include files.
85416         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85417         (my_usleep): Use NULL rather than (void *) 0.
85418         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85419         Use siginterrupt to specify that system calls should be interrupted.
85420         (rpl_nanosleep): Move initialization of suspended closer to call of
85421         my_usleep.
85422         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85423         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85424         (desirable_utmp_entry): New function.
85425         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85426         using x2nrealloc, to simplify logic.
85427         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85428         size calculation.  Do not assume utmp file is a regular file.
85429         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85430         (READ_UTMP_CHECK_PIDS): New constant.
85431         * lib/save-cwd.c: Include unistd-safer.h.
85432         (save_cwd): Use fd_safer.
85433         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85434         [!_LIBC] Include "stat-macros.h" instead.
85435         * lib/unistd-safer.h (fd_safer): New decl.
85436
85437 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * modules/getloadavg (Depends-on): Add unistd-safer.
85440         * modules/getusershell (Depends-on): Add stdio-safer.
85441         * modules/lstat (Depends-on): Remove xalloc.
85442         * modules/mkstemp (Depends-on): Add stat-macros.
85443         * modules/modechange (Depends-on): Remove xstrtol.
85444         Add stat-macros, xalloc.
85445         * modules/save-cwd (Depends-on): Add unistd-safer.
85446         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85447         * modules/unistd-safer (Files): Add lib/fd-safer.c
85448         (Makefile.am): Remove lib_SOURCES.
85449
85450         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85451         Remove fcntl-safer; unistd-safer supersedes it.
85452
85453 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85456         AC_HEADER_STAT.
85457         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85458         (gl_PREREQ_CHOWN): Remove.
85459         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85460         it.  Don't require AC_HEADER_STAT.
85461         (gl_PREREQ_LSTAT): Remove.
85462         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85463         Don't require AC_HEADER_STAT.
85464         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85465         (gl_PREREQ_RMDIR): Remove.
85466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85467         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85468         the stat-macros module a prerequisite.
85469         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85470         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85471         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85472         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85473         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85474         variable names.
85475         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85476         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85477         variable prefixes.
85478         * m4/fcntl-safer.m4: Remove.
85479         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85481         Invoke gl_PREREQ_FD_SAFER.
85482         (gl_PREREQ_FD_SAFER): New macro.
85483         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85484         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85485         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85486         Remove duplicate call to AC_LIBOBJ(readutmp).
85487         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85488
85489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85490         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85491
85492 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * MODULES.html.sh (Misc): Add byteswap.
85495
85496 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85497
85498         * modules/getcwd (Depends-on): Add extensions.
85499         * modules/openat (Depends-on): Likewise.
85500
85501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85502
85503         * modules/byteswap: New file.
85504
85505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85506
85507         * m4/byteswap.m4: New file.
85508
85509 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85510
85511         * lib/byteswap_.h: New file.
85512
85513 2005-04-25  Karl Berry  <karl@gnu.org>
85514
85515         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85516
85517 2005-04-25  Albert Chin  <china@thewrittenword.com>
85518
85519         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85520         Toolkit C bug.
85521
85522 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85523
85524         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85525         (func_ln_if_changed): Remove forcibly for no error message
85526         in case file does not exist.
85527
85528 2005-04-19  Simon Josefsson  <jas@extundo.com>
85529
85530         * gnulib-tool (Options): Make --symlink mean --symbolic.
85531
85532 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85533
85534         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85535
85536 2005-04-16  Simon Josefsson  <jas@extundo.com>
85537
85538         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85539
85540 2005-04-15  Simon Josefsson  <jas@extundo.com>
85541
85542         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85543
85544 2005-04-15  Simon Josefsson  <jas@extundo.com>
85545
85546         * gnulib-tool: Rename --symlink to --symbolic.
85547
85548 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85549
85550         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85551         symbolic links to files instead of copying/moving.  Add --aux-dir,
85552         specifying directory relative --dir where auxiliary build tools
85553         are placed.
85554
85555 2005-04-14  Bruno Haible  <bruno@clisp.org>
85556
85557         * modules/allocsa (License): Change to LGPL.
85558         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85559
85560 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85563         that "UTC +1 second" continues to work.  Problem reported
85564         by Dmitry V. Levin.
85565         (relunit_snumber): New rule.
85566         (relunit): Use it.
85567
85568 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85569
85570         * lib/getdate.y (universal_time_zone_table): New constant.
85571         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85572         universal_time_zone_table.
85573         (lookup_zone): Prefer universal_time_zone_table to
85574         local_time_zone_table, so that "GMT" time stamps are allowed in
85575         London during the summer.  Problem reported by Ian Abbott.
85576
85577 2005-04-12  Jim Meyering  <jim@meyering.net>
85578
85579         * lib/human.c (humblock): Set *options even when returning due to
85580         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85581         warning from gcc-4.
85582
85583 2005-04-09  Jim Meyering  <jim@meyering.net>
85584
85585         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85586         -Wuninitialized: initialize tm0.tm_year.
85587
85588 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85589
85590         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85591         count, since there's no maximum.  All uses changed.
85592         Add member dsts_seen.
85593         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85594         not being INT_MAX.
85595         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85596         Use pc_rels_seen to decide whether a date is absolute.
85597
85598         * lib/getdate.y (number): Don't overwrite year.
85599         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85600         check.
85601
85602 2005-04-02  Simon Josefsson  <jas@extundo.com>
85603
85604         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85605         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85606
85607 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85608
85609         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85610         where no absolute path name can be longer than PATH_MAX.
85611
85612 2005-03-27  Jim Meyering  <jim@meyering.net>
85613
85614         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85615
85616 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85619         "one's complement" -> "ones' complement" in comment, as per Knuth.
85620         "value of type" -> "type or expression" in comment.
85621         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85622
85623 2005-03-26  Jim Meyering  <jim@meyering.net>
85624
85625         Comment nits.
85626         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85627         Correct typos: s/or/of/.
85628
85629 2005-03-26  Jim Meyering  <jim@meyering.net>
85630
85631         * modules/check-include-files: Move to ../ and rename to...
85632         * check-module: ...this.
85633
85634 2005-03-25  Jim Meyering  <jim@meyering.net>
85635
85636         * modules/xvasprintf (Files): Add xalloc.h.
85637
85638 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85639
85640         * modules/gettext (Files): config/config.rpath ->
85641         build-aux/config.rpath
85642         * modules/iconv (Files): Likewise.
85643         Problem reported by Oskar Liljeblad.
85644
85645 2005-03-23  Jim Meyering  <jim@meyering.net>
85646
85647         * modules/check-include-files: New script to check for
85648         missing dependencies, multiple includes, etc.
85649
85650         * modules/c-strtold (Depends-on): Add xalloc.
85651         * modules/c-strtod (Depends-on): Add xalloc.
85652         * modules/hash (Depends-on): Add xalloc.
85653         (Files): Remove lib/xalloc.h.
85654
85655         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85656         * modules/userspec (Files): Add lib/inttostr.h.
85657
85658 2005-03-23  Jim Meyering  <jim@meyering.net>
85659
85660         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85661
85662 2005-03-22  Jim Meyering  <jim@meyering.net>
85663
85664         * modules/stat-macros: New module.
85665         * modules/canonicalize, modules/euidaccess, modules/file-type,
85666         * modules/filemode, modules/lchown, modules/makepath,
85667         * modules/rmdir, modules/stat: Depend on new stat-macros module
85668         rather than listing lib/stat-macros.h manually.
85669         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85670
85671 2005-03-22  Jim Meyering  <jim@meyering.net>
85672
85673         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85674
85675 2005-03-22  Bruno Haible  <bruno@clisp.org>
85676
85677         * config/srclist.txt: Replace target directory 'config' with
85678         'build-aux'.
85679         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85680         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85681         ../build-aux/.
85682
85683 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85684
85685         * modules/chdir-long (Depends-on): Add mempcpy.
85686
85687         * modules/acl, modules/backupfile, modules/c-strtod,
85688         modules/c-strtold, modules/canon-host, modules/canonicalize,
85689         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85690         modules/exclude, modules/exitfail, modules/file-type,
85691         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85692         modules/getdate, modules/getline, modules/getpagesize,
85693         modules/getpass, modules/getugroups, modules/group-member,
85694         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85695         modules/inttostr, modules/long-options, modules/makepath,
85696         modules/md5, modules/memcasecmp, modules/memcoll,
85697         modules/modechange, modules/mountlist, modules/path-concat,
85698         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85699         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85700         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85701         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85702         modules/strftime, modules/strndup, modules/strverscmp,
85703         modules/timespec, modules/unlocked-io, modules/userspec,
85704         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85705         modules/yesno:
85706         Remove lib_SOURCES line from Makefile.am section, as this is now
85707         done automatically by the corresponding Autoconf macro.
85708
85709 2005-03-21  Jim Meyering  <jim@meyering.net>
85710
85711         Changes imported from coreutils.
85712
85713         * lib/cycle-check.c: Don't include xalloc.h.
85714
85715         * lib/path-concat.c: Don't include assert.h.
85716         (path_concat): Remove assertion that would have triggered
85717         for ABASE starting with more than one slash.
85718         Reported by Andreas Schwab.
85719
85720         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85721         properly when ABASE is an absolute file name.
85722         Correct the description of this function.
85723         Include <assert.h>.
85724         Add an assertion and a test driver.
85725         This fixes a bug introduced on 2004-07-02.
85726         Andreas Schwab reported the resulting failure of cp --parents:
85727         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85728
85729 2005-03-21  Jim Meyering  <jim@meyering.net>
85730
85731         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85732         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85733
85734 2005-03-21  Jim Meyering  <jim@meyering.net>
85735         and  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85738         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85739         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85740         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85741         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85742         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85743         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85744         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85745         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85746         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85747         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85748         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85749         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85750         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85751         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85752         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85753         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85754         for these modules.
85755
85756 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85757
85758         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85759         (which shouldn't happen), generate nothing instead of returning 0
85760         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85761
85762 2005-03-16  Bruno Haible  <bruno@clisp.org>
85763
85764         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85765         HAVE_LONGLONG_64BIT.
85766
85767 2005-03-16  Bruno Haible  <bruno@clisp.org>
85768
85769         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85770         HAVE_LONGLONG_64BIT.
85771
85772 2005-03-16  Bruno Haible  <bruno@clisp.org>
85773
85774         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85775         HAVE_LONGLONG_64BIT.
85776
85777 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85780         reliably distinguish strftime failure from empty output on POSIX
85781         hosts.
85782
85783 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85786         (iconv_string): Don't guess a size-zero buffer, as that might cause
85787         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85788         result would be 'too large', where 'too large' is (heuristically)
85789         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85790         overflow concerns.  This will prevent some unwanted malloc failures
85791         when the inputs are very large.
85792
85793 2005-03-15  Karl Berry  <karl@gnu.org>
85794
85795         * config/srclist.txt (config.rpath): from gettext.
85796         * config/config.rpath: update.
85797
85798 2005-03-15  Bruno Haible  <bruno@clisp.org>
85799
85800         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85801         to 'negate'.
85802
85803         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85804         variable.
85805
85806         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85807         results.
85808
85809 2005-03-14  Simon Josefsson  <jas@extundo.com>
85810
85811         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85812         <fx@gnu.org>.
85813
85814 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85815
85816         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85817         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85818         intprops.h.
85819         * lib/strtol.c: Likewise.
85820
85821 2005-03-14  Jim Meyering  <jim@meyering.net>
85822
85823         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85824         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85825         to be nonzero so that we (and caller) can detect the difference
85826         between a valid zero-length expansion and an error return, even
85827         when the underlying strftime fails before writing anything into
85828         that location.
85829
85830 2005-03-14  Bruno Haible  <bruno@clisp.org>
85831
85832         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85833         Update from GNU gettext 0.14.3.
85834
85835 2005-03-10  Jim Meyering  <jim@meyering.net>
85836
85837         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85838
85839 2005-03-10  Jim Meyering  <jim@meyering.net>
85840
85841         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85842         so that this module works on systems without fchdir.
85843
85844 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         Factor int-properties macros into a single file, except for
85847         glibc-related files.
85848         * lib/intprops.h: New file.
85849         * lib/getloadavg.c: Include it instead of limits.h.
85850         (INT_STRLEN_BOUND): Remove.
85851         * lib/human.c: Include intprops.h.
85852         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85853         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85854         302/1000.
85855         * lib/inttostr.h: Include intprops.h instead of limits.h.
85856         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85857         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85858         for consistency with intprops.h.
85859         (time_t_is_integer, twos_complement_arithmetic): Use them.
85860         * lib/sig2str.h: Include <signal.h>, intprops.h.
85861         (INT_STRLEN_BOUND): Remove.
85862         * lib/strftime.c (TYPE_SIGNED): Remove.
85863         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85864         * lib/strtol.c: Adjust comments to match intprops.h.
85865         * lib/userspec.c: Include intprops.h.
85866         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85867         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85868         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85869         instead of rolling our own expressions.
85870         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85871
85872         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85873         instead of int.
85874         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85875         the right thing even if adding 1900 would overflow.  Similarly
85876         for tm_mon + 1 and tm_yday + 1.
85877         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85878         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85879         (DO_SIGNED_NUMBER): New macro.
85880         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85881
85882 2005-03-07  Bruno Haible  <bruno@clisp.org>
85883
85884         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85885
85886 2005-03-07  Bruno Haible  <bruno@clisp.org>
85887
85888         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85889
85890 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85891
85892         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85893         (func_import): Only replace files via --import when they have actually
85894         changed.
85895
85896 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85897
85898         * m4/mmap-anon.m4: New file.
85899         * m4/pagealign_alloc.m4: New file.
85900
85901 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85902             Bruno Haible  <bruno@clisp.org>
85903
85904         * modules/pagealign_alloc: New file.
85905         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85906
85907 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85908             Bruno Haible  <bruno@clisp.org>
85909
85910         * lib/pagealign_alloc.h: New file.
85911         * lib/pagealign_alloc.c: New file.
85912
85913 2005-03-03  Bruno Haible  <bruno@clisp.org>
85914
85915         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85916         Use an all-permissive copyright notice, recommended by RMS.
85917
85918 2005-03-02  Bruno Haible  <bruno@clisp.org>
85919
85920         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85921         of AIX, the replacement has to be done only after <string.h> is
85922         included, therefore not in config.h. stpncpy.h does the replacement,
85923         and stpncpy.c uses it.
85924
85925 2005-03-02  Bruno Haible  <bruno@clisp.org>
85926
85927         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85928         stpncpy.c uses it.
85929
85930 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85933         The workaround isn't strictly needed for POSIX conformance, and
85934         it's too much of a pain to configure and maintain.  We'll ask
85935         people to fix their kernels instead.
85936         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85937         (NANOSLEEP_BUG_WORKAROUND): Remove.
85938         (xnanosleep): Remove the workaround.
85939
85940 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85941
85942         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85943         Reported by Derek Price.
85944         (Include): Add "timespec.h".
85945
85946         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85947
85948 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85949
85950         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85951         to detect nanosleep bug.
85952
85953 2005-03-01  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85956
85957 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85958
85959         * modules/gethrxtime: New file.
85960         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85961         (Depends-on): Add gethrxtime.
85962         (configure.ac): Add gl_XNANOSLEEP.
85963         (Makefile.am): Remove lib_SOURCES line.
85964
85965 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85966
85967         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85968         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85969
85970 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85973         * lib/timespec.h (gettime): Return void, since it always
85974         succeeds now.  All uses changed.
85975         * lib/gettime.c (gettime): Likewise.
85976         [HAVE_NANOTIME]: Prefer nanotime.
85977         Assume gettimeofday succeeds, as POSIX requires.
85978         Assime time () succeeds, since other code already does.
85979         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85980         (timespec_subtract): Remove.
85981         (NANOSLEEP_BUG_WORKAROUND): New constant.
85982         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85983         things considerably.  Use it only on GNU/Linux hosts, since the
85984         workaround shouldn't be needed elsewhere.
85985
85986 2005-02-24  Bruno Haible  <bruno@clisp.org>
85987
85988         * modules/gettext (Files): Add m4/glibc2.m4.
85989
85990 2005-02-24  Bruno Haible  <bruno@clisp.org>
85991
85992         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85993         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85994         * m4/progtest.m4:
85995         Update from GNU gettext 0.14.2.
85996         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85997
85998 2005-02-24  Bruno Haible  <bruno@clisp.org>
85999
86000         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86001         * lib/config.charset: Update from GNU gettext 0.14.2.
86002
86003 2005-02-24  Bruno Haible  <bruno@clisp.org>
86004
86005         * lib/gettext.h: Update from GNU gettext 0.14.2.
86006
86007 2005-02-23  Simon Josefsson  <jas@extundo.com>
86008
86009         * m4/iconvme.m4: New file.
86010
86011 2005-02-23  Jim Meyering  <jim@meyering.net>
86012
86013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86014         change.
86015         Thanks to Bruno Haible for catching it.
86016
86017 2005-02-22  Simon Josefsson  <jas@extundo.com>
86018
86019         * modules/iconvme: New file.
86020
86021         * MODULES.html.sh: Add iconvme.
86022
86023 2005-02-22  Simon Josefsson  <jas@extundo.com>
86024
86025         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86026
86027 2005-02-22  Simon Josefsson  <jas@extundo.com>
86028
86029         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86030
86031 2005-02-22  Jim Meyering  <jim@meyering.net>
86032
86033         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86034         s/ifndef/ifdef/.
86035
86036 2005-02-20  Neil Conway  <neilc@samurai.com>
86037
86038         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86039         returned by OSX/Darwin if the specified buffer is not large
86040         enough for the hostname.
86041
86042 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86043
86044         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86045         pass it to _help, otherwise the latter coredumps trying to
86046         dereference state.root_argp.
86047
86048 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         * modules/chdir-long (Depends-on): Add memrchr.
86051         * modules/memrchr (Files): Add lib/memrchr.h.
86052         (Include): "memrchr.h".
86053
86054 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86055
86056         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86057
86058 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86059
86060         * lib/memrchr.h: New file.
86061         * lib/chdir-long.c: Include it.
86062         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86063         Don't bother including stddef.h.
86064
86065 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86068         inclusion.
86069         Include <sys/types.h>, for dev_t.
86070         (ME_DUMMY, ME_REMOTE): Move from here....
86071         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86072         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86073         Dmitry V. Levin.
86074         Include mountlist.h first, to test the interface.
86075
86076 2005-01-29  Bruno Haible  <bruno@clisp.org>
86077
86078         * lib/progname.c (program_name): Initialize.
86079         Needed when linking statically on MacOS X.
86080
86081 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         Sync from coreutils.
86084         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86085         (Depends-on): Add c-strtod.
86086         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86087
86088 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86089
86090         Sync from coreutils.
86091         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86092
86093         Remove files that are specific to coreutils.
86094         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86095
86096 2005-01-28  Bruno Haible  <bruno@clisp.org>
86097
86098         * modules/javacomp: New file.
86099         * MODULES.html.sh (Java): Add javacomp.
86100
86101 2005-01-28  Bruno Haible  <bruno@clisp.org>
86102
86103         * m4/javacomp.m4: New file, from GNU gettext.
86104
86105 2005-01-28  Bruno Haible  <bruno@clisp.org>
86106
86107         * lib/javacomp.sh.in: New file, from GNU gettext.
86108         * lib/javacomp.h: New file, from GNU gettext.
86109         * lib/javacomp.c: New file, from GNU gettext.
86110
86111 2005-01-26  Simon Josefsson  <jas@extundo.com>
86112
86113         * lib/gai_strerror.c: Use GPL in header.
86114
86115 2005-01-26  Bruno Haible  <bruno@clisp.org>
86116
86117         * modules/javaexec: New file.
86118         * MODULES.html.sh (Java): Add javaexec.
86119
86120 2005-01-26  Bruno Haible  <bruno@clisp.org>
86121
86122         * m4/javaexec.m4: New file, from GNU gettext.
86123
86124 2005-01-26  Bruno Haible  <bruno@clisp.org>
86125
86126         * lib/javaexec.sh.in: New file, from GNU gettext.
86127         * lib/javaexec.h: New file, from GNU gettext.
86128         * lib/javaexec.c: New file, from GNU gettext.
86129
86130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86131
86132         * modules/lchown (Depends-on): Remove lchown.h
86133
86134 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86135
86136         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86137         must be defined if the header file was not found, in order
86138         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86139
86140 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86141
86142         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86143         initializers for struct pentry_state.
86144         (__argp_error): Check return value of __asprintf
86145         (__argp_failure): Translate error message
86146
86147         * lib/argp-parse.c: Removed braces around the expansion of N_()
86148
86149 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86150
86151         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86152         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86153         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86154         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86155         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86156         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86157         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86158         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86159         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86160         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86161         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86162         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86163         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86164         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86165         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86166         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86167         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86168         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86169         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86170         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86171         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86172         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86173         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86174         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86175         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86176         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86177         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86178         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86179         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86180         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86181         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86182         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86183         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86184         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86185         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86186         Use an all-permissive copyright notice, recommended by RMS.
86187
86188 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86189
86190         * modules/chdir-long (Depends-on): Remove mempcpy.
86191
86192 2005-01-21  Jim Meyering  <jim@meyering.net>
86193
86194         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86195         same value as for Solaris 9.
86196
86197         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86198         component length.  This included changing the parameter to be
86199         of type `char *' rather than `char const *'.
86200         * lib/chdir-long.h (chdir_long): Update prototype.
86201
86202         * lib/openat.c (fdopendir, fstatat): New functions.
86203         * lib/openat.h: Include headers required for use of DIR and struct
86204         stat.
86205         [AT_SYMLINK_NOFOLLOW]: Define.
86206         (fdopendir, fstatat): Add prototypes.
86207
86208 2005-01-21  Bruno Haible  <bruno@clisp.org>
86209
86210         * modules/classpath: New file.
86211         * MODULES.html.sh (Java): Add classpath.
86212
86213 2005-01-21  Bruno Haible  <bruno@clisp.org>
86214
86215         * lib/classpath.h: New file, from GNU gettext.
86216         * lib/classpath.c: New file, from GNU gettext.
86217
86218 2005-01-20  Simon Josefsson  <jas@extundo.com>
86219
86220         * modules/version-etc-fsf: New file.
86221
86222 2005-01-20  Simon Josefsson  <jas@extundo.com>
86223
86224         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86225         * lib/version-etc.c: Remove version_etc_copyright.
86226         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86227         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86228
86229 2005-01-20  Simon Josefsson  <jas@extundo.com>
86230
86231         * lib/base64.h (isbase64): Add.
86232
86233         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86234         using a unsigned prototype, don't inline.
86235         (base64_decode): Use it.
86236
86237 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86238
86239         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86240         it.
86241
86242 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86243
86244         * lib/save-cwd.c (save_cwd): Remove code to support the case
86245         where fchdir is missing or flaky.
86246
86247 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86250
86251 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86252
86253         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86254         AC_LIBSOURCES now does this.
86255         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86256         with new ullong_max module.
86257
86258 2005-01-19  Bruno Haible  <bruno@clisp.org>
86259
86260         * modules/sh-quote: New file.
86261         * MODULES.html.sh (Executing programs): Add sh-quote.
86262
86263 2005-01-19  Bruno Haible  <bruno@clisp.org>
86264
86265         * lib/sh-quote.h: New file, from GNU gettext.
86266         * lib/sh-quote.c: New file, from GNU gettext.
86267
86268 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86269
86270         Merge from coreutils.
86271         * m4/ullong_max.m4: New file.
86272         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86273         (gl_MACROS): Assume localeconv exists.
86274
86275 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86276
86277         Merge changes from coreutils, as described below in several
86278         changelogs dated today.
86279
86280         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86281         (O_DIRECTORY): Remove; not needed here, since "." must be
86282         a directory.  All uses removed.
86283         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86284         universal on Suns, and we also need to test for IRIX.
86285         Revamp code to use 'if' rather than '#if'.
86286         Avoid unnecessary comparison of cwd->desc to 0.
86287
86288         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86289         for known valid error numbers rather than observed invalid ones.
86290
86291 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * modules/ullong_max: New file.
86294
86295         * modules/chdir-long, modules/openat: New files.
86296         * modules/save-cwd (Depends-on): Depend on chdir-long.
86297         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86298
86299 2005-01-18  Jim Meyering  <jim@meyering.net>
86300
86301         Merge from coreutils.
86302         * m4/chdir-long.m4, m4/openat.m4: New files.
86303         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86304         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86305         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86306         is sane and DOES follow symlinks.  Besides, testing 20 different
86307         systems found no broken chown implementations.
86308         Prompted by a change in rsync's copy of this macro.
86309         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86310
86311         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86312
86313         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86314         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86315         NULL-means-set-to-current-time semantics.
86316         Remove temporary file immediately, rather than waiting
86317         for configure's at-exit trap code to do it.
86318
86319 2005-01-18  Jim Meyering  <jim@meyering.net>
86320
86321         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86322
86323         * lib/utimens.c (futimens): Account for the fact that futimes
86324         can also fail with errno == ENOSYS or errno == ENOENT.
86325         Patch from Dmitry V. Levin.
86326
86327         Change the name of the robust chdir function from chdir to chdir_long.
86328         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86329         (restore_cwd): Use chdir_long, not chdir.
86330         * lib/chdir-long.c: Renamed from chdir.c.
86331         * lib/chdir-long.h: Renamed from chdir.h.
86332         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86333         Hurd.
86334
86335 2005-01-18  Bruno Haible  <bruno@clisp.org>
86336
86337         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86338         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86339         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86340         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86341         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86342         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86343         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86344         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86345         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86346         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86347         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86348         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86349         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86350         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86351         Use an all-permissive copyright notice, recommended by RMS.
86352
86353 2005-01-18  Bob Proulx  <bob@proulx.com>
86354
86355         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86356         simplify offsetof() macro construct to avoid compile failure with
86357         native HP-UX 11.0 ANSI C compiler.
86358
86359 2005-01-17  Bruno Haible  <bruno@clisp.org>
86360
86361         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86362         redundant because stpncpy.m4 takes care of it.
86363
86364 2005-01-17  Bruno Haible  <bruno@clisp.org>
86365
86366         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86367
86368 2005-01-17  Bruno Haible  <bruno@clisp.org>
86369
86370         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86371         used.
86372
86373 2005-01-17  Bruno Haible  <bruno@clisp.org>
86374
86375         * lib/fwriteerror.h (fwriteerror): Change specification to include
86376         fclose.
86377         * lib/fwriteerror.c: Include <stdbool.h>.
86378         (fwriteerror): At the end, close the file stream. Record whether
86379         stdout was already closed.
86380
86381 2005-01-17  Bruno Haible  <bruno@clisp.org>
86382
86383         * lib/execute.c (environ): Declare if needed.
86384         * lib/pipe.c (environ): Likewise.
86385         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86386
86387 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86388
86389         * modules/argp: Depend on vsnprintf
86390
86391 2005-01-10  Jim Meyering  <jim@meyering.net>
86392
86393         * modules/closeout (Depends-on): Add atexit.
86394
86395 2005-01-06  Bruno Haible  <bruno@clisp.org>
86396
86397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86398
86399 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86400
86401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86402         definitions to be after all include files, to avoid collisions.
86403         Problem reported by Bob Proulx.
86404
86405 2005-01-04  Jim Meyering  <jim@meyering.net>
86406
86407         Changes imported from coreutils.
86408         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86409         as the mkstemp template, use a temporary directory and an
86410         8.3-friendly template to avoid trouble on systems like DJGPP.
86411         Reported by Juan M. Guerrero via Stepan Kasal.
86412         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86413         close. Remove the temporary directory right away, rather than waiting
86414         for configure's at-exit trap code to do it.
86415         Suggestion from Stepan Kasal.
86416
86417 2005-01-01  Simon Josefsson  <jas@extundo.com>
86418
86419         * gnulib-tool: Print #include directives when --import'ing.
86420
86421 2004-12-28  Simon Josefsson  <jas@extundo.com>
86422
86423         * tests/test-base64.c: Include required header files.  Remove
86424         unused variables.
86425
86426 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86427
86428         * modules/error (Depends-on): Remove gettext.
86429
86430 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86431
86432         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86433         not needed.  This removes a dependency on the gettext module.
86434         [defined _LIBC]: Do not include <libintl.h>; not needed.
86435
86436 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86437
86438         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86439         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86440
86441 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86442
86443         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86444         HAVE_DECL_STRTOLD.
86445
86446 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86447
86448         * modules/getdate (Depends-on): Remove alloca-opt.
86449
86450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86451
86452         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86453
86454 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86455
86456         * lib/argp-parse.c: Include <stddef.h>.
86457         (alignof, alignto): New macros.
86458         (parser_init): Don't assume that void * is aligned sufficiently
86459         for struct option.
86460
86461         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86462         need to extend the stack.
86463         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86464         large.
86465
86466 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86467
86468         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86469
86470 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86471
86472         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86473         (2004-10-24) change.  Apparently this was a false alarm.
86474
86475         * modules/getdate: Depend on alloca-opt, not alloca.
86476
86477 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86478
86479         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86480         Remove now-obsolete comment about AIX.
86481         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86482         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86483         (YYMAXDEPTH): New macro.
86484
86485 2004-12-18  Simon Josefsson  <jas@extundo.com>
86486
86487         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86488
86489 2004-12-18  Bruno Haible  <bruno@clisp.org>
86490
86491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86492
86493 2004-12-18  Bruno Haible  <bruno@clisp.org>
86494
86495         * lib/fatal-signal.c (fatal_signals): Make non-const.
86496         (init_fatal_signals): New function.
86497         (uninstall_handlers, install_handlers): Ignore signals that were set to
86498         SIG_IGN.
86499         (at_fatal_signal): Call init_fatal_signals.
86500         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86501         SIG_IGN.
86502         Reported by Paul Eggert.
86503
86504 2004-12-18  Bruno Haible  <bruno@clisp.org>
86505
86506         * doc/alloca.texi: New file.
86507         * doc/alloca-opt.texi: New file.
86508
86509 2004-12-17  Jim Meyering  <jim@meyering.net>
86510
86511         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86512         Otherwise, install-sh could exit with improper exit status when
86513         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86514
86515 2004-12-16  Simon Josefsson  <jas@extundo.com>
86516
86517         * tests/test-base64.c: Add license.
86518
86519 2004-12-15  Stepan Kasal  <address@hidden>
86520
86521         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86522
86523 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86524
86525         * modules/getcwd (Files): Add m4/d-ino.m4.
86526         Suggested by Mark D. Baushke.
86527
86528 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86529
86530         * lib/getdate.y (textint): New member "negative".
86531         (time_zone_hhmm): New function.
86532         Expect 14 shift-reduce conflicts, not 13.
86533         (o_colon_minutes): New rule.
86534         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86535         (yylex): Set the "negative" member of signed numbers.
86536
86537 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * doc/getdate.texi (Time of day items, Time zone items):
86540         Describe new formats +00:00, UTC+00:00.
86541
86542 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86543
86544         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86545         spurious "-l"s.  Problem reported by Stepan Kasal.
86546
86547 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86548
86549         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86550         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86551
86552 2004-12-04  Simon Josefsson  <jas@extundo.com>
86553
86554         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86555         Vandoorselaere <yoann@prelude-ids.org>.
86556
86557 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86558
86559         Changes imported from coreutils.
86560         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86561         exist.
86562         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86563
86564 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86565
86566         Changes imported from coreutils.
86567         * lib/hard-locale.c: Assume <locale.h> exists.
86568         Include "strdup.h".
86569         (GLIBC_VERSION): New macro.
86570         (hard_locale): Assume setlocale exists.
86571         Rewrite to avoid #ifdef.
86572         Use strdup rather than malloc + strcpy.
86573         * lib/human.c: Assume <locale.h> exists.
86574         (human_readable): Assume localeconv exists.
86575
86576 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86577
86578         * modules/hard-locale (Depends-on): Add strdup.
86579
86580 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86581
86582         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86583         convert T2, not T.  (Imported from libc.)
86584
86585 2004-11-30  Simon Josefsson  <jas@extundo.com>
86586
86587         * modules/restrict (License): Change to LGPL.
86588
86589 2004-11-30  Simon Josefsson  <jas@extundo.com>
86590
86591         * m4/restrict.m4: Add copyright and copying conditions.
86592
86593 2004-11-30  Simon Josefsson  <jas@extundo.com>
86594
86595         * m4/base64.m4: New file.
86596
86597 2004-11-30  Simon Josefsson  <jas@extundo.com>
86598
86599         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86600         base64.
86601
86602         * tests/test-base64.c: New file.
86603
86604         * modules/base64: New file.
86605
86606 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86607
86608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86609         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86610
86611         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86612
86613 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86616         (__getcwd.c): Don't restore errno; glibc doesn't.
86617         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86618         first, falling back to our code only if its results look suspicious.
86619         Ensure that the resulting buffer is only as large as necessary.
86620
86621         * lib/readutmp.c: Include readutmp.h first.
86622         Include <errno.h>, since readutmp.h no longer does that.
86623         * lib/readutmp.h: Don't include <errno.h>,
86624         <sys/param.h>, <time.h>; not needed to establish interface.
86625         (errno): Remove decl.
86626         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86627         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86628         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86629
86630 2004-11-28  Simon Josefsson  <jas@extundo.com>
86631
86632         * lib/base64.h, base64.c: New file.
86633
86634 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86635
86636         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86637
86638 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86639
86640         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86641         (Depends-on): Remove pathmax, same.  Add mempcpy.
86642         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86643         (Makefile.am): Append getcwd.h to lib_SOURCES.
86644         (Include): Add getcwd.h.
86645         (Maintainer): Change from Jim Meyering to "all, glibc",
86646         since getdate now uses intended-for-glibc code.
86647         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86648         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86649
86650 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86653         HP's ANSI C compiler.
86654         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86655         Declaring int functions causes warnings on some modern systems and
86656         shouldn't be needed to compile on ancient ones.
86657         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86658         defined.
86659
86660         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86661         with the following changes.
86662         (__set_errno): Parenthesize properly.
86663         Include <stdbool.h>.
86664         (MIN, MAX, MATCHING_INO): New macros.
86665         (__getcwd): Define with prototype, not K&R form.
86666         Use heuristics to allocate default buffer on stack if possible.
86667         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86668         behavior, and to avoid the PATH_MAX limit when computing
86669         ../../../../...
86670         Use MATCHING_INO to compare inode number to file.
86671         Check for arithmetic overflow in size calculations.
86672         Fix bug in reallocation of dot array that caused getcwd to fail
86673         on directories nested deeper than 75.
86674         Be more careful about saving errno on error.
86675         Do not use realloc; use only free+malloc, as this is a bit
86676         more flexible and avoids a needless copy operation.
86677         Do not inspect st_dev and st_ino for symbolic links; POSIX
86678         doesn't specify the latter.
86679         Check for closedir errors.
86680         Avoid needless casts.
86681         Use "#ifdef weak_alias" around weak_alias, to be like other
86682         glibc code.
86683         The following changes to getcwd.c have effect only when used in
86684         gnulib; they have no effect inside glibc proper.
86685         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86686         as alloca isn't used.
86687         (alloca, __alloca): Likewise.
86688         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86689         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86690         unconditionally, as gnulib assumes C89 or better.
86691         Do not include <sys/param.h>.
86692         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86693         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86694         better.
86695         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86696         Include <dirent.h> in a way that is compatible with modern Autoconf.
86697         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86698         New macros, if not already defined.
86699         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86700         Use "_LIBC", not "defined _LIBC", for consistency.
86701         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86702         a mempcpy module.
86703         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86704         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86705         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86706         credit only to Jim Meyering and adjust the copyright dates.
86707         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86708         <stdlib.h>, <unistd.h>, "pathmax.h".
86709         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86710         (INITIAL_BUFFER_SIZE): Remove.
86711         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86712
86713 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86714
86715         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86716         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86717         Use the _ONCE methods, for efficiency.
86718         Check for fcntl.h.  In test program, include <errno.h>
86719         and <fcntl.h> if available.  Remove old K&R cruft from
86720         test program.  Check for common errors in GNU/Linux,
86721         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86722         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86723         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86724         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86725         name accordingly.
86726         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86727         accommodate new getcwd.c.
86728         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86729         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86730         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86731         that's all we need now.
86732
86733 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86734
86735         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86736         argp-parse.c depends on getopt internals, that means we should
86737         always use our getopt, to be on the safe side.
86738         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86739         order not to spoil the result of an eventual previous invocation
86740         of gl_GETOPT_SUBSTITUTE.
86741
86742 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86743
86744         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86745         redefinition warnings. To avoid them, include the defines
86746         in `#if !defined __need_getopt ... #endif'. The only place
86747         where __getopt_argv_const is used is in definitions
86748         of getopt_long and getopt_long_only below, which are as well
86749         protected by `#ifndef __need_getopt'.
86750         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86751         __need_getopt after including <stdio.h> and <unistd.h> These
86752         headers might have defined it.
86753
86754 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86755
86756         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86757
86758 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86761         (futimens): New function, which uses futimes if available.
86762         (futimens, utimens): Support timespec==NULL, with same semantics
86763         as utime and utimens.
86764         * lib/utimens.h (futimens): New decl.
86765
86766 2004-11-23  Jim Meyering  <jim@meyering.net>
86767
86768         * lib/getopt_.h: Remove trailing blanks.
86769
86770 2004-11-23  Jim Meyering  <jim@meyering.net>
86771
86772         * lib/__fpending.c: Add comment.
86773
86774 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86775
86776         * modules/canonicalize (Depends-on): Add xreadlink.
86777         Problem reported by James Youngman.
86778
86779 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86782         New macros.
86783         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86784         optopt): Use them instead of invoking ## directly; otherwise, the
86785         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86786
86787 2004-11-19  Bruno Haible  <bruno@clisp.org>
86788
86789         * lib/strtok_r.c: Move comments from here...
86790         * lib/strtok_r.h: ... to here.
86791
86792 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86793
86794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86795         implementations that mishandle size_t overflow.
86796
86797 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86798
86799         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86800         might fail.  Problem reported by Yoann Vandoorselaere.
86801         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86802         implementations that mishandle size_t overflow.
86803
86804 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         * modules/canon-host (Depends-on): Add strdup.
86807
86808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86809
86810         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86811
86812 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86813
86814         * lib/canon-host.c: Include "strdup.h".
86815         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86816         Use strdup instead of malloc/strcpy to duplicate strings.
86817
86818         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86819         (human_space_before_unit): New constant.
86820         * lib/human.c (human_readable): Support it.
86821
86822         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86823         (xgetcwd): Set errno correctly when failing.
86824         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86825         the failure is actually due to a PATH_MAX problem.
86826
86827         Further getopt changes to make it more likely that glibc will
86828         buy the changes back.
86829         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86830         (getopt): Use it, so to preserve glibc semantic
86831         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86832         when compiling for libc.
86833         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86834         (getopt_long, getopt_long_only): Use it.
86835
86836         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86837         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86838         (getopt): Argv is now char * const *, as per standard.
86839         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86840         not char *__getopt_argv_const *.
86841         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86842         _getopt_long_only_r): Likewise.
86843         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86844         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86845         _getopt_long_r, _getopt_long_only_r): Likewise.
86846         * lib/getopt_.h (__getopt_argv_const): Remove.
86847         (getopt): Argv is now char * const *, as per standard.
86848
86849         * lib/getdate.y (tORDINAL): New token.
86850         (day, relunit): Allow it for relative times.
86851         (relative_time_table): Use tORDINAL for ordinals.
86852
86853 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86854
86855         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86856         Document that "second" isn't allowed as an ordinal number.
86857
86858 2004-11-16  Jim Meyering  <jim@meyering.net>
86859
86860         * modules/closeout (Depends-on): Add fpending.
86861
86862 2004-11-15  Jim Meyering  <jim@meyering.net>
86863
86864         * lib/closeout.c: Include "__fpending.h" once again.
86865         Include <stdbool.h>.
86866         (close_stdout): Don't fail just because stdout was closed initially,
86867         since some programs don't write to stdout in the normal course of
86868         operation (other than --version and --help), and we don't want this
86869         function to make e.g. `touch file >&-' fail.
86870         But do fail if it was closed and someone has tried to write to it.
86871         E.g., `printf foo >&-' must fail.
86872
86873 2004-11-13  Jim Meyering  <jim@meyering.net>
86874
86875         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86876
86877 2004-11-12  Simon Josefsson  <jas@extundo.com>
86878
86879         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86880         small doc fix is still pending.
86881
86882 2004-11-11  Simon Josefsson  <jas@extundo.com>
86883
86884         * modules/strtok_r: New file.
86885
86886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86887         strtok_r.
86888
86889 2004-11-11  Simon Josefsson  <jas@extundo.com>
86890
86891         * m4/strtok_r.m4: New file.
86892
86893         * m4/getopt.m4: Replace opterr.
86894
86895 2004-11-11  Simon Josefsson  <jas@extundo.com>
86896
86897         * lib/strtok_r.h, strtok_r.c: New file.
86898
86899 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86900
86901         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86902         of replacing opterr, getopt, etc.  This should handle the
86903         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86904
86905 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86906
86907         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86908         we can stop lying to compilers about the constness of argv when we
86909         are compiled outside glibc.
86910         (getopt, getopt_long, getopt_long_only): Use it.
86911         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86912         _getopt_internal, getopt): Likewise.
86913         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86914         _getopt_long_only_r): Likewise.
86915         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86916         _getopt_long_r, _getopt_long_only_r): Likewise.
86917
86918         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86919         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86920         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86921         the other external symbols.
86922         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86923         declaration, since the above renaming now works around collisions.
86924
86925 2004-11-11  Jim Meyering  <jim@meyering.net>
86926
86927         * lib/linebreak.c: Remove trailing blanks.
86928         * lib/alloca_.h: Likewise.
86929         * lib/acosl.c: Likewise.
86930         * lib/euidaccess.c: Likewise.
86931         * lib/allocsa.h: Likewise.
86932
86933 2004-11-10  Simon Josefsson  <jas@extundo.com>
86934
86935         * m4/getaddrinfo.m4: New file.
86936
86937 2004-11-10  Simon Josefsson  <jas@extundo.com>
86938
86939         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86940
86941 2004-11-10  Simon Josefsson  <jas@extundo.com>
86942
86943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86944         getaddrinfo.
86945
86946         * modules/getaddrinfo: New file.
86947
86948 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86949
86950         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86951
86952 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86953
86954         * lib/mktime.c (SHR): New macro, which is a portable
86955         substitute for >> that should work even on Crays.
86956         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86957         Problem reported by Mark D. Baushke in
86958         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86959         * lib/getdate.y (SHR): Likewise.
86960         (tm_diff): Use it.
86961         * lib/strftime.c (SHR): Likewise.
86962         (tm_diff): Use it.
86963         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86964         quote_these_too, so that right shifts are well defined.  All uses
86965         changed.
86966
86967 2004-11-10  Jim Meyering  <jim@meyering.net>
86968
86969         Ensure that no close failure goes unreported.
86970         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86971         return early when it seems there's nothing to flush.
86972         Don't include __fpending.h.
86973
86974 2004-11-10  Jim Meyering  <jim@meyering.net>
86975
86976         * modules/closeout (Depends-on): Remove fpending.
86977
86978 2004-11-10  Jim Meyering  <jim@meyering.net>
86979
86980         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86981
86982 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86983
86984         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86985         gl_FUNC_STRFTIME.
86986         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86987         and AC_REQUIRE when possible, to avoid duplicate checks.
86988         Check for <wchar.h>.
86989
86990 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86991
86992         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86993
86994 2004-11-09  Bruno Haible  <bruno@clisp.org>
86995
86996         * m4/sockpfaf.m4: New file.
86997
86998 2004-11-05  Bruno Haible  <bruno@clisp.org>
86999
87000         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87001         Reported by Mark D. Baushke <mdb@cvshome.org>.
87002
87003 2004-11-04  Bruno Haible  <bruno@clisp.org>
87004
87005         2004-09-11  Bruno Haible  <bruno@clisp.org>
87006                 * allocsa.valgrind: New file.
87007         2004-02-06  Bruno Haible  <bruno@clisp.org>
87008                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87009                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87010                 Reported by Christopher Seip <chris.seip@hp.com>.
87011
87012 2004-11-04  Bruno Haible  <bruno@clisp.org>
87013
87014         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87015         (Makefile.am): Distribute it.
87016
87017 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87018
87019         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87020         with errno == ERANGE if the buffer is too small.
87021         Problem reported by Mark D. Baushke.
87022
87023 2004-11-03  Albert Chin  <china@thewrittenword.com>
87024             Paul Eggert  <eggert@cs.ucla.edu>
87025
87026         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87027         equivalent, substitute $ac_type for equivalent type rather than
87028         blindly using uint32_t *always* which won't work if uint32_t is not
87029         available.  Define _UINT32_T to work around typedef of uint32_t if
87030         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87031         2.5.1.
87032
87033 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87034
87035         * m4/jm-macros.m4: Sync from coreutils.
87036         (gl_MACROS): Check for mbrlen, for pathchk.
87037         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87038
87039 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87040
87041         * lib/xreadlink.c (MAXSIZE): New macro.
87042         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87043         size does not exceed MAXSIZE.  Avoid cast.
87044         As suggested by Mark D. Baushke in
87045         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87046         if readlink fails with buffer size just under MAXSIZE, try again
87047         with MAXSIZE.
87048
87049 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87050
87051         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87052
87053 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87054         and  Paul Eggert  <eggert@cs.ucla.edu>
87055
87056         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87057         (get_date): Overparenthesize to avoid GCC warning.
87058
87059 2004-11-02  Bruno Haible  <bruno@clisp.org>
87060
87061         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87062         returns void.
87063
87064 2004-11-02  Bruno Haible  <bruno@clisp.org>
87065
87066         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87067         function returns void.
87068
87069 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87070
87071         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87072         fflush_unlocked, flockfile, funlockfile, funlockfile,
87073         fputs_unlocked, putc_unlocked.
87074
87075 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87076
87077         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87078         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87079         already declared.
87080
87081 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87082
87083         * modules/getdate (Files): Add doc/getdate.texi.
87084         (Depends-on): Add setenv, xalloc.
87085
87086 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87087
87088         * lib/getdate.y: Add support for TZ="foo" within a date string.
87089         Fix some bugs near time_t boundaries.  Reject dates with
87090         out-of-range components, e.g., "Sept 31".
87091         Include <stdlib.h>, "setenv.h", "xalloc.h".
87092         (ISDIGIT_LOCALE): Remove; unused.
87093         Note that the TZ and time functions used here are not reentrant.
87094         (mktime_ok, get_tz): New functions.
87095         (TZBUFSIZE): New constant.
87096         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87097         This requires that we sometimes generate our own TZ="XXX..." setting.
87098
87099 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87100
87101         * doc/getdate.texi: New file, from coreutils with modifications for
87102         the new TZ parsing.
87103
87104 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87105
87106         * lib/mktime.c (not_equal_tm): Remove redundant check.
87107
87108 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * modules/regex (lib_SOURCES): Add regex.c.
87111         Reported by James Youngman in
87112         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87113
87114 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87115
87116         * lib/getdate.y: Use Bison 1.875 features, and some minor
87117         code cleanups.  This change does not affect semantics.
87118         Don't include <stdlib.h>; no longer needed.
87119         Don't include unlocked-io.h; only the "#if TEST" code uses
87120         stdio, and performance isn't crucial there.
87121         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87122         Bison 1.875 features as described below.
87123         All uses of "PC." replaced by "pc->".
87124         (YYSTYPE): Add a forward declaration.
87125         (yylex, yyerror): Use full prototypes in forward decls.
87126         Use "%pure-parser" rather than obsolescent "%pure_parser".
87127         Use %parse-param and %lex-param instead of obsolescent
87128         YYPARSE_PARAM and YYLEX_PARAM.
87129         (meridian_table, month_and_day_table, time_units_table,
87130         relative_time_table, time_zone_table, military_table,
87131         lookup_zone, lookup_word, get_date):
87132         Use NULL instead of 0 where appropriate.
87133         (to_hour): Avoid abort (), to avoid a dependency on
87134         stdlib.h.
87135         (yyerror, yylex): Now accepts parser_control * arg.
87136         (main) [TEST]: Use '\0' rather than 0 for char.
87137
87138 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87141
87142 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87145         It's now the caller's responsibility to handle the case where
87146         !HAVE_GETPAGESIZE && !defined getpagesize.
87147
87148         * lib/mktime.c (leapyear): Arg is long int, not int.
87149
87150 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87151
87152         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87153
87154 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87155
87156         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87157         missing.  Problem reported by James Youngman.
87158
87159 2004-10-16  Simon Josefsson  <jas@extundo.com>
87160
87161         * gnulib-tool: Fix comments.  Fix parse problem.
87162         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87163
87164 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87165
87166         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87167         implementation of getopt_long.  Problem reported by Alexander Taler in:
87168         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87169
87170 2004-10-15  Bruno Haible  <bruno@clisp.org>
87171
87172         * gnulib-tool: Untabify. Initialize supplied_libname.
87173         (func_usage): More homogenous output.
87174         (func_modules_transitive_closure, func_modules_to_filelist,
87175         func_emit_lib_Makefile_am): New functions.
87176         (func_import): New function, extracted from big case statement. Use
87177         func_get_license, func_modules_transitive_closure,
87178         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87179         opt_lgpl. Don't use test -a, as it's not portable.
87180         (func_create_testdir): Use func_modules_transitive_closure,
87181         func_modules_to_filelist, func_emit_lib_Makefile_am.
87182
87183 2004-10-15  Bruno Haible  <bruno@clisp.org>
87184
87185         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87186
87187 2004-10-15  Bruno Haible  <bruno@clisp.org>
87188
87189         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87190         the portions belonging to each module.
87191         Suggested by Derek Robert Price <derek@ximbiot.com>.
87192
87193 2004-10-12  Simon Josefsson  <jas@extundo.com>
87194
87195         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87196         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87197         to real functions.
87198
87199 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87200
87201         * modules/vsnprintf: New file.
87202
87203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87204
87205         * m4/vsnprintf.m4: New file.
87206
87207 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87208
87209         * lib/vsnprintf.h: New file.
87210         * lib/vsnprintf.c: New file.
87211
87212 2004-10-11  Bruno Haible  <bruno@clisp.org>
87213
87214         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87215         vsnprintf.
87216
87217 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87218
87219         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87220
87221 2004-10-07  Bruno Haible  <bruno@clisp.org>
87222
87223         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87224         fits into the provided buffer.
87225
87226 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * lib/diacrit.c, diacrit.h: Add GPL notice.
87229
87230         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87231         notice.
87232         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87233         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87234         This avoids a potential constant-folding bug.
87235
87236 2004-10-05  Bruno Haible  <bruno@clisp.org>
87237
87238         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87239         for the declaration of strsep.
87240
87241 2004-10-05  Bruno Haible  <bruno@clisp.org>
87242
87243         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87244
87245 2004-10-04  Simon Josefsson  <jas@extundo.com>
87246
87247         * modules/memmem: New file.
87248         * tests/test-memmem.c: New file.
87249         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87250
87251 2004-10-04  Simon Josefsson  <jas@extundo.com>
87252
87253         * m4/memmem.m4: New file.
87254
87255 2004-10-04  Simon Josefsson  <jas@extundo.com>
87256
87257         * lib/memmem.h: New file.
87258         * lib/memmem.c: New file, taken from glibc.
87259
87260 2004-10-04  Simon Josefsson  <jas@extundo.com>
87261
87262         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87263         '#ifdef USE_UNLOCKED_IO'.
87264
87265 2004-10-04  Simon Josefsson  <jas@extundo.com>
87266
87267         * config/srclist.txt: Add memmem from glibc.
87268
87269 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87272
87273         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87274         modules/exclude, modules/getdate, modules/getline,
87275         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87276         modules/getusershell, modules/linebuffer, modules/md5,
87277         modules/mountlist, modules/posixtm, modules/readtokens,
87278         modules/readutmp, modules/regex, modules/sha1,
87279         modules/version-etc, modules/yesno:
87280         Remove dependency on unlocked-io.
87281
87282 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87283
87284         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87285
87286         * m4/unlocked-io.m4: Add copyright notice.
87287         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87288
87289 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87292         * lib/xmalloc.c (xmemdup): Likewise.
87293         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87294         XFREE): Remove these long-obsolescent macros.
87295         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87296         * lib/xstrdup.c: Remove.
87297
87298         * lib/regex.c (re_comp): Cast gettext return value to char *,
87299         Problem reported by Martin Neitzel via Mark D. Baushke.
87300
87301 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87302
87303         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87304         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87305         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87306         regex.c, sha1.c, version-etc.c, yesno.c:
87307         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87308         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87309         the includer's responsibility.
87310
87311         Sync from coreutils.
87312
87313         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87314         points to the start of a string, as the C Standard says the
87315         resulting behavior is undefined.
87316
87317         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87318         simple -> simple_backups, numbered_existing ->
87319         numbered_existing_backups, numbered -> numbered_backups
87320         to avoid shadowing problems.  All uses changed.
87321         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87322         * lib/backupfile.c (check_extension, numbered_backup):
87323         Rename locals to avoid shadowing 'basename'.
87324         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87325         once.
87326
87327         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87328         * lib/.cvsignore: Add getopt.h.
87329
87330 2004-10-04  Bruno Haible  <bruno@clisp.org>
87331
87332         * modules/README: New file.
87333         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87334         not a module.
87335
87336 2004-10-02  Jim Meyering  <jim@meyering.net>
87337
87338         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87339
87340 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87341
87342         * modules/strsep: New file.
87343
87344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87345
87346         * m4/strsep.m4: New file.
87347
87348 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87349
87350         * lib/strsep.h: New file.
87351         * lib/strsep.c: New file.
87352
87353 2004-10-01  Simon Josefsson  <jas@extundo.com>
87354
87355         * lib/snprintf.c (snprintf): Handle size==0.
87356
87357 2004-10-01  Simon Josefsson  <jas@extundo.com>
87358             Bruno Haible  <bruno@clisp.org>
87359
87360         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87361         (snprintf): Declare 'args'.
87362
87363 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * lib/snprintf.c: Remove comments as to why each header is needed.
87366
87367 2004-10-01  Bruno Haible  <bruno@clisp.org>
87368
87369         * MODULES.html.sh: Add strsep.
87370
87371 2004-09-30  Simon Josefsson  <jas@extundo.com>
87372
87373         * modules/snprintf: New file.
87374
87375 2004-09-30  Simon Josefsson  <jas@extundo.com>
87376
87377         * m4/snprintf.m4: New file.
87378
87379 2004-09-30  Simon Josefsson  <jas@extundo.com>
87380
87381         * lib/snprintf.h, lib/snprintf.c: New files.
87382
87383 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87384
87385         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87386         (hol_entry_help): Never translate an empty string.
87387         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87388         * lib/argp.h (OPTION_NO_TRANS): New option.
87389
87390 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87391
87392         * modules/argp (Maintainer): Replace Simon Josefsson
87393         by Sergey Poznyakoff.
87394
87395 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87396
87397         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87398         changes merged back into glibc.
87399
87400 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87401
87402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87403
87404 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87405
87406         * lib/xvasprintf.c: Include xalloc.h.
87407         (xvasprintf): Use xalloc_die, not xmalloc_die.
87408
87409 2004-09-29  Bruno Haible  <bruno@clisp.org>
87410
87411         * modules/alloca-opt: New file, derived from modules/alloca.
87412         * modules/allocsa: Depend on alloca-opt instead of alloca.
87413         * modules/setenv: Likewise.
87414         * modules/vasnprintf: Likewise.
87415         * MODULES.html.sh: Add alloca-opt.
87416
87417 2004-09-28  Simon Josefsson  <jas@extundo.com>
87418
87419         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87420         LGPL, and to replace license template from GPL to LGPL.
87421
87422 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87423
87424         * modules/dummy: Change license to LGPL.
87425
87426 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87427
87428         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87429
87430 2004-09-24  Simon Josefsson  <jas@extundo.com>
87431
87432         * modules/minmax (License): Change from GPL to LGPL.
87433
87434 2004-09-23  Simon Josefsson  <jas@extundo.com>
87435
87436         * gnulib-tool (--import): Typo.
87437
87438 2004-09-23  Simon Josefsson  <jas@extundo.com>
87439
87440         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87441
87442 2004-09-22  Bruno Haible  <bruno@clisp.org>
87443
87444         * modules/*: Add 'License' field.
87445         * gnulib-tool: Accept --extract-license option.
87446         (func_get_license): New function.
87447
87448 2004-09-21  Bruno Haible  <bruno@clisp.org>
87449
87450         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87451         Reported by Simon Josefsson.
87452
87453 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87454
87455         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87456         gl_AC_TYPE_LONG_LONG.
87457
87458 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87459
87460         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87461
87462 2004-09-18  Simon Josefsson  <jas@extundo.com>
87463         and  Paul Eggert  <eggert@cs.ucla.edu>
87464
87465         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87466         calls with autoreconf.  Define GL_LIB.
87467
87468 2004-09-14  Karl Berry  <karl@gnu.org>
87469
87470         * config/srclist.txt: unsync setenv.c, sigh.
87471
87472 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87473
87474         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87475         Problem reported by Bruno Haible in:
87476         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87477
87478 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87479
87480         * config/srclist.txt: Comment out argp-pvh.c.
87481
87482 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87485         in case some system header has #define'd it.  Problem reported by
87486         Soeren D. Schulze in
87487         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87488
87489 2004-09-09  Karl Berry  <karl@gnu.org>
87490
87491         * regex.[ch]: delete from the root.  These were supposed to be
87492                 synced with emacs cvs, but this has not happened for about
87493                 a year, and anyway nothing else uses emacs regex.[ch].
87494                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87495                 lib/regex[.ch] is untouched.
87496
87497 2004-09-09  Bruno Haible  <bruno@clisp.org>
87498
87499         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87500
87501 2004-09-09  Bruno Haible  <bruno@clisp.org>
87502
87503         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87504         modifications.
87505         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87506
87507 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87508
87509         * modules/xvasprintf: New file.
87510         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87511
87512 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87513
87514         * lib/xvasprintf.h: New file.
87515         * lib/xvasprintf.c: New file.
87516         * lib/xasprintf.c: New file.
87517
87518 2004-09-08  Bruno Haible  <bruno@clisp.org>
87519
87520         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87521
87522 2004-09-08  Bruno Haible  <bruno@clisp.org>
87523
87524         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87525         length is > INT_MAX.
87526         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87527         more.
87528
87529 2004-09-08  Bruno Haible  <bruno@clisp.org>
87530
87531         * lib/stdint_.h: New file, taken from GNU clisp.
87532
87533 2004-09-08  Bruno Haible  <bruno@clisp.org>
87534             Oskar Liljeblad  <oskar@osk.mine.nu>
87535
87536         * modules/stdint: New file.
87537         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87538
87539 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87540
87541         Import from coreutils.
87542         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87543         strings on unbounded length.  alloca's performance benefits aren't
87544         that important here.
87545         (V_STRDUP): Remove.
87546         (parse_with_separator): New function, with most of the internals
87547         of the old parse_user_spec.  Allow user to omit both user and group,
87548         for compatibility with FreeBSD.
87549         Clone only the user name, not the entire spec.
87550         Do not set *uid, *gid unless entirely successful.
87551         Avoid memory leak in some failing cases.
87552         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87553         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87554         (parse_user_spec): Rewrite to use parse_with_separator.
87555
87556 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         * modules/userspec: Don't depend on alloca.
87559
87560 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87561
87562         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87563
87564 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87565
87566         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87567         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87568         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87569
87570 2004-08-16  Simon Josefsson  <jas@extundo.com>
87571
87572         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87573         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87574         Add --dry-run for --import.
87575         Let user provided command line parameters override configure.ac
87576         settings.
87577
87578 2004-08-12  Simon Josefsson  <jas@extundo.com>
87579
87580         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87581         as discussed with Paul Eggert in threads rooted at
87582         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87583         and
87584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87585         Before, the test was empty, and relied on ELIDE_CODE in source
87586         code.)
87587         (gl_PREREQ_GETOPT): New macro.
87588         (gl_GETOPT): Use them.
87589
87590 2004-08-12  Simon Josefsson  <jas@extundo.com>
87591
87592         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87593         * lib/getopt_.h: Renamed from getopt.h.
87594
87595 2004-08-12  Simon Josefsson  <jas@extundo.com>
87596
87597         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87598         Change default library name from libfoo to libgnu.
87599         Now, if you have a configure.ac that says:
87600                 gl_SOURCE_BASE(gl)
87601                 gl_M4_BASE(gl/m4)
87602                 gl_MODULES(error getopt etcetera)
87603                 gl_INIT
87604         you can import all you need by running:
87605                 ../gnulib/gnulib-tool --import
87606
87607         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87608         (Makefile.am): Rewrite, use logic from argz.
87609         (Include): Use <getopt.h> instead of "getopt.h".
87610
87611 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87612
87613         * modules/argp (Files): Add m4/unlocked-io.m4.
87614         (Depends-on): Add extensions.
87615
87616 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87617
87618         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87619         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87620         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87621         Check for program_invocation_name, program_invocation_short_name,
87622         flockfile, funlockfile, features.h, _getopt_long_only_r.
87623
87624 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87627         its complicated substitute.
87628         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87629         and program_invocation_name.
87630         (__argp_basename) [!_LIBC]: Remove; the only use was
87631         replaced by its body.
87632         (__argp_short_program_name): Change condition from
87633         !defined __argp_short_program_name to
87634         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87635         to match argp-namefrob.h.
87636         (__argp_failure): Don't assume strerror_r returns char *.
87637         * lib/argp-parse.c (N_): Define unconditionally.
87638         (argp_default_options): Fill out initializers with 0 to avoid
87639         gcc warnings.
87640
87641 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87642
87643         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87644         getopt1.c.
87645
87646 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87647
87648         Merge from coreutils.
87649
87650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87651
87652         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87653         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87654
87655 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87656
87657         Merge from coreutils.
87658
87659         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87660         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87661         for Reliant Unix 5.43.
87662
87663         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87664         (union fooround): Use uintmax_t, not long int.
87665         The rest is a merge from libc:
87666         [defined _LIBC]: Include <shlib-compat.h>.
87667         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87668
87669         * lib/settime.c (settime): Recode to avoid warning with
87670         Sun Forte C 6U2.
87671
87672         * lib/strverscmp.c: Convert to UTF-8.
87673
87674 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87675
87676         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87677         m4/uintmax_t.m4.
87678
87679 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87680
87681         * modules/xalloc-die: New file.
87682         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87683
87684         * modules/md5 (Files): Add m4/uint32_t.m4.
87685         * modules/sha1: Renamed from modules/sha.
87686         (Files):
87687         Rename lib/sha.h to lib/sha1.h.
87688         Rename lib/sha.c to lib/sha1.c.
87689         Rename m4/sha.m4 to m4/sha1.m4.
87690         (lib_SOURCES): Likewise.
87691         (configure.ac): Rename gl_SHA to gl_SHA1.
87692         (Include): sha.h -> sha1.h.
87693
87694 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87695
87696         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87697         * m4/sha1.m4: Renamed from sha.m4.
87698         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87699
87700 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87701
87702         * lib/obstack.h (obstack_empty_p):
87703         Don't assume that chunk->contents is suitably aligned.
87704         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87705         Likewise. Problem reported by Benno in
87706         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87707
87708         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87709         readable.  This could be improved further but it'd take some work.
87710
87711 2004-08-08  Simon Josefsson  <jas@extundo.com>
87712
87713         * modules/xgethostname (Depends-on): Remove exit and error (not
87714         used).
87715
87716         * modules/getpass-gnu: Add getpass.h.
87717         (Depends-on): Add stdbool.
87718         * modules/getpass: Add getpass.h.
87719
87720 2004-08-08  Simon Josefsson  <jas@extundo.com>
87721
87722         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87723         Check getpass declaration.
87724
87725 2004-08-08  Simon Josefsson  <jas@extundo.com>
87726
87727         * lib/xgethostname.c: Don't include error.h (not used).
87728
87729         * lib/getpass.h: Add.
87730         * lib/getpass.c: Include getpass.h first.
87731
87732 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87733
87734         * lib/xalloc-die.c: New file.
87735         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87736         All uses removed.
87737         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87738         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87739         xalloc-die.c.
87740         (_, N_, xalloc_die): Move to xalloc-die.c.
87741         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87742         so that we needn't mess with xalloc_msg_memory_exhausted.
87743
87744         * lib/sha1.h: Renamed from sha.h.
87745         (SHA1_H): Renamed from _SHA_H.
87746         (sha1_ctx): Renamed from sha_ctx.
87747         (sha1_init_ctx): Renamed from sha_init_ctx.
87748         (sha1_process_block): Renamed from sha_process_block.
87749         (sha1_process_bytes): Renamed from sha_process_bytes.
87750         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87751         (sha1_read_ctx): Renamed from sha_read_ctx.
87752         (sha1_stream): Renamed from sha_stream.
87753         (sha1_buffer): Renamed from sha_buffer.
87754         * lib/sha1.c: Likewise; renamed from sha.c.
87755         Do not include <sys/types.h>.
87756         Include <stddef.h> rather than <stdlib.h>.
87757
87758 2004-08-08  Bruno Haible  <bruno@clisp.org>
87759
87760         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87761         FILESYSTEM_PREFIX_LEN.
87762         * lib/progreloc.c: Likewise.
87763         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87764
87765 2004-08-06  Simon Josefsson  <jas@extundo.com>
87766
87767         * modules/progname (Depends-on): Don't depend on stdbool.
87768
87769 2004-08-06  Simon Josefsson  <jas@extundo.com>
87770
87771         * modules/getsubopt: New file.
87772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87773         getsubopt.
87774
87775 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87776
87777         More merge from coreutils.
87778
87779         * m4/utimens.m4, m4/utimecmp.m4: New files.
87780         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87781         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87782         prereq.m4, sha.m4: Import changes from coreutils.
87783
87784 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87785
87786         More merge from coreutils.
87787         * modules/raise, modules/readtokens0, modules/utimens:
87788         * modules/utimecmp, module/xnanosleep: New files.
87789         * modules/strftime: Add lib/strftime.h.
87790         Change include from <time.h> to "strftime.h".
87791         * modules/yesno: Add lib/yesno.h.
87792         * modules/backupfile: Remove lib/addext.c.
87793         * modules/euidaccess: Add stat-macros.h.
87794         * modules/canonicalize, modules/euidaccess,
87795         modules/filemode, modules/lchown, modules/makepath,
87796         modules/rmdir, modules/stat: Likewise.
87797
87798 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         Merge from tar.
87801         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87802         SIZE_MAX is a valid preprocessor constant.
87803         (__argp_basename): Change from "#ifndef _LIBC"
87804         to "#ifndef __argp_short_program_name", so that
87805         we don't compile these functions for tar.
87806
87807         More merges from coreutils.
87808         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87809         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87810         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87811         * lib/addext.c: Remove; no longer needed.
87812         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87813         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87814         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87815         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87816         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87817         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87818         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87819         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87820         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87821         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87822         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87823         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87824         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87825         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87826         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87827         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87828         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87829         Import changes from coreutils.
87830
87831 2004-08-05  Simon Josefsson  <jas@extundo.com>
87832
87833         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87834
87835 2004-08-05  Simon Josefsson  <jas@extundo.com>
87836
87837         * m4/getsubopt.m4: New file.
87838
87839 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87840
87841         Merge from coreutils.
87842
87843         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87844         * m4/getcwd-path-max.m4: New files.
87845
87846         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87847         FILESYSTEM_PREFIX_LEN ->
87848         FILE_SYSTEM_PREFIX_LEN.
87849         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87850         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87851         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87852         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87853
87854         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87855         prerequisite modules now handle the DOS stuff.
87856         Don't check for unistd.h.
87857
87858 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87859
87860         Merge from coreutils.
87861
87862         * lib/.gdb-history: Remove; this doesn't belong here.
87863
87864         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87865         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87866         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87867         * lib/getcwd.c: New files.
87868
87869         * lib/dirname.h: Include <stdbool.h>.
87870         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87871         for consistency with POSIX terminology.  All uses changed.
87872         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87873         (strip_trailing_slashes): Use bool for booleans.
87874         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87875
87876         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87877         sometimes returns a positive errno value even when it succeeds.
87878         (print_errno_message) [!LIBC]: Fall back on strerror if
87879         __strerror_r fails.
87880
87881         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87882         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87883         (longest_relative_suffix): New function.
87884         (path_concat): Use it.  Assume first argument is not NULL.
87885         Port to DOS.  Omit redundant separators.
87886         Report an error instead of returning NULL.
87887         Use mempcpy instead of memcpy.
87888         (xpath_concat): Remove: not declared or used.
87889
87890         * lib/same.h: Include <stdbool.h>
87891         (same_name): Return bool, not int.
87892         * lib/same.c (same_name): Likewise.
87893         (errno): Don't declare; we assume C89 or better now.
87894
87895         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87896         if not already defined.
87897
87898         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87899         * lib/dup-safer.c (errno): Likewise.
87900
87901 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87902
87903         Merge from coreutils.
87904         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87905         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87906         * modules/path-concat: Don't depend on strdup.
87907
87908 2004-08-03  Simon Josefsson  <jas@extundo.com>
87909
87910         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87911         * lib/progname.h: Don't include stdbool.h.
87912
87913 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87916         * MODULES.html.sh (func_all_modules): Remove fatal.
87917
87918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87919
87920         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87921
87922 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87923
87924         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87925         working.
87926
87927 2004-08-02  Simon Josefsson  <jas@extundo.com>
87928
87929         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87930         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87931         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87932
87933 2004-08-01  Simon Josefsson  <jas@extundo.com>
87934
87935         * lib/xgetdomainname.c: Include stdlib.h, for free().
87936
87937 2004-07-19  Bruno Haible  <bruno@clisp.org>
87938
87939         * MODULES.html.sh (func_all_modules): Add dummy.
87940
87941 2004-07-16  Simon Josefsson  <jas@extundo.com>
87942
87943         * modules/dummy: New file.
87944
87945 2004-07-16  Simon Josefsson  <jas@extundo.com>
87946
87947         * lib/dummy.c: New file.
87948
87949 2004-07-16  Bruno Haible  <bruno@clisp.org>
87950
87951         * lib/backupfile.h: Add extern "C" for C++.
87952         * lib/closeout.h: Likewise.
87953         * lib/copy-file.h: Likewise.
87954         * lib/findprog.h: Likewise.
87955         * lib/full-write.h: Likewise.
87956         * lib/pathname.h: Likewise.
87957         * lib/progname.h: Likewise.
87958         * lib/stpcpy.h: Likewise.
87959         * lib/stpncpy.h: Likewise.
87960         * lib/strcase.h: Likewise.
87961         * lib/strstr.h: Likewise.
87962         * lib/xalloc.h: Likewise.
87963
87964         * lib/mbswidth.h: Add extern "C" for C++.
87965         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87966
87967 2004-07-13  Robert Millan  <robertmh@gnu.org>
87968
87969         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87970
87971 2004-07-09  Simon Josefsson  <jas@extundo.com>
87972
87973         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87974         failed without this.)
87975
87976 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87977
87978         * modules/chown (Files): Add lib/fchown-stub.c, since
87979         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87980
87981 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87982
87983         * lib/fchown-stub.c: New file.
87984
87985 2004-06-24  Jim Meyering  <jim@meyering.net>
87986
87987         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87988
87989 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * modules/argz: Omit "#include".
87992
87993         * MODULES.html.sh (func_all_modules): Add calloc, to match
87994         2004-06-01 addition of calloc module.
87995
87996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87997
87998         * m4/argz.m4: New file, which is autoupdated from libtool.
87999
88000 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88001
88002         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88003         libtool.
88004
88005 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         * config/srclist-update: Don't insist on "USA." before the
88008         close-comment, as libtool omits the period and puts the */ on a
88009         separate line.
88010         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88011         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88012
88013 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88014
88015         * modules/argz: New file.
88016         * MODULES.html.sh (func_all_modules): Add argz.
88017
88018 2004-06-12  Jim Meyering  <jim@meyering.net>
88019         and  Paul Eggert  <eggert@cs.ucla.edu>
88020
88021         * modules/hash (Files): Add lib/xalloc.h.
88022         * modules/pipe (Depends-on): Add wait-process.
88023         * modules/stat (Depends-on): Add xalloc.
88024         * modules/userspec (Files): Add lib/userspec.h.
88025         * modules/xstrto
88026
88027         Upgrade from gettext-0.13.
88028         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88029         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88030         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88031
88032 2004-06-10  Jim Meyering  <jim@meyering.net>
88033
88034         * lib/calloc.c: New file.
88035
88036 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88037
88038         * lib/getdate.y (yylex): Allow space between sign and number.
88039         Problem reported by Dan Jacobson.
88040
88041 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88042
88043         Merge from coreutils CVS.
88044
88045         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88046         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88047         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88048         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88049         xstrtol.m4: Fix copyright date and/or serial number.
88050
88051         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88052         See if we need an fchown replacement.
88053         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88054         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88055         and use the replacement function if we detect either defect.
88056
88057         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88058         gl_UTIMECMP.
88059
88060 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88061         and  Jim Meyering  <jim@meyering.net>
88062
88063         Merge from coreutils CVS.
88064
88065         * lib/stat-macros.h: New file, with contents from file-type.h
88066         and coreutils' system.h.
88067         * lib/file-type.c: Include "stat-macros.h".
88068         * lib/file-type.h (file_type): Move all macro definitions to new file,
88069         stat-macros.h.
88070
88071         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88072         Wrap old code with this conditional.
88073         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88074         function that does not dereference symlinks.
88075         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88076
88077         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88078         dependency problems.
88079         (xreadlink): Accept new arg SIZE, for efficiency.
88080         All decls and uses changed.
88081         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88082
88083         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88084         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88085
88086         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88087         sysexits.h.
88088
88089 2004-06-01  Jim Meyering  <jim@meyering.net>
88090
88091         * m4/calloc.m4: New file.
88092
88093 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88096         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88097         Also, fix a typo in a diagnostic.
88098
88099 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88100
88101         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88102         or AC_FUNC_REALLOC.
88103
88104 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88105
88106         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88107         macros to be defined.
88108         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88109         the allocator returns NULL because the requested size is zero.
88110
88111 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88112
88113         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88114         var.  Add comment explaining why libc still defines it.  This
88115         merges the following patch from glibc:
88116         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88117
88118 2004-05-20  Andreas Schwab  <schwab@suse.de>
88119
88120         * m4/free.m4: Replace free if it not known to work, not the other
88121         way round.
88122
88123 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88126         present in glibc since revision 1.1 of this file.
88127         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88128         obstack_alignment_mask, obstack_alloc, obstack_base,
88129         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88130         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88131         obstack_grow0, obstack_init, obstack_int_grow,
88132         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88133         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88134         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88135         nonexistent functions.
88136
88137 2004-05-18  Karl Berry  <karl@gnu.org>
88138
88139         * config/srclist.txt: break link for vasnprintf.c.
88140
88141 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88142
88143         Port obstack to the AS/400, where pointers are 16 bytes wide and
88144         you cannot cast an integer to a valid pointer.  This patch is
88145         currently waiting to be integrated into glibc; see
88146         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88147
88148         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88149         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88150         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88151         (struct obstack): temp member is now a union of a pointer and
88152         an integer, instead of an integer.  All integer uses changed.
88153         This does not affect the physical layout of struct obstack,
88154         except on hosts (like the AS/400) where the size or alignment of
88155         void * is greater than that of ptrdiff_t.
88156         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88157         __STDC__)]: Store temporary in pointer member of union, not
88158         integer member.
88159         * lib/obstack.c: Include <stddef.h>, for offsetof.
88160         (struct fooalign): Remove; it doesn't need a name.
88161         (union fooround): Change double to long double, and add void *.
88162         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88163         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88164         not a macro.  Hence the values are always int; so remove all
88165         casts-to-int in uses.
88166
88167 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88168
88169         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88170         we can get this patch merged into glibc.
88171
88172 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88173             Paul Eggert  <eggert@cs.ucla.edu>
88174
88175         * m4/argp: Depend on alloca.
88176
88177 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88178             Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88181         freecoding.
88182
88183 2004-05-17  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88186         precision that consists of a '.' followed by an empty digit string.
88187         Patch by Tor Lillqvist <tml@iki.fi>.
88188
88189 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88190
88191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88192         for backward compatibility with older code.  We need our own
88193         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88194         it under some other name, and our alloca.h will define it.
88195
88196 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88197             Derek Price  <derek@ximbiot.com>
88198
88199         * lib/alloca.c: Include <alloca.h>, to get our interface.
88200         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88201         include <alloca.h> first.  Use C89 prototype for alloca; this
88202         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88203         Use #elif for simplicity, since we can assume C89 now.
88204         Don't try to source the system alloca.h since it will not be found
88205         and to prevent recursively including its replacement.
88206         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88207         * lib/regex.c: Likewise.
88208
88209 2004-05-16  Derek Price  <derek@ximbiot.com>
88210             Paul Eggert  <eggert@cs.ucla.edu>
88211
88212         getline cleanup.  This changes the getndelim2 API: both order of
88213         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88214         no delimiter).
88215
88216         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88217         interface does that.
88218         (getline): Always use getdelim, so that we don't have two
88219         copies of this code.
88220         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88221         if available.
88222         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88223         (GETNDELIM2_MAXIMUM): New macro.
88224         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88225         instead of the old practice of delim2==0.  All callers changed.
88226         Return -1 on overflow, instead of returning junk.
88227         Do not set *linesize unless allocation succeeds.
88228         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88229         that we include sys/types.h.
88230         * lib/getnline.h: Likewise.
88231         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88232         (getndelim2): Reorder arguments.
88233         * lib/getnline.c (getnline, getndelim):
88234         Don't discard the NMAX argument.
88235         (getnline): Invoke getndelim, to avoid code duplication.
88236         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88237         of (size_t) -1 by callers of the getnline family.
88238
88239 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88240
88241         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88242         Check for gettimeofday.
88243         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88244         Check for settimeofday, stime.
88245
88246 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         * lib/nanosleep.c (suspended): Change its type from int to
88249         sig_atomic_t volatile.
88250         (first_call): Make it private to rpl_nanosleep, and have it
88251         be zero initially as that's a bit faster.
88252         (my_usleep): Round up fractional times instead of truncating them,
88253         as this is the usual meaning for 'sleep'.
88254
88255         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88256         doesn't work.
88257         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88258         (ENOSYS): Define if not defined.
88259         (settime): Fall back on stime if it exists and settimeofday fails.
88260         But don't bother with fallbacks if a method fails with errno == EPERM.
88261
88262 2004-05-11  Jim Meyering  <jim@meyering.net>
88263
88264         Prior to this change, the save_cwd caller required read access to the
88265         current directory on most systems (ones with the fchdir function).
88266
88267         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88268         fails, try write-only, and finally, resort to using xgetcwd.
88269
88270 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88271
88272         * lib/obstack.c, obstack.h: Import changes from libc.
88273
88274 2004-04-28  Bruno Haible  <bruno@clisp.org>
88275
88276         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88277         also implicitly appends .exe to executables.
88278         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88279         accepts Windows pathnames.
88280         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88281         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88282         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88283         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88284         Reported by Derek Robert Price <derek@ximbiot.com>.
88285
88286 2004-04-21  Karl Berry  <karl@gnu.org>
88287
88288         * config/srclist.txt (localcharset.c): break sync.
88289
88290 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88291
88292         * m4/host-os.m4: Add a copyright notice.
88293
88294 2004-04-20  Jim Meyering  <jim@meyering.net>
88295
88296         Change UTILS_ to gl_ in AC_DEFINE'd names.
88297         Change utils_- and jm_-prefixed variables, too.
88298         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88299         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88301
88302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88303         Don't emit trailing blanks.
88304         Also rename jm_-prefixed variables to have gl_ prefix.
88305
88306         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88307         Also rename jm_-prefixed variables to have gl_ prefix.
88308
88309         * m4/jm-macros.m4: Reflect the renamings.
88310         * m4/prereq.m4: Likewise.
88311
88312 2004-04-20  Jim Meyering  <jim@meyering.net>
88313
88314         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88315         memory.
88316
88317 2004-04-20  Jim Meyering  <jim@meyering.net>
88318             Bruno Haible  <bruno@clisp.org>
88319
88320         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88321         memory when realloc fails.
88322
88323 2004-04-19  Jim Meyering  <jim@meyering.net>
88324
88325         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88326         now that readutmp.c may call `free (0)'.
88327
88328 2004-04-19  Bruno Haible  <bruno@clisp.org>
88329
88330         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88331         * m4/inttypes_h.m4: Likewise.
88332         * m4/stdint_h.m4: Likewise.
88333         * m4/intmax_t.m4: Likewise.
88334         * m4/uintmax_t.m4: Likewise.
88335
88336 2004-04-18  Jim Meyering  <jim@meyering.net>
88337
88338         * m4/prereq.m4: Don't forbid jm_ prefix.
88339
88340         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88341         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88342         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88343         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88344         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88345         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88346         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88347         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88348         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88349         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88350         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88351         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88352         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88353         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88354         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88355         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88356         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88357         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88358         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88359
88360 2004-04-18  Jim Meyering  <jim@meyering.net>
88361
88362         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88363         failure, don't leak memory and do call END_UTMP_ENT.
88364
88365 2004-04-16  Jim Meyering  <jim@meyering.net>
88366
88367         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88368         coreutils' stat program.
88369         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88370
88371 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88372
88373         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88374         C89.
88375         (CHAR_BIT): Remove, since we assume C89.
88376         Include <stdint.h> if available, as per current Autoconf CVS advice.
88377
88378 2004-03-31  Jim Meyering  <jim@meyering.net>
88379
88380         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88381         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88382         * m4/xalloc.m4: Likewise.
88383
88384 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88385
88386         Merge from coreutils.
88387
88388         * m4/inttostr.m4: New file.
88389         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88390         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88391         Require gl_CLOCK_TIME.
88392         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88393
88394 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88395
88396         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88397         not bool, to be more consistent with Unix conventions.
88398         Suggested by Bruno Haible.
88399
88400         Merge from coreutils.
88401
88402         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88403         * lib/umaxtostr.c: New files.
88404
88405         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88406         the usual <time.h> dance.
88407         (get_date): Change signature to support fractional time stamps.
88408         All callers changed.
88409         * lib/getdate.y: Include "getdate.h" first, as we can now
88410         assume C89 and don't need to worry about 'const'.
88411         Similarly, include "unlocked-io.h" near start, not in middle.
88412         Include <limits.h>.
88413         (textint.value): Use long int rather than int.
88414         (textint.digits): Use size_t rather than int.
88415         (BILLION, LOG10_BILLION): New constants.
88416         (parser_control): New member rel_ns.  Members day_ordinal,
88417         time_zone, month, day, hour, minutes, rel_year, rel_month,
88418         rel_day, rel_hour, rel_minutes, rel_seconds
88419         are now long int, not int.  Member seconds is now struct timespec,
88420         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88421         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88422         not int.
88423         (%union.intval): Now long int, not int.
88424         New member timespec.
88425         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88426         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88427         (spec): Now is a timespec or an item list.
88428         (timespec, items): New nonterminals.
88429         (time, rel, relunit, number, get_date):
88430         Add support for fractional seconds.
88431         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88432         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88433         (to_hour): First arg is now long int, not int.
88434         (to_year): Returns long int, not int.
88435         Don't treat year -70 like 70.
88436         (tm_diff): Returns long int, not int.
88437         (lookup_word): Use bool instead of int when appropriate.
88438         (yylex): Use size_t for count, not int.
88439         Detect overflow when parsing large integer constants.
88440         Add support for fractions.
88441         (get_date): Make pointers 'const' if possible.
88442         Use more-portable code to detect integer overflow.
88443         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88444         Don't use ctime; it's not reliable if the year has >4 digits.
88445
88446         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88447         This is for compatibility with BSD.
88448
88449         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88450         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88451         From coreutils' system.h.
88452
88453         * lib/userspec.c: Don't include "posixver.h".
88454         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88455         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88456         compatible extension.  Simplify code by removing a boolean int
88457         that was always nonzero if a string was nonnull.
88458
88459 2004-03-30  Jim Meyering  <jim@meyering.net>
88460
88461         Merge from coreutils.
88462
88463         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88464         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88465         on some systems one must include <grp.h> before it.
88466         Reported by Christian Krackowizer.
88467
88468 2004-03-30  Jim Meyering  <jim@meyering.net>
88469
88470         Merge from coreutils.
88471
88472         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88473
88474         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88475         an empty input stream.
88476
88477         * lib/readtokens.c: Include <stdbool.h>.
88478         (readtoken): Use `size_t' rather than int/long.
88479         All callers adjusted.
88480         Use `bool' rather than `int' where appropriate.
88481         Use memset rather than an explicit loop.
88482         Use x2nrealloc rather than xrealloc.
88483         Allow the use of `\0' as a delimiter.
88484         (readtokens): Likewise.
88485         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88486
88487 2004-03-30  Jim Meyering  <jim@meyering.net>
88488
88489         * m4/realloc.m4: Remove file, since now it does no more than
88490         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88491         the `configure.ac' section of module/realloc.
88492         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88493
88494 2004-03-30  Bruno Haible  <bruno@clisp.org>
88495
88496         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88497         nonnull.
88498
88499 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88500
88501         Merge changes to getloadavg.c from coreutils and Emacs.
88502
88503         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88504         Define to an expression, not to the empty string.
88505         Include cloexec.h and xalloc.h.
88506         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88507         Use set_cloexec_flag rather than rolling our own.
88508         * lib/cloexec.c, lib/cloexec.h: New files.
88509
88510 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88511
88512         * m4/cloexec.m4: New file.
88513
88514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88515
88516         * lib/getopt.h: Sync with libc CVS.
88517
88518 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88519             Bruno Haible  <bruno@clisp.org>
88520
88521         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88522         mbswidth.
88523
88524 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88525             Bruno Haible  <bruno@clisp.org>
88526
88527         * lib/mbswidth.h: Include <wchar.h> only if
88528         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88529         <wchar.h>.
88530         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88531
88532 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88533
88534         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88535         Sync with libc CVS.
88536         * lib/getopt_int.h: New file, also synced from libc.
88537
88538 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88539
88540         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88541         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88542         Bring back getopt.c, getopt.h, getopt1.c.
88543
88544 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88545
88546         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88547         All uses changed.  Check for sa_sigaction member; this fixes
88548         a bug first reported by Jason Andrade in
88549         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88550
88551 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88552
88553         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88554         '#if' expressions.  Unlike the code it replaces, it does not
88555         depend on (defined _SC_PAGESIZE).  However, it does depend on
88556         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88557         first reported by Jason Andrade in
88558         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88559
88560 2004-02-25  Simon Josefsson  <jas@extundo.com>
88561
88562         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88563
88564 2004-02-25  Simon Josefsson  <jas@extundo.com>
88565
88566         * lib/strdup.h: New file.
88567         * lib/strdup.c: Include it.
88568         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88569         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88570
88571 2004-02-23  Karl Berry  <karl@gnu.org>
88572
88573         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88574         (from fencepost.gnu.org:/gd/gnuorg).
88575
88576 2004-02-23  Karl Berry  <karl@gnu.org>
88577
88578         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88579         * config/srclist.txt: add maintain/standards documents.
88580
88581 2004-02-18  Bruno Haible  <bruno@clisp.org>
88582
88583         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88584         Reported by Derek Robert Price <derek@ximbiot.com>.
88585
88586 2004-02-16  Karl Berry  <karl@gnu.org>
88587
88588         * config/mkinstalldirs, install-sh: update from automake.
88589
88590 2004-02-06  Karl Berry  <karl@gnu.org>
88591
88592         * m4/po.m4: update from gettext 0.14.1.
88593
88594 2004-02-06  Karl Berry  <karl@gnu.org>
88595
88596         * lib/config.charset: update from gettext 0.14.1.
88597
88598 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88599
88600         Add comments and code, prompted by suggestions from Bruno Haible
88601         for sh-quote.
88602         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88603         describing the enum quoting_style values.
88604         * lib/quotearg.c (quotearg_alloc): New function.
88605         (quotearg_buffer_restyled): Treat lone { and } as special.
88606         Treat = as special.  Work around bug with older shells
88607         that "see" a '\' that is really the 2nd byte of a multibyte char.
88608         Quote empty string with shell_quoting_style.
88609
88610 2004-02-03  Bruno Haible  <bruno@clisp.org>
88611
88612         * m4/pipe.m4: New file, from GNU gettext.
88613
88614 2004-02-03  Bruno Haible  <bruno@clisp.org>
88615
88616         * lib/pipe.h: New file, from GNU gettext.
88617         * lib/pipe.c: New file, from GNU gettext.
88618
88619 2004-01-27  Bruno Haible  <bruno@clisp.org>
88620
88621         * m4/execute.m4: New file, from GNU gettext.
88622
88623 2004-01-27  Bruno Haible  <bruno@clisp.org>
88624
88625         * lib/execute.h: New file, from GNU gettext.
88626         * lib/execute.c: New file, from GNU gettext.
88627         * lib/w32spawn.h: New file, from GNU gettext.
88628
88629 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88630
88631         Merge from diffutils.
88632
88633         * lib/file-type.c (file_type): Add typed memory objects.
88634         * lib/file-type.h (S_TYPEISTMO): New macro.
88635
88636         * lib/c-stack.h (c_stack_action): Remove argv argument.
88637         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88638         (die): Don't calculate message unless segv_action returns.
88639         (get_stack_location, min_address_from_argv, max_address_from_argv,
88640         volatile stack_base, volatile_stack_size): Remove.
88641         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88642         that every segmentation violation is a stack overflow.  (Ouch!)
88643         See Debian bug 136249 (still outstanding) for more info about why
88644         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88645
88646 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88647
88648         Exit-status fix from coreutils.
88649
88650         Use exit_failure consistently in place of EXIT_FAILURE,
88651         so that program exit statuses are consistent on failure.
88652
88653         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88654         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88655         * lib/argmatch.h: Comment fix to match the above.
88656         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88657         Now a macro referring to exit_failure, instead of a separate
88658         variable.  Include "exitfail.h" to get it.
88659         * lib/xstrtol.h: Include "exitfail.h".
88660         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88661
88662         * lib/long-options.c (parse_long_options): Use prototype
88663         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88664         for clarity.
88665
88666 2004-01-21  Jim Meyering  <jim@meyering.net>
88667
88668         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88669         so as not to conflict with a different-sized __mktime_internal
88670         function in GNU libc.
88671         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88672         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88673
88674 2004-01-20  Karl Berry  <karl@gnu.org>
88675
88676         * config/config.guess: update from config.
88677
88678         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88679
88680 2004-01-20  Bruno Haible  <bruno@clisp.org>
88681
88682         Safer stack allocation.
88683         * lib/setenv.c: Include allocsa.h.
88684         (alloca): Remove fallback definition.
88685         (freea): Remove macro.
88686         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88687         instead of freea.
88688
88689 2004-01-20  Bruno Haible  <bruno@clisp.org>
88690
88691         * m4/eealloc.m4: New file, from GNU gettext.
88692
88693 2004-01-20  Bruno Haible  <bruno@clisp.org>
88694
88695         * m4/allocsa.m4: New file, from GNU gettext.
88696
88697 2004-01-20  Bruno Haible  <bruno@clisp.org>
88698
88699         * lib/xallocsa.h: New file, from GNU gettext.
88700         * lib/xallocsa.c: New file, from GNU gettext.
88701
88702 2004-01-20  Bruno Haible  <bruno@clisp.org>
88703
88704         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88705
88706 2004-01-20  Bruno Haible  <bruno@clisp.org>
88707
88708         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88709         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88710         specially.
88711
88712 2004-01-20  Bruno Haible  <bruno@clisp.org>
88713
88714         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88715         patch.
88716
88717 2004-01-20  Bruno Haible  <bruno@clisp.org>
88718
88719         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88720
88721 2004-01-20  Bruno Haible  <bruno@clisp.org>
88722
88723         * lib/eealloc.h: New file.
88724
88725 2004-01-20  Bruno Haible  <bruno@clisp.org>
88726
88727         * lib/binary-io.h: Avoid warnings on Cygwin.
88728
88729 2004-01-20  Bruno Haible  <bruno@clisp.org>
88730
88731         * lib/allocsa.h: New file, from GNU gettext.
88732         * lib/allocsa.c: New file, from GNU gettext.
88733
88734 2004-01-18  Karl Berry  <karl@gnu.org>
88735
88736         * doc/gpl.texi, doc/lgpl.texi: new files.
88737
88738 2004-01-18  Karl Berry  <karl@gnu.org>
88739
88740         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88741         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88742
88743 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88744
88745         Merge from coreutils.
88746
88747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88748         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88749         (gl_DEFAULT_POSIX2_VERSION): Move
88750         the documentation from 'configure' into 'config.hin',
88751         so that 'configure --help' isn't burdened by it and
88752         we don't have to worry about its formatting there.
88753         Reword the documentation so that it's more succinct
88754         and can be run together into a single paragraph.
88755         * m4/same.m4 (gl_SAME): Check for pathconf.
88756
88757 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88758
88759         Merge from coreutils.
88760
88761         * lib/posixver.c: Include posixver.h.
88762
88763         * lib/same.c: Include <stdbool.h>, <limits.h>.
88764         (_POSIX_NAME_MAX): Define if not defined.
88765         (MIN): New macro.
88766         (same_name): If file names are silently truncated, report
88767         that the file names are the same if they are the same after
88768         the silent truncation.
88769
88770         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88771         conversion function.
88772         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88773         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88774         longer needed.
88775
88776 2004-01-15  Jim Meyering  <jim@meyering.net>
88777
88778         Merge from coreutils.
88779
88780         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88781         if no library is required.
88782         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88783         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88784         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88785         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88786         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88787         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88788         value, $ac_cv_search_crypt, if it's "none required".
88789         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88790         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88791         not gl_FUNC_GETLOADAVG.
88792         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88793         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88794
88795 2004-01-15  Jim Meyering  <jim@meyering.net>
88796
88797         Merge from coreutils.
88798
88799         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88800         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88801         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88802
88803         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88804         optional configure-time default.
88805
88806         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88807
88808         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88809
88810 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88811
88812         Merge from coreutils.
88813
88814         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88815         value, $ac_cv_search_nanosleep, if it's "none required".
88816
88817 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88818
88819         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88820         with like-named macro in fnmatch.c.
88821         (EXT): Use an internal constant instead.
88822
88823         Merge fnmatch patches from glibc.
88824         * lib/fnmatch.c (mbsinit): Remove define.
88825         Add libc_hidden_ver (__fnmatch, fnmatch).
88826         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88827         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88828
88829 2004-01-14  Karl Berry  <karl@gnu.org>
88830
88831         * config/install-sh: update from automake.
88832
88833 2004-01-13  Karl Berry  <karl@gnu.org>
88834
88835         * config/install-sh: update from automake.
88836
88837 2004-01-09  Karl Berry  <karl@gnu.org>
88838
88839         * config/install-sh: update from automake.
88840
88841 2004-01-05  Karl Berry  <karl@gnu.org>
88842
88843         * config/config.{sub,guess}: update from config.
88844
88845 2003-12-31  Karl Berry  <karl@gnu.org>
88846
88847         * config/depcomp: update from automake.
88848
88849 2003-12-14  Karl Berry  <karl@gnu.org>
88850
88851         * lib/config.charset: update from gettext-runtime.
88852
88853 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88856         Bug reported by Alfred M. Szmidt.
88857
88858 2003-12-03  Bruno Haible  <bruno@clisp.org>
88859
88860         * m4/gettext.m4: Upgrade from gettext-0.13.
88861         * m4/po.m4: Upgrade from gettext-0.13.
88862         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88863         * m4/intmax.m4: New file, from gettext-0.13.
88864         * m4/printf-posix.m4: New file, from gettext-0.13.
88865
88866 2003-11-29  Karl Berry  <karl@gnu.org>
88867
88868         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88869
88870 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88871             Bruno Haible  <bruno@clisp.org>
88872
88873         * lib/printf-parse.h: Don't include sys/types.h.
88874         (ARG_NONE): New macro.
88875         (char_directive): Change type of *arg_index fields to size_t.
88876         * lib/printf-parse.c: Don't include sys/types.h.
88877         (SSIZE_MAX): Remove macro.
88878         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88879         Remove unnecessary overflow check.
88880         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88881         fields.
88882
88883 2003-11-25  Bruno Haible  <bruno@clisp.org>
88884
88885         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88886
88887 2003-11-25  Bruno Haible  <bruno@clisp.org>
88888
88889         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88890         gt_TYPE_SSIZE_T.
88891
88892 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88893
88894         * modules/alloca: Remove dependency on xalloc.
88895
88896 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/alloca.c: Remove dependency on xalloc module.
88899         (xalloc_die): Remove.
88900         (memory_full) [!defined emacs]: New macro.
88901         [!defined emacs]: Don't include xalloc.h.
88902         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88903         address arithmetic overflows.  Change datatypes a bit to avoid
88904         unnecessary casts.
88905
88906 2003-11-22  Jim Meyering  <jim@meyering.net>
88907
88908         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88909         s/size/size_t/.
88910
88911 2003-11-21  Karl Berry  <karl@gnu.org>
88912
88913         * config/config.{sub,guess}: update from config.
88914
88915 2003-11-18  Karl Berry  <karl@gnu.org>
88916
88917         * config/config.{sub,guess}: update from config.
88918
88919         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88920
88921 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88922
88923         * README: Mention that S+T cannot overflow if S is the size of
88924         an existing object and T is sufficiently small.
88925
88926 2003-11-17  Jim Meyering  <jim@meyering.net>
88927
88928         On systems without utime and without a utimes function capable of
88929         dealing with a NULL struct utimbuf* argument, this utime replacement
88930         could -- in unusual circumstances -- leak a file descriptor.
88931         * lib/utime.c: Include <unistd.h> and <errno.h>.
88932         (utime_null): Be sure to close `fd' and to preserve errno.
88933         Reported by Geoff Collyer via Arnold Robbins.
88934
88935 2003-11-17  Bruno Haible  <bruno@clisp.org>
88936
88937         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88938         (Depends-on): Add xsize.
88939
88940 2003-11-17  Bruno Haible  <bruno@clisp.org>
88941
88942         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88943
88944 2003-11-17  Bruno Haible  <bruno@clisp.org>
88945
88946         * lib/vasnprintf.c (alloca): Remove fallback definition.
88947         (freea): Remove definition.
88948         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88949         Reported by Paul Eggert.
88950
88951 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88952             Bruno Haible  <bruno@clisp.org>
88953
88954         Protect against address arithmetic overflow.
88955         * lib/printf-args.h: Include stddef.h.
88956         (arguments): Change type of field 'count' to size_t.
88957         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88958         'unsigned int' where appropriate.
88959         * lib/printf-parse.h: Include sys/types.h.
88960         (char_directive): Change type of *arg_index fields to ssize_t.
88961         (char_directives): Change type of fields 'count', max_*_length to
88962         size_t.
88963         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88964         (SSIZE_MAX): Define fallback value.
88965         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88966         instead of 'int' where appropriate. Check a_allocated, d_allocated
88967         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88968         * lib/vasnprintf.c: Include xsize.h.
88969         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88970         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88971         overflow. Avoid wraparound when converting a width or precision from
88972         decimal to binary.
88973
88974 2003-11-16  Bruno Haible  <bruno@clisp.org>
88975
88976         Update from GNU gettext.
88977         * lib/printf-parse.c: Generalize to it can be compiled for wide
88978         strings.
88979         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88980         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88981         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88982         SNPRINTF): New macros.
88983         Don't include <alloca.h> if the file is used inside libintl.
88984         (local_wcslen): New function, for Solaris 2.5.1.
88985         (VASNPRINTF): Use it instead of wcslen.
88986
88987 2003-11-16  Bruno Haible  <bruno@clisp.org>
88988
88989         * lib/xsize.h (xmax): New function.
88990         (xsum, xsum3, xsum4): Declare as "pure" functions.
88991
88992 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88993
88994         * modules/xalloc (Files): Undo latest change, since xalloc.h
88995         no longer needs SIZE_MAX or PTRDIFF_MAX.
88996
88997 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88998
88999         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89000         gl_PTRDIFF_MAX.
89001
89002 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89003
89004         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89005         "return", to pacify some unknown compiler.  Problem reported
89006         by Joerg Schilling.
89007
89008 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89009
89010         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89011         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89012         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89013         heuristic is just as accurate as far as we know, and it removes a
89014         dependency on size_max.m4 and ptrdiff_max.m4.
89015
89016 2003-11-11  Bruno Haible  <bruno@clisp.org>
89017
89018         * modules/xsize (Files): Add m4/size_max.m4.
89019         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89020
89021 2003-11-11  Bruno Haible  <bruno@clisp.org>
89022
89023         * m4/size_max.m4: New file.
89024         * m4/ptrdiff_max.m4: New file.
89025         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89026         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89027         (gl_XALLOC): Invoke it.
89028
89029 2003-11-11  Bruno Haible  <bruno@clisp.org>
89030
89031         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89032         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89033         defined.
89034
89035 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89036
89037         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89038         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89039         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89040         From Bruno Haible.
89041         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89042         not (size_t) -1, since it's defined here.
89043
89044 2003-11-09  Karl Berry  <karl@gnu.org>
89045
89046         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89047
89048 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89049
89050         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89051         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89052         Reject sizes of exactly SIZE_MAX bytes.
89053         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89054         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89055
89056 2003-11-05  Bruno Haible  <bruno@clisp.org>
89057
89058         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89059         SIZE_MAX defined in <limits.h> on Solaris.
89060
89061 2003-11-04  Jim Meyering  <jim@meyering.net>
89062
89063         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89064         variable names, rather than @VAR@.
89065         * modules/poll: Likewise.
89066
89067 2003-11-04  Bruno Haible  <bruno@clisp.org>
89068
89069         * modules/xsize: New file.
89070         * modules/linebreak: Depend on xsize.
89071         * MODULES.html.sh (func_all_modules): Add xsize.
89072
89073 2003-11-04  Bruno Haible  <bruno@clisp.org>
89074
89075         * m4/xsize.m4: New file.
89076
89077 2003-11-04  Bruno Haible  <bruno@clisp.org>
89078
89079         * lib/xsize.h: New file.
89080         * lib/linebreak.c: Include xsize.h.
89081         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89082         argument for overflow.
89083         Suggested by Paul Eggert.
89084
89085 2003-11-03  Karl Berry  <karl@gnu.org>
89086
89087         * config/config.{guess,sub}: update from config.
89088
89089 2003-11-03  Jim Meyering  <jim@meyering.net>
89090
89091         * modules/userspec (lib_SOURCES): Add userspec.h.
89092         (Include): Add "userspec.h".
89093         Improve description.
89094
89095 2003-11-03  Jim Meyering  <jim@meyering.net>
89096
89097         * lib/userspec.c: Include "userspec.h".
89098         * lib/userspec.h: New file.
89099
89100 2003-11-03  Bruno Haible  <bruno@clisp.org>
89101
89102         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89103
89104 2003-11-03  Bruno Haible  <bruno@clisp.org>
89105
89106         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89107         available, to avoid (extremely rare) race condition.
89108         Suggested by Paul Eggert.
89109
89110 2003-11-02  Karl Berry  <karl@gnu.org>
89111
89112         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89113
89114 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89115
89116         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89117         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89118         (read_filesystem_list): Set and use me_type_malloced.
89119         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89120         whatever the type happens to be), for brevity and consistency.
89121         Check for size calculation overflow on Alphas running OSF/1.
89122
89123 2003-10-31  Jim Meyering  <jim@meyering.net>
89124
89125         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89126
89127         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89128
89129 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89130             Bruno Haible  <bruno@clisp.org>
89131
89132         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89133         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89134
89135 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89136
89137         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89138         netbsd*-gnu*.  Suggested by Robert Millan.
89139
89140 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89141
89142         * modules/group-member: Depend on stdbool.
89143
89144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89145
89146         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89147
89148 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89149
89150         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89151         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89152         after the 'gnu' in these cases.  This fixes some bugs in the
89153         previous change, and is based on suggestions by Robert Millan.
89154
89155 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89156
89157         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89158         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89159         no longer needed.
89160         * lib/quotearg.c (quotearg_n_options): Use it.
89161         * lib/group-member.c: Include <stdbool.h>.
89162         (free_group_info): Arg is now const *; don't free arg.
89163         (get_group_info): Now returns bool and accepts struct group_info *,
89164         rather than returning a malloc'ed struct group_info *.
89165         All uses changed.  Check for overflow in internal size calculation.
89166
89167         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89168         rather than xmalloc/xrealloc.
89169         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89170         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89171         conformance bug: the old code used a pointer after freeing the
89172         storage that it addressed.
89173         * lib/hash.c (hash_initialize): Simplify the code by using
89174         xalloc_oversized rather than doing it by hand.
89175         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89176         the buffer preserved.  Use free and xmalloc instead.
89177         * lib/quotearg.c (quotearg_n_options): Likewise.
89178         Use a simpler test for size overflow.  Don't use xalloc_oversized
89179         because unsigned int might be wider than size_t (!); this suggests
89180         that we should switch from unsigned int to size_t for slot numbers.
89181
89182 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89183
89184         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89185         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89186         NetBSD kernels.  Requested by Richard Stallman.
89187
89188 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89189
89190         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89191         to allocate the returned structure.  Do not allocate a subarray,
89192         as x2nrealloc will do that.
89193         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89194         instead of xnrealloc.
89195         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89196
89197 2003-10-27  Bruno Haible  <bruno@clisp.org>
89198
89199         * lib/stdbool_.h: Better support for BeOS.
89200
89201 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89202
89203         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89204         now uses inline.
89205
89206 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89207
89208         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89209         callers that want to do their own size-overflow checking.  Include
89210         <stdbool.h>, since xalloc_oversized returns bool.
89211         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89212         to use xalloc_oversized.
89213
89214         Add two functions x2realloc, x2nrealloc, for programs that grow
89215         arrays dynamically by doubling their sizes.
89216         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89217         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89218         New functions.
89219
89220         Port to C99 semantics for 'inline' of external functions.
89221         Bug reported by Bruno Haible.
89222         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89223         with the old contents of xnmalloc.
89224         (xnmalloc, xmalloc): Use it.
89225         (xnrealloc_inline): New static inline function,
89226         with the old contents of xnrealloc.
89227         (xnrealloc, xrealloc): Use it.
89228
89229         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89230         that.
89231
89232 2003-10-26  Karl Berry  <karl@gnu.org>
89233
89234         * config/srclist.txt (COPYING.DOC): no longer available from
89235         /gd/gnuorg; don't know where the ultimate source is.
89236
89237 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89238
89239         Fix several address-calculation bugs in the hash modules,
89240         plus some minor code cleanup.
89241
89242         * lib/hash.h: Include <stdbool.h>, for bool.
89243         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89244         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89245         hash_get_n_entries, hash_get_max_bucket_length,
89246         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89247         hash_rehash): Use size_t rather than unsigned.
89248         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89249         hash_get_n_buckets_used, hash_get_n_entries,
89250         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89251         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89252         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89253         Likewise.
89254         (SIZE_MAX): Define if not defined.
89255         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89256         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89257         hash_print):
89258         Use const * when possible.
89259         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89260         (check_tuning): Fix bug: if tuning parameters were very close to
89261         0 or 1, rounding errors could have caused subscript violations.
89262         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89263         (hash_initialize): Add 'fail:' label
89264         to free table and return NULL, and use it to simplify code.
89265         Use calloc rather than clearing the storage ourself.
89266         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89267         buffer size calculations.
89268         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89269         Include <stddef.h>, for size_t.
89270         * lib/hash-pjw.c (hash_pjw): Likewise.
89271         Switch to method described by Bruno Haible.
89272         Include <limits.h>, for CHAR_BIT.
89273         (SIZE_BITS): New macro.
89274
89275 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89276
89277         * m4/getline.m4 (AM_FUNC_GETLINE):
89278         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89279         hosts.  Problem reported by Derek Robert Price in
89280         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89281         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89282         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89283
89284 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89285
89286         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89287         ceiling the allocation at NMAX bytes rather than silently
89288         discarding input bytes before NMAX is reached.  This makes
89289         a difference only if NMAX exceeds SIZE_MAX / 2.
89290
89291         * lib/obstack.c: Merge from glibc.
89292         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89293         Add libc_hidden_def (_obstack_newchunk).
89294         (_obstack_free) [! defined _LIBC]: Remove.
89295         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89296         a clone of the function body.
89297         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89298         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89299
89300         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89301         glibc.
89302         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89303         arg to memcpy.
89304
89305         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89306         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89307         Don't use lvalue casts, as GCC plans to remove support for them
89308         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89309         was also present in the non-GCC version, indicating that this
89310         code had always been buggy and had never been widely used.
89311         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89312         Use the fast variant of each macro, rather than copying the
89313         definiens of the fast variant; that way, we'll be more likely to
89314         catch future bugs in the fast variants.
89315
89316 2003-10-20  Bruno Haible  <bruno@clisp.org>
89317
89318         * modules/wait-process: New file.
89319         * MODULES.html.sh (func_all_modules): Add wait-process.
89320
89321 2003-10-20  Bruno Haible  <bruno@clisp.org>
89322
89323         * m4/wait-process.m4: New file.
89324
89325 2003-10-20  Bruno Haible  <bruno@clisp.org>
89326
89327         * lib/wait-process.h: New file, from GNU gettext.
89328         * lib/wait-process.c: New file, from GNU gettext.
89329
89330 2003-10-19  Jim Meyering  <jim@meyering.net>
89331
89332         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89333         HPUX 10.20.
89334
89335 2003-10-18  Karl Berry  <karl@gnu.org>
89336
89337         * config/config.guess: update from config.
89338
89339 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89340
89341         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89342         (getgroups): First arg is int, not size_t.
89343         Don't let 'free' mangle errno.
89344
89345 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89346
89347         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89348
89349 2003-10-16  Karl Berry  <karl@gnu.org>
89350
89351         * config/config.{guess,sub}: update from config.
89352
89353 2003-10-16  Jim Meyering  <jim@meyering.net>
89354
89355         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89356         memcpy.
89357
89358 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89359
89360         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89361         (SIZE_MAX): Remove.
89362         (new_exclude, add_exclude_file): Initial size no longer needs to
89363         be a power of 2.
89364         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89365         our own address arithmetic overflow checking.
89366
89367         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89368         (fnmatch): Do not alloca more than 2000 wide characters;
89369         instead, use malloc for large buffers.
89370         Check for address arithmetic overflow, and return -1
89371         with errno set to ENOMEM in that case.
89372         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89373         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89374         instead, return -1.  Check for address arithmetic overflow.
89375
89376 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89377
89378         Handle invalid suffixes and overflow independently, so that
89379         callers can treat them independently as needed.  Fix some bugs in
89380         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89381         suffix for a human-readable blocksize.  The major caller-visible
89382         change is the addition of a new
89383         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89384         that both overflow and suffix chars were found.
89385
89386         * lib/human.c (humblock): Don't check separately for invalid suffix
89387         char; that is xstrtoumax's job (now that its bug is fixed).
89388         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89389         INTMAX_MAX]: New macros.
89390         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89391         TYPE_MAXIMUM): New macros.
89392         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89393         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89394         if overflow occurs, as it's what __strtol does and it's more useful
89395         in practice.
89396         (__xstrtol): If __strtol reports some error other than ERANGE,
89397         reflect it to the caller as LONGINT_INVALID.  If it reports
89398         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89399         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89400         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89401         value.
89402         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89403         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89404         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89405         [defined UINTMAX_MAX]: New macros.
89406
89407 2003-10-14  Bruno Haible  <bruno@clisp.org>
89408
89409         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89410
89411 2003-10-14  Bruno Haible  <bruno@clisp.org>
89412
89413         * m4/sig_atomic_t: New file, from GNU gettext.
89414         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89415
89416 2003-10-14  Bruno Haible  <bruno@clisp.org>
89417
89418         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89419         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89420         Also use volatile where needed.
89421
89422 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89423
89424         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89425         Change maintainer from Bruno Haible to 'all'.
89426
89427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89428
89429         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89430
89431 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89434         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89435         and define in terms of the other primitives.
89436         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89437         (SIZE_MAX): Define if not already defined.
89438         (array_size_overflow): New function.
89439         (xalloc_die): Abort instead of exiting if 'error' returns.
89440         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89441         (xmalloc, xrealloc): Use them.
89442         (xcalloc): Check for address arithmetic overflow.
89443         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89444         a bit faster than strcpy.
89445
89446 2003-10-10  Simon Josefsson  <jas@extundo.com>
89447
89448         * modules/argp (Depends-on): Add restrict and strcase.
89449
89450 2003-10-10  Simon Josefsson  <jas@extundo.com>
89451
89452         * m4/argp.m4: Add AC_C_INLINE.
89453
89454 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89455
89456         Merge getpass from libc, plus a few fixes.
89457
89458         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89459         Include <stdbool.h>.
89460         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89461         __fsetlocking to empty.
89462         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89463         do include <bits/libc-lock.h>.
89464         Do not include <fcntl.h>; not needed.
89465         [_LIBC]: Include <wchar.h>.
89466         (NOTCANCEL_MODE): New macro.
89467         (flockfile, funlockfile) [_LIBC]: New macros.
89468         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89469         [!_LIBC]: New macros.
89470         (call_fclose): New function.
89471         (getpass): Use it.  Save tty stream separately; this simplifies the
89472         code and makes it more reliable if stdin happens to equal stdout.
89473         Invoke __fsetlocking on tty.
89474         Handle thread cancellation if needed.
89475         Namespace cleanup (use __tcgetattr, __getline).
89476         Use bool for Booleans.
89477         [USE_IN_LIBIO]: Handle wide streams.
89478         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89479         stream might go where.
89480
89481         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89482         doesn't have to include <stdio.h> before us.
89483         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89484         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89485         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89486         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89487         if not declared, so that we can use getpass.c code from libc without
89488         rewriting it.
89489         (flockfile, ftrylockfile, funlockfile): New macros.
89490
89491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89492
89493         * modules/getpass: Depend on stdbool.
89494
89495 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89496
89497         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89498
89499 2003-10-07  Karl Berry  <karl@gnu.org>
89500
89501         * config/config.{guess,sub}: update from config.
89502
89503 2003-10-06  Jim Meyering  <jim@meyering.net>
89504             Bruno Haible  <bruno@clisp.org>
89505
89506         This lets translators provide better translations for the
89507         "Written by ..." part of --version output.
89508         * lib/version-etc.h: Include stdarg.h.
89509         (version_etc_copyright): Declare as readonly.
89510         (version_etc): Make this function variadic with a NULL-terminated list
89511         of author name strings.
89512         (version_etc_va): New declaration.
89513         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89514         (version_etc_copyright): Declare as readonly.
89515         (version_etc_va): New function. Provide a different translatable string
89516         for each possible number of authors < 10. Abbreviate when there are 10
89517         authors or more.
89518         (version_etc): Make this function variadic. Call version_etc_va.
89519         Suggestion from Gary V. Vaughan.
89520
89521         * lib/long-options.h (parse_long_options): Change prototype: the
89522         authors string is moved to the end and becomes variadic.
89523         * lib/long-options.c: Include stdarg.h.
89524         (parse_long_options): Make this function variadic, too.
89525         Call version_etc_va, not version_etc.
89526
89527 2003-10-06  Bruno Haible  <bruno@clisp.org>
89528
89529         * modules/version-etc-2: Remove file.
89530         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89531
89532 2003-10-06  Bruno Haible  <bruno@clisp.org>
89533
89534         * modules/fatal-signal: New file.
89535         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89536
89537 2003-10-06  Bruno Haible  <bruno@clisp.org>
89538
89539         * m4/fatal-signal.m4: New file.
89540         * m4/signalblocking.m4: New file, from GNU gettext.
89541
89542 2003-10-06  Bruno Haible  <bruno@clisp.org>
89543
89544         * lib/version-etc-2.h: Remove file.
89545         * lib/version-etc-2.c: Remove file.
89546
89547 2003-10-06  Bruno Haible  <bruno@clisp.org>
89548
89549         * lib/fatal-signal.h: New file, from GNU gettext.
89550         * lib/fatal-signal.c: New file, from GNU gettext.
89551
89552 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89553
89554         * README: Rework advice for preventing empty .o files.
89555         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89556         not <sys/types.h>.
89557
89558 2003-10-04  Karl Berry  <karl@gnu.org>
89559
89560         * lib/argp*: update from libc.
89561
89562 2003-10-04  Karl Berry  <karl@gnu.org>
89563
89564         * config/config.{guess,sub}: update from config.
89565
89566 2003-10-02  Bruno Haible  <bruno@clisp.org>
89567
89568         * modules/lchown (Include): Add lchown.h.
89569         * modules/time_r (Include): Use "..." syntax.
89570         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89571
89572 2003-10-01  Simon Josefsson  <jas@extundo.com>
89573
89574         * MODULES.html.sh (func_all_modules): Move gethostname from section
89575         'based on' to section 'lacking' POSIX:2001.
89576
89577 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89578
89579         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89580         to output mode on the same stream.
89581
89582 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89583
89584         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89585         Fix arg typo in previous patch.
89586
89587 2003-09-28  Jim Meyering  <jim@meyering.net>
89588
89589         * lib/error.c: Correct cpp indentation.
89590
89591 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89592
89593         * modules/free: New file.
89594
89595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89596
89597         * m4/free.m4: New file.
89598
89599 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89600
89601         * lib/minmax.h (MIN, MAX)
89602         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89603         Omit the special code that used __typeof__, since we worry that
89604         it could be more trouble than it's worth.  See:
89605         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89606         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89607
89608         * lib/free.c: New file.
89609
89610 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89611
89612         Trivial fixes to Makefile.am parts of module listings.
89613         * modules/strstr: Append strstr.h to lib_SOURCES.
89614         * modules/strcase: Likewise, for strcase.h.
89615
89616 2003-09-27  Karl Berry  <karl@gnu.org>
89617
89618         * config/mkinstalldirs: update from automake.
89619
89620 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89621
89622         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89623         (error_tail): Do not loop, reallocating temporary buffer, since
89624         the output cannot contain more wide characters than the input
89625         contains bytes, the size must be big enough already.  This avoids
89626         one potential size overflow calculation.  Check for size overflow
89627         when calculating temporary buffer size.  Free temporary buffer
89628         when done, if it was allocated with malloc; this plugs a memory
89629         leak.  Remove casts from void * to pointers, that are no longer
89630         needed now that we're assuming C89 or better.
89631
89632         Merge error changes from glibc.
89633
89634         * lib/error.c, error.h: Update copyright notice header to match glibc.
89635         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89636         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89637         Disable cancellation while printing error.
89638         * lib/error.h: Prepend __ to parameter names.
89639
89640 2003-09-26  Jim Meyering  <jim@meyering.net>
89641
89642         * lib/error.c (error_tail): Move some declarations
89643         into inner scope where the local variables are used.
89644
89645 2003-09-26  Bruno Haible  <bruno@clisp.org>
89646
89647         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89648         stpncpy().
89649         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89650
89651 2003-09-26  Bruno Haible  <bruno@clisp.org>
89652
89653         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89654         (stpncpy): Define as alias for gnu_stpncpy.
89655         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89656
89657 2003-09-25  Simon Josefsson  <jas@extundo.com>
89658
89659         * lib/xgetdomainname.h: New file.
89660         * lib/xgetdomainname.c: New file.
89661
89662 2003-09-25  Simon Josefsson  <jas@extundo.com>
89663             Bruno Haible  <bruno@clisp.org>
89664
89665         * modules/getdomainname: New file.
89666         * modules/xgetdomainname: New file.
89667         * MODULES.html.sh (func_all_modules): Add getdomainname,
89668         xgetdomainname.
89669
89670 2003-09-25  Simon Josefsson  <jas@extundo.com>
89671             Bruno Haible  <bruno@clisp.org>
89672
89673         * m4/getdomainname.m4: New file.
89674
89675 2003-09-25  Simon Josefsson  <jas@extundo.com>
89676             Bruno Haible  <bruno@clisp.org>
89677
89678         * lib/getdomainname.h: New file.
89679         * lib/getdomainname.c: New file.
89680
89681 2003-09-25  Karl Berry  <karl@gnu.org>
89682
89683         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89684
89685 2003-09-25  Karl Berry  <karl@gnu.org>
89686
89687         * config/install-sh: update from automake.
89688
89689 2003-09-25  Bruno Haible  <bruno@clisp.org>
89690
89691         * modules/version-etc-2: New file, from modules/version-etc with
89692         modifications.
89693         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89694
89695 2003-09-25  Bruno Haible  <bruno@clisp.org>
89696
89697         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89698         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89699
89700 2003-09-24  Simon Josefsson  <jas@extundo.com>
89701
89702         * modules/xgethostname: Add xgethostname.h.
89703
89704 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89705
89706         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89707         the buffer associated with the argument.  Bug reported by
89708         Simon Josefsson.
89709
89710 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89711
89712         * README: Document assumptions that 'int' is at least 32 bits
89713         wide, that integer arithmetic is 2's complement without overflow,
89714         that there are no holes in integer values, that adding sizes of
89715         two nonoverlapping objects can't overflow, and that all-bits-zero
89716         yields scalar zero.  Fix spelling and capitalization typos.
89717
89718 2003-09-19  Karl Berry  <karl@gnu.org>
89719
89720         * lib/argp.h: update from libc.
89721
89722 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89723
89724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89725         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89726         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89727
89728 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89729
89730         * gnulib-tool: Use "test -h", not "test -L", for portability
89731         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89732         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89733         (sed_extract_prog): Issue s commands one-by-one, rather than
89734         using \| in one s command.
89735
89736 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89737
89738         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89739         input error, instead of returning NULL the next time we are called
89740         (and therefore losing track of errno).
89741
89742 2003-09-16  Bruno Haible  <bruno@clisp.org>
89743
89744         * gnulib-tool (func_create_testdir): Warn about duplicated
89745         dependencies.
89746
89747 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89748
89749         * modules/argmatch, modules/fatal, modules/obstack,
89750         modules/xalloc, modules/xgethostname: Sort dependencies by
89751         importance, not alphabetically.
89752
89753 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89754
89755         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89756         fails, so that the caller gets the proper errno.
89757
89758         * lib/readutmp.c (read_utmp): Likewise.
89759         Check for fstat error.  Close stream and free storage
89760         when failing.
89761
89762 2003-09-14  Karl Berry  <karl@gnu.org>
89763
89764         * config/srclist.txt (strdup.c): disable for c89 changes.
89765
89766 2003-09-14  Jim Meyering  <jim@meyering.net>
89767
89768         * lib/getloadavg.c: Correct cpp indentation.
89769         * lib/strdup.c: Likewise.
89770         * lib/vasnprintf.c: Likewise.
89771
89772 2003-09-14  Bruno Haible  <bruno@clisp.org>
89773
89774         * modules/fwriteerror: New file.
89775         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89776
89777 2003-09-14  Bruno Haible  <bruno@clisp.org>
89778
89779         * lib/fwriteerror.h: New file.
89780         * lib/fwriteerror.c: New file.
89781
89782 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89783
89784         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89785         modules/xgethostname, modules/xalloc: Depend on exit.
89786
89787 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89788
89789         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89790
89791         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89792         and AC_MINIX, too, so that their extensions are available.
89793
89794         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89795         This macro has been superseded by gl_BACKUPFILE.
89796
89797         More patches to assume C89 or better.
89798
89799         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89800
89801         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89802         unconditionally.
89803         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89804         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89805         Include <string.h>, <stdlib.h> unconditionally.
89806         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89807         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89808         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89809         headers or for string.h.
89810         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89811         or strtoul.
89812
89813         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89814         headers.
89815         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89816         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89817         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89818         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89820         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89821         memcpy, memset.
89822         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89823         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89824         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89825         strtol.
89826         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89827         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89829         strtoul.
89830
89831 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89832
89833         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89834         * lib/obstack.c [!defined _LIBC]: Likewise.
89835         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89836         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89837         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89838
89839         More changes to assume C89 or better.
89840
89841         * lib/error.c (error_tail): Assume vprintf.
89842
89843         * lib/argmatch.c (getenv): Remove decl.
89844         * lib/progreloc.c (get_full_program_name): Define via prototype.
89845         * lib/setenv.c (clearenv): Likewise.
89846         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89847         needed.
89848         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89849         (malloc, memcpy): Remove decls.
89850         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89851         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89852         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89853         (memcpy): Remove macro.
89854         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89855         (__P): Remove.  All uses removed.
89856         (PTR): Remove.  All uses changed to void *.
89857         (CHAR_BIT, NULL): Remove.
89858         (spaces, zeros, memset_space, memset_zero)
89859         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89860         Remove.
89861         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89862         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89863         Define with prototype.
89864         Remove now-unnecessary prototype decl.
89865         (extra_args_spec): Assume ANSI C.  All uses changed.
89866         (extra_args_spec_iso): Remove.
89867         (my_strftime, emacs_strftimeu): Define via prototype.
89868         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89869         unconditionally.
89870         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89871         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89872         (strtoul, strtol): Remove decls.
89873         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89874         LONG_MAX): Remove.
89875         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89876         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89877         (LOCALE_PARAM_PROTO): New macro.
89878         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89879         (INTERNAL (strtol), strtol): Define with a prototype.
89880         (PARAMS): Remove.  All uses removed.
89881         * lib/tempname.c: Include <string.h> unconditionally.
89882         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89883         * lib/xgethostname.c (main): Define with a prototype.
89884         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89885         Include <stdlib.h> unconditionally.
89886         (calloc, malloc, realloc, free): Remove decls.
89887         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89888         Include <stdlib.h> unconditionally.  Sort include file names.
89889         (strtod): Remove.
89890         (xstrtod): Define with a prototype.
89891         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89892         (strtol, strtoul): Remove decls.
89893
89894 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89895
89896         More patches to assume C89 or better.
89897         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89898         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89899         string.h, memchr, STDC_HEADERS.
89900
89901 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89902
89903         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89904         Include <stdlib.h>, <string.h> unconditionally.
89905         Remove now-unnecessary cast to char *.
89906         * lib/strnlen.c: Include <string.h> unconditionally.
89907         * lib/yesno.c (yesno): Define with a prototype.
89908
89909 2003-09-11  Bruno Haible  <bruno@clisp.org>
89910
89911         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89912
89913 2003-09-10  Jim Meyering  <jim@meyering.net>
89914
89915         * lib/error.c: Correct indentation of cpp directives.
89916
89917 2003-09-10  Bruno Haible  <bruno@clisp.org>
89918
89919         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89920         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89921         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89922         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89923         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89924         <stdlib.h> and <string.h> checks.
89925         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89926         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89927
89928 2003-09-10  Bruno Haible  <bruno@clisp.org>
89929
89930         * lib/strcspn.c: Include <string.h> unconditionally.
89931         * lib/strpbrk.c: Include <string.h> unconditionally.
89932         * lib/strstr.c: Include <string.h> unconditionally.
89933         * lib/unicodeio.c: Include <string.h> unconditionally.
89934         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89935         * lib/unsetenv.c: Likewise.
89936         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89937         * lib/yesno.c: Include <stdlib.h> unconditionally.
89938         (rpmatch): Add prototype.
89939
89940 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89941
89942         More patches to assume C89 or better.
89943         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89944         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89945         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89946         or for string.h.
89947         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89948         stdlib.h.
89949         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89950         C headers.
89951         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89952         string.h.
89953         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89954         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89955         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89956         or for string.h.
89957         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89958         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89959         C headers.
89960         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89961         memcpy.
89962         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89963         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89964         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89965         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89966         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89967         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89968         string.h, free.
89969         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89970         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89971         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89972         C headers, or for string.h.
89973         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89974         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89975         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89976         headers, memory.h, stdlib.h, string.h, strings.h.
89977         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89978         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89979         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89980         strchr.
89981         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89982         headers, memory.h, string.h.
89983         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89984         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89985         free.
89986         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89987         headers.
89988         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89989         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89990         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89991         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89992         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89993
89994 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89995
89996         More K&R removal.
89997
89998         * lib/acosl.c (main): Use a prototype.
89999         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90000         tanl.c: Likewise.
90001
90002         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90003
90004         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90005         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90006         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90007         with a prototype.
90008         * lib/getopt.c (const): Remove macro.
90009         Include <string.h> unconditionally.
90010         (my_index): Remove; all uses changed to strchr.
90011         (strlen): Remove decl.
90012         (exchange): Remove forward decl; no longer needed.
90013         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90014         Define with prototype.
90015         * lib/getopt1.c (const): Remove macro.
90016         (getopt_long, getopt_long_only, main): Define with prototype.
90017
90018         * lib/getugroups.c: Include <string.h> unconditionally.
90019
90020         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90021         (getusershell, setusershell, endusershell, readname, main):
90022         Define with prototypes.
90023
90024         * lib/group-member.c: Include group-member.h first.
90025         Include <stdlib.h> unconditionally.
90026
90027         * lib/hard-locale.c: Include hard-locale.h first.
90028         Include <stdlib.h>, <string.h> unconditionally.
90029
90030         * lib/hash.c (free, malloc): Remove decls.
90031         Include <stdlib.h> unconditionally.
90032
90033         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90034         (getenv): Do not declare.
90035
90036         * lib/idcache.c: Include <string.h> unconditionally.
90037
90038         * lib/long-options.c: Include long-options.h first, to test interface.
90039         Include <stdlib.h> unconditionally.
90040
90041         * lib/makepath.c: Include makepath.h first, to test interface.
90042         Include <stdlib.h> and <string.h> unconditionally.
90043
90044         * lib/linebuffer.c: Include <stdlib.h>.
90045         (free): Remove decl.
90046
90047         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90048         stddef.h. rpl_malloc returns void *, not char *.
90049         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90050         prototype.
90051
90052         * lib/md5.h: Include <limits.h> unconditionally.
90053         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90054         (__P): Remove; all uses removed.
90055         * lib/md5.c: Include "md5.h" first.
90056         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90057         md5_buffer, md5_process_bytes, md5_process_block):
90058         Define with prototypes.
90059         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90060         * lib/sha.c: Include "sha.h" first.
90061         Include <stdlib.h>, <string.h> unconditionally.
90062
90063         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90064         * lib/memcmp.c (__ptr_t): Likewise.
90065         * lib/memrchr.c (__ptr_t): Likewise.
90066         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90067         Include <string.h> unconditionally.
90068         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90069         * lib/memchr.c: Include <stdlib.h> unconditionally.
90070         * lib/memchr.c (LONG_MAX): Remove.
90071         * lib/memrchr.c (LONG_MAX): Likewise.
90072         * lib/memchr.c (__memchr): Define via a prototype.
90073         * lib/memrchr.c (__memrchr): Likewise.
90074         * lib/memcmp.c (__P): Remove, and remove all uses.
90075         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90076         Remove forward decls; no longer needed.
90077         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90078         Use types required by C89 in prototype.
90079
90080         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90081         * lib/savedir.c: Likewise.
90082         * lib/mkdir.c (free): Remove decl.
90083         * lib/rmdir.c (rmdir): Define with a prototype.
90084         * lib/savedir.c: Include savedir.h first, to test interface.
90085
90086         * lib/mktime.c (STDC_HEADERS): Remove.
90087         Include <stdlib.h>, <string.h> unconditionally.
90088
90089         * lib/modechange.c: Include <stdlib.h> unconditionally.
90090         (malloc): Remove decl.
90091
90092         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90093         (free): Remove decl.
90094
90095         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90096         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90097         (This type really should be intptr_t, but that's a C99ism.)
90098         (_obstack_memcpy): Remove: all uses changed to memcpy.
90099         Include <string.h> unconditionally.
90100         (struct obstack): Assume __STDC__ for types of members
90101         chunkfun, freefun, extra_arg.
90102         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90103         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90104         obstack_begin, obstack_specify_allocation,
90105         obstack_specify_allocation_with_arg, obstack_chunkfun,
90106         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90107         Remove unprototyped decls and the macros that use them.
90108         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90109         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90110         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90111         (defined __STDC__ && __STDC__)]:
90112         Remove nonprototyped code.
90113         Include <stdlib.h> unconditionally.
90114         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90115         _obstack_allocated_p, _obstack_free, obstack_free,
90116         _obstack_memory_used, print_and_abort):
90117         Define using prototypes.
90118         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90119         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90120         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90121         obstack_next_free, obstack_object_size, obstack_room) [0]:
90122         Remove unused, unprototyped code.
90123
90124         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90125
90126         * lib/physmem.c (physmem_total, physmem_available, main): Define
90127         with prototypes.
90128
90129         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90130         (main): Define with a prototype.
90131
90132         * lib/posixver.c (getenv): Remove decl.
90133
90134         * lib/putenv.c (malloc): Returns void *, not char *.
90135         Include <string.h> unconditionally.
90136         (strchr, memcpy, NULL): Do not define.
90137
90138         * lib/readtokens.c: Include readtokens.h first, to test interface.
90139         Include <stdlib.h>, <string.h> unconditionally.
90140         (init_tokenbuffer): Define with a prototype.
90141
90142         * lib/regex.c (PARAMS): Remove.  All uses removed.
90143         All uses of _RE_ARGS removed, too.
90144         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90145         unconditionally.
90146         (bzero): Assume memset exists.
90147         (memcmp, memcpy, NULL): Remove.
90148         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90149         char, or assignments to local vars of type signed char.
90150         (init_syntax_once, PREFIX(extract_number_and_incr),
90151         PREFIX(print_partial_compiled_pattern),
90152         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90153         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90154         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90155         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90156         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90157         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90158         wcs_compile_range, byte_compile_range, truncate_wchar,
90159         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90160         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90161         count_mbs_length, wcs_re_match_2_internal,
90162         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90163         PREFIX(alt_match_null_string_p),
90164         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90165         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90166         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90167         now-unnecessary declaration, if any.
90168         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90169         regcomp, regexec):
90170         Remove now-unnecessary casts among pointer types.
90171         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90172
90173         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90174         (free): Remove decl.
90175
90176         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90177
90178         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90179         (free): Remove decl.
90180
90181         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90182         * lib/xgetcwd.c: Likewise.
90183
90184         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90185         (free): Remove decl.
90186
90187         * lib/strchrnul.c (strchrnul): Define with a prototype.
90188         Fix bug: c_in was not converted to char before searching.
90189
90190         The following changes are not K&R related:
90191
90192         * lib/group-member.h: Include <sys/types.h>, so that this file is
90193         self-contained.
90194         * lib/makepath.h: Likewise.
90195
90196         * lib/getusershell.c (readname, default_index, line_size, readname):
90197         Use size_t, not int, for sizes.
90198         (readname): If the size overflows, report an error instead of
90199         looping forever.
90200
90201 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90202
90203         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90204         libc.
90205
90206 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90207
90208         * README: New section: portability guidelines.
90209
90210 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90211
90212         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90213         C89 spec.
90214
90215 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90216
90217         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90218
90219 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90220
90221         Assume C89 or better; remove K&R cruft.
90222         A few of these changes were first proposed by Derek Robert Price
90223         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90224
90225         * lib/addext.c: Include <string.h> unconditionally.
90226         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90227         Don't declare getenv or malloc.
90228
90229         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90230         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90231         (NULL): Remove.
90232         (find_stack_direction, alloca): Use prototypes.
90233
90234         * lib/atexit.c (atexit): Define using a prototype.
90235
90236         * lib/basename.c, dirname.c, stripslash.c:
90237         Include <string.h> unconditionally.
90238
90239         * lib/bcopy.c: Include <stddef.h>.
90240         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90241
90242         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90243
90244         * lib/error.h (error, error_at_line, error_print_progname)
90245         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90246         * lib/error.c: Include error.h first, to check interface.
90247         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90248         (VA_START): Remove; all uses changeed to va_start.
90249         (exit, strerror): Remove decls.
90250         (error_print_progname): Prototype uncondionally.
90251         Don't include <errno.h>; no longer needed.
90252         (private_strerror): Remove.
90253         (error_tail): Always define.
90254         (error, error_at_line): Assume C89 or better; always use prototypes.
90255         * lib/fatal.c: Include "fatal.h" first, to test interface.
90256         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90257         (VA_START): Remove; all uses changed to va_start.
90258         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90259         this case.
90260         (exit): Remove decl.
90261         (fatal): Prototype unconditionally.  Assume va_start works.
90262         Abort at end, to pacify gcc.
90263
90264         * lib/euidaccess.c (main): Define with a prototype.
90265
90266         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90267
90268         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90269
90270         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90271         prototypes.
90272         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90273         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90274         (getenv): Remove decl.
90275         (fnmatch): Define using a prototype.
90276         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90277         (FCT): Define using a prototype.
90278
90279         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90280
90281         * lib/gethostname.c: Include <stddef.h>.
90282         (gethostname): Define with prototype.  Length is size_t, not int.
90283
90284 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90285
90286         Assume C89 or better; remove K&R cruft.
90287         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90288         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90289         string.h, getenv, malloc.
90290         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90291         headers.
90292         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90293         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90294         do not check for strerror.
90295         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90296         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90297         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90298         do not check for doprnt or vprintf.
90299         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90300         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90301
90302 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90303
90304         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90305         getversion.c should have been removed then, but was accidentally
90306         preserved.
90307
90308         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90309         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90310
90311 2003-09-08  Karl Berry  <karl@gnu.org>
90312
90313         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90314                 config, forget about prep.
90315
90316         * config/depcomp, missing: update from automake.
90317
90318 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90319
90320         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90321         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90322
90323 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90324
90325         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90326         copy_tm_result.  Bug reported by Simon Josefsson in
90327         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90328
90329 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90330
90331         * m4/time_r.m4: New file.
90332         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90333         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90334         is. Check for timegm declaration.
90335         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90336         Do not check for gmtime_r.
90337         Replace mktime if __mktime_internal does not exist and if mktime
90338         hasn't been replaced already.
90339
90340 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90341
90342         * lib/time_r.c, lib/time_r.h: New files.
90343
90344         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90345         __localtime_r.
90346         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90347         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90348
90349         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90350         __gmtime_r.
90351         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90352         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90353         Include <time_r.h>.
90354
90355         * lib/timegm.c: Switch to glibc implementation, with the following
90356         changes:
90357         [defined HAVE_CONFIG_H]: Include <config.h>.
90358         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90359         (__mktime_internal) [!defined _LIBC]: New decl.
90360         (__gmtime_r) [!defined _LIBC]: New macro and function.
90361         (timegm): Use a prototype, since gnulib assumes C89.
90362         Do not bother declaring tmp to be const, as it's not really usefu.
90363         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90364         (timegm): Declare only if HAVE_DECL_TIMEGM.
90365
90366 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90367
90368         * MODULES.html.sh (func_all_modules): Add time_r.
90369         * modules/time_r: New file.
90370         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90371         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90372
90373 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90374
90375         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90376         Bug reported by Lute Kamstra in
90377         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90378
90379         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90380         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90381         course with correspondingly smaller numbers for tomorrow and
90382         yesterday.  From Tadayoshi Funaba.  Originally installed into
90383         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90384         coreutils merge?).
90385
90386 2003-08-31  Simon Josefsson  <jas@extundo.com>
90387
90388         * modules/timegm: New file.
90389         * MODULES.html.sh (func_all_modules): Add timegm.
90390
90391 2003-08-31  Simon Josefsson  <jas@extundo.com>
90392
90393         * m4/timegm.m4: New file.
90394
90395 2003-08-31  Simon Josefsson  <jas@extundo.com>
90396
90397         * lib/timegm.h: New file.
90398         * lib/timegm.c: New file.  Based on
90399         wget-1.8.2/src/http.c:mktime_from_utc.
90400
90401 2003-08-31  Karl Berry  <karl@gnu.org>
90402
90403         * lib/argp.h: update from libc.
90404
90405 2003-08-28  Bruno Haible  <bruno@clisp.org>
90406
90407         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90408         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90409         followed by '#define fnmatch fnmatch_posix' gives an error.
90410
90411 2003-08-28  Bruno Haible  <bruno@clisp.org>
90412
90413         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90414         warning on QNX, which defines O_BINARY to 000000.
90415
90416 2003-08-27  Jim Meyering  <jim@meyering.net>
90417
90418         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90419         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90420         would fail after 32.  Reported by Danny Levinson.  Details here:
90421         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90422
90423 2003-08-24  Bruno Haible  <bruno@clisp.org>
90424
90425         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90426         MSVC7 <stdio.h> is included later.
90427
90428 2003-08-22  Simon Josefsson  <jas@extundo.com>
90429
90430         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90431
90432 2003-08-20  Karl Berry  <karl@gnu.org>
90433
90434         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90435
90436 2003-08-20  Bruno Haible  <bruno@clisp.org>
90437
90438         * modules/progname: New file.
90439         * MODULES.html.sh (func_all_modules): Add progname.
90440
90441 2003-08-20  Bruno Haible  <bruno@clisp.org>
90442
90443         * lib/progname.h: New file, from GNU gettext.
90444         * lib/progname.c: New file, from GNU gettext.
90445         * lib/progreloc.c: New file, from GNU gettext.
90446
90447 2003-08-19  Jim Meyering  <jim@meyering.net>
90448
90449         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90450         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90451
90452 2003-08-19  Bruno Haible  <bruno@clisp.org>
90453
90454         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90455         more.
90456
90457 2003-08-19  Bruno Haible  <bruno@clisp.org>
90458
90459         * lib/xstrdup.c: Assume <string.h> exists.
90460
90461 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90462
90463         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90464         in makefile rules.
90465
90466 2003-08-18  Jim Meyering  <jim@meyering.net>
90467
90468         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90469         * m4/lib-ld.m4: Likewise.
90470
90471 2003-08-18  Jim Meyering  <jim@meyering.net>
90472
90473         * lib/setenv.h: Indent nested cpp directive.
90474         * lib/vasnprintf.c: Remove trailing blanks.
90475
90476 2003-08-17  Simon Josefsson  <jas@extundo.com>
90477
90478         * modules/xstrndup: New file.
90479         * MODULES.html.sh (func_all_modules): Add xstrndup.
90480
90481 2003-08-17  Simon Josefsson  <jas@extundo.com>
90482
90483         * modules/argp: Fix autoconf macro name. Add more dependencies.
90484
90485 2003-08-17  Simon Josefsson  <jas@extundo.com>
90486
90487         * m4/xstrndup.m4: New file.
90488
90489 2003-08-17  Simon Josefsson  <jas@extundo.com>
90490
90491         * m4/argp.m4: New file.
90492
90493 2003-08-17  Simon Josefsson  <jas@extundo.com>
90494             Bruno Haible  <bruno@clisp.org>
90495
90496         * lib/xstrndup.h: New file.
90497         * lib/xstrndup.c: New file.
90498
90499 2003-08-17  Bruno Haible  <bruno@clisp.org>
90500
90501         * modules/strndup (Files, Include): Add lib/strndup.h.
90502
90503 2003-08-17  Bruno Haible  <bruno@clisp.org>
90504
90505         * modules/euidaccess (Files): Add lib/euidaccess.h.
90506
90507 2003-08-17  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/strndup.h: New file.
90510
90511 2003-08-17  Bruno Haible  <bruno@clisp.org>
90512
90513         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90514         like AC_GNU_SOURCE.
90515         * modules/extensions (configure.ac): Comment out the invocation of
90516         gl_USE_SYSTEM_EXTENSIONS.
90517
90518 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90519
90520         Merges from coreutils, etc.
90521         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90522         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90523         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90524         fixing a typo.
90525         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90526         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90527
90528 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90529
90530         Document merge from coreutils.
90531         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90532         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90533         * modules/utime: Add m4/utimes-null.m4.
90534
90535 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90536
90537         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90538         space, undoing this 2003-08-12 change:
90539         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90540
90541 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90542
90543         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90544         strtoul.c from libc, undoing this 2003-08-12 change:
90545         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90546
90547 2003-08-16  Jim Meyering  <jim@meyering.net>
90548
90549         Merges from coreutils.
90550         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90551         prefix.  Adjust cache variables similarly.  Create 500 rather than
90552         just 300 files, to exercise bug on Darwin6.5, too.
90553         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90554         $missing_dir.
90555         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90556         AM_SYS_POSIX_TERMIOS.
90557         Reported by mkc@mathdogs.com.
90558         Also change use of $am_cv_sys_posix_termios
90559         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90560         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90561         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90562         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90563         in /proc/mounts until it finds one with matching device number.  This
90564         is unnecessary when the FILE argument *is* a mount point.  No stat call
90565         is necessary in that case.  So, disable the statvfs-testing code on
90566         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90567         as RedHat bug# 84846.
90568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90569         to 1MB, so as not to render systems with no stack size limit (e.g.,
90570         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90571         Include <unistd.h>.  On some systems,
90572         it is required for the definition of _SC_PAGESIZE.
90573
90574 2003-08-16  Jim Meyering  <jim@meyering.net>
90575
90576         Merge from coreutils.
90577         * lib/xstrtoimax.c: #else #if -> #elif.
90578         * lib/xstrtoumax.c: Likewise.
90579
90580 2003-08-16  Jim Meyering  <jim@meyering.net>
90581
90582         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90583         * m4/utimes.m4: Removed.
90584         * m4/utimes-null.m4: Renamed from utimes.m4.
90585
90586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90587         to 1MB, so as not to render systems with no stack size limit (e.g.,
90588         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90589         Include <unistd.h>.  On some systems,
90590         it is required for the definition of _SC_PAGESIZE.
90591
90592 2003-08-16  Jim Meyering  <jim@meyering.net>
90593         and Paul Eggert  <eggert@cs.ucla.edu>
90594
90595         Merges from coreutils, etc.
90596
90597         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90598         using the latest version from cvs.  This avoids problems with #line
90599         directives using a vendor (Sun) compiler.
90600         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90601         Don't set GETGROUPS_LIB here; now it's
90602         done via getgroups.m4's wrapper function.
90603         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90604         rather than just in sh-util/configure.in, so that the
90605         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90606         same.
90607         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90608         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90609         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90610         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90611         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90612         Remove code that is now done by the newly-required macros.
90613         Append $(EXEEXT) to DF_PROG.
90614         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90615         Do not invoke or require the following here,
90616         since prereq.m4 or some gnulib .m4 now does this for us:
90617         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90618         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90619         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90620         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90621         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90622         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90623         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90624         AC_FUNC_OBSTACK.
90625         Do not replace the following functions, as this is now the job
90626         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90627         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90628         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90629         atexit getpass, strdup, getpagesize.
90630         Replace 'raise'.
90631         Do not check for the following functions, as this is now the job
90632         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90633         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90634         setregid.
90635         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90636         Check for sys/sysctl.h.
90637         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90638         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90639         of checking for ssize_t ourselves.
90640
90641         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90642         Require every macro that gnulib/modules/* suggests for us.
90643         (jm_PREREQ_ADDEXT): New macro.
90644         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90645         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90646
90647         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90648         (gl_PHYSMEM): Use it.
90649         Also check for `table' function.
90650         Check for new headers and functions.
90651         Add check for sys/sysmp.h.
90652         With suggestions from Kaveh Ghazi.
90653         Ignore headers that are present but cannot be compiled.  This
90654         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90655         C 5.4.
90656
90657 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90658
90659         Document merge from coreutils.
90660         * modules/userspec: Depend on posixver.
90661         * modules/strftime: Depend on tzset.
90662
90663 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90664
90665         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90666         rather than tab, after '#' in shell-script copyright notices.
90667         Suggested by Bruno Haible.
90668
90669 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90670
90671         * config/srclist-update: Use three spaces, rather than tab, after '#'
90672         in shell-script copyright notices.  Suggested by Bruno Haible.
90673         Remove unnecessary parenthesization in regular expression.
90674
90675 2003-08-15  Jim Meyering  <jim@meyering.net>
90676
90677         Merge from coreutils.
90678         * lib/xgethostname.c: Include <stdlib.h>.
90679         (xghostname): Don't exit for anything other than memory-related
90680         failure; just return NULL.
90681         * lib/userspec.c: Include "posixver.h".
90682         (parse_user_spec): Accept `.' as a separator only
90683         in pre-POSIX-200112 mode.
90684         * lib/strtoimax.c: Use #elif rather than #else #if.
90685         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90686         Remove function, now that we can rely on a working tzset function.
90687         [!_LIBC]: Ensure that the required autoconf test has been run.
90688         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90689         Use underlying_strftime for %r.
90690         * lib/sha.c: Merge in some clean-up and optimization changes from
90691         glibc.
90692         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90693         Ensure that it is a multiple of 64.
90694         Rearrange loop exit tests so as to avoid performing an
90695         additional fread after encountering an error or EOF.
90696         * lib/realloc.c: Update copyright date.
90697
90698 2003-08-15  Jim Meyering  <jim@meyering.net>
90699         and Paul Eggert  <eggert@twinsun.com>
90700
90701         Merge from coreutils.
90702         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90703         member but strut utmpx does not.  Needed for AIX 4.3.3.
90704         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90705
90706 2003-08-15  Jim Meyering  <jim@meyering.net>
90707         and Paul Eggert  <eggert@cs.ucla.edu>
90708
90709         Merges from coreutils, etc.
90710         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90711         Require gl_FUNC_TZSET_CLOBBER.
90712         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90713         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90714         members.
90715
90716 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90717
90718         Help the merge from coreutils.
90719         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90720         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90721         * m4/tzset.m4: Use it too.
90722
90723 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90724
90725         * modules/tzset: New file.
90726
90727 2003-08-14  Jim Meyering  <jim@meyering.net>
90728
90729         Merges from coreutils.
90730         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90731         variable names, rather than @FNMATCH_H@.
90732         * modules/alloca: Likewise for $(ALLOCA_H).
90733
90734         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90735         the three copies of the literal target, `fnmatch.h'.
90736         * modules/alloca (alloca.h): Likewise.
90737
90738 2003-08-14  Jim Meyering  <jim@meyering.net>
90739
90740         Merge from coreutils.
90741         * m4/tzset.m4: New file.
90742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90743         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90744         otherwise, AIX 5.1 systems would end up using the latter.
90745         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90746         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90747         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90748         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90749
90750 2003-08-14  Jim Meyering  <jim@meyering.net>
90751
90752         Merge from coreutils.
90753         * lib/obstack.h: Whitespace changes.
90754         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90755         and xcalloc return values.
90756         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90757         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90758         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90759         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90760         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90761         error from mntctl.
90762         Use mntctl's return value to drive the entry-processing loop, since
90763         we can't rely on the value of the vmt_length member in the last
90764         entry.  On some systems doing so could result in exhausting
90765         virtual memory.  Based in part on a patch from Mike Jetzer.
90766
90767 2003-08-14  Jim Meyering  <jim@meyering.net>
90768         and Paul Eggert  <eggert@twinsun.com>
90769
90770         Merges from coreutils, plus other fixes.
90771         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90772         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90773         for credits and details.  Thanks to Kaveh Ghazi for helping
90774         to keep these files in sync.
90775         (ARRAY_SIZE): Define it.
90776         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90777         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90778         (memcasecmp): Don't assume size_t fits in unsigned int.
90779         Remove casts and duplicate code.
90780         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90781         (memcpy): Remove definition.
90782         Merge in some clean-up and optimization changes from glibc.
90783         [BLOCKSIZE]: Move definition to top of file.
90784         Ensure that it is a multiple of 64.
90785         Rearrange loop exit tests so as to avoid performing an
90786         additional fread after encountering an error or EOF.
90787         * lib/md5.h (md5_uintptr): Define.
90788         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90789         return to the initial working directory.  Preserve errno
90790         for caller.
90791         * lib/idcache.c: Include "xalloc.h".
90792         (xmalloc, xrealloc): Remove decls.
90793         (getuser): Remove casts no longer required in C89.
90794         * lib/human.c: Include stdio.h, for sprintf.
90795         * lib/group-member.c: Include "xalloc.h".
90796         (xmalloc, xrealloc): Remove decls.
90797         (get_group_info): Remove casts no longer required in C89.
90798         * lib/getusershell.c (readname): Remove casts no longer required in
90799         C89.
90800         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90801         * lib/getline.c: Whitespace fix, from coreutils.
90802
90803 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90804
90805         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90806         Check for isascii.
90807
90808         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90809         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90810         Undo previous (whitespace-only) change.
90811
90812 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90813
90814         * lib/exclude.c: Include <ctype.h>
90815         (IN_CTYPE_DOMAIN): New macro.
90816         (is_space): New fn.
90817         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90818         and empty lines.
90819
90820         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90821         Undo previous (whitespace-only) change.
90822
90823 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90824
90825         * config/srclist-update: Change update back to the old behavior,
90826         leaving whitespace alone.  Use one 'sed' command rather than a
90827         pipeline.
90828         (fixlicense): Now a variable, not a function.
90829         (remove_trailing_blanks): Remove.
90830         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90831         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90832         Undo previous (whitespace-only) change.
90833
90834 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90835
90836         Merge from coreutils.
90837         * modules/euidaccess: Add lib_SOURCES, include for new
90838         file euidaccess.h
90839
90840 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90841
90842         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90843         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90844         Normalize leading white space and remove trailing white space.
90845
90846         Merge from coreutils
90847         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90848
90849         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90850         0.12.1.  These files are now being upgraded automatically by
90851         ../config/srclist-update.
90852
90853 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90854
90855         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90856         Normalize leading white space and remove trailing white space.
90857         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90858         notice, as per ../config/srclist-update.
90859
90860         Merge from coreutils.
90861         * lib/euidaccess.h: New file.
90862         * lib/euidaccess.c: Include it.
90863         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90864         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90865         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90866
90867 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90868
90869         * config/srclist-update: Add copyright notice.
90870         (remove_id_lines, remove_trailing_blanks): New constants.
90871         (fixfile): Use them to normalize spacing a bit in copied files.
90872         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90873         Normalize leading white space and remove trailing white space.
90874
90875         * config/texinfo.tex: Sync with texinfo.
90876
90877         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90878         strtoul.c from libc, to merge coreutils whitespace changes.
90879
90880         * config/srclist.txt: Get the following m4 files from gettext:
90881         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90882         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90883         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90884         wint_t.m4.
90885
90886 2003-08-12  Karl Berry  <karl@gnu.org>
90887
90888         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90889         been made.
90890
90891 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90892
90893         * modules/gnu-source, m4/gnu-source.m4:
90894         Remove; we're assuming Autoconf 2.54 or later now.
90895         Suggested by Bruno Haible.
90896         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90897
90898 2003-08-11  Bruno Haible  <bruno@clisp.org>
90899
90900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90901
90902 2003-08-11  Bruno Haible  <bruno@clisp.org>
90903
90904         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90905         (vasnprintf): Use it instead of wcslen.
90906
90907 2003-08-11  Bruno Haible  <bruno@clisp.org>
90908
90909         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90910         value to ensure that _Bool promotes to int. Use #define for _Bool when
90911         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90912
90913 2003-08-10  Karl Berry  <karl@gnu.org>
90914
90915         * lib/regex.h: update from libc (whitespace fix).
90916
90917 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90918
90919         Merge some files from coreutils.  These changes were
90920         originally made by Jim Meyering.
90921         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90922         many older Unixes require this.
90923         * lib/alloca.c (alloca): Remove cast to argument of free;
90924         no longer needed in C89.
90925         * lib/alloca_.h, regex.h: Fix white space to match
90926         what GNU indent does.
90927
90928 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90929
90930         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90931         apparently Emacs's Unicode mode got confused before my 2003-08-05
90932         checkin.
90933
90934 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90935
90936         * m4/extensions.m4: New file.
90937         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90938         Require gl_USE_SYSTEM_EXTENSIONS.
90939         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90940         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90941
90942 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90943
90944         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90945         * modules/extensions, modules/gnu-source: New files.
90946         * modules/timespec, modules/unlocked-io: Depend on extensions.
90947
90948 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90949
90950         * modules/restrict: New file.
90951         * MODULES.html.sh (func_all_modules): Add restrict.
90952         * modules/regex: Depend on restrict.
90953
90954 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90955
90956         * m4/restrict.m4: New file.
90957         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90958
90959 2003-08-07  Bruno Haible  <bruno@clisp.org>
90960
90961         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90962         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90963
90964 2003-08-07  Bruno Haible  <bruno@clisp.org>
90965
90966         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90967         makes the module 'getndelim2' compatible with the module 'getline'.
90968
90969 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90970
90971         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90972         byte with "\201" to avoid glitches when editing that source file
90973         with multi-gnome-terminal.
90974
90975 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90976
90977         * lib/bumpalloc.h: Remove.
90978
90979 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90980
90981         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90982         * modules/bumpalloc: Remove.
90983
90984 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90985
90986         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90987         GNU coding style.
90988
90989         Merge from coreutils.
90990         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90991         1. From glibc.
90992         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90993         from Karl Berry, implemented by Jim Meyering.
90994         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90995         from Dmitry V. Levin.
90996         Remove anachronistic cast of xrealloc.
90997         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90998         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90999         type. Otherwise, it wouldn't compile with at least /bin/cc on
91000         ymp-cray-unicos9.0.2.X.
91001         Combine two mostly-identical uses of alloca into one.
91002         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91003
91004 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91005
91006         [From Emacs.]
91007
91008         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91009         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91010         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91011         obsolete NLIST_NAME_UNION.
91012         [__GNU__]: Undef BSD and FSCALE.
91013         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91014
91015 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91016
91017         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91018         an enum type, so that it's guaranteed to promote to int.  See:
91019         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91020
91021 2003-08-03  Karl Berry  <karl@gnu.org>
91022
91023         * config/depcomp: update from automake.
91024
91025 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91026
91027         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91028         (strerror): Don't assume that a printable int fits in 14 bytes.
91029
91030 2003-07-31  Bruno Haible  <bruno@clisp.org>
91031
91032         * modules/getpass-gnu: New file.
91033         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91034
91035 2003-07-31  Bruno Haible  <bruno@clisp.org>
91036
91037         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91038
91039 2003-07-24  Karl Berry  <karl@gnu.org>
91040
91041         * config/missing: update from automake.
91042
91043 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91044             Bruno Haible  <bruno@clisp.org>
91045
91046         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91047         * lib/getline.c (getline, getdelim): Likewise.
91048         Remove _GNU_SOURCE define; now it's defined in config.h through
91049         m4/getline.m4.
91050
91051 2003-07-23  Karl Berry  <karl@gnu.org>
91052
91053         * config/config.sub: update from prep.
91054
91055 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91056
91057         * modules/xalloc (Depends-on): Add exitfail.
91058         * modules/xmemcoll: Likewise.
91059
91060 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91061
91062         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91063         over-parenthesization in macros.
91064
91065         Sync with coreutils.
91066
91067         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91068         required by C99.
91069
91070         Use `exit_failure' for xalloc and xmemcoll instead of their own
91071         private exit-failure variables.
91072         * lib/xalloc.h (xalloc_exit_failure): Remove.
91073         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91074         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91075         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91076         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91077         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91078
91079 2003-07-20  Jim Meyering  <jim@meyering.net>
91080
91081         * modules/closeout (Depends-on): Add exitfail.
91082         Suggestion from Bruno Haible.
91083
91084 2003-07-19  Karl Berry  <karl@gnu.org>
91085
91086         * config/config.sub: update from prep.
91087
91088 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91089
91090         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91091         Remove.
91092         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91093         to test that it can stand by itself.  Include "exitfail.h".
91094         Clients should set exit_failure instead.
91095         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91096
91097 2003-07-18  Bruno Haible  <bruno@clisp.org>
91098
91099         * modules/getndelim2: New file.
91100         * modules/getline: Share files with module getndelim2.
91101         * modules/getnline: Depend on getndelim2 instead of sharing files with
91102         it. Add getnline.c to lib_SOURCES.
91103         * MODULES.html.sh (func_all_modules): Add getndelim2.
91104
91105 2003-07-18  Bruno Haible  <bruno@clisp.org>
91106
91107         * m4/getndelim2.m4: New file.
91108         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91109         invoke gl_PREREQ_GETNDELIM2.
91110         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91111         gl_PREREQ_GETNDELIM2.
91112         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91113         gl_GETNDELIM2.
91114
91115 2003-07-18  Bruno Haible  <bruno@clisp.org>
91116
91117         * lib/getndelim2.h: New file.
91118         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91119         getndelim2.h.
91120         (getndelim2): Make non-static. Change return type to ssize_t.
91121         * lib/getline.h: Change argument names.
91122         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91123         * lib/getnline.c: Include getndelim2.h.
91124
91125 2003-07-18  Andreas Schwab  <schwab@suse.de>
91126
91127         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91128
91129 2003-07-17  Karl Berry  <karl@gnu.org>
91130
91131         * config/config.sub: update from prep.
91132
91133 2003-07-17  Bruno Haible  <bruno@clisp.org>
91134
91135         * modules/getnline: New file.
91136         * modules/getline: Add lib/getndelim2.c to source file list.
91137         * MODULES.html.sh (func_all_modules): Add getnline.
91138
91139 2003-07-17  Bruno Haible  <bruno@clisp.org>
91140
91141         * m4/getnline.m4: New file.
91142
91143 2003-07-17  Bruno Haible  <bruno@clisp.org>
91144
91145         * m4/Makefile.am.in: Remove file.
91146         * m4/Makefile.am: Remove file.
91147         * m4/Makefile.in: Remove file.
91148
91149 2003-07-17  Bruno Haible  <bruno@clisp.org>
91150
91151         * lib/getnline.h: New file.
91152         * lib/getnline.c: New file.
91153         * lib/getndelim2.c: New file, extracted from getline.c.
91154         (getndelim2): Renamed from getdelim2, with added nmax argument.
91155         * lib/getline.c: Include getndelim2.c.
91156         (getdelim2): Moved out to getndelim2.c.
91157         (getline, getdelim): Update.
91158
91159 2003-07-17  Bruno Haible  <bruno@clisp.org>
91160
91161         * lib/Makefile.am: Remove file.
91162         * lib/Makefile.in: Remove file.
91163
91164 2003-07-17  Bruno Haible  <bruno@clisp.org>
91165
91166         * configure.in: Remove file.
91167         * Makefile.in: Remove file.
91168
91169 2003-07-17  Bruno Haible  <bruno@clisp.org>
91170
91171         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91172
91173 2003-07-16  Karl Berry  <karl@gnu.org>
91174
91175         * config/srclist-update: was running fixlicense twice, which caused
91176                 texinfo.tex to be nullified for some reason.  Simplify,
91177                 $gplsrc is no longer needed as far as I can see?
91178
91179 2003-07-16  Jim Meyering  <jim@meyering.net>
91180
91181         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91182
91183 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91184
91185         * config/srclist.txt: Get the following files from gettext-runtime/intl
91186         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91187         ref-del.sin.  From Bruno Haible.
91188         * config/srclist-update (fixfile): Change grep pattern again, since the
91189         previous fix didn't work (there was another trailing $).  Use
91190         '[$]' to escape the $s.
91191
91192 2003-07-15  Karl Berry  <karl@gnu.org>
91193
91194         * lib/vasnprintf.c: update from gettext.
91195
91196 2003-07-15  Karl Berry  <karl@gnu.org>
91197
91198         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91199         gets expanded when surrounded by '$'.
91200
91201 2003-07-15  Jim Meyering  <jim@meyering.net>
91202
91203         * modules/save-cwd: Don't depend on error.  From Derek Price.
91204
91205 2003-07-15  Jim Meyering  <jim@meyering.net>
91206
91207         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91208
91209 2003-07-14  Simon Josefsson  <jas@extundo.com>
91210
91211         * modules/mempcpy: New file.
91212         * MODULES.html.sh (func_all_modules): Add mempcpy.
91213
91214 2003-07-14  Simon Josefsson  <jas@extundo.com>
91215
91216         * m4/mempcpy.m4: New file.
91217
91218 2003-07-14  Simon Josefsson  <jas@extundo.com>
91219
91220         * lib/mempcpy.h: New file.
91221         * lib/mempcpy.c: New file.
91222
91223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91224
91225         * modules/getdate, modules/posixtm: Depend on mktime.
91226
91227 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91228
91229         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91230         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91231         unicodeio.c, unicodeio.h, unlocked-io.h:
91232         Switch from LGPL to GPL.
91233
91234 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91235
91236         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91237         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91238         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91239         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91240         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91241         updated automatically by ../config/srclist-update.  This changes
91242         their license from LPGL to GPL.
91243
91244 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91245
91246         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91247         assumed to refer to the root of the most recent stable gettext version.
91248         * config/srclistvars.sh: Add defaults for eggert.
91249         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91250         Match "This program" as well as "The program".  This is needed
91251         for gettext.
91252
91253 2003-07-14  Jim Meyering  <jim@meyering.net>
91254
91255         Don't emit diagnostics.  Let callers do that.
91256         * lib/save-cwd.c: Don't include "error.h".
91257         (save_cwd): Don't call error.  Ensure that errno is valid
91258         when returning nonzero.
91259
91260         * lib/save-cwd.h (restore_cwd): Update prototype.
91261         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91262         Simplify.  Don't call error upon failure.  Let callers do that.
91263         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91264         when auditing is enabled.  But don't bother updating the #if.
91265
91266 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91267
91268         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91269         it breaks C++ compilation.
91270         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91271
91272 2003-07-10  Simon Josefsson  <jas@extundo.com>
91273
91274         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91275
91276 2003-07-10  Jim Meyering  <jim@meyering.net>
91277
91278         * m4/clock_time.m4: Remove trailing blank.
91279         * m4/intmax_t.m4: Likewise.
91280
91281 2003-07-10  Jim Meyering  <jim@meyering.net>
91282
91283         * lib/vasnprintf.c: Remove trailing blanks.
91284         Make cpp indentation consistent.
91285
91286 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91287
91288         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91289         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91290         Switch from LGPL to GPL.
91291
91292 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91293
91294         * config/srclist.txt: Sort sublists.  Add
91295         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91296         that differ from gnulib for one reason or another; we'd like this list
91297         to be smaller but for now let's document what we have.
91298
91299 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91300
91301         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91302         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91303         and sweeter "eval x=$x".
91304         * config/srclist.txt: Get lib/argp* from glibc.
91305
91306 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91307
91308         * lib/mktime.c: Fix some boundary cases and remove need for floating
91309         point.
91310
91311         Issue a compile-time diagnostic if time_t is floating point, or if
91312         two's complement arithmetic is not in effect, or if arithmetic
91313         right shift does not propagate the sign.  These assumptions were
91314         all in the original code but they weren't checked.
91315
91316         (TIME_T_MIDPOINT, verify): New macros.
91317         (__isleap): Remove; it has integer overflow problems.
91318         (leapyear): New function, without those problems.
91319         (ydhms_tm_diff): Remove; splitting into two parts.
91320         (ydhms_diff): New function, containing the arithmetic part of
91321         the old ydhms_tm_diff function.  Issue a compile-time
91322         diagnostic if we are not using C99 integer division.
91323         Avoid casts when possible.
91324         (guess_time_tm): New function, containing the checking part of
91325         the old ydhms_tm_diff function.  Return the new value, rather than
91326         the difference between it and the old.  Accept a new argument T
91327         so that *T specifies the old value.  Check for overflow in the result.
91328
91329         (__mktime_internal): Use a time_t offset, not a long int offset.
91330         This undoes the 2003-06-04 change, which is no longer needed now
91331         that we have better overflow checking.
91332         (localtime_offset): Likewise.
91333
91334         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91335         and long are 64-bit but int is only 32-bit.
91336         (ydhms_diff): Use long int to store year1 and yday1.
91337         Issue a compile-time diagnostic if long int is not wide enough.
91338
91339         (__mktime_internal): Use long int to store adjusted year and yday.
91340         Use plain C rather than preprocessor commands, if that doesn't
91341         affect efficiency.
91342         Check for overflow (and try to repair) after each probe
91343         rather than checking only at the very end.  This avoids some bugs
91344         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91345         does not equal GMT offset at maximum time).
91346         Use integer to check for overflow rather than floating point; this
91347         is more portable to non-IEEE hosts, and is a tad faster.
91348         When we detect that we are oscillating between two values,
91349         don't check whether tm_isdst has the requested value, since
91350         we already know the answer.  When tm_isdst has the wrong value,
91351         use a different heuristic to find the right one, based on the
91352         extreme values actually observed in practice in tz2003a,
91353         rather than the (overly optimistic) "previous 3 calendar quarters".
91354
91355         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91356         "T const" to accommodate glibc style.
91357         (check_result): Use less-confusing report format.  "long" -> "long int.
91358         (main): Likewise.
91359         Don't loop if the iteration overflows time_t.
91360         Allow a negative step in the iteration.
91361
91362 2003-07-06  Karl Berry  <karl@gnu.org>
91363
91364         * config/depcomp: update from automake.
91365         * config/config.sub: update from prep.
91366
91367 2003-07-03  Karl Berry  <karl@gnu.org>
91368
91369         * config/config.guess: update from prep.
91370
91371 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91372
91373         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91374         xreadlink.c now includes it unconditionally.
91375
91376 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91377
91378         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91379         having it depend on HAVE_SYS_TYPES_H.
91380
91381 2003-07-01  Bruno Haible  <bruno@clisp.org>
91382
91383         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91384         <sys/types.h> should be sufficient.
91385         Reported by Paul Eggert.
91386
91387 2003-06-26  Karl Berry  <karl@gnu.org>
91388
91389         * config/depcomp: update from automake.
91390
91391 2003-06-26  Bruno Haible  <bruno@clisp.org>
91392
91393         * modules/human: Depend on module stdbool.
91394
91395 2003-06-25  Bruno Haible  <bruno@clisp.org>
91396
91397         * modules/readlink: New file.
91398         * modules/xreadlink: Depend on it.
91399         * MODULES.html.sh (func_all_modules): Add readlink.
91400
91401 2003-06-25  Bruno Haible  <bruno@clisp.org>
91402
91403         * m4/readlink.m4: New file.
91404
91405 2003-06-25  Bruno Haible  <bruno@clisp.org>
91406
91407         * lib/readlink.c: New file.
91408
91409 2003-06-22  Karl Berry  <karl@gnu.org>
91410
91411         * config/srclist.txt: update mkinstalldirs from automake.
91412         * config/mkinstalldirs: update.
91413
91414 2003-06-22  Bruno Haible  <bruno@clisp.org>
91415
91416         Portability to mingw32.
91417         * m4/ssize_t.m4: New file, from GNU gettext.
91418         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91419         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91420
91421 2003-06-22  Bruno Haible  <bruno@clisp.org>
91422
91423         * modules/safe-read: Add m4/ssize_t.m4.
91424         * modules/xreadlink: Add m4/ssize_t.m4.
91425
91426 2003-06-20  Bruno Haible  <bruno@clisp.org>
91427
91428         Assume C89, so PARAMS isn't needed.
91429         * lib/unicodeio.h (PARAMS): Remove.
91430         * lib/unicodeio.c: Don't use PARAMS.
91431
91432 2003-06-18  Karl Berry  <karl@gnu.org>
91433
91434         * config/config.{guess,sub}: update from prep.
91435
91436 2003-06-18  Jim Meyering  <jim@meyering.net>
91437
91438         Merge changes from coreutils.
91439         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91440         Remove explicit declarations of xmalloc and realloc.
91441         Include xalloc.h.
91442         (read_utmp): Remove anachronistic cast of xmalloc.
91443
91444 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91445
91446         Assume C89, so PARAMS isn't needed.
91447         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91448         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91449         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91450         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91451         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91452         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91453         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91454         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91455         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91456         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91457         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91458         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91459         no longer needed. Anyway, config.h should always be included before any
91460         other file.
91461
91462 2003-06-11  Simon Josefsson  <jas@extundo.com>
91463
91464         * modules/sysexits: New file.
91465         * MODULES.html.sh (func_all_modules): Add sysexits.
91466
91467 2003-06-11  Simon Josefsson  <jas@extundo.com>
91468
91469         * lib/sysexit_.h: New file.
91470
91471 2003-06-11  Derek Price  <derek@ximbiot.com>
91472
91473         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91474         necessary.
91475
91476 2003-06-11  Bruno Haible  <bruno@clisp.org>
91477
91478         * m4/sysexits.m4: New file.
91479
91480 2003-06-10  Simon Josefsson  <jas@extundo.com>
91481
91482         * lib/argp.h: New file, from glibc.
91483         * lib/argp-ba.c: New file, from glibc.
91484         * lib/argp-eexst.c: New file, from glibc.
91485         * lib/argp-fmtstream.c: New file, from glibc.
91486         * lib/argp-fmtstream.h: New file, from glibc.
91487         * lib/argp-fs-xinl.c: New file, from glibc.
91488         * lib/argp-help.c: New file, from glibc.
91489         * lib/argp-namefrob.h: New file, from glibc.
91490         * lib/argp-parse.c: New file, from glibc.
91491         * lib/argp-pv.c: New file, from glibc.
91492         * lib/argp-pvh.c: New file, from glibc.
91493         * lib/argp-xinl.c: New file, from glibc.
91494
91495 2003-06-10  Simon Josefsson  <jas@extundo.com>
91496
91497         * modules/strchrnul: New file.
91498
91499 2003-06-10  Simon Josefsson  <jas@extundo.com>
91500
91501         * modules/argp: New file.
91502
91503 2003-06-10  Simon Josefsson  <jas@extundo.com>
91504
91505         * m4/strchrnul.m4: New file.
91506
91507 2003-06-10  Simon Josefsson  <jas@extundo.com>
91508
91509         * lib/strchrnul.h: New file.
91510         * lib/strchrnul.c: New file.
91511
91512 2003-06-10  Bruno Haible  <bruno@clisp.org>
91513
91514         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91515
91516 2003-06-07  Karl Berry  <karl@gnu.org>
91517
91518         * config/config.{guess,sub}: update from prep.
91519
91520 2003-06-07  Jim Meyering  <jim@meyering.net>
91521
91522         * modules/strtod: Use $(...) notation, not @...@ for
91523         AC_REPLACE'd variables.
91524         * modules/localcharset: Likewise.
91525
91526 2003-06-07  Jim Meyering  <jim@meyering.net>
91527
91528         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91529         in place of my name in the copyright comment.
91530         Remove definition and uses of __P.
91531
91532         From coreutils.
91533         * lib/stat.c: Don't declare xmalloc explicitly.
91534         Instead, include "xalloc.h".
91535         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91536         xrealloc, and xcalloc return values.
91537         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91538         Improve comment.
91539         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91540
91541 2003-06-07  Bruno Haible  <bruno@clisp.org>
91542
91543         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91544         avoid AC_CONFIG_LINKS.
91545         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91546         fnmatch.h, to avoid AC_CONFIG_LINKS.
91547         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91548
91549 2003-06-07  Bruno Haible  <bruno@clisp.org>
91550
91551         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91552         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91553         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91554         directory.
91555         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91556         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91557         directory.
91558
91559 2003-06-06  Jim Meyering  <jim@meyering.net>
91560
91561         Merge from coreutils.
91562         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91563         Consolidate declarations and initializations of *_base* locals.
91564
91565         Merge from coreutils.
91566         This avoids a core dump on systems without GNU putenv,
91567         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91568         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91569         (unsetenv): New static function, from GNU libc.
91570         (rpl_putenv): Use it.
91571
91572         * lib/modechange.c: Remove trailing blanks.
91573
91574         Merge from coreutils.
91575         * lib/fsusage.c: Remove declaration of statfs.
91576         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91577
91578         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91579
91580 2003-06-06  Jim Meyering  <jim@meyering.net>
91581
91582         * lib/stdbool_.h: Renamed from stdbool.h.in.
91583
91584 2003-06-06  Jim Meyering  <jim@meyering.net>
91585             Bruno Haible  <bruno@clisp.org>
91586
91587         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91588         Adjust Makefile.am snippet not to redirect directly to target.
91589         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91590
91591 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91592
91593         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91594         mismatch, look in future quarters as well as past.  This fixes a
91595         bug when processing fall-backwards gaps immediately after a long
91596         period of daylight-saving time.
91597
91598         * lib/mktime.c: Assume freestanding C89 or better.
91599         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91600         (__P): Remove; not used.
91601         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91602         (mktime, not_equal_tm, print_tm, check_result,
91603         main): Use prototypes.  Use const * where appropriate.
91604         (main): Fix typo in testing code that uncovered by above changes.
91605         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91606
91607 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91608
91609         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91610         locale.h, localeconv.  This merges changes from coreutils.
91611
91612         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91613         It can be removed after the next Autoconf is released.
91614         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91615         needed.
91616
91617 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91618
91619         * lib/mktime.c: Fix Debian bug 177940
91620         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91621         (localtime_offset): Now long int, not time_t, because we want it
91622         to be guaranteed to be signed.  All uses changed.
91623         (__mktime_internal): If overflow would occur when adding offset,
91624         don't add it.
91625
91626         Merge 'human' changes from coreutils.  Rewrite to support
91627         locale-specific notations like thousands separators.
91628         * lib/human.c: Simplify authorship notice.
91629         Include human.h immediately after config.h.
91630         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91631         <limits.h>: Do not include, since human.h does.
91632         (SIZE_MAX, UINTMAX_MAX): New macros.
91633         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91634         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91635         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91636         (power_letter): Renamed from suffixes.
91637         (generate_suffix_backwards): Remove.
91638         (adjust_value): Now takes int style (because of human.h changes)
91639         and long double value (for greater precision on some platforms).
91640         (group_number): New function.
91641         (human_readable): Use it.  Use integer options, not enum.
91642         Put the options before the sizes in the arg list.
91643         Support all the new options.
91644         The old human_readable function has been removed;
91645         use inttostr.h instead.
91646         (human_readable, default_block_size, humblock):
91647         Use uintmax_t, not int, for block sizes.
91648         (human_readable_inexact, block_size_types): Remove.
91649         (block_size_opts): New constant.
91650         (human_options): Renamed from human_block_size, with new signature
91651         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91652         * lib/human.h: Add copyright and authorship notice.
91653         Include <limits.h> and <stdbool.h> unconditionally.
91654         (PARAMS): Remove.  All uses removed.
91655         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91656         (enum human_inexact_style): Remove tag; now a nameless enum.
91657         (human_floor, human_ceiling, human_round_to_even): Now have
91658         values 2, 0, 1 rather than -1, 1, 0.
91659         (human_group_digits, human_suppress_point_zero, human_autoscale,
91660         human_base_1024, human_SI, human_B): New constants.
91661         (human_readable_inexact, human_block_size): Remove.
91662         (human_readable): Size args are now uintmax_t, not int.
91663         (human_options): New decl.
91664
91665         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91666         unnecessary now that we assume C89 or better.  This change
91667         imported from coreutils.
91668
91669         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91670         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91671         in the 2003-05-30 sync from glibc.
91672
91673         .h files should stand alone, but we shouldn't include <sys/types.h>
91674         if we can get away with just <stddef.h>.
91675
91676         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91677         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91678         rather than <sys/types.h>, as we merely need size_t.
91679         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91680         to get size_t.
91681         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91682         Include <stdio.h>, to get FILE.
91683         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91684         memcasecmp.h has included <stddef.h> and all we need is size_t.
91685         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91686         our interface, instead of including <sys/types.h>
91687
91688 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91689
91690         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91691         now, as glibc mktime is buggy on non-glibc systems.
91692
91693 2003-06-03  Karl Berry  <karl@gnu.org>
91694
91695         * config/config.sub: update from prep.
91696
91697 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91698
91699         [from coreutils]
91700         Fix some minor time-related bugs with POSIX time arguments.
91701         Some valid time stamps were being rejected (notably -1, and
91702         time stamps before 1900 on 64-bit hosts).  And some invalid
91703         time stamps were being accepted, e.g. September 31.
91704
91705         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91706         that we can return (time_t) -1 successfully.
91707         * lib/posixtm.c: Likewise.
91708         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91709         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91710         (t): Remove static var.
91711         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91712         of static var.  All uses changed.
91713         (year): Do not reject years before 1900; they can occur with
91714         64-bit time_t.
91715         (posix_time_parse): Do not check for out-of-range components;
91716         that is now the caller's responsibility, since our checks were
91717         only approximations.
91718         (posixtime): Use mktime to check for out-of-range components,
91719         since it knows them exactly.
91720         If mktime returns (time_t) -1, check whether an error actually occurred
91721         by invoking localtime on -1.
91722         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91723         posixtime failures better.
91724         Improve the test data (in comments only).
91725
91726 2003-06-02  Karl Berry  <karl@gnu.org>
91727
91728         * config/mkinstalldirs (version): new variable.
91729         (--version): new option.
91730         (usage): improve message.
91731
91732 2003-05-30  Karl Berry  <karl@gnu.org>
91733
91734         * lib/mktime.c: update from libc.
91735
91736 2003-05-30  Bruno Haible  <bruno@clisp.org>
91737
91738         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91739         * config/config.rpath: Upgrade to gettext-0.12.1.
91740
91741 2003-05-30  Bruno Haible  <bruno@clisp.org>
91742
91743         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91744         * m4/nls.m4: New file, from gettext-0.12.1.
91745         * m4/po.m4: New file, from gettext-0.12.1.
91746         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91747
91748 2003-05-30  Bruno Haible  <bruno@clisp.org>
91749
91750         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91751         * lib/localcharset.h: Likewise.
91752         * lib/localcharset.c: Likewise.
91753
91754 2003-05-29  Karl Berry  <karl@gnu.org>
91755
91756         * config/config.rpath: update from gettext.
91757
91758 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91759
91760         Assume the headers required for C89 freestanding compilers.
91761         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91762         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91763         * m4/human.m4 (gl_HUMAN): Likewise.
91764         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91765         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91766         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91767         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91769         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91770
91771 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91772
91773         Assume the headers required for C89 freestanding compilers.
91774         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91775         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91776         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91777         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91778         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91779         define, since <limits.h> is guaranteed to do that.
91780         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91781         * lib/exclude.c: Include <stdbool.h> unconditionally.
91782         * lib/tempname.c: Include <stddef.h> unconditionally.
91783         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91784         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91785         <stddef.h> does that.
91786         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91787         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91788         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91789         needed.
91790         * lib/xstrtol.c: Likewise.
91791         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91792         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91793
91794         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91795         warnings on some platforms.
91796
91797         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91798         arbitrarily.
91799
91800 2003-05-26  Jim Meyering  <jim@meyering.net>
91801
91802         Merge in a change from coreutils:
91803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91804         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91805         that condition, rather than `-1' which is slightly misleading.
91806         Change the name of the cache variable to have the gl_ prefix.
91807         Prompted by a patch from Richard Dawe for DJGPP.
91808
91809 2003-05-24  Karl Berry  <karl@gnu.org>
91810
91811         * config/config.guess: update from prep.
91812
91813 2003-05-22  Karl Berry  <karl@gnu.org>
91814
91815         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91816
91817 2003-05-20  Karl Berry  <karl@gnu.org>
91818
91819         * config/config.guess: update from prep.
91820
91821 2003-05-18  Karl Berry  <karl@gnu.org>
91822
91823         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91824         might actually be set by the user.
91825
91826         * config/depcomp, install-sh, mdate-sh: update from automake.
91827
91828 2003-05-17  Bruno Haible  <bruno@clisp.org>
91829
91830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91831         invalid expansion for AC_EGREP_CPP.
91832         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91833         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91834         Suggested by Akim Demaille <akim@epita.fr> in
91835         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91836
91837 2003-05-12  Jim Meyering  <jim@meyering.net>
91838
91839         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91840         the space-padded-by-default conversion specifiers, %e, %k, %l.
91841
91842 2003-05-12  Bruno Haible  <bruno@clisp.org>
91843
91844         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91845         the string is longer than 4 KB.
91846
91847 2003-05-11  Karl Berry  <karl@gnu.org>
91848
91849         * config/config.{guess,sub}: update from prep.
91850
91851 2003-05-09  Bruno Haible  <bruno@clisp.org>
91852
91853         * modules/error: Add m4/strerror_r.m4 to file list.
91854
91855 2003-05-03  Bruno Haible  <bruno@clisp.org>
91856
91857         Upgrade to Unicode-4.0.
91858         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91859         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91860         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91861         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91862         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91863         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91864         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91865         Change width of U+E0100..U+E01EF from 1 to 0.
91866
91867 2003-04-25  Jim Meyering  <jim@meyering.net>
91868
91869         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91870         of type size_t, not int.
91871
91872 2003-04-25  Bruno Haible  <bruno@clisp.org>
91873
91874         * lib/copy-file.c: Include <stddef.h>, for size_t.
91875
91876 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91877
91878         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91879         code which expansion is under static control.  Patch imported from
91880         Akim Demaille's patch to Bison; see
91881         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91882
91883 2003-04-14  Bruno Haible  <bruno@clisp.org>
91884
91885         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91886
91887 2003-04-11  Jim Meyering  <jim@meyering.net>
91888
91889         Merge changes from Coreutils.
91890
91891         2003-03-22  Jim Meyering  <jim@meyering.net>
91892
91893         * lib/strftime.c (widen): Cast alloca return value to proper type.
91894
91895         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91896
91897         From GNU libc.
91898         * lib/strftime.c (my_strftime): Handle very large width
91899         specifications for numeric values correctly.  Improve checks for
91900         overflow.
91901
91902         2003-01-19  Jim Meyering  <jim@meyering.net>
91903
91904         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91905         definitions.
91906         (nl_get_alt_digit) [! defined my_strftime]: Define.
91907         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91908         _nl_get_alt_digit and _nl_get_walt_digit.
91909
91910         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91911         libc. These changes have no effect outside of _LIBC.
91912
91913 2003-04-10  Bruno Haible  <bruno@clisp.org>
91914
91915         * modules/findprog: New file.
91916         * MODULES.html.sh (func_all_modules): Add it.
91917
91918 2003-04-10  Bruno Haible  <bruno@clisp.org>
91919
91920         * m4/findprog.m4: New file.
91921         * m4/eaccess.m4: New file.
91922
91923 2003-04-10  Bruno Haible  <bruno@clisp.org>
91924
91925         * lib/findprog.h: New file, from GNU gettext.
91926         * lib/findprog.c: New file, from GNU gettext.
91927
91928 2003-04-05  Jim Meyering  <jim@meyering.net>
91929
91930         Merge changes from Coreutils.
91931
91932         * lib/exclude.h (PARAMS): Remove definition and uses.
91933         * lib/exclude.c: Remove uses of `PARAMS'.
91934
91935         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91936         Add test-cases for DOS filenames. Declare program_name.
91937         (main): Set up program_name.  Patch by Rich Dawe.
91938
91939         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91940         error from mntctl.
91941         Use mntctl's return value to drive the entry-processing loop, since
91942         we can't rely on the value of the vmt_length member in the last
91943         entry.  On some systems doing so could result in exhausting
91944         virtual memory.  Based in part on a patch from Mike Jetzer.
91945
91946 2003-04-04  Bruno Haible  <bruno@clisp.org>
91947
91948         * modules/linebreak: New file.
91949         * MODULES.html.sh (func_all_modules): Add it.
91950
91951 2003-04-04  Bruno Haible  <bruno@clisp.org>
91952
91953         * m4/linebreak.m4: New file.
91954
91955 2003-04-04  Bruno Haible  <bruno@clisp.org>
91956
91957         * lib/linebreak.h: New file, from GNU gettext.
91958         * lib/linebreak.c: New file, from GNU gettext with slight
91959         modifications.
91960         * lib/lbrkprop.h: New file, from GNU gettext.
91961
91962 2003-04-03  Bruno Haible  <bruno@clisp.org>
91963
91964         * modules/utf8-ucs4: New file.
91965         * modules/utf16-ucs4: New file.
91966         * modules/ucs4-utf8: New file.
91967         * modules/ucs4-utf16: New file.
91968         * MODULES.html.sh (func_all_modules): Add them.
91969
91970 2003-04-03  Bruno Haible  <bruno@clisp.org>
91971
91972         * m4/utf-ucs4.m4: New file.
91973         * m4/ucs4-utf.m4: New file.
91974
91975 2003-04-03  Bruno Haible  <bruno@clisp.org>
91976
91977         * lib/utf8-ucs4.h: New file, from GNU gettext.
91978         * lib/utf16-ucs4.h: New file, from GNU gettext.
91979         * lib/ucs4-utf8.h: New file, from GNU gettext.
91980         * lib/ucs4-utf16.h: New file, from GNU gettext.
91981
91982 2003-04-02  Bruno Haible  <bruno@clisp.org>
91983
91984         * modules/binary-io: New file.
91985         * MODULES.html.sh (func_all_modules): Add it.
91986
91987 2003-04-02  Bruno Haible  <bruno@clisp.org>
91988
91989         * lib/binary-io.h: New file, from GNU gettext.
91990
91991 2003-04-01  Bruno Haible  <bruno@clisp.org>
91992
91993         * modules/pathname: New file.
91994         * MODULES.html.sh (func_all_modules): Add it.
91995
91996 2003-04-01  Bruno Haible  <bruno@clisp.org>
91997
91998         * lib/pathname.h: New file, from GNU gettext.
91999         * lib/concatpath.c: New file, from GNU gettext.
92000
92001 2003-03-30  Bruno Haible  <bruno@clisp.org>
92002
92003         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92004
92005 2003-03-30  Bruno Haible  <bruno@clisp.org>
92006
92007         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92008         function chown() doesn't exist.
92009
92010 2003-03-28  Bruno Haible  <bruno@clisp.org>
92011
92012         * modules/copy-file: New file.
92013         * MODULES.html.sh (func_all_modules): Add it.
92014
92015 2003-03-28  Bruno Haible  <bruno@clisp.org>
92016
92017         * m4/copy-file.m4: New file.
92018
92019 2003-03-28  Bruno Haible  <bruno@clisp.org>
92020
92021         * lib/copy-file.h: New file, from GNU gettext.
92022         * lib/copy-file.c: New file, from GNU gettext.
92023
92024 2003-03-18  Jim Meyering  <jim@meyering.net>
92025
92026         * lib/quote.c (quote_n): Fix typo in comment.
92027
92028 2003-03-18  Bruno Haible  <bruno@clisp.org>
92029
92030         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92031         checking.
92032         * m4/onceonly_2_57.m4: Likewise.
92033
92034 2003-03-17  Bruno Haible  <bruno@clisp.org>
92035
92036         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92037         (m4_quote): Remove macro.
92038         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92039
92040 2003-03-14  Jim Meyering  <jim@meyering.net>
92041
92042         Merge changes from Coreutils.
92043         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92044         to be const, in order to avoid warnings.
92045         (obstack_room): Likewise.
92046         (obstack_empty_p): Likewise.
92047
92048 2003-03-14  Bruno Haible  <bruno@clisp.org>
92049
92050         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92051         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92052
92053 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92054
92055         Merge changes from Bison.
92056         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92057         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92058         when compiling Bison 1.875's `bitset bset = obstack_alloc
92059         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92060         * lib/hash.c: Include <stdbool.h> unconditionally.
92061
92062 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92063
92064         * m4/onceonly.m4 (m4_quote): New macro.
92065         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92066         Quote AC_FOREACH variable-expansions properly.
92067
92068 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92069
92070         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92071
92072 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92073
92074         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92075         Reported by Bruce Becker; see:
92076         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92077
92078 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92079             Bruno Haible  <bruno@clisp.org>
92080
92081         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92082         Reported by John Hughes, see
92083         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92084
92085 2003-02-20  Bruno Haible  <bruno@clisp.org>
92086
92087         * MODULES.html.sh (func_all_modules): Add poll.
92088
92089 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92090
92091         * modules/poll: New file.
92092
92093 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92094
92095         * lib/poll_.h: New file.
92096         * lib/poll.c: New file.
92097
92098 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92099
92100         * m4/poll.m4: New file.
92101
92102 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92103
92104         * modules/mathl: New file.
92105
92106 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92107
92108         * lib/mathl.h: New file.
92109         * lib/acosl.c: New file.
92110         * lib/asinl.c: New file.
92111         * lib/atanl.c: New file.
92112         * lib/ceill.c: New file.
92113         * lib/cosl.c: New file.
92114         * lib/expl.c: New file.
92115         * lib/floorl.c: New file.
92116         * lib/frexpl.c: New file.
92117         * lib/ldexpl.c: New file.
92118         * lib/logl.c: New file.
92119         * lib/sincosl.c: New file.
92120         * lib/sinl.c: New file.
92121         * lib/sqrtl.c: New file.
92122         * lib/tanl.c: New file.
92123         * lib/trigl.c: New file.
92124         * lib/trigl.h: New file.
92125
92126 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92127
92128         * m4/mathl.m4: New file.
92129
92130 2003-02-18  Bruno Haible  <bruno@clisp.org>
92131
92132         * MODULES.html.sh (func_all_modules): Add mathl.
92133
92134 2003-02-17  Bruno Haible  <bruno@clisp.org>
92135
92136         * modules/mkdtemp: New module.
92137         * MODULES.html.sh (func_all_modules): Add it.
92138
92139 2003-02-17  Bruno Haible  <bruno@clisp.org>
92140
92141         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92142
92143 2003-02-17  Bruno Haible  <bruno@clisp.org>
92144
92145         * lib/mkdtemp.h: New file, from GNU gettext.
92146         * lib/mkdtemp.c: New file, from GNU gettext.
92147
92148 2003-02-02  Jim Meyering  <jim@meyering.net>
92149
92150         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92151         e.g. glibc-2.2.93.
92152
92153 2003-01-31  Bruno Haible  <bruno@clisp.org>
92154
92155         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92156         'rpl_rename'.
92157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92158         'rpl_strnlen'.
92159         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92160         'rpl_strtod'.
92161         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92162         'rpl_utime'.
92163
92164 2003-01-31  Bruno Haible  <bruno@clisp.org>
92165
92166         * lib/rename.c: #undef rename before defining rpl_rename.
92167         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92168
92169 2003-01-30  Bruno Haible  <bruno@clisp.org>
92170
92171         * modules/vasnprintf, modules/vasprintf: New modules.
92172         * MODULES.html.sh (func_all_modules): Add them.
92173
92174 2003-01-30  Bruno Haible  <bruno@clisp.org>
92175
92176         * m4/signed.m4: New file, from GNU gettext.
92177         * m4/longdouble.m4: New file, from GNU gettext.
92178         * m4/wchar_t.m4: New file, from GNU gettext.
92179         * m4/wint_t.m4: New file, from GNU gettext.
92180         * m4/vasnprintf.m4: New file.
92181         * m4/vasprintf.m4: New file.
92182
92183 2003-01-30  Bruno Haible  <bruno@clisp.org>
92184
92185         * lib/printf-args.h: New file, from GNU gettext.
92186         * lib/printf-args.c: New file, from GNU gettext.
92187         * lib/printf-parse.h: New file, from GNU gettext.
92188         * lib/printf-parse.c: New file, from GNU gettext.
92189         * lib/vasnprintf.h: New file, from GNU gettext.
92190         * lib/vasnprintf.c: New file, from GNU gettext.
92191         * lib/asnprintf.c: New file, from GNU gettext.
92192         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92193         * lib/vasprintf.c: New file, from GNU gettext.
92194         * lib/asprintf.c: New file, from GNU gettext.
92195
92196 2003-01-29  Bruno Haible  <bruno@clisp.org>
92197
92198         * modules/stpncpy: New module.
92199         * MODULES.html.sh (func_all_modules): Add it.
92200
92201 2003-01-29  Bruno Haible  <bruno@clisp.org>
92202
92203         * m4/stpncpy.m4: New file.
92204
92205 2003-01-29  Bruno Haible  <bruno@clisp.org>
92206
92207         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92208         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92209
92210 2003-01-28  Bruno Haible  <bruno@clisp.org>
92211
92212         * modules/c-ctype: New module.
92213         * MODULES.html.sh (func_all_modules): Add it.
92214
92215 2003-01-28  Bruno Haible  <bruno@clisp.org>
92216
92217         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92218         Paul Eggert.
92219         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92220         Paul Eggert.
92221
92222 2003-01-27  Bruno Haible  <bruno@clisp.org>
92223
92224         * modules/xsetenv: New module.
92225         * MODULES.html.sh (func_all_modules): Add it.
92226
92227 2003-01-27  Bruno Haible  <bruno@clisp.org>
92228
92229         * lib/xsetenv.h: New file, from GNU gettext.
92230         * lib/xsetenv.c: New file, from GNU gettext.
92231
92232 2003-01-23  Jim Meyering  <jim@meyering.net>
92233
92234         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92235         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92236
92237 2003-01-23  Bruno Haible  <bruno@clisp.org>
92238
92239         * modules/minmax: New module.
92240         * MODULES.html.sh (func_all_modules): Add it.
92241
92242 2003-01-23  Bruno Haible  <bruno@clisp.org>
92243
92244         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92245         Eggert.
92246
92247 2003-01-22  Bruno Haible  <bruno@clisp.org>
92248
92249         * modules/exit: New module.
92250         * MODULES.html.sh (func_all_modules): Add it.
92251
92252 2003-01-22  Bruno Haible  <bruno@clisp.org>
92253
92254         * lib/exit.h: New file, from GNU gettext.
92255
92256 2003-01-19  Bruno Haible  <bruno@clisp.org>
92257
92258         * gnulib-tool: Recognize option --extract-maintainer.
92259         (func_get_maintainer): New function.
92260         * modules/*: Add Maintainer entry.
92261
92262 2003-01-16  Jim Meyering  <jim@meyering.net>
92263
92264         * m4/regex.m4: The `regex' struct is both input and output.
92265         Initialize it before each use.  Patch by Tim Waugh.
92266
92267 2003-01-16  Bruno Haible  <bruno@clisp.org>
92268
92269         * MODULES.html.sh: Add a table of contents. Add the module name as
92270         leftmost column. Add hyperlinks.
92271
92272 2003-01-15  Bruno Haible  <bruno@clisp.org>
92273
92274         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92275
92276 2003-01-15  Bruno Haible  <bruno@clisp.org>
92277
92278         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92279         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92280         suffix.
92281
92282 2003-01-15  Bruno Haible  <bruno@clisp.org>
92283
92284         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92285
92286 2003-01-15  Bruno Haible  <bruno@clisp.org>
92287
92288         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92289         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92290
92291 2003-01-14  Jim Meyering  <jim@meyering.net>
92292
92293         * lib/same.c (same_name): Tweak a comment.
92294
92295 2003-01-14  Bruno Haible  <bruno@clisp.org>
92296
92297         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92298         when a string comparison is sufficient.
92299
92300 2003-01-14  Bruno Haible  <bruno@clisp.org>
92301
92302         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92303         'unsigned int'.
92304
92305 2003-01-14  Bruno Haible  <bruno@clisp.org>
92306
92307         * lib/hash-pjw.c: Add comment about low quality of this function.
92308
92309 2003-01-13  Bruno Haible  <bruno@clisp.org>
92310
92311         * modules/stpcpy: Distribute lib/stpcpy.h.
92312         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92313
92314 2003-01-13  Bruno Haible  <bruno@clisp.org>
92315
92316         * modules/*: Add a description.
92317         * modules/strpbrk: Fix Makefile.am snippet.
92318         * modules/strtoimax: Fix dependencies.
92319         * modules/strtoumax: Likewise.
92320
92321 2003-01-13  Bruno Haible  <bruno@clisp.org>
92322
92323         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92324         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92325         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92326
92327 2003-01-13  Bruno Haible  <bruno@clisp.org>
92328
92329         * gnulib-tool (func_create_testdir): Store config/* files in the main
92330         directory.
92331         * config.rpath: Move to ...
92332         * config/config.rpath: ... here.
92333         * modules/gettext: Contains config/config.rpath, not config.rpath.
92334         * modules/iconv: Likewise.
92335
92336 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92337
92338         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92339         to avoid collisions with libcurses and libreadline.
92340
92341         * m4/getstr.m4: Remove.
92342         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92343
92344 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92345
92346         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92347         to avoid collisions with libcurses and libreadline.
92348
92349         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92350         * lib/getstr.h, getstr.c: Remove.
92351         * lib/getline.c: Include "getline.h", to check interface.
92352         Move body of old getstr.c here: this defines MIN_CHUNK and
92353         declares getdelim2, which is renamed from getstr.
92354         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92355
92356         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92357         All uses changed.
92358         * lib/linebuffer.h: Likewise.
92359         (readline): Remove backward-compatibility macro.
92360
92361 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92362
92363         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92364         to avoid collisions with libcurses and libreadline.
92365         * getstr: Remove.
92366         * MODULES.html.sh: Remove getstr.
92367         * modules/getline: Depend on unlocked-io, not getstr.
92368
92369 2003-01-12  Jim Meyering  <jim@meyering.net>
92370
92371         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92372
92373 2003-01-10  Bruno Haible  <bruno@clisp.org>
92374
92375         * modules/alloca: Change Makefile.am requirements. Simplify Include
92376         requirements. Add lib/alloca_.h to file list.
92377
92378 2003-01-10  Bruno Haible  <bruno@clisp.org>
92379
92380         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92381
92382 2003-01-10  Bruno Haible  <bruno@clisp.org>
92383
92384         * lib/alloca_.h: New file.
92385         * lib/getdate.y: Unconditionally include alloca.h.
92386         * lib/makepath.c: Likewise.
92387         * lib/setenv.c: Likewise.
92388         * lib/userspec.c: Likewise.
92389
92390 2003-01-09  Karl Berry  <karl@gnu.org>
92391
92392         * MODULES.html.sh: include `dirname $0` in PATH, to find
92393         gnulib-tool.
92394
92395 2003-01-09  Bruno Haible  <bruno@clisp.org>
92396
92397         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92398         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92399
92400 2003-01-09  Bruno Haible  <bruno@clisp.org>
92401
92402         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92403
92404 2003-01-09  Bruno Haible  <bruno@clisp.org>
92405
92406         * lib/stdbool.h.in: New file.
92407
92408 2003-01-09  Bruno Haible  <bruno@clisp.org>
92409
92410         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92411         * MODULES.html.sh: Likewise.
92412
92413 2003-01-08  Jim Meyering  <jim@meyering.net>
92414
92415         * lib/full-write.c: Undefine and define-away `const' after inclusion
92416         of errno.h, not before.  Suggestion from Bruno Haible.
92417
92418 2003-01-08  Bruno Haible  <bruno@clisp.org>
92419
92420         * modules/full-read: Depend on full-write.
92421
92422 2003-01-08  Bruno Haible  <bruno@clisp.org>
92423
92424         * lib/safe-read.c: Include specification header first, to ensure its
92425         selfcontainedness.
92426         * lib/full-write.c: Likewise.
92427
92428 2003-01-07  Jim Meyering  <jim@meyering.net>
92429
92430         * lib/full-write.c: Rework so that it may serve to define full_read,
92431         too.
92432         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92433
92434 2003-01-07  Bruno Haible  <bruno@clisp.org>
92435
92436         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92437         <inttypes.h>.
92438         * lib/xstrtol.h: Likewise.
92439         * lib/xstrtoimax.c: Likewise.
92440         * lib/xstrtoumax.c: Likewise.
92441         * lib/human.h: Likewise.
92442
92443         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92444         on systems that have <inttypes.h> but not <stdint.h>.
92445
92446 2003-01-07  Bruno Haible  <bruno@clisp.org>
92447
92448         * MODULES.html.sh: Add copyright notice.
92449         (missed_files): Omit CVS directory entries.
92450         (func_module): Make it work with sed-3.02.
92451         * MODULES.txt: Remove file.
92452
92453 2003-01-06  Jim Meyering  <jim@meyering.net>
92454
92455         * lib/version-etc.c: Update year in translatable copyright string.
92456
92457 2003-01-03  Karl Berry  <karl@gnu.org>
92458
92459         * config/config.{guess,sub}: update from prep.
92460
92461 2003-01-02  Karl Berry  <karl@gnu.org>
92462
92463         * doc/COPYING.DOC: belatedly updated to 1.2.
92464
92465 2003-01-01  Karl Berry  <karl@gnu.org>
92466
92467         * gnulib-tool (func_verify_module): report module name $module in
92468         error message, not $1.
92469         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92470         be created, only if it doesn't exist.
92471         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92472
92473 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92474
92475         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92476
92477 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92478
92479         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92480         memcmp if strcoll doesn't work.
92481
92482 2002-12-31  Bruno Haible  <bruno@clisp.org>
92483
92484         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92485         nonempty.
92486
92487 2002-12-31  Bruno Haible  <bruno@clisp.org>
92488
92489         * lib/memcoll.c (STRCOLL): New macro.
92490         (memcoll): Use it.
92491
92492 2002-12-31  Bruno Haible  <bruno@clisp.org>
92493
92494         * lib/localcharset.h: New file.
92495         * lib/localcharset.c: Include it.
92496         * lib/unicodeio.c: Likewise.
92497
92498 2002-12-31  Bruno Haible  <bruno@clisp.org>
92499
92500         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92501         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92502
92503 2002-12-31  Bruno Haible  <bruno@clisp.org>
92504
92505         * lib/getline.h: Include <stddef.h>, for size_t.
92506
92507         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92508         * lib/unicodeio.c: Don't include <stddef.h>.
92509
92510 2002-12-31  Bruno Haible  <bruno@clisp.org>
92511
92512         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92513         HAVE_TM_ZONE.
92514
92515 2002-12-24  Karl Berry  <karl@gnu.org>
92516
92517         * config/config.guess: update from prep.
92518
92519 2002-12-24  Bruno Haible  <bruno@clisp.org>
92520
92521         General infrasructure.
92522         * m4/README: Rewritten.
92523         * m4/onceonly.m4: New file.
92524         * m4/onceonly_2_57.m4: New file.
92525
92526         Module atexit.
92527         * m4/atexit.m4: New file.
92528
92529         Module strtod.
92530         * m4/strtod.m4: New file.
92531
92532         Module strtol.
92533         * m4/strtol.m4: New file.
92534
92535         Module strtoul.
92536         * m4/strtoul.m4: New file.
92537
92538         Module memchr.
92539         * m4/memchr.m4: New file.
92540
92541         Module memcmp.
92542         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92543         (jm_FUNC_MEMCMP): Invoke it.
92544
92545         Module memcpy.
92546         * m4/memcpy.m4: New file.
92547
92548         Module memmove.
92549         * m4/memmove.m4: New file.
92550
92551         Module memset.
92552         * m4/memset.m4: New file.
92553
92554         Module strcspn.
92555         * m4/strcspn.m4: New file.
92556
92557         Module strpbrk.
92558         * m4/strpbrk.m4: New file.
92559
92560         Module strstr.
92561         * m4/strstr.m4: New file.
92562
92563         Module strerror.
92564         * m4/strerror.m4: New file.
92565
92566         Module mktime.
92567         * m4/mktime.m4: Renamed from jm-mktime.m4.
92568         (gl_PREREQ_MKTIME): New macro.
92569         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92570
92571         Module malloc.
92572         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92573         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92574         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92575
92576         Module realloc.
92577         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92578         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92579         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92580
92581         Module strftime.
92582         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92583         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92584         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92585         gl_TM_GMTOFF.
92586         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92587
92588         Module xalloc.
92589         * m4/xalloc.m4: New file.
92590
92591         Module alloca.
92592         * m4/alloca.m4: New file.
92593
92594         Module putenv.
92595         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92596         (jm_FUNC_PUTENV): Invoke it.
92597
92598         Module setenv.
92599         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92600         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92601         when invoked twice.
92602         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92603         gt_FUNC_SETENV.
92604
92605         Module memrchr.
92606         * m4/memrchr.m4: New file.
92607
92608         Module stpcpy.
92609         * m4/stpcpy.m4: New file.
92610
92611         Module strcase.
92612         * m4/strcase.m4: New file.
92613
92614         Module strdup.
92615         * m4/strdup.m4: New file.
92616
92617         Module strnlen.
92618         * m4/strnlen.m4: New file.
92619
92620         Module strndup.
92621         * m4/strndup.m4: New file.
92622
92623         Module xstrtod.
92624         * m4/xstrtod.m4: New file.
92625
92626         Module xstrtol.
92627         * m4/xstrtol.m4: New file.
92628
92629         Module getdate.
92630         * m4/getdate.m4: New file.
92631
92632         Module unlocked-io.
92633         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92634         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92635         * m4/jm-glibc-io.m4n: Remove file.
92636
92637         Module long-options.
92638         * m4/long-options.m4: New file.
92639
92640         Module md5.
92641         * m4/md5.m4: New file.
92642
92643         Module sha.
92644         * m4/sha.m4: New file.
92645
92646         Module getstr.
92647         * m4/getstr.m4: New file.
92648
92649         Module getline.
92650         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92651         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92652         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92653         simply getline. Infoke gl_PREREQ_GETLINE.
92654
92655         Module obstack.
92656         * m4/obstack.m4: New file.
92657
92658         Module hash.
92659         * m4/hash.m4: New file.
92660
92661         Module readtokens.
92662         * m4/readtokens.m4: New file.
92663
92664         Module strverscmp.
92665         * m4/strverscmp.m4: New file.
92666
92667         Module stdbool.
92668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92669         OSF/1.
92670
92671         Module strtoll.
92672         * m4/strtoll.m4: New file.
92673
92674         Module strtoull.
92675         * m4/strtoull.m4: New file.
92676
92677         Module strtoimax.
92678         * m4/strtoimax.m4: New file.
92679
92680         Module strtoumax.
92681         * m4/strtoumax.m4: New file.
92682
92683         Module xstrtoimax.
92684         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92685         jm_AC_PREREQ_XSTRTOIMAX.
92686         Moved the strtol prerequisites to strtol.m4.
92687         Moved the strtoll prerequisites to strtoll.m4.
92688         Moved the strtoimax prerequisites to strtoimax.m4.
92689
92690         Module xstrtoumax.
92691         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92692         jm_AC_PREREQ_XSTRTOUMAX.
92693         Moved the strtoul prerequisites to strtoul.m4.
92694         Moved the strtoull prerequisites to strtoull.m4.
92695         Moved the strtoumax prerequisites to strtoumax.m4.
92696
92697         Module chown.
92698         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92699         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92700
92701         Module dup2.
92702         * m4/dup2.m4: New file.
92703
92704         Module ftruncate.
92705         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92706         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92707
92708         Module getgroups.
92709         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92710         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92711
92712         Module gettimeofday.
92713         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92714         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92715         gl_PREREQ_GETTIMEOFDAY.
92716
92717         Module mkdir.
92718         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92719         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92720
92721         Module mkstemp.
92722         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92723         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92724         jm_AC_TYPE_UINTMAX_T.
92725         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92726
92727         Module stat.
92728         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92729         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92730
92731         Module lstat.
92732         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92733         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92734
92735         Module timespec.
92736         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92737         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92738         * m4/st_mtim.m4: Indentation.
92739
92740         Module nanosleep.
92741         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92742         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92743         gl_PREREQ_NANOSLEEP.
92744
92745         Module regex.
92746         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92747         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92748         (gl_REGEX): New macro.
92749
92750         Module rename.
92751         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92752         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92753
92754         Module rmdir.
92755         * m4/rmdir.m4: New file.
92756
92757         Module utime.
92758         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92759         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92760         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92761
92762         Module dirname.
92763         * m4/dirname.m4: New file.
92764
92765         Module getopt.
92766         * m4/getopt.m4: New file.
92767
92768         Module unistd-safer.
92769         * m4/unistd-safer.m4: New file.
92770
92771         Module fnmatch.
92772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92773         declaration.
92774         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92775         (gl_FUNC_FNMATCH_POSIX): New macro.
92776         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92777         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92778         simply fnmatch.
92779
92780         Module exclude.
92781         * m4/exclude.m4: New file.
92782
92783         Module human.
92784         * m4/human.m4: New file.
92785
92786         Module acl.
92787         * m4/acl.m4: Nop.
92788
92789         Module backupfile.
92790         * m4/backupfile.m4: New file.
92791         * m4/d-ino.m4: Indentation.
92792
92793         Module fsusage.
92794         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92795         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92796         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92797
92798         Module dirfd.
92799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92800         requirements.
92801
92802         Module euidaccess.
92803         * m4/euidaccess.m4: New file.
92804
92805         Module file-type.
92806         * m4/file-type.m4: New file.
92807
92808         Module fileblocks.
92809         * m4/fileblocks.m4: New file.
92810
92811         Module filemode.
92812         * m4/filemode.m4: New file.
92813
92814         Module isdir.
92815         * m4/isdir.m4: New file.
92816
92817         Module lchown.
92818         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92819         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92820
92821         Module makepath.
92822         * m4/makepath.m4: New file.
92823
92824         Module modechange.
92825         * m4/modechange.m4: New file.
92826
92827         Module mountlist.
92828         * m4/mountlist.m4: New file.
92829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92830         Indentation.
92831
92832         Module path-concat.
92833         * m4/path-concat.m4: New file.
92834
92835         Module pathmax.
92836         * m4/pathmax.m4: New file.
92837
92838         Module same.
92839         * m4/same.m4: New file.
92840
92841         Module save-cwd.
92842         * m4/save-cwd.m4: New file.
92843
92844         Module savedir.
92845         * m4/savedir.m4: New file.
92846
92847         Module xgetcwd.
92848         * m4/xgetcwd.m4: New file.
92849         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92850
92851         Module xreadlink.
92852         * m4/xreadlink.m4: New file.
92853
92854         Module safe-read.
92855         * m4/safe-read.m4: New file.
92856
92857         Module safe-write.
92858         * m4/safe-write.m4: New file.
92859
92860         Module closeout.
92861         * m4/closeout.m4: New file.
92862
92863         Module stdio-safer.
92864         * m4/stdio-safer.m4: New file.
92865
92866         Module getpass.
92867         * m4/getpass.m4: New file.
92868
92869         Module getugroups.
92870         * m4/getugroups.m4: New file.
92871
92872         Module group-member.
92873         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92874         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92875
92876         Module idcache.
92877         * m4/idcache.m4: New file.
92878
92879         Module userspec.
92880         * m4/userspec.m4: New file.
92881
92882         Module gettime.
92883         * m4/clock_time.m4: New file.
92884         * m4/gettime.m4: New file.
92885
92886         Module settime.
92887         * m4/settime.m4: New file.
92888
92889         Module posixtm.
92890         * m4/posixtm.m4: New file.
92891
92892         Module gethostname.
92893         * m4/gethostname.m4: New file.
92894
92895         Module canon-host.
92896         * m4/canon-host.m4: New file.
92897
92898         Module gettext.
92899         * m4/codeset.m4: New file, from gettext-0.11.5.
92900         * m4/gettext.m4: New file, from gettext-0.11.5.
92901         * m4/glibc21.m4: New file, from gettext-0.11.5.
92902         * m4/iconv.m4: New file, from gettext-0.11.5.
92903         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92904         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92905         * m4/inttypes.m4: New file, from gettext-0.11.5.
92906         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92907         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92908         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92909         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92910         * m4/lib-link.m4: New file, from gettext-0.11.5.
92911         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92912         * m4/progtest.m4: New file, from gettext-0.11.5.
92913         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92914         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92915         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92916
92917         Module localcharset.
92918         * m4/localcharset.m4: New file.
92919
92920         Module hard-locale.
92921         * m4/hard-locale.m4: New file.
92922
92923         Module mbswidth.
92924         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92925         onceonly macros.
92926         * m4/mbrtowc.m4: Add comment.
92927
92928         Module memcasecmp.
92929         * m4/memcasecmp.m4: New file.
92930
92931         Module memcoll.
92932         * m4/memcoll.m4: New file.
92933
92934         Module unicodeio.
92935         * m4/unicodeio.m4: New file.
92936
92937         Module rpmatch.
92938         * m4/rpmatch.m4: New file.
92939
92940         Module yesno.
92941         * m4/yesno.m4: New file.
92942
92943         Module exitfail.
92944         * m4/exitfail.m4: New file.
92945
92946         Module c-stack.
92947         * m4/c-stack.m4 (gl_C_STACK): New macro.
92948         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92949
92950         Module error.
92951         * m4/error.m4 (gl_ERROR): New macro.
92952         (jm_PREREQ_ERROR): Use onceonly macros.
92953
92954         Module fatal.
92955         * m4/fatal.m4: New file.
92956
92957         Module getloadavg.
92958         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92959         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92960
92961         Module getpagesize.
92962         * m4/getpagesize.m4: New file.
92963
92964         Module getusershell.
92965         * m4/getusershell.m4: New file.
92966
92967         Module physmem.
92968         * m4/physmem.m4: New file.
92969
92970         Module posixver.
92971         * m4/posixver.m4: New file.
92972
92973         Module quotearg.
92974         * m4/quotearg.m4: New file.
92975
92976         Module quote.
92977         * m4/quote.m4: New file.
92978
92979         Module readutmp.
92980         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92981
92982         Module sig2str.
92983         * m4/sig2str.m4: New file.
92984
92985         Other.
92986         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92987         ulonglong.m4.
92988         * m4/intmax_t.m4: New file.
92989         * m4/d-type.m4: Indentation.
92990         * m4/jm-macros.m4: Update.
92991         * m4/prereq.m4 (jm_PREREQ): Update.
92992         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92993         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92994         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92995         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92996         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92997         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92998         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92999         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93000         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93001         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93002         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93003         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93004         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93005         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93006         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93007         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93008         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93009         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93010         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93011
93012 2002-12-24  Bruno Haible  <bruno@clisp.org>
93013
93014         * MODULES.txt: Update according to m4/ changes.
93015
93016         Module gettext.
93017         * config.rpath: New file, from gettext-0.11.5.
93018
93019         * modules/*: New module descriptions.
93020         * gnulib-tool: New file.
93021         * MODULES.html.sh: New file.
93022
93023 2002-12-21  Karl Berry  <karl@gnu.org>
93024
93025         * doc/fdl.texi: update to version 1.2.
93026
93027 2002-12-19  Karl Berry  <karl@gnu.org>
93028
93029         * config/config.guess: update from prep.
93030
93031 2002-12-18  Bruno Haible  <bruno@clisp.org>
93032
93033         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93034         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93035
93036 2002-12-17  Bruno Haible  <bruno@clisp.org>
93037
93038         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93039         stdlib.h, string.h.
93040
93041 2002-12-17  Bruno Haible  <bruno@clisp.org>
93042
93043         * lib/canon-host.c (strdup): Remove unused declaration.
93044
93045         * lib/fsusage.c: Include full_read.h.
93046         (get_fs_usage): Use full_read instead of safe_read.
93047
93048         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93049
93050 2002-12-12  Karl Berry  <karl@gnu.org>
93051
93052         * config/config.guess: update from prep.
93053
93054 2002-12-11  Bruno Haible  <bruno@clisp.org>
93055
93056         * m4/setenv.m4: New file, from gettext-0.11.5.
93057
93058 2002-12-11  Bruno Haible  <bruno@clisp.org>
93059
93060         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93061         not unsetenv().
93062         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93063         modifications:
93064
93065         2002-12-11  Bruno Haible  <bruno@clisp.org>
93066
93067                 * setenv.c (alloca): Fall back to malloc.
93068                 (freea): New macro.
93069                 (setenv): Use freea() to free memory allocated with alloca().
93070
93071         2002-11-13  Bruno Haible  <bruno@clisp.org>
93072
93073                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93074                 function declarations.
93075                 * unsetenv.c (unsetenv): Likewise.
93076
93077         2002-03-04  Bruno Haible  <bruno@clisp.org>
93078
93079                 Portability to AIX 4.3.3.
93080                 * unsetenv.c: New file, extracted from setenv.c.
93081                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93082
93083         2001-12-20  Bruno Haible  <bruno@clisp.org>
93084
93085                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93086                 use malloc instead. For SunOS 4.
93087
93088         2001-12-11  Bruno Haible  <bruno@clisp.org>
93089
93090                 * setenv.c: Declare alloca.
93091                 (compar_fn_t): New typedef.
93092                 (KNOWN_VALUE, STORE_VALUE): Use it.
93093
93094         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93095         setenv.h.
93096
93097 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93098
93099         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93100         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93101         Choose values that are less likely to collide with system fnmatch
93102         options.
93103         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93104         defined (e.g., a pure POSIX system).
93105         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93106         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93107
93108 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93109
93110         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93111         a pain in practice to deal with generated m4 files.  This change
93112         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93113
93114         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93115         and jm-glibc-io.m4, as they are no longer a special case.
93116         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93117         kludge and the auto-generation stuff.  Check only whether the
93118         functions are declared, not whether they exist, since older hosts
93119         that don't declare the functions can't use the optimization anyway.
93120
93121 2002-12-06  Jim Meyering  <jim@meyering.net>
93122
93123         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93124
93125         Merge in changes from libc's misc/error.c, in preparation
93126         for the merge of gnulib's changes back into libc.
93127
93128         * lib/error.c (_): Define only if not already defined.
93129         Move definition to follow all #include directives.
93130         Include unlocked-io.h only if !_LIBC.
93131         [_LIBC]: Include <libio/libioP.h>.
93132         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93133         (fflush): Tweak definition to use INTUSE.
93134         (putc): Define.
93135
93136 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93137
93138         * lib/alloca.c [defined emacs]: Include "lisp.h".
93139         (xalloc_die) [defined emacs]: New macro.
93140         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93141         [! defined emacs]: Include <xalloc.h>.
93142         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93143         (pointer): Typedef to POINTER_TYPE *.
93144         (malloc): Remove decl; we now always use xmalloc.
93145         (alloca): Use old-style definition, since Emacs needs this.
93146         Check for arithmetic overflow when computing combined size.
93147
93148 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93149
93150         Do not generate unlocked-io.h automatically, since it's easier to
93151         maintain it by hand.
93152
93153         * lib/unlocked-io.h: New file, from GNU diffutils,
93154         but with proper copyright notice and attribution.
93155         * lib/gen-uio: Remove.
93156         * lib/Makefile.am: Add copyright notice.
93157         (libfetish_a_SOURCES): Add unlocked-io.h.
93158         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93159         (DISTCLEANFILES, io_functions): Remove macros.
93160         (EXTRA_DIST): Remove gen_uio.
93161         (unlocked-io.h): Remove rule.
93162
93163 2002-12-04  Jim Meyering  <jim@meyering.net>
93164
93165         Reflect the fact that stat.c and lstat.c are no longer generated.
93166         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93167         (DISTCLEANFILES): Likewise.
93168         (EXTRA_DIST): Likewise.
93169         (all_local): Don't depend on stat.c or lstat.c.
93170         (stat.c, lstat.c): Remove rules.
93171         (EXTRA_DIST): Remove xstat.in.
93172
93173         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93174         * lib/stat.c: New file.  Contents mostly from xstat.in.
93175         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93176         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93177
93178         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93179         too.
93180         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93181
93182 2002-12-03  Jim Meyering  <jim@meyering.net>
93183
93184         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93185         but not semantics, to minimize the differences between these two files.
93186         (safe_read): Change comment to mention SAFE_READ_ERROR.
93187
93188         * lib/safe-read.c (IS_EINTR): Define.
93189         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93190
93191 2002-12-02  Jim Meyering  <jim@meyering.net>
93192
93193         * lib/safe-read.c (EINTR): Define.
93194         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93195         (INT_MAX): Provide fallback.
93196         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93197
93198         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93199
93200 2002-12-02  Bruno Haible  <bruno@clisp.org>
93201
93202         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93203         Define, taken from safe-read.c.
93204         (INT_MAX): Provide fallback.
93205         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93206         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93207
93208         * lib/safe-read.c (EINTR): Remove definition.
93209         (safe_read): Don't use EINTR if it is absent.
93210
93211 2002-12-01  Jim Meyering  <jim@meyering.net>
93212
93213         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93214         zero.
93215         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93216
93217 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93218
93219         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93220         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93221         with `if (! (value < limit)) abort ();', for readability.
93222
93223 2002-11-26  Karl Berry  <karl@gnu.org>
93224
93225         * lib/strdup.c: copy from libc again, with jim's ok.
93226         * lib/.cppi-disable: re-add strdup.c
93227
93228 2002-11-25  Karl Berry  <karl@gnu.org>
93229
93230         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93231         instead of "strtol.c".
93232
93233 2002-11-25  Karl Berry  <karl@gnu.org>
93234
93235         * config/install-sh: update from automake for variable quoting, $0 in
93236         error msgs, etc.
93237
93238         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93239         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93240         entry.
93241
93242 2002-11-25  Jim Meyering  <jim@meyering.net>
93243
93244         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93245
93246 2002-11-24  Karl Berry  <karl@gnu.org>
93247
93248         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93249         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93250
93251 2002-11-24  Jim Meyering  <jim@meyering.net>
93252
93253         Update from coreutils:
93254
93255         * lib/mktime.c: Merge in changes from libc.
93256
93257         Avoid a link-time failure on some Linux systems.
93258         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93259         (otherwise).
93260         (__mon_yday): Declare with the STATIC attribute.
93261         (__mktime_internal): Likewise.
93262         Based on a report from Greg Schafer.
93263
93264 2002-11-23  Jim Meyering  <jim@meyering.net>
93265
93266         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93267         Use `unsigned', not `int', as type of index.
93268
93269         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93270
93271         * lib/fsusage.c: Remove unneeded parentheses around operands of
93272         `defined'.
93273
93274 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93275
93276         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93277         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93278         so that we can be included first.
93279         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93280         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93281         No need to include stddef.h or sys/types.h any more.
93282         Surround local include files with "", not "<>".
93283         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93284         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93285         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93286         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93287         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93288         (ISPRINT): Remove; no longer needed now that we assume C89.
93289
93290         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93291         Preserve errno.
93292
93293         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93294         quotearg_char): Use SIZE_MAX rather than
93295         (size_t) -1 when we are talking about "infinity".
93296
93297         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93298
93299 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93300
93301         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93302         hint that one should use `if (! x) abort ();' rather than `assert
93303         (x);', and anyway it's one less thing to worry about configuring.
93304         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93305         hash_rehash, hash_insert): Use abort rather than assert.
93306
93307 2002-11-22  Bruno Haible  <bruno@clisp.org>
93308
93309         * lib/safe-read.h: Assume C89. Add comments.
93310         (safe_read): Change return type to size_t.
93311         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93312         byte counts > SSIZE_MAX correctly.
93313         * lib/safe-write.h: New file.
93314         * lib/safe-write.c: New file.
93315         * lib/full-read.h: New file.
93316         * lib/full-read.c: New file.
93317         * lib/full-write.h: Assume C89. Add comments.
93318         * lib/full-write.c: Include safe-write.h.
93319         (full_write): Rewritten to use safe_write.
93320         Suggested by Jim Meyering and Paul Eggert.
93321
93322 2002-11-21  Jim Meyering  <jim@meyering.net>
93323
93324         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93325
93326         Merge in changes from the coreutils.
93327
93328         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93329         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93330         <stdint.h>.
93331         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93332         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93333         int.  Work more efficiently if X is the same width as uintmax_t.
93334         Do not compare X to -1, to avoid bogus compiler warning.
93335         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93336         Don't assume that f_frsize and f_bsize are the same type.
93337
93338         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93339         warning on FreeBSD.
93340
93341         * lib/makepath.c (make_path): Restore umask *before* creating the final
93342         component.
93343         (make_path): Minor reformatting.
93344
93345         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93346         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93347         HAVE_MALLOC/HAVE_REALLOC.
93348
93349         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93350         dummy ones.  At least on GNU/Linux systems, `auto' means something
93351         else.
93352         From Michael Stone.
93353
93354 2002-11-21  Bruno Haible  <bruno@clisp.org>
93355
93356         Remove case insensitive option matching.
93357         * lib/argmatch.h (argcasematch): Remove declaration.
93358         (ARGCASEMATCH): Remove macro.
93359         (__xargmatch_internal): Remove case_sensitive argument.
93360         (XARGMATCH): Update.
93361         (XARGCASEMATCH): Remove macro.
93362         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93363         case_sensitive argument.
93364         (argcasematch): Remove function.
93365         (__xargmatch_internal): Remove case_sensitive argument.
93366         (main): Use XARGMATCH instead of XARGCASEMATCH.
93367
93368         * lib/xmalloc.c: Change compile-time error message. Add comment about
93369         required autoconf version.
93370
93371 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93372
93373         Merge argmatch cleanups from Bison.  Assume C89.
93374
93375         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93376         Include stdlib.h, for EXIT_FAILURE.
93377         Always include <string.h>, since we assume C89.
93378         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93379         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93380         Include <stddef.h> instead, since it's all we need for size_t.
93381         (PARAMS): Remove.  All uses removed.
93382         (ARRAY_CARDINALITY): Do not bother to #undef.
93383         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93384         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93385         Remove unnecessary parentheses.
93386         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93387         Insert necessary parentheses.
93388         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93389         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93390
93391 2002-11-19  Bruno Haible  <bruno@clisp.org>
93392
93393         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93394         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93395
93396         * lib/mbswidth.h (PARAMS): Remove macro.
93397         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93398         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93399
93400         * lib/gcd.h (PARAMS): Remove macro.
93401         (gcd): Use ANSI C function declarations.
93402         * lib/gcd.c (gcd): Likewise.
93403
93404 2002-11-15  Bruno Haible  <bruno@clisp.org>
93405
93406         * lib/strcspn.c: Include <stddef.h>.
93407         (strcspn): Use ANSI C function declaration. Change return type to
93408         size_t. Use NULL.
93409         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93410         (strpbrk): Use NULL.
93411         * lib/strpbrk.h (PARAMS): Remove macro.
93412         (strpbrk): Use ANSI C function declaration.
93413         * lib/strstr.c: Don't include <sys/types.h>.
93414         * lib/strstr.h (PARAMS): Remove macro.
93415         (strstr): Use ANSI C function declarations.
93416
93417 2002-11-14  Karl Berry  <karl@gnu.org>
93418
93419         * config/mkinstalldirs: `do' on separate line, instead of
93420         `for var; do'.
93421
93422 2002-11-06  Bruno Haible  <bruno@clisp.org>
93423
93424         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93425         * lib/gcd.c (gcd): Likewise.
93426
93427 2002-11-05  Bruno Haible  <bruno@clisp.org>
93428
93429         * lib/gcd.h: New file, from gettext-0.11.5.
93430         * lib/gcd.c: New file, from gettext-0.11.5.
93431
93432 2002-11-05  Bruno Haible  <bruno@clisp.org>
93433
93434         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93435         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93436         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93437         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93438
93439         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93440         <libintl.h>.
93441         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93442         <libintl.h>.
93443
93444         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93445         * lib/human.c: Include gettext.h instead of <libintl.h>.
93446         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93447         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93448         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93449         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93450         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93451         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93452         (textdomain): Remove definition.
93453         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93454
93455         * lib/long-options.c: Remove include of <libintl.h> and definition of
93456         _.
93457         * lib/same.c: Remove include of <libintl.h> and definition of _.
93458
93459 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93460
93461         * lib/config.charset: A few additions for Solaris.
93462
93463 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93464
93465         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93466         * lib/localcharset.c (locale_charset): Declare as extern "C".
93467
93468 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93469
93470         * lib/config.charset: msdos in uk_UA uses CP1125.
93471
93472 2002-11-04  Bruno Haible  <bruno@clisp.org>
93473
93474         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93475         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93476         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93477         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93478         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93479
93480 2002-11-04  Bruno Haible  <bruno@clisp.org>
93481
93482         * lib/localcharset.c (locale_charset): Don't return an empty string.
93483
93484 2002-11-04  Bruno Haible  <bruno@clisp.org>
93485
93486         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93487         aliases.
93488
93489 2002-11-04  Bruno Haible  <bruno@clisp.org>
93490
93491         * lib/config.charset: Update for newest glibc. Add canonical names
93492         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93493
93494 2002-11-04  Bruno Haible  <bruno@clisp.org>
93495
93496         * lib/config.charset: Add support for NetBSD.
93497
93498 2002-11-04  Bruno Haible  <bruno@clisp.org>
93499
93500         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93501
93502 2002-11-01  Bruno Haible  <bruno@clisp.org>
93503
93504         * configure.in: Add AC_CONFIG_AUX_DIR call.
93505         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93506         test/Makefile.
93507         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93508
93509 2002-09-28  Karl Berry  <karl@gnu.org>
93510
93511         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93512         installed automake until the next release, since changes have been
93513         made.
93514
93515 2002-09-25  Karl Berry  <karl@gnu.org>
93516
93517         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93518         * lib/getopt*: copy from libc/posix.
93519         * lib/gettext.h: copy from gettext.
93520         * lib/.cppi-disable: add strdup.c, gettext.h.
93521
93522 2002-09-25  Karl Berry  <karl@gnu.org>
93523
93524         * config/srclist.txt: enable gettext.h check.
93525         * config/config.{guess,sub}: update from prep.
93526         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93527                 from automake 1.6.3.
93528         See srclist*.
93529
93530 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93531
93532         * regex.c (PATFETCH): Remove the translating fetch.
93533         (PATFETCH_RAW): Rename to PATFETCH.
93534         (set_image_of_range): New fun.
93535         (SET_RANGE_TABLE_WORK_AREA): Use it.
93536         (regex_compile): Don't translate the pattern chars so eagerly.
93537         Only do it when inserting an `exactn' bytecode or when handling
93538         a char-range.
93539         (mutually_exclusive_p): Avoid empty statement.
93540
93541 2002-07-06  Jim Meyering  <meyering@lucent.com>
93542
93543         * m4/README: Don't mention Makefile.am.in.
93544         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93545
93546 2002-07-01  Jim Meyering  <meyering@lucent.com>
93547
93548         * lib/c-stack.c: Include sys/time.h.
93549         From Volker Borchert.
93550
93551 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93552
93553         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93554
93555 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93556
93557         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93558         New macro.  Use it uniformly instead of
93559         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93560         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93561         reported by Vin Shelton.
93562
93563 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93564
93565         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93566         Do not assume SA_SIGINFO behavior.
93567         Bug reported by Jim Meyering on NetBSD 1.5.2.
93568
93569 2002-06-22  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93572         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93573
93574         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93575         now that configure.ac uses AC_GNU_SOURCE.
93576         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93577         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93578
93579         Update to latest tools.  Suggestions from Paul Eggert.
93580         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93581         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93582         * m4/fnmatch.m4: Likewise.
93583         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93584         to AC_HEADER_STDBOOL
93585
93586 2002-06-22  Jim Meyering  <meyering@lucent.com>
93587
93588         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93589         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93590
93591 2002-06-22  Jim Meyering  <meyering@lucent.com>
93592
93593         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93594
93595         * lib/exitfail.c, exitfail.h: Likewise.
93596         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93597
93598         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93599         of fnmatch.h.
93600         (EXTRA_DIST): Add fnmatch_loop.c.
93601         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93602
93603         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93604         * lib/fnmatch.c: Update from diffutils-2.8.2.
93605         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93606         * lib/fnmatch.h: Remove file.
93607
93608 2002-06-21  Jim Meyering  <meyering@lucent.com>
93609
93610         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93611         * m4/mbrtowc.m4: Likewise.
93612
93613         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93614         * m4/mbswidth.m4: Reflect name change:
93615         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93617
93618         * m4/lib-link.m4: Update from gettext-0.11.2.
93619         * m4/gettext.m4: Likewise.
93620
93621         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93622         From Alfred M. Szmidt.
93623
93624 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93625
93626         * lib/file-type.h: Report an error if neither S_ISREG nor
93627         S_IFREG is defined, instead of using a test specific to glibc
93628         2.2.  This should be safe, since POSIX requires S_ISREG and
93629         Unix Version 7 had S_IFREG.  We don't need to check for
93630         <sys/types.h> since we don't use any symbols that it defines.
93631
93632 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93633
93634         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93635         $@-t, so that each temporary file name is unique and valid in the first
93636         8 characters, for operation under DOS.
93637
93638 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93639
93640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93641
93642 2002-06-15  Jim Meyering  <meyering@lucent.com>
93643
93644         Work even with DJGPP 2.03, which lacks support for symlinks.
93645         From Richard Dawe.
93646         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93647         is defined.
93648         * lib/lchown.c (S_ISLNK): Likewise.
93649
93650 2002-06-15  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93653         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93654         have been included before this file.
93655
93656 2002-06-14  Jim Meyering  <meyering@lucent.com>
93657
93658         * lib/file-type.h: Use the version from diffutils-2.8.2.
93659         * lib/file-type.c: Likewise.
93660
93661 2002-06-07  Jim Meyering  <meyering@lucent.com>
93662
93663         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93664         They're needed at least for NetBSD 1.5.2.
93665         ($statxfs_includes): Include those same headers.
93666         ($statxfs_includes): Include sys/vfs.h if available.
93667         ($statxfs_includes): Likewise for sys/statvfs.h.
93668         Check for the following members in both structs statfs and statvfs:
93669         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93670
93671 2002-06-01  Jim Meyering  <meyering@lucent.com>
93672
93673         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93674         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93675
93676 2002-05-28  Jim Meyering  <meyering@lucent.com>
93677
93678         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93679         Reported by Volker Borchert.
93680
93681 2002-05-27  Jim Meyering  <meyering@lucent.com>
93682
93683         Fix a problem seen only on nonconforming systems whereby ls.c's
93684         use of localtime, and then of gettimeofday would cause trouble:
93685         the localtime call used to initialize rpl_gettimeofday's save
93686         mechanism would clobber ls's current local time information so
93687         that in any long listing the first file would always be listed
93688         with date 1970-01-01.  Analysis by Volker Borchert.
93689
93690         * lib/gettimeofday.c (localtime): Undefine.
93691         (rpl_localtime): New function.
93692
93693 2002-05-27  Jim Meyering  <meyering@lucent.com>
93694
93695         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93696         localtime.
93697
93698         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93699         use the replacement function; it wouldn't resolve at link time.
93700         Reported by Volker Borchert.
93701
93702 2002-05-22  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93705         file-type.h.
93706         * lib/file-type.h: New file.
93707         * lib/file-type.c (file_type): New file/function.  Extracted from
93708         diffutils.
93709
93710 2002-04-30  Jim Meyering  <meyering@lucent.com>
93711
93712         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93713
93714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93715
93716         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93717
93718 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93719
93720         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93721         Do not check for alloca.h (no longer used) or stdbool.h (was never
93722         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93723
93724 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93725
93726         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93727
93728 2002-04-29  Jim Meyering  <meyering@lucent.com>
93729
93730         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93731         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93732         Use AC_FUNC_STRNLEN here instead.
93733
93734         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93735         With autoconf-2.53a, it's part of AC_PROG_CC.
93736
93737 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93738
93739         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93740         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93741
93742 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93743
93744         * lib/sig2str.h, lib/sig2str.c: New files.
93745         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93746
93747 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93748
93749         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93750         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93751         of 127, since 64 is the largest conceivable number for ancient
93752         nonstandard hosts.
93753         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93754
93755 2002-04-28  Jim Meyering  <meyering@lucent.com>
93756
93757         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93758
93759 2002-04-24  Jim Meyering  <meyering@lucent.com>
93760
93761         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93762         (jm_PREREQ): Use it.
93763
93764         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93765         mach/mach.h fcntl.h.
93766         Check for this function: setlocale.
93767
93768 2002-04-24  Jim Meyering  <meyering@lucent.com>
93769
93770         * lib/gettext.h: New file, from Gettext.
93771         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93772         (libfetish_a_SOURCES): Add gettext.h.
93773
93774 2002-04-16  Jim Meyering  <meyering@lucent.com>
93775
93776         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93777         ut_pid, ut_id, ut_exit.
93778
93779 2002-04-16  Jim Meyering  <meyering@lucent.com>
93780
93781         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93782         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93783         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93784
93785 2002-04-12  Jim Meyering  <meyering@lucent.com>
93786
93787         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93788         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93789         existence of the getmntinfo function.  Needed for Darwin 5.3.
93790
93791         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93792         This is necessary at least on Darwin 5.3.
93793
93794         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93795         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93796         strnlen.o in the library, and that makes some versions of ranlib
93797         object.
93798
93799 2002-04-12  Jim Meyering  <meyering@lucent.com>
93800
93801         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93802
93803 2002-04-09  Jim Meyering  <meyering@lucent.com>
93804
93805         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93806         to be more precise.  Rather than saying we're checking whether the
93807         function `works', say what we're testing.
93808         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93809         Reported by Bruno Haible.
93810
93811 2002-03-10  Jim Meyering  <meyering@lucent.com>
93812
93813         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93814         Suggestion from Santiago Vila.
93815
93816 2002-03-08  Jim Meyering  <meyering@lucent.com>
93817
93818         * lib/rename.c: Mention that this wrapper is needed also on
93819         mips-dec-ultrix4.4 systems.
93820
93821 2002-03-02  Jim Meyering  <meyering@lucent.com>
93822
93823         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93824         not HAVE_CLOCK_SETTIME.
93825
93826 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93827
93828         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93829         Check for clock_settime.
93830
93831 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93832
93833         * lib/nanosleep.h: Rename to....
93834         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93835
93836         * lib/gettime.c: New file.
93837         * lib/settime.c: New file.
93838         * lib/stime.c: Remove.
93839
93840         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93841         timespec.h.  Remove nanosleep.h.
93842
93843 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93844
93845         * m4/acl.m4: New file.
93846         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93847         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93848
93849 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93850
93851         * lib/acl.c, lib/acl.h: New files.
93852         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93853
93854 2002-02-24  Jim Meyering  <meyering@lucent.com>
93855
93856         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93857         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93858         cause trouble.  Reported by Nelson Beebe.
93859
93860 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93861
93862         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93863         compilers that don't know that xalloc_die never returns.
93864
93865 2002-02-20  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/getdate.c: Regenerate using bison-1.33.
93868
93869 2002-02-17  Jim Meyering  <meyering@lucent.com>
93870
93871         * config/config.guess (main): Don't use `head -1'; it's no longer
93872         portable. Use `sed 1q' instead.
93873
93874 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93875
93876         * m4/codeset.m4: Upgrade to gettext-0.11.
93877         * m4/gettext.m4: Upgrade to gettext-0.11.
93878         * m4/glibc21.m4: Upgrade to gettext-0.11.
93879         * m4/iconv.m4: Upgrade to gettext-0.11.
93880         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93881         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93882         * m4/lib-ld.m4: New file, from gettext-0.11.
93883         * m4/lib-link.m4: New file, from gettext-0.11.
93884         * m4/lib-prefix.m4: New file, from gettext-0.11.
93885         * m4/progtest.m4: Upgrade to gettext-0.11.
93886
93887 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93888
93889         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93890         (jm_PREREQ): Use it.
93891
93892 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93893
93894         * lib/posixver.c, lib/posixver.h: New files.
93895         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93896
93897 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93898             Bruno Haible  <bruno@clisp.org>
93899
93900         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93901         (fwrite_success_callback): New declaration.
93902         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93903         print_unicode_char. Call failure callback instead of error.
93904         (fwrite_success_callback): New function.
93905         (exit_failure_callback): New function.
93906         (fallback_failure_callback): New function.
93907         (print_unicode_char): Call unicode_to_mb.
93908
93909 2002-01-26  Jim Meyering  <meyering@lucent.com>
93910
93911         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93912         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93913
93914 2002-01-26  Jim Meyering  <meyering@lucent.com>
93915
93916         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93917
93918 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93919
93920         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93921
93922 2002-01-22  Jim Meyering  <meyering@lucent.com>
93923
93924         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93925         Otherwise, some versions of automake would omit the rule that makes
93926         Makefile from Makefile.in.
93927
93928 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93929
93930         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93931         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93932         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93933         (memcoll): Set errno to zero if there is no error.
93934
93935         * lib/quotearg.c (quotearg_buffer_restyled):
93936         Fix bug with quoting buffers containing NUL when backslashing escapes.
93937         This bug was exposed by the other changes in this patch.
93938         (quotearg_n_options): New arg ARGSIZE.
93939         All callers changed.
93940         (quoting_options_from_style): New function.
93941         (quotearg_n_style): Use it.
93942         (quotearg_n_style_mem): New function.
93943
93944         * lib/quotearg.h (quotearg_n_style_mem): New function.
93945
93946 2002-01-19  Jim Meyering  <meyering@lucent.com>
93947
93948         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93949         Remove useless quotes: DF_PROG="df".
93950         * m4/strnlen.m4: New file.
93951
93952 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93953
93954         * lib/backupfile.c (ISDIGIT): Comment fix.
93955         * lib/getdate.y (ISDIGIT): Likewise.
93956         * lib/posixtm.c (ISDIGIT, year): Likewise.
93957         * lib/strverscmp.c (ISDIGIT): Likewise.
93958         * lib/userspec.c (ISDIGIT): Likewise.
93959
93960 2002-01-16  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/getdate.y: Add three semicolons, each just before a closing
93963         brace. Bison (as of version 1.31) no longer papers over that mistake.
93964
93965 2002-01-05  Jim Meyering  <meyering@lucent.com>
93966
93967         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93968
93969 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93970
93971         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93972         not silently exit merely because the output buffer happens to
93973         have nothing pending.
93974
93975 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93976
93977         See the big note in ../ChangeLog.
93978         * lib/human.c (suffixes): Prefer K to k for 1024.
93979         (generate_suffix_backwards): New function.
93980         (human_readable_inexact): Use it.
93981         * lib/xstrtol.c (__xstrtol): If there is no number but there
93982         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93983         Accept 'K' as well as 'k'.
93984
93985 2001-12-15  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/regex.h (__restrict_arr): Update from libc.
93988
93989         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93990         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93991         (STREQ): Define.
93992
93993 2001-12-14  Jim Meyering  <meyering@lucent.com>
93994
93995         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93996         Suggestion from Bruno Haible.
93997
93998 2001-12-10  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94001         xrealloc, Instead, include "xalloc.h".
94002         (initbuffer): Don't cast xmalloc return value to char*.
94003         (readline): Reword comment.
94004         Don't cast xrealloc return value to char*
94005         Return NULL, not 0.
94006
94007 2001-12-09  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94010         about `signed and unsigned type in conditional expression'.
94011         * lib/posixtm.c (posix_time_parse): Likewise.
94012
94013         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94014
94015         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94016         to avoid a pedantic warning.
94017
94018         * lib/getstr.c: Don't include assert.h.
94019         (getstr): Remove warning-evoking assertions.
94020         Return -1 if offset parameter is out of bounds.
94021         Change the type of a local from int to size_t.
94022
94023         * lib/strftime.c (my_strftime_localtime_r): Include this function
94024         definition in the `#if ! HAVE_TM_GMTOFF' block.
94025
94026         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94027         Include xalloc.h instead.
94028
94029 2001-12-02  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94032         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94033         included.
94034
94035         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94036         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94037
94038 2001-11-30  Akim Demaille  <akim@epita.fr>
94039
94040         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94041         before being defined.
94042
94043 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94044
94045         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94046         First arg is int, not unsigned.
94047         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94048         (SIZE_MAX, UINT_MAX): New macros.
94049         (quotearg_n_options): Abort if N is negative.
94050         Avoid overflow check on hosts where size_t is 64 bits and int
94051         is 32 bits, as overflow is impossible there.
94052         Fix off-by-one typo that caused unnecessary reallocation.
94053
94054 2001-11-27  Jim Meyering  <meyering@lucent.com>
94055
94056         * lib/tempname.c: Merge with version from libc.
94057         * lib/regex.c: Likewise.
94058
94059         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94060         systems for which STDC_HEADERS is 0, it was not included, resulting in
94061         a warning about an integer-to-pointer conversion problem with getenv.
94062         Reported by Volker Borchert.
94063
94064 2001-11-26  Jim Meyering  <meyering@lucent.com>
94065
94066         * lib/gtod.h: Remove file.
94067         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94068         * lib/gettimeofday.c: Don't include gtod.h.
94069         (GTOD_init): Remove function.
94070         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94071         Suggestion from Volker Borchert.
94072
94073 2001-11-23  Jim Meyering  <meyering@lucent.com>
94074
94075         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94076         it.
94077         * lib/hash.c (struct hash_table): Define it here instead.
94078
94079 2001-11-22  Jim Meyering  <meyering@lucent.com>
94080
94081         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94082
94083 2001-11-20  Jim Meyering  <meyering@lucent.com>
94084
94085         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94086         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94087
94088 2001-11-19  Jim Meyering  <meyering@lucent.com>
94089
94090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94091         directory.  Use "conftestXXXXXX" as the template.
94092         Suggestion from Paul Eggert.
94093
94094         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94095         immediately, so the test doesn't mistakenly hit the max-open-files
94096         limit.
94097
94098 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94099
94100         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94101         (TEMPORARIES): New macro.
94102         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94103         removes an artificial limitation (e.g. HP-UX 10.20, where
94104         TMP_MAX is 17576).
94105
94106 2001-11-18  Jim Meyering  <meyering@lucent.com>
94107
94108         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94109
94110 2001-11-18  Jim Meyering  <meyering@lucent.com>
94111
94112         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94113         on SunOS 4.
94114
94115         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94116         files will be created before anything else.
94117
94118 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94119
94120         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94121         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94122
94123 2001-11-17  Jim Meyering  <meyering@lucent.com>
94124
94125         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94126         Prompted by a report from Bob Proulx.
94127
94128         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94129         Instead, require UTILS_FUNC_MKSTEMP.
94130
94131 2001-11-17  Jim Meyering  <meyering@lucent.com>
94132
94133         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94134         Now, that's done as part of AC_FUNC_STRTOD.
94135
94136 2001-11-17  Jim Meyering  <meyering@lucent.com>
94137
94138         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94139         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94140         rather than group writable.  Patch by Juan F. Codagnone.
94141
94142         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94143         xrealloc, Instead, include "xalloc.h".
94144
94145         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94146         Remove explicit declarations of xmalloc, xrealloc,
94147         and xstrdup.  Instead, include "xalloc.h".
94148
94149         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94150         unlocked-io.h.
94151         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94152         Likewise.
94153         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94154
94155         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94156         Reported by Padraig Brady.
94157
94158         * lib/mkstemp.c: #undef mkstemp.
94159         Include config.h.
94160         (rpl_mkstemp): Rename from mkstemp.
94161         Protoize.
94162
94163 2001-11-16  Jim Meyering  <meyering@lucent.com>
94164
94165         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94166         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94167         determine the amount of total physical memory, use pstat_getstatic.
94168         HPUX-11 doesn't define _SC_PHYS_PAGES.
94169         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94170         If sysconf couldn't be used to determine the amount of available
94171         physical memory, use both pstat_getstatic and pstat_getdynamic.
94172         Based on a patch from Bob Proulx.
94173
94174 2001-11-10  Jim Meyering  <meyering@lucent.com>
94175
94176         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94177         (jm_PREREQ): Use it.
94178
94179 2001-11-09  Jim Meyering  <meyering@lucent.com>
94180
94181         * m4/jm-macros.m4: Require autoconf-2.52f.
94182         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94183         Use these AC_-prefixed names, not the AM_-prefixed ones.
94184
94185         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94186
94187 2001-11-05  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94190
94191 2001-11-04  Jim Meyering  <meyering@lucent.com>
94192
94193         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94194         $DEFS.
94195
94196 2001-11-03  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94199         of AC_DEFUN.
94200
94201         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94202         know the name of the variable in the macro definition.
94203
94204 2001-11-03  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94207         in argmatch_to_argument call.
94208
94209         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94210         argument.
94211
94212         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94213         e.g., a fault due to an attempt to free a NULL pointer.
94214
94215 2001-11-01  Jim Meyering  <meyering@lucent.com>
94216
94217         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94218         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94219
94220 2001-11-01  Jim Meyering  <meyering@lucent.com>
94221
94222         * lib/dirfd.c, lib/dirfd.h: New files.
94223         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94224
94225         * lib/hash.c (hash_print) [TESTING]: Clean up.
94226
94227 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94228
94229         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94230         to avoid a warning if -Wall.
94231
94232 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94233
94234         * README: New file
94235         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94236         (per RMS's instructions, this is now the canonical source)
94237         * lgpl/, gpl/: New directories.
94238
94239 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94240
94241         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94242
94243 2001-10-21  Jim Meyering  <meyering@lucent.com>
94244
94245         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94246         this code would end up calling gettext even in packages built
94247         with --disable-nls.
94248         * lib/getopt.c (_): Likewise.
94249         * lib/regex.c (_): Likewise.
94250
94251 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94252
94253         * m4/error.m4 (jm_PREREQ_ERROR):
94254         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94255         AC_FUNC_STRERROR_R does that.
94256         Check for strerror declaration.
94257
94258         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94259         are supposed to have them these days.
94260         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94261         Merge changes from latest Autoconf CVS.
94262         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94263         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94264         POSIX decided to standardize on the int flavor of strerror_r.
94265
94266 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94267
94268         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94269         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94270         Use strerror_r that is only a macro, even if it is not a function.
94271         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94272         (private_strerror): Use prototypes, not old-style function definition.
94273         (print_errno_message): New function.
94274         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94275         char*-flavored one.
94276         (error_tail, error, error_at_line): Use it.
94277
94278 2001-10-11  Jim Meyering  <meyering@lucent.com>
94279
94280         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94281         and quote_n (1, ... to avoid clobbering a buffer.
94282
94283 2001-10-05  Jim Meyering  <meyering@lucent.com>
94284
94285         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94286         hash-pjw.h.
94287         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94288         * lib/hash-pjw.h: New file.
94289
94290 2001-09-30  Jim Meyering  <meyering@lucent.com>
94291
94292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94293         `struct fsstat' has the `f_fstypename' member.
94294         Use that to define FS_TYPE, which is now used to make
94295         the getfsstat link test tighter.
94296
94297 2001-09-30  Jim Meyering  <meyering@lucent.com>
94298
94299         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94300         Include <sys/ucred.h>, for Apple Darwin.
94301         Include sys/mount.h and sys/fs_types.h only if available.
94302         (FS_TYPE): Define.
94303         (read_filesystem_list): Use FS_TYPE.
94304
94305 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94306
94307         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94308         a boolean context.
94309
94310 2001-09-29  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94313         [one-argument getmntent function]): Include stdio.h before mntent.h.
94314         SunOS 4.1.x needs it for the declaration of `FILE'.
94315         Patch by Volker Borchert.
94316
94317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94318         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94319         sys/fs_types.h, and make the link-test for getfsstat guard #include
94320         directives with appropriate #if HAVE_*_H tests so that we can
94321         detect getfsstat on Apple Darwin1.3.7 systems.
94322         Reported by Nelson Beebe.
94323         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94324
94325 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94326
94327         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94328         #defines strtoimax.  Also treat the other strto* functions
94329         like strtoimax.
94330
94331         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94332         Check for strtoul and strtoumax,
94333         as those declarations are made even in the signed case.
94334         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94335         Likewise, for strtol and strtoimax.
94336
94337 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94338
94339         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94340         #defines strtoimax.  Also treat the other strto* functions
94341         like strtoimax.
94342
94343         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94344         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94345         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94346
94347 2001-09-26  Jim Meyering  <meyering@lucent.com>
94348
94349         Most macros in unlocked-io.h had the wrong number of arguments.
94350         * lib/gen-uio: New script.
94351         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94352         * lib/unlocked-io.hin: Remove file.
94353         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94354         rather than trying to embed it here.
94355         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94356         Reported by Padraig Brady.
94357
94358 2001-09-25  Volker Borchert  <bt@teknon.de>
94359
94360         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94361         `result'.
94362
94363 2001-09-24  Jim Meyering  <meyering@lucent.com>
94364
94365         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94366
94367 2001-09-23  Jim Meyering  <meyering@lucent.com>
94368
94369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94370         instead of the mere test for existence of mntent.h.  The latter
94371         would get a false-positive on AIX 3.4 systems.
94372         In the outer getmntent if-block, don't die if neither of the getmntent
94373         tests succeeds.  Instead, just fall through and continue with the
94374         remaining tests.
94375
94376 2001-09-23  Jim Meyering  <meyering@lucent.com>
94377
94378         * lib/mountlist.c: Remove useless parentheses in #if directives.
94379         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94380         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94381
94382 2001-09-22  Jim Meyering  <meyering@lucent.com>
94383
94384         * m4/gettext.m4: New file.  From gettext.
94385         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94386         * m4/progtest.m4: Likewise
94387         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94388         * m4/glibc21.m4: Likewise.
94389
94390         * m4/libintl.m4: Remove.  No longer used.
94391
94392 2001-09-22  Jim Meyering  <meyering@lucent.com>
94393
94394         * lib/localcharset.c: Update from latest gettext.
94395         * lib/config.charset: Likewise.
94396
94397 2001-09-20  Jim Meyering  <meyering@lucent.com>
94398
94399         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94400         strtoimax.
94401         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94402         strtoumax.
94403
94404 2001-09-20  Jim Meyering  <meyering@lucent.com>
94405
94406         * lib/xstrtol.c (strtoimax): Guard declaration with
94407         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94408         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94409         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94410         (strtoumax): Likewise, for completeness (it wasn't necessary).
94411
94412 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94413
94414         * lib/strtoimax.c (HAVE_LONG_LONG):
94415         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94416         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94417         to work around bug in IBM C compiler.
94418
94419 2001-09-17  Jim Meyering  <meyering@lucent.com>
94420
94421         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94422         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94423         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94424         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94425         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94426         whenever the right hand side need not be expanded by the shell.
94427
94428 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94429
94430         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94431         library.  It's not correct, as some older glibcs are buggy.
94432         fnmatch wasn't fixed until glibc 2.2.
94433
94434         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94435         special shell magic here.
94436
94437 2001-09-16  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94440         * m4/jm-macros.m4: Require it.
94441
94442 2001-09-16  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/mkdir.c: New file.
94445
94446 2001-09-15  Jim Meyering  <meyering@lucent.com>
94447
94448         * m4/jm-macros.m4: Check for help2man.
94449
94450 2001-09-11  Jim Meyering  <meyering@lucent.com>
94451
94452         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94453         The body, by Paul Eggert, was moved here from configure.in.
94454         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94455
94456 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94457
94458         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94459         (jm_PREREQ): Use it.
94460
94461 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94462
94463         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94464         Use ssize_t, not int, to store result of readlink.
94465         Check for ssize_t overflow as well as size_t overflow,
94466         as POSIX says the result of readlink is implementation-defined
94467         when ssize_t overflows.
94468         Remove unnecessary cast to char*.
94469         Use free+malloc instead of realloc, as the storage doesn't need
94470         to be preserved and it's clearer and can be more efficient that way.
94471         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94472         * lib/xreadlink.h (xreadlink): Update prototype.
94473
94474 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94475
94476         * lib/xgetcwd.c: Revert some of the previous change; intead,
94477         fix the HAVE_GETCWD_NULL code to behave more like the
94478         !HAVE_GETCWD_NULL code used to.
94479
94480         Include "xalloc.h".
94481         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94482         invoke xalloc_die.
94483
94484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94485
94486         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94487         sys/param.h, as pathmax.h includes them.
94488
94489 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94490
94491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94492         (jm_PREREQ_XGETCWD): New macro.
94493
94494         * m4/getcwd.m4: New file.
94495
94496 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94497
94498         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94499         like the HAVE_GETCWD_NULL code.
94500         Include pathmax.h if not HAVE_GETCWD.
94501         Do not include xalloc.h.
94502         (INITIAL_BUFFER_SIZE): New symbol.
94503         Do not use xmalloc / xrealloc, since the caller is responsible for
94504         handling errors.  Preserve errno around `free' during failure.
94505         Do not overrun buffer when using getwd.
94506
94507 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94508
94509         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94510         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94511         getcwd (NULL, 0).
94512
94513 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94514
94515         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94516         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94517         spotted by Jim Meyering.
94518
94519 2001-09-03  Jim Meyering  <meyering@lucent.com>
94520
94521         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94522         failure.
94523
94524 2001-09-02  Jim Meyering  <meyering@lucent.com>
94525
94526         * lib/error.c: Update from GNU libc.
94527
94528 2001-09-01  Jim Meyering  <meyering@lucent.com>
94529
94530         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94531         Used by df.
94532
94533 2001-09-01  Jim Meyering  <meyering@lucent.com>
94534
94535         * lib/xreadlink.c: New file.
94536         * lib/xreadlink.h: New file.
94537         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94538         xreadlink.h.
94539
94540         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94541         doesn't conflict with sparc Solaris 7's definition in
94542         /usr/include/sys/int_types.h.
94543
94544         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94545         files.
94546         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94547         and strncasecmp as r-values.  Unixware didn't have declarations.
94548
94549 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94550
94551         * lib/xstrtol.h: Add copyright notice.
94552         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94553         LONGINT_INVALID_SUFFIX_CHAR.
94554
94555 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94556
94557         * lib/xstrtol.c (strtoimax): New decl.
94558
94559 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94560
94561         * lib/xgetcwd.c: Don't include pathmax.h.
94562         Include stdlib.h and unistd.h if available.
94563         Include xalloc.h.
94564         (xmalloc, xstrdup, free): Remove decls.
94565         (xgetcwd): Don't assume sizes fit in unsigned.
94566         Check for overflow when computing sizes.
94567         Simplify reallocation code.
94568
94569 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94570
94571         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94572         a directory's st_size can have an arbitrary value, so the old
94573         usage could waste an arbitrary amount of memory.  All uses
94574         changed.
94575         * lib/savedir.h: Update prototype.
94576
94577 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94578
94579         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94580
94581         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94582         old strtoimax.c.
94583
94584         Also, make the following further changes to make this file's
94585         configuration more similar to that of strtol.c:
94586         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94587         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94588         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94589         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94590         changed to signed values.
94591
94592         And make the following changes as well:
94593         Fix copyright notice, as 1999 was missing.
94594         (verify): New macro.
94595         (strtoimax): Check sizes at compile-time, not run-time.
94596         Prefer strtol to strtoll if both work.
94597         (main): Remove; it was not that useful and was a pain to maintain.
94598
94599         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94600
94601 2001-08-31  Jim Meyering  <meyering@lucent.com>
94602
94603         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94604         Use an initial, malloc'd, buffer of length 128 rather than
94605         a statically allocated one of length 1024.
94606
94607 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94608
94609         Simplify code, partly by assuming autoconf 2.52 semantics.
94610
94611         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94612
94613         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94614         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94615         All uses removed.
94616         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94617         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94618         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94619         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94620         jm_AC_HEADER_INTTYPES_H.
94621         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94622
94623         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94624
94625         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94626         Quote first arg of AC_DEFUN.
94627         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94628         since they are needed to parse the include file even if we need
94629         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94631         but with opposite signedness.
94632
94633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94634
94635         Merge 'exclude' changes from tar 1.13.22.
94636         This fixes one or two unlikely storage allocation overflow bugs,
94637         but doesn't change user-visible behavior otherwise.
94638
94639 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94640
94641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94642         (jm_PREREQ_EXCLUDE): New macro.
94643
94644 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94645
94646         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94647         tm to be declared.
94648
94649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94650
94651         * lib/hash.c: Remove '2001' from copyright notice.
94652
94653 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94654
94655         * lib/full-write.h: New file.
94656         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94657         * lib/full-write.c: Correct credits, as cccp.c no longer
94658         exists and anyway it was so heavily changed from the old cccp
94659         code as to be unrecognizable.  Include full-write.h.
94660         (full_write): Return size_t, with short writes meaning failure.
94661         All callers changed.  This fixes a bug with large buffers
94662         on 64-bit hosts.
94663         * lib/utime.c: Include full-write.h.
94664
94665 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94666
94667         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94668         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94669         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94670         Include if available.
94671         (<xalloc.h>): Include
94672         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94673         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94674         collide with FNM macros.
94675         (struct patopts): New struct.
94676         (struct exclude): Use it, as exclude patterns now come with options.
94677         (new_exclude): Support above changes.
94678         (new_exclude, add_exclude_file):
94679         Initial size must now be a power of two to simplify overflow checking.
94680         (free_exclude, fnmatch_no_wildcards): New function.
94681         (excluded_filename): No longer requires options arg, as the options
94682         are determined by add_exclude.  Now returns bool, not int.
94683         (excluded_filename, add_exclude):
94684         Add support for the fancy new exclusion options.
94685         (add_exclude, add_exclude_file): Now takes int options arg.
94686         Check for arithmetic overflow when computing sizes.
94687         (add_exclude_file): xrealloc might modify errno, so don't
94688         realloc until after errno might be used.
94689
94690         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94691         New macros.
94692         (free_exclude): New decl.
94693         (add_exclude, add_exclude_file): Now takes int options arg.
94694         (excluded_filename): No longer requires options arg, as the options
94695         are determined by add_exclude.  Now returns bool, not int.
94696
94697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94698
94699         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94700
94701 2001-08-27  Jim Meyering  <meyering@lucent.com>
94702
94703         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94704
94705         * lib/version-etc.c (N_): Remove definition.
94706         Revert most of last change.
94707         Instead, simply don't mark the `Copyright...' string for translation.
94708         Based on advice from Paul Eggert.
94709
94710         * lib/strtoxmax.c: Tweak comment.
94711
94712 2001-08-26  Jim Meyering  <meyering@lucent.com>
94713
94714         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94715
94716         * m4/xstrtoimax.m4: New file.
94717         * m4/xstrtoumax.m4: Add comments explaining why we
94718         AC_REPLACE_FUNCS(strtol).
94719
94720 2001-08-26  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94723         of copyright with `%s' so translators don't get an untranslated
94724         message in 2002.
94725         (COPYRIGHT_YEAR): Define.
94726         (version_etc): Use fprintf rather than fputs.
94727         Suggestion from Ulrich Drepper.
94728
94729         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94730
94731         * lib/strtoll.c: New file, from GNU libc.
94732         * lib/xstrtoimax.c: New file.
94733
94734         * lib/xstrtol.h: Add xstrtoimax.
94735         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94736         * lib/strtoimax.c: New file.  Likewise, but first define
94737         STRTOUXMAX_SIGNED.
94738
94739         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94740         ...
94741         * lib/strtoxmax.c: ... then renamed to this.
94742
94743 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94744
94745         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94746         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94747         (jm_AC_TYPE_INTMAX_T): New macro.
94748         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94749
94750         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94751
94752         * m4/longlong.m4: Renamed from ulonglong.m4.
94753         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94754         * m4/uintmax_t.m4: Removed.
94755
94756 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94757
94758         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94759         Port to Solaris 8, where 'sed' requires a space after the 'r'
94760         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94761         Redirect output to $tmp just once.
94762
94763 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94764
94765         * lib/addext.c (<errno.h>): Include.
94766         (errno): Declare if not defined.
94767         (addext): Work correctly when pathconf returns -1 and leaves
94768         errno alone because there is no limit.  Also, work even if
94769         pathconf returns a value greater than SIZE_MAX.
94770
94771 2001-08-12  Jim Meyering  <meyering@lucent.com>
94772
94773         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94774         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94775         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94776         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94777         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94778         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94779         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94780         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94781         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94782         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94783         utime.m4, utimes.m4, xstrtoumax.m4:
94784         Quote the first argument in each use of AC_DEFUN.
94785
94786 2001-08-12  Jim Meyering  <meyering@lucent.com>
94787
94788         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94789         Simply `return getcwd (NULL, 0);'.
94790         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94791         Use 1300 as initial value for length, not PATH_MAX.
94792
94793         * lib/pathmax.h: Clean up cpp syntax.
94794
94795 2001-08-12  Jim Meyering  <meyering@lucent.com>
94796
94797         * lib/gettimeofday.c: New file.
94798         * lib/gtod.h: New file.
94799         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94800
94801 2001-08-05  Jim Meyering  <meyering@lucent.com>
94802
94803         * m4/jm-macros.m4: Require autoconf-2.52.
94804
94805 2001-08-04  Jim Meyering  <meyering@lucent.com>
94806
94807         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94808         stmt, to get in sync with glibc.
94809
94810 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94811
94812         The following changes are from gettext 0.10.39 as maintained by
94813         Bruno Haible.
94814
94815         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94816         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94817         with inverted sense.  All uses changed.
94818
94819         * lib/mbswidth.c: Don't include <limits.h>.
94820         Include <stdlib.h> and <string.h> unconditionally.
94821         (iswcntrl, mbsinit, ISCNTRL): New macros.
94822         (mbsnwidth): Use K&R style function declarations.
94823         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94824         can optimize it when MB_CUR_MAX == 1.
94825         The width of control characters is zero, not 1.
94826
94827 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94828
94829         The following changes are from gettext 0.10.39 as maintained by
94830         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94831
94832         * m4/codeset.m4: Upgrade to serial AM1.
94833         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94834         all uses changed.  Quote first arg of AC_DEFUN.
94835         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94836
94837         * m4/iconv.m4: Upgrade to serial AM2.
94838         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94839         Add --with-libconv-prefix.
94840         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94841         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94842         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94843         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94844         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94845
94846         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94847         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94848         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94849         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94850         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94851         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94852         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94853         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94854         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94855
94856         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94857         string.h any more.
94858
94859         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94860         not the default value.
94861
94862         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94863         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94864         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94865         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94866         Also check for iswcntrl, used for wcwidth fallback.
94867         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94868         to Autoconf 2.13.
94869
94870 2001-08-03  Jim Meyering  <meyering@lucent.com>
94871
94872         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94873         as it was in the original.  Reported by Paul Eggert.
94874
94875 2001-07-16  Jim Meyering  <meyering@lucent.com>
94876
94877         * m4/gettimeofday.m4: New file.
94878         Prompted by a report from Bernhard Baehr.
94879
94880 2001-07-15  Jim Meyering  <meyering@lucent.com>
94881
94882         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94883         stuff. Now it's in ../Makefile.cfg.
94884
94885 2001-07-15  Jim Meyering  <meyering@lucent.com>
94886
94887         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94888         (BUILT_SOURCES): Add unlocked-io.h.
94889         (io_functions): Define.
94890         (unlocked-io.h): New rule.
94891         (DISTCLEANFILES): Add unlocked-io.h.
94892         (all-local): Depend on unlocked-io.h, to ensure it is created.
94893
94894         * lib/unlocked-io.hin: New file
94895
94896         * lib/regex.c: Update from glibc.
94897
94898 2001-07-05  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94901         recommendation.
94902         (libfetish_a_SOURCES): Put all .h files here instead.
94903         Remove a thus-exposed (better checks in automake) duplicate and
94904         two unnecessary .h files.
94905
94906 2001-07-04  Jim Meyering  <meyering@lucent.com>
94907
94908         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94909         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94910         distcheck failure.
94911
94912 2001-07-02  Jim Meyering  <meyering@lucent.com>
94913
94914         The following changes were prompted by suggestions from Bruno Haible.
94915
94916         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94917         is now generated.
94918         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94919         definition of EXTRA_DIST.
94920         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94921         ensure that the generated file is created/updated whenever the list
94922         of $(unlocked_functions) is changed.
94923         (jm-glibc-io.m4): New rule.
94924         (unlocked-io.h): New rule -- currently unused.
94925
94926 2001-06-24  Jim Meyering  <meyering@lucent.com>
94927
94928         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94929         unmatched right bracket, rather than kludging it with an extra,
94930         falsely-matching quote in a comment.  Patch by Akim Demaille.
94931
94932 2001-06-11  Jim Meyering  <meyering@lucent.com>
94933
94934         * lib/regex.c: Update from GNU libc.
94935
94936 2001-05-27  Jim Meyering  <meyering@lucent.com>
94937
94938         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94939         Check for ut_type in struct utmp.
94940
94941 2001-05-27  Jim Meyering  <meyering@lucent.com>
94942
94943         * lib/readutmp.h (UT_TYPE): Define.
94944
94945 2001-05-24  Jim Meyering  <meyering@lucent.com>
94946
94947         * lib/argmatch.c: Include "quote.h".
94948         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94949         quote function.  Reported by Göran Uddeborg.
94950
94951 2001-05-22  Jim Meyering  <meyering@lucent.com>
94952
94953         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94954         now that we use the package-supplied version unconditionally.
94955         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94956
94957 2001-05-21  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94960         shell syntax errors.
94961
94962 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94963
94964         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94965
94966 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94967
94968         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94969         Don't bother to check library strftime, since
94970         we'll be using our own my_strftime function anyway.
94971         Define my_strftime instead of strftime.
94972
94973 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94974
94975         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94976         which is not yet declared.
94977
94978 2001-05-15  Jim Meyering  <meyering@lucent.com>
94979
94980         * m4/regex.m4: Use proper quoting so brackets appear in the test
94981         program.
94982         Reported by, and with help from, Bruno Haible.
94983
94984 2001-05-13  Jim Meyering  <meyering@lucent.com>
94985
94986         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94987         undefined.
94988
94989 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94990
94991         dirname code cleanup.  base_name now behaves more compatibly
94992         with POSIX basename when given file names that have trailing
94993         slashes, and similarly for dir_name.  Add new primitives
94994         base_len and dir_len.  Put the directory-name-related decls
94995         into dirname.h.
94996
94997         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94998         * lib/backupfile.c (base_name): Likewise.
94999         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95000         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95001         * lib/makepath.c (strip_trailing_slashes): Likewise.
95002         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95003         ISSLASH): Likewise.
95004         * lib/rename.c (strip_trailing_slashes): Likewise.
95005         * lib/same.c (base_name): Likewise.
95006         * lib/stripslash.c (ISSLASH): Likewise.
95007
95008         * lib/addext.c: Include <dirname.h> after size_t is defined.
95009         * lib/backupfile.c: Likewise.
95010
95011         * lib/addext.c (addext): Use base_len to trim redundant
95012         trailing slashes instead of doing it ourselves.
95013         But do not trim the last slash if it is not redundant.
95014
95015         * lib/backupfile.c (find_backup_file_name,
95016         max_backup_version): Use base_len instead of rolling it ourselves.
95017         Handle the case of "" and (on DOS) "C:" correctly.
95018
95019         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95020         needed. Include <string.h>, <dirname.h>.
95021         (base_name): Allow file names ending in slashes, other than names
95022         that are all slashes.  In this case, return the basename followed
95023         by the slashes.  This is more general, and can be used in places
95024         where the original base_name purposely had an assertion failure.
95025         (base_len): New function.
95026
95027         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95028         Do not include <assert.h>; no longer needed.
95029         Include xalloc.h.
95030         (memrchr): Remove decl.
95031         (dir_name_r): Remove.
95032         (dir_len): Renamed from dirlen.  All callers changed.
95033         Rewrite in terms of base_name, for simplicity and consistency.
95034         (dir_name): Never return NULL.  All callers changed.
95035         Do not include <stdlib.h> in test program; no longer needed.
95036         return 0; is fine for test program.
95037
95038         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95039         New macros.
95040         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95041
95042         * lib/path-concat.c (path_concat): Use base_len to compute
95043         base length, not strlen; this means we cannot rely on memcpy
95044         to null-terminate.
95045
95046         * lib/same.c (STREQ): Remove.
95047         (same_name): Handle the case where the basename ends in trailing '/'.
95048
95049         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95050         a slash was stripped.  Do not strip the last slash after a
95051         file system prefix.
95052
95053 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95054
95055         * lib/Makefile.am (libfetish_a_SOURCES):
95056         Add strftime.c, since we now compile it on all hosts.
95057
95058         * lib/strftime.c (my_strftime):
95059         Define to nstrftime if emacs, but only if my_strftime is not defined.
95060         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95061         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95062         Add one more extra argument: a nanoseconds value.
95063         All uses changed.
95064         (ns): New macro.
95065         (my_strftime function): Add %N format.
95066         (emacs_strftimeu): Renamed from emacs_strftime,
95067         with extra ut argument.
95068
95069 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95070
95071         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95072
95073 2001-04-21  Jim Meyering  <meyering@lucent.com>
95074
95075         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95076         doesn't interfere.
95077
95078 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95079
95080         * m4/ftruncate.m4: Check for chsize.
95081         Link with ftruncate.o unconditionally if ftruncate is missing.
95082         This was required when cross-compiling to i586-mingw32msvc.
95083
95084 2001-04-08  Jim Meyering  <meyering@lucent.com>
95085
95086         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95087         recomputed; that's necessary when the offset spans a DST transition.
95088         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95089
95090 2001-04-02  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/regex.h, regex.c: Update from GNU libc.
95093
95094 2001-03-24  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/jm-macros.m4: Require autoconf-2.49d.
95097
95098 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95099
95100         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95101
95102 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95103
95104         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95105
95106 2001-03-17  Jim Meyering  <meyering@lucent.com>
95107
95108         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95109         now that the version in autoconf is equivalent.
95110         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95111
95112         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95113         Suggestion from Akim Demaille.
95114
95115         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95116         (jm_PREREQ_TEMPNAME): New function.
95117
95118 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95119
95120         * lib/tempname.c (uint64_t): Define to uintmax_t if
95121         not defined, and if UINT64_MAX is not defined.
95122         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95123         Reported by John David Anglin.
95124
95125 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95126
95127         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95128         resolve alias if codeset is empty.
95129         * lib/config.charset (BeOS): Use wildcard syntax.
95130
95131 2001-03-13  Jim Meyering  <meyering@lucent.com>
95132
95133         * lib/path-concat.c (path_concat)
95134         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95135         concatenating e.g., `C:' and `foo'.
95136         From Bruno Haible.
95137
95138 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95139
95140         * lib/localcharset.c (locale_charset): Don't use
95141         setlocale(LC_CTYPE,NULL). Don't return NULL.
95142         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95143
95144 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95145
95146         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95147         support for DOS/DJGPP.
95148
95149 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95150
95151         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95152         lacks mkstemp.  Compile our own tempname.c if we compile our own
95153         mkstemp.c, as mkstemp relies on tempname.
95154
95155 2001-03-01  Jim Meyering  <meyering@lucent.com>
95156
95157         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95158         AH_VERBATIM really does output its argument verbatim.
95159
95160 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95161
95162         * lib/Makefile.am (libfetish_a_SOURCES):
95163         Add dup-safer.c, fopen-safer.c.
95164         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95165
95166         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95167         * lib/unistd-safer.h: New files.
95168
95169 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95170
95171         The mkstemp replacement is taken from glibc 2.2.2, with some
95172         portability fixes for use outside glibc, as follows:
95173
95174         * lib/tempname.c (struct_stat64): New macro.
95175         (direxists, __gen_tempname): Use it.
95176         This avoids a portability problem with Solaris 8.
95177
95178         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95179         (<stddef.h>, <stdint.h>, <string.h>):
95180         Include only if STDC_HEADERS || _LIBC.
95181         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95182         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95183         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95184         (__set_errno): Define this macro if <errno.h> doesn't.
95185         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95186         Define these macros if <stdio.h> doesn't.
95187         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95188         Define these macros if <sys/stat.h>
95189         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95190         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95191         __xstat64): Define if not _LIBC.
95192         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95193         (__gen_tempname): Invoke gettimeofday only if
95194         HAVE_GETTIMEOFDAY || _LIBC;
95195         otherwise, fall back on plain "time".
95196         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95197
95198         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95199
95200         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95201
95202 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95203
95204         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95205
95206 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95207
95208         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95209         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95210         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95211         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95212
95213 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95214
95215         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95216         Remove workaround macros for hosts that have mbrtowc but not
95217         mbstate_t, as we now insist on proper declarations for both
95218         before using mbrtowc.
95219
95220 2001-02-17  Jim Meyering  <meyering@lucent.com>
95221
95222         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95223         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95224         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95225         UnixWare 7.1.1.
95226
95227         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95228         rather than AC_CACHE_VAL.
95229
95230 2001-02-17  Jim Meyering  <meyering@lucent.com>
95231
95232         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95233         around included file name.
95234
95235         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95236
95237         * lib/strftime.c: Update from GNU libc (the only changes were to
95238         comments).
95239
95240 2001-02-17  Jim Meyering  <meyering@lucent.com>
95241
95242         * lib/regex.c: Update from libc.
95243
95244 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95245
95246         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95247         clash.
95248
95249 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95250
95251         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95252         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95253         Reported by Mark Hounschell via Paul Eggert.
95254
95255 2001-02-07  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95258
95259 2001-02-05  Jim Meyering  <meyering@lucent.com>
95260
95261         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95262         it includes the patch required for `large file' support with at least
95263         HP-UX's 10.20 /bin/cc.
95264
95265 2001-02-03  Jim Meyering  <meyering@lucent.com>
95266
95267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95268         AS_IF, now that it works once again (mysteriously).
95269         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95270
95271 2001-01-30  Jim Meyering  <meyering@lucent.com>
95272
95273         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95274         * m4/chown.m4: Rename conftestchown to conftest.chown.
95275         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95276         s/conftestdir2/conftest.d2/.
95277         * m4/utimes.m4: s/conftestdata/conftest.data/
95278         Inspired by Pavel Roskin's change in autoconf.
95279
95280 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95281
95282         * lib/config.charset: Update for FreeBSD 4.2.
95283
95284 2001-01-27  Jim Meyering  <meyering@lucent.com>
95285
95286         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95287         a use of AS_IF.
95288         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95289
95290 2001-01-26  Jim Meyering  <meyering@lucent.com>
95291
95292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95293         quotearg.c includes it.
95294
95295 2001-01-26  Jim Meyering  <meyering@lucent.com>
95296
95297         * lib/quotearg.c: Include stddef.h.
95298         * lib/quote.c: Include stddef.h.
95299         Reported by Axel Kittenberger.
95300
95301         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95302         line in double quotes so that it evokes a better diagnostic.
95303         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95304         Reported by Axel Kittenberger.
95305
95306 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95307
95308         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95309         as if it was a `charset'.
95310
95311 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95312
95313         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95314         has const.
95315
95316 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95317
95318         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95319         to avoid a warning.  Add back 'const' to inptr.
95320
95321 2001-01-20  Jim Meyering  <meyering@lucent.com>
95322
95323         Be sure that headers are checked before used in code compiled
95324         for the type checks.
95325         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95326         In place of that, invoke jm_CHECK_ALL_TYPES.
95327         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95328         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95329         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95330         The check for ssize_t was mistakenly run before the test for unistd.h.
95331
95332         The configure-time check for stdbool.h was missing.
95333         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95334         (jm_PREREQ_HASH): New function.
95335
95336 2001-01-17  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95339         for autoconf-2.49c.
95340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95341
95342 2001-01-16  Jim Meyering  <meyering@lucent.com>
95343
95344         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95345         From Bruno Haible.
95346
95347 2001-01-14  Jim Meyering  <meyering@lucent.com>
95348
95349         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95350         foo and bar.  Create conftestdir/ in the script, not in the C code.
95351         Remove directories in the script, not in the C code.
95352         Remove conftestdir{,2} before trying to create the directory.
95353         Make the entire configure script fail if the mkdir fails.
95354
95355 2001-01-14  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/rename.c: New file.  From Volker Borchert.
95358         Include stdlib.h, string.h or strings.h, and xalloc.h.
95359         Use strip_trailing_slashes rather than open-coding it.
95360
95361 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95362
95363         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95364
95365 2001-01-03  Jim Meyering  <meyering@lucent.com>
95366
95367         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95368         of local `inptr' to avoid warning with some system declarations of
95369         iconv.
95370
95371 2001-01-02  Volker Borchert  <bt@teknon.de>
95372
95373         * m4/rename.m4: New file.
95374         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95375
95376 2001-01-01  Jim Meyering  <meyering@lucent.com>
95377
95378         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95379         even on systems with utmpx.h.  It's necessary for the declaration of
95380         utmp's ut_user member.  Reported by Andreas Jaeger.
95381
95382         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95383         available. They are required for the declarations of getgrgid and
95384         getpwuid resp.
95385         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95386         Reported by Andreas Jaeger.
95387
95388 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95389
95390         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95391         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95392         so `make install' also works in VPATH builds.
95393
95394 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95395
95396         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95397         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95398         can be used in subdirectories.
95399
95400 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95401
95402         * lib/modechange.c: Do not assume that mode_t uses the
95403         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95404         the other-execute bit of FOO even if S_IXOTH != 1.
95405
95406         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95407         WOTH, XOTH, ALLM): New macros.
95408         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95409          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95410         Use them.
95411         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95412         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95413         (mode_compile):
95414         No need to use uintmax_t; unsigned long is long enough.
95415         Don't bother to get suffix since we don't use it.
95416
95417 2000-12-26  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95420         better with autoheader.
95421
95422 2000-12-24  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/hash.c (is_prime): Return explicit boolean values.
95425         (hash_get_first): Return NULL to appease Irix5.6's 89.
95426         Reported by Nelson Beebe.
95427
95428 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95429
95430         * lib/localcharset.c (locale_charset): Add support for Win32.
95431
95432 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95433
95434         * lib/physmem.h, lib/physmem.c: New files.
95435
95436         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95437         (noinst_HEADERS): Add physmem.h.
95438
95439         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95440         't' for compatibility with Solaris 8 sort.
95441
95442 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95443
95444         * lib/config.charset: Add support for BeOS.
95445
95446 2000-12-17  Jim Meyering  <meyering@lucent.com>
95447
95448         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95449         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95450
95451 2000-12-16  Jim Meyering  <meyering@lucent.com>
95452
95453         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95454         N and M) would have treated it like `chown N:N FILE'.
95455
95456         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95457
95458 2000-12-16  Jim Meyering  <meyering@lucent.com>
95459
95460         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95461         SHELLS_FILE to a file name that's useful on djgpp systems.
95462         Include stdlib.h.
95463         (ADDITIONAL_DEFAULT_SHELLS): Define.
95464         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95465         Based mostly on a patch from Prashant TR.
95466
95467 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95468
95469         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95470         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95471         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95472
95473 2000-12-08  Andreas Schwab  <schwab@suse.de>
95474
95475         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95476         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95477
95478 2000-12-07  Jim Meyering  <meyering@lucent.com>
95479
95480         * lib/stripslash.c (ISSLASH): Define.
95481         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95482         `/'.
95483         From Prashant TR.
95484
95485         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95486         (dir_name_r): Declare this function as static.
95487         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95488         manifest itself on a name containing a mix of slashes and
95489         backslashes.
95490         Make this function work with names starting with a DOS-style
95491         drive letter and colon prefix.
95492         (dir_name): Append `.' if necessary.
95493         Based mostly on patches from Prashant TR and Eli Zaretskii.
95494
95495         * lib/dirname.h (dir_name_r): Remove prototype.
95496
95497 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95498
95499         * m4/off_t-format.m4: Remove this file.
95500         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95501
95502 2000-12-06  Jim Meyering  <meyering@lucent.com>
95503
95504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95505         replacement strtoull, we may well need the replacement strtoul, too.
95506         Check for declarations of strtoul and strtoull.
95507         Check for strtol.  Mainly as a cue to cause automake to include
95508         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95509         Check for limits.h -- strtol.c needs it.
95510
95511 2000-12-05  Jim Meyering  <meyering@lucent.com>
95512
95513         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95514
95515 2000-12-04  Jim Meyering  <meyering@lucent.com>
95516
95517         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95518         Also include memory.h, stdlib.h, unistd.h if appropriate.
95519         Reported by Andreas Jaeger (conflicting declaration of malloc).
95520
95521 2000-12-02  Jim Meyering  <meyering@lucent.com>
95522
95523         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95524         * m4/jm-macros.m4 (jm_MACROS): require it.
95525
95526 2000-12-02  Jim Meyering  <meyering@lucent.com>
95527
95528         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95529
95530 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95531
95532         * lib/memrchr.c: Include <config.h> before any system include file.
95533
95534 2000-11-30  Jim Meyering  <meyering@lucent.com>
95535
95536         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95537
95538 2000-11-30  Jim Meyering  <meyering@lucent.com>
95539
95540         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95541
95542 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95543
95544         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95545
95546 2000-11-26  Jim Meyering  <meyering@lucent.com>
95547
95548         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95549
95550 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95551
95552         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95553         size of (size_t) -1; it's not portable.
95554
95555 2000-11-17  Jim Meyering  <meyering@lucent.com>
95556
95557         * lib/strstr.c: Update from GNU libc.
95558
95559 2000-11-17  Akim Demaille  <akim@epita.fr>
95560
95561         * lib/obstack.h: Formatting changes.
95562         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95563         prevent type checking.
95564         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95565         cast the value to (void *): assigning a `foo *' to a `void *'
95566         variable is valid.
95567         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95568
95569 2000-11-16  Jim Meyering  <meyering@lucent.com>
95570
95571         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95572
95573 2000-11-11  Jim Meyering  <meyering@lucent.com>
95574
95575         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95576
95577 2000-11-10  Jim Meyering  <meyering@lucent.com>
95578
95579         * lib/obstack.h: Update from GNU libc.
95580         * lib/obstack.c: Likewise.
95581
95582 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95583
95584         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95585
95586 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95587
95588         * lib/getusershell.c (setusershell): Use rewind rather than
95589         fseek/fseeko, to avoid configuration hassles with fseeko.
95590         Don't bother opening SHELLS_FILE if shellstream is NULL;
95591         it's not necessary.
95592
95593 2000-11-05  Jim Meyering  <meyering@lucent.com>
95594
95595         * lib/makepath.h (make_dir): Declare.
95596         * lib/makepath.c (make_dir): Remove `static' attribute.
95597         Tweak a comment.
95598
95599 2000-11-04  Jim Meyering  <meyering@lucent.com>
95600
95601         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95602
95603 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95604
95605         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95606         last one in a bucket, advance to the next bucket.
95607
95608 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95609
95610         * lib/fnmatch.c: Do not comment out all the code if we are using
95611         the GNU C library, because in some cases we are replacing buggy
95612         code in the GNU C library itself.
95613
95614 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95615
95616         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95617         (regex_compile): Catch bogus \(\1\).
95618
95619 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95620
95621         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95622         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95623         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95624
95625 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95626
95627         * lib/error.h, getline.h, modechange.h:
95628         Remove "2000" from Copyright line, as the file hasn't been
95629         changed this year other than in the copyright notice.
95630
95631         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95632         was changed this year.
95633
95634 2000-10-29  Jim Meyering  <meyering@lucent.com>
95635
95636         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95637         renaming.
95638         * m4/ls-mntd-fs.m4: Likewise
95639
95640 2000-10-29  Jim Meyering  <meyering@lucent.com>
95641
95642         * lib/xstat.in: Fix grammar in comment.
95643
95644 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95645
95646         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95647         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95648         doesn't define __restrict_arr.
95649
95650 2000-10-28  Jim Meyering  <meyering@lucent.com>
95651
95652         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95653         (jm_PREREQ_MEMCHR): New function.
95654
95655 2000-10-28  Jim Meyering  <meyering@lucent.com>
95656
95657         * lib/memchr.c: Update from libc.
95658         Adjust for portability:
95659         [HAVE_STDLIB_H]: Include stdlib.h.
95660         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95661         Undef __memchr, too.
95662         [!weak_alias]: Define __memchr to memchr.
95663
95664         * lib/regex.c: Update from libc.
95665         * lib/regex.h: Likewise.
95666         * lib/getopt1.c: Likewise.
95667         * lib/memcmp.c: Likewise.
95668
95669         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95670         Avoid using fseek, when possible -- it's broken by design.
95671         Patch by Ulrich Drepper.
95672
95673 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95674
95675         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95676         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95677         Giving in to popular pressure to shut up the compiler with casts.
95678
95679 2000-10-26  Jim Meyering  <meyering@lucent.com>
95680
95681         * lib/strftime.c: Update from libc.
95682
95683 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95684
95685         * regex.c: More `unsigned char' -> `re_char' changes.
95686         Also change several `int' into `re_wchar_t'.
95687         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95688         (PUSH_FAILURE_POINTER): Don't cast any more.
95689         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95690         We want GCC to complain, since this piece of code makes
95691         re_match non-reentrant, which *should* be fixed.
95692         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95693         (EXTEND_BUFFER): Use RETALLOC.
95694         (SET_LIST_BIT): Don't cast.
95695         (re_wchar_t): New type.
95696         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95697         that those two functions will always properly return.
95698         (IMMEDIATE_QUIT_CHECK): Cast to void.
95699         (analyse_first): Use recursion rather than an explicit stack.
95700         (re_compile_fastmap): Can't fail anymore.
95701         (re_search_2): Don't check re_compile_fastmap for failure.
95702         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95703         Now also sets the new value (passed in a new argument).
95704         (re_match_2_internal): Use it.
95705         Also, use a new var `reg' of type size_t when looping through regs
95706         rather than reuse the inappropriate `mcnt'.
95707
95708 2000-10-25  Jim Meyering  <meyering@lucent.com>
95709
95710         * lib/obstack.c: Update from libc.
95711
95712 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95713
95714         * regex.c (regex_compile): Change the way of handling a range from
95715         a char less than 256 to a char not less than 256.
95716
95717 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95718
95719         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95720         NT-Emacs only.
95721         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95722         so that re_search functions only quit when callers expect them to.
95723
95724 2000-10-23  Jim Meyering  <meyering@lucent.com>
95725
95726         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95727         wrong.  That set_locale call must not have any side effects.
95728         From Paul Eggert.
95729
95730 2000-10-22  Jim Meyering  <meyering@lucent.com>
95731
95732         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95733         [CYCLIC]: Remove now-unused definition.
95734
95735         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95736         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95737         Suggestion from Ulrich Drepper.
95738
95739 2000-10-21  Jim Meyering  <meyering@lucent.com>
95740
95741         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95742         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95744
95745 2000-10-21  Jim Meyering  <meyering@lucent.com>
95746
95747         * lib/dirname.c (memrchr): Declare if necessary.
95748         (dir_name): Remove the restriction that there be no
95749         trailing slashes.  Now, this code skips past them, effectively
95750         ignoring them.
95751         [TEST_DIRNAME] (main): New unit tests.
95752
95753         * lib/memrchr.c: New file from GNU libc.
95754         Undef __memrchr, too.
95755         [!weak_alias]: Define __memrchr to memrchr.
95756         Guard weak_alias use with `#ifdef weak_alias'.
95757
95758 2000-10-21  Jim Meyering  <meyering@lucent.com>
95759
95760         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95761         (dir_name): Use dir_name_r.
95762         * lib/dirname.h (dir_name_r): Declare it.
95763
95764 2000-10-17  Jim Meyering  <meyering@lucent.com>
95765
95766         * lib/quote.h (PARAMS): Define and use.
95767         Reported by Akim Demaille.
95768
95769         * lib/getopt.c: Update from libc.
95770
95771 2000-10-16  Jim Meyering  <meyering@lucent.com>
95772
95773         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95774         setlocale.
95775         From Jan Fedak.
95776
95777 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95778
95779         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95780
95781 2000-09-25  Jim Meyering  <meyering@lucent.com>
95782
95783         * lib/md5.h (rol): Define (from GnuPG).
95784
95785         * lib/sha.c: Give credit (GnuPG) where due.
95786         (M): Use rol rather than open-coding it.
95787         Add a FIXME comment.
95788
95789 2000-09-21  Jim Meyering  <meyering@lucent.com>
95790
95791         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95792         Reported by Michael Stone.
95793
95794 2000-09-20  Jim Meyering  <meyering@lucent.com>
95795
95796         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95797         (noinst_HEADERS): Add sha.h.
95798         Based on code from Scott G. Miller and from GnuPG.
95799
95800 2000-09-18  Jim Meyering  <meyering@lucent.com>
95801
95802         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95803         LIBS. Otherwise, everyone ends up linking with -lelf for some
95804         configurations.
95805         Reported by Mike Stone.
95806
95807 2000-09-15  Jim Meyering  <meyering@lucent.com>
95808
95809         * lib/regex.c: Update from libc.
95810
95811 2000-09-10  Jim Meyering  <meyering@lucent.com>
95812
95813         * lib/getopt.c (_getopt_internal): Update from glibc.
95814
95815 2000-09-09  Jim Meyering  <meyering@lucent.com>
95816
95817         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95818         think it should be used as a general replacement for isascii.
95819         * lib/fnmatch.c: Likewise.
95820         * lib/mbswidth.c: Likewise
95821         * lib/regex.c: Likewise.
95822
95823         Don't use atoi.
95824         * lib/userspec.c: Include sys/param.h and limits.h.
95825         Include xstrtol.h.
95826         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95827         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95828         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95829         UID, GID.  Check range.
95830
95831 2000-09-06  Jim Meyering  <meyering@lucent.com>
95832
95833         * lib/getopt.c (_getopt_internal): Update from glibc.
95834
95835 2000-08-30  Jim Meyering  <meyering@lucent.com>
95836
95837         * lib/strftime.c: Merge in changes from GNU libc.
95838
95839 2000-08-26  Jim Meyering  <meyering@lucent.com>
95840
95841         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95842         * m4/fpending.m4: New file.
95843
95844 2000-08-26  Jim Meyering  <meyering@lucent.com>
95845
95846         * lib/closeout.c: Include "__fpending.h".
95847         (close_stdout_status): Return right away if there's nothing to flush.
95848
95849         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95850         * lib/__fpending.c: New file.
95851         * lib/__fpending.h: New file.
95852
95853 2000-08-20  Jim Meyering  <meyering@lucent.com>
95854
95855         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95856         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95857         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95858
95859 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95860
95861         Improve fileutils installation on systems where running
95862         programs (like install) can't be unlinked.
95863         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95864         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95865
95866 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95867
95868         Standardize on "memory exhausted" instead of "Memory exhausted"
95869         or "virtual memory exhausted".
95870         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95871         "virtual memory exhausted".
95872         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95873         our own message.
95874         * lib/userspec.c (parse_user_spec): Likewise.
95875         * lib/bumpalloc.h: comment fix
95876         * lib/same.c, userspec.c: Include xalloc.h.
95877
95878         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95879         not char *const and pointing to a constant array.
95880         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95881         (xrealloc): Comment fix.
95882
95883         * lib/userspec.c (parse_user_spec):
95884         Don't translate a message until just before returning,
95885         to avoid unnecessary translation.
95886
95887 2000-08-07  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95890         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95891         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95892         getgroups.c, gethostname.c, getopt.h, group-member.c,
95893         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95894         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95895         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95896         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95897         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95898         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95899         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95900         yesno.c: Back out Copyright date changes for each file with no change
95901         this year.  This eases coordination with other programs using the same
95902         source code modules.  From Paul Eggert.
95903
95904 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95905
95906         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95907         not char, for compatibility with glibc 2.1.3 strftime.c.
95908
95909 2000-08-03  Greg McGary  <greg@mcgary.org>
95910
95911         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95912         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95913         (EXTEND_BUFFER): Use them.
95914
95915 2000-08-01  Jim Meyering  <meyering@lucent.com>
95916
95917         * lib/dirname.c (ISSLASH): Define.
95918         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95919         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95920         both `\' and `/' may be use as path separators.
95921         Based on a patch from Prashant TR.
95922
95923 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95924
95925         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95926         slot vector a constant, since it might get modified.
95927
95928 2000-07-31  Jim Meyering  <meyering@lucent.com>
95929
95930         * lib/xmalloc.c: Use `virtual memory exhausted', not
95931         `Memory exhausted'.
95932         * lib/obstack.c (print_and_abort): Likewise.
95933
95934 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95935
95936         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95937         buffer, so that the caller can always quote one small
95938         component of a "memory exhausted" message in slot 0.
95939         From a suggestion by Jim Meyering.
95940
95941 2000-07-30  Jim Meyering  <meyering@lucent.com>
95942
95943         * lib/makepath.c (make_path): Quote the other instance, too.
95944
95945         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95946         (STATIC_BUF_SIZE): Define.
95947         (quotearg_n_options): Use only statically allocated storage when
95948         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95949         than STATIC_BUF_SIZE.
95950
95951 2000-07-29  Jim Meyering  <meyering@lucent.com>
95952
95953         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95954         * lib/dirname.c (dir_name): Likewise.
95955
95956         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95957         `/'.
95958
95959         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95960         (dir_name): Assert that there are no trailing slashes.
95961
95962 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95963
95964         * lib/mbswidth.h (mbswidth): Add a flags argument.
95965         (mbswidth): New declaration.
95966         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95967         * lib/mbswidth.c (mbswidth): Add a flags argument.
95968         (mbsnwidth): New function.
95969
95970 2000-07-24  Jim Meyering  <meyering@lucent.com>
95971
95972         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95973
95974 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95975
95976         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95977
95978 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95979
95980         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95981         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95982         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95983         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95984         invoke multibyte primitives.
95985
95986 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95987
95988         * lib/quotearg.c:
95989         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95990         so that mbstate_t is always defined.
95991
95992         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95993         be 1 in at least one GCC installation, and this configuration
95994         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95995         performance on hosts that have mbrtowc but have only unibyte
95996         locales, but I assume these hosts are rare.
95997
95998 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95999
96000         * lib/mbswidth.c (_XOPEN_SOURCE):
96001         Don't define; this causes problems on Solaris 7.
96002         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96003
96004 2000-07-23  Jim Meyering  <meyering@lucent.com>
96005
96006         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96007         too: getgrgid, getpwuid, getuid.
96008
96009 2000-07-23  Jim Meyering  <meyering@lucent.com>
96010
96011         * lib/basename.c (base_name): Add an assertion.
96012
96013 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96014
96015         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96016         shadow its mbsinit function.
96017
96018 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96019
96020         * lib/mbswidth.h: New file.
96021         * lib/mbswidth.c: New file.
96022         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96023         (noinst_HEADERS): Add mbswidth.h.
96024
96025 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96026
96027         * lib/config.charset: Add support for FreeBSD. Improve support for
96028         HP-UX and IRIX 6.
96029
96030 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96031
96032         * m4/mbswidth.m4: New file.
96033         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96034
96035 2000-07-15  Jim Meyering  <meyering@lucent.com>
96036
96037         * lib/makepath.c: Include quote.h.
96038         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96039         corresponding argument in a `quote (...)' call.
96040         Give better diagnostics.
96041
96042         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96043         (noinst_HEADERS): Add quote.h.
96044
96045         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96046         from tar's src/misc.c.
96047         * lib/quote.h: New file.  Prototypes for same.
96048
96049 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96050
96051         From a suggestion by Bruno Haible.
96052         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96053         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96054         to decide whether to define the BeOS workaround macro;
96055         this adjusts to the change to AC_MBSTATE_T.
96056
96057 2000-07-14  Jim Meyering  <meyering@lucent.com>
96058
96059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96060         jm_AC_TYPE_UINTMAX_T.
96061
96062 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96063
96064         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96065
96066         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96067         quotearg_buffer_restyled): Add support for
96068         clocale_quoting_style.  Undo previous change to
96069         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96070         and "{RIGHT QUOTATION MARK}" msgids.
96071
96072 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96073
96074         From a suggestion by Bruno Haible.
96075         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96076         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96077         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96078         and mbstate_t, to a single-part test that simply defines mbstate_t.
96079         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96080         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96081
96082 2000-07-10  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96085
96086         * m4/gnu-source.m4: Output to confdefs.h directly.
96087         Suggestion from Akim Demaille.
96088
96089 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96090
96091         The old behavior of quoting `like this' doesn't look good with
96092         newer, ISO-style fonts.  See:
96093         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96094
96095         Instead, quote "like this" by default.  Let the translator
96096         tailor the locale-specific quoting behavior by providing
96097         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96098
96099         * lib/quotearg.c (N_): New macro.
96100         (gettext_default): New function.
96101         (quotearg_buffer_restyled): Use
96102         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96103         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96104
96105 2000-07-09  Jim Meyering  <meyering@lucent.com>
96106
96107         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96108         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96109
96110         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96112
96113 2000-07-09  Jim Meyering  <meyering@lucent.com>
96114
96115         * lib/Most files: Update copyright dates to include 2000.
96116
96117 2000-07-08  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96120         if not defined.
96121         (xgethostname): Remove now-unnecessary #ifdef.
96122         Move declaration of `err' into loop where it's used.
96123
96124 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96125         and Bruno Haible  <haible@clisp.cons.org>
96126
96127         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96128         only if the test for an object-type mbstate_t fails.  This
96129         prevents us from mistakenly reporting that mbstate_t is a
96130         system object type after we "#define mbstate_t int" to work
96131         around its lack.
96132
96133 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96134         and Bruno Haible  <haible@clisp.cons.org>
96135
96136         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96137
96138 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96139
96140         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96141         to strerror_r.
96142         Include <ctype.h> for use of isalpha.
96143
96144 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96145
96146         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96147         by allocating a larger buffer. Test the gethostname return value for
96148         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96149         returns an error and ENAMETOOLONG isn't defined.
96150
96151 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96152
96153         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96154         dimension.
96155
96156 2000-07-04  Jim Meyering  <meyering@lucent.com>
96157
96158         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96159         of the deprecated AC_CHECKING.
96160
96161 2000-07-04  Jim Meyering  <meyering@lucent.com>
96162
96163         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96164         Reported by Bruno Haible.
96165
96166 2000-07-04  Jim Meyering  <meyering@lucent.com>
96167
96168         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96169         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96170         lacks mbrtowc.
96171
96172 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96173
96174         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96175         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96176
96177 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96178         and Bruno Haible  <haible@clisp.cons.org>
96179
96180         * lib/quotearg.c (mbrtowc):
96181         Assign to *pwc, and return 1 only if result is nonzero.
96182         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96183
96184 2000-07-03  Jim Meyering  <meyering@lucent.com>
96185
96186         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96187
96188 2000-07-03  Jim Meyering  <meyering@lucent.com>
96189
96190         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96191         This is necessary to get a definition of e.g., UTMP_FILE on
96192         HP-UX 10.20.
96193         From Bob Proulx.
96194
96195 2000-07-02  Jim Meyering  <meyering@lucent.com>
96196
96197         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96198
96199         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96200         AC_LIBOBJ(function_name).
96201         * m4/chown.m4: Likewise.
96202         * m4/fnmatch.m4: Likewise.
96203         * m4/ftruncate.m4: Likewise.
96204         * m4/getgroups.m4: Likewise.
96205         * m4/getline.m4: Likewise.
96206         * m4/group-member.m4: Likewise.
96207         * m4/jm-macros.m4: Likewise.
96208         * m4/lstat.m4: Likewise.
96209         * m4/malloc.m4: Likewise.
96210         * m4/memcmp.m4: Likewise.
96211         * m4/nanosleep.m4: Likewise.
96212         * m4/putenv.m4: Likewise.
96213         * m4/realloc.m4: Likewise.
96214         * m4/regex.m4: Likewise.
96215         * m4/stat.m4: Likewise.
96216         * m4/strftime.m4: Likewise.
96217
96218 2000-07-02  Jim Meyering  <meyering@lucent.com>
96219
96220         * lib/quotearg.c (mbstate_t): Don't define here.
96221
96222 2000-07-02  Jim Meyering  <meyering@lucent.com>
96223
96224         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96225
96226 2000-07-01  Jim Meyering  <meyering@lucent.com>
96227
96228         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96229
96230 2000-07-01  Jim Meyering  <meyering@lucent.com>
96231
96232         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96233         problem.
96234
96235 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96236
96237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96238         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96239
96240 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96241
96242         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96243         per change in ../m4/ls-mntd-fs.m4.
96244         (read_filesystem_list): Ignore symbolic links.
96245
96246 2000-06-29  Jim Meyering  <meyering@lucent.com>
96247
96248         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96249         for declaration of strcmp.
96250
96251         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96252
96253         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96254         Avoid warning by casting result to `char *' to remove `const'.
96255
96256 2000-06-28  Jim Meyering  <meyering@lucent.com>
96257
96258         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96259         included by quotearg.c, for which we perform this test.  From
96260         Bruno Haible.
96261
96262 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96263
96264         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96265         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96266         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96267
96268 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96269
96270         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96271
96272 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96273
96274         savedir now sets errno on failure and invokes xmalloc to get memory.
96275         Fix a couple of other minor bugs while we're at it.
96276
96277         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96278         (NAMLEN): Remove macro.
96279         (malloc, realloc): Remove decls.
96280         (stpcpy): Likewise.
96281         ("xalloc.h"): Include.
96282         (NAME_SIZE_DEFAULT): New macro.
96283         (savedir): Use xmalloc / xrealloc to allocate memory.
96284         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96285         Skip "" directory entries.
96286         Use strlen to calculate directory entry length, since the old method
96287         is rarely used these days and isn't worth supporting.
96288         Don't use a pointer after freeing it.
96289         Check for integer overflow when calculating allocation size.
96290         Use memcpy to copy entries, instead of stpcpy.
96291         Set errno properly when returning NULL.
96292         Check for readdir error.
96293
96294 2000-06-26  Jim Meyering  <meyering@lucent.com>
96295
96296         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96297
96298 2000-06-25  Jim Meyering  <meyering@lucent.com>
96299
96300         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96301         Linux header bug when _XOPEN_SOURCE is defined to 500.
96302
96303 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96304
96305         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96306         deficiency.
96307
96308 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96309
96310         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96311         Include xalloc.h.
96312         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96313
96314 2000-06-24  Jim Meyering  <meyering@lucent.com>
96315
96316         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96317         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96318         for which strerror does return char*, but which lacks a conveniently
96319         accessible declaration of the function.  If the compile-test says
96320         strerror_r doesn't work, then resort to a `run'-test that works on
96321         BeOS and segfaults on DEC Unix.
96322
96323 2000-06-24  Jim Meyering  <meyering@lucent.com>
96324
96325         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96326
96327 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96328
96329         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96330         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96331
96332 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96333
96334         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96335         (mbrtowc, mbstate_t): Define substitutes if
96336         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96337         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96338         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96339
96340 2000-06-23  Jim Meyering  <meyering@lucent.com>
96341
96342         * m4/afs.m4: Add missing AC_MSG_RESULT.
96343         Reported by Bruno Haible.
96344
96345         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96346         Suggestion from Bruno Haible.
96347
96348 2000-06-23  Jim Meyering  <meyering@lucent.com>
96349
96350         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96351
96352 2000-06-21  Jim Meyering  <meyering@lucent.com>
96353
96354         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96355
96356 2000-06-21  Jim Meyering  <meyering@lucent.com>
96357
96358         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96359         (noinst_HEADERS): Add getstr.h.
96360
96361         * lib/getline.c (getstr): Move into a separate file.
96362         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96363         the following changes: new parameter, delim2; both delim[12]
96364         parameters have type `int', not `char'.  The latter would lose
96365         with 8-bit delimiters.
96366         * lib/getstr.h: New file.
96367
96368 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96369
96370         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96371         than 1024, return a memory chunk of least possible size, instead
96372         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96373         Use free/xmalloc instead of xrealloc to avoid copying for very long
96374         paths.
96375
96376 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96377
96378         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96379         the empty string.
96380
96381 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96382
96383         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96384         address, not strdup.  Include <stdlib.h> and don't declare free().
96385
96386 2000-06-19  Jim Meyering  <meyering@lucent.com>
96387
96388         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96389
96390 2000-06-18  Jim Meyering  <meyering@lucent.com>
96391
96392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96393
96394         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96395         `checking whether...' message to be consistent with that of the
96396         lstat test.
96397
96398 2000-06-18  Jim Meyering  <meyering@lucent.com>
96399
96400         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96401         Besides, these days every porting target provides a mkdir function.
96402
96403         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96404         needed. (this snippet comes from src/system.h).
96405
96406 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96407
96408         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96409
96410 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96411
96412         * lib/human.c (adjust_value): New function.
96413         (human_readable_inexact): Apply rounding style even when
96414         printing approximate values.
96415
96416 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96417
96418         * lib/human.c (human_readable_inexact): Allow an input block
96419         size that is not a multiple of the output block size, and vice versa.
96420         Reported by Piergiorgio Sartor.
96421
96422 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96423
96424         * lib/getdate.y (get_date): Apply relative times after time
96425         zone indicator, not before.  Reported by Todd A. Jacobs.
96426
96427 2000-06-13  Jim Meyering  <meyering@lucent.com>
96428
96429         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96430
96431         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96432
96433 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96434
96435         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96436
96437 2000-06-12  Jim Meyering  <meyering@lucent.com>
96438
96439         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96440         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96441         optional argument.
96442         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96443         the optional argument, `lib'.
96444
96445 2000-06-08  Jim Meyering  <meyering@lucent.com>
96446
96447         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96448
96449 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96450
96451         Rewrite largefile configuration so that we don't need to run
96452         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96453         AC_CANONICAL_HOST in configure.in -- jmm]
96454
96455         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96456         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96457         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96458         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96459         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96460         All uses changed.
96461         Instead of inspecting the output of getconf, try to compile the
96462         test program without and with the macro definition.
96463         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96464         for getconf.  Instead, check for the needed flags by compiling
96465         test programs.
96466
96467 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96468
96469         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96470
96471 2000-06-04  Jim Meyering  <meyering@lucent.com>
96472
96473         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96474         SunOS 4.1.4 for which gid_t is an unsigned type.
96475
96476 2000-06-03  Jim Meyering  <meyering@lucent.com>
96477
96478         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96479         now that autoconf requires that.
96480
96481         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96482         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96483         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96484
96485 2000-06-03  Jim Meyering  <meyering@lucent.com>
96486
96487         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96488
96489 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96490
96491         * m4/glibc21.m4: New file.
96492         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96493
96494 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96495
96496         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96497         newer, don't install charset.alias.
96498         * lib/config.charset: Change the Linux/glibc rules so they become empty
96499         on glibc-2.1 or newer.
96500
96501 2000-06-02  Jim Meyering  <meyering@lucent.com>
96502
96503         * lib/mountlist.c: Back out last change.  Instead, do this...
96504         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96505         me_dummy member using the same `ignore'-testing code.
96506         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96507         fs_type strings.
96508         From Mark D. Roth.
96509
96510 2000-05-29  Jim Meyering  <meyering@lucent.com>
96511
96512         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96513         mounts with the `ignore' attribute.  Based on a patch from
96514         Mark D. Roth.
96515
96516 2000-05-28  Jim Meyering  <meyering@lucent.com>
96517
96518         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96519         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96520         * m4/stat.m4: Likewise.
96521         * m4/lstat.m4: Likewise.
96522         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96523
96524         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96525         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96526
96527 2000-05-26  Jim Meyering  <meyering@lucent.com>
96528
96529         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96530
96531 2000-05-24  Jim Meyering  <meyering@lucent.com>
96532
96533         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96534         autoconf requires that.
96535         * m4/lib-check.m4: Likewise.
96536         * m4/jm-macros.m4: Likewise.
96537         * m4/strftime.m4: Likewise.
96538
96539         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96540         AC_CHECK_DECLS, now that autoconf requires that.
96541
96542 2000-05-22  Jim Meyering  <meyering@lucent.com>
96543
96544         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96545         * m4/lstat.m4: Likewise.
96546
96547 2000-05-22  Jim Meyering  <meyering@lucent.com>
96548
96549         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96550
96551 2000-05-20  Jim Meyering  <meyering@lucent.com>
96552
96553         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96554         (jm_PREREQ): Use it.
96555
96556 2000-05-18  Jim Meyering  <meyering@lucent.com>
96557
96558         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96559         back, too, since it may have been modified by allocate_entry.
96560         (hash_delete): Rewrite to use neither the assignment operator
96561         nor the comma operator in an if-expression.
96562
96563 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96564
96565         * lib/closeout.c:
96566         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96567         Remove; no longer needed.
96568         "quotearg.h": Add include.
96569         (file_name): Do not bother to explicitly initialize to NULL; it's less
96570         efficient on some hosts.
96571         (close_stdout_status): Remove test as to whether stdout was already
96572         closed; it breaks for the case "echo x | sort >&-".
96573         Quote file name colons.
96574         Do not assume that _("write error") lacks format strings.
96575
96576 2000-05-15  Jim Meyering  <meyering@lucent.com>
96577
96578         * lib/version-etc.c (version_etc_copyright): Update the copyright
96579         string used in all --version output.
96580
96581 2000-05-14  Jim Meyering  <meyering@lucent.com>
96582
96583         * lib/closeout.c (close_stdout_set_file_name): New function.
96584         (close_stdout_status): Use new file-scoped global.
96585         Return right away if fstat says the stdout file descriptor is invalid.
96586         * lib/closeout.h (close_stdout_set_file_name): Declare.
96587
96588 2000-05-10  Jim Meyering  <meyering@lucent.com>
96589
96590         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96591         (close_stdout_set_status): New function.
96592         * lib/closeout.h (close_stdout_set_status): Declare.
96593
96594 2000-05-09  Jim Meyering  <meyering@lucent.com>
96595
96596         * m4/gettext.m4: Rename this...
96597         * m4/libintl.m4: ...to this.
96598
96599 2000-05-08  Jim Meyering  <meyering@lucent.com>
96600
96601         * lib/long-options.c: Don't include closeout.h.
96602         (parse_long_options): Don't call close_stdout for --version.
96603
96604 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96605
96606         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96607         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96608         2.1.3 bug.  This avoids a clash when files like regex.c define
96609         _GNU_SOURCE.
96610
96611 2000-05-06  Jim Meyering  <meyering@lucent.com>
96612
96613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96614         (AC_REPLACE_FUNCS): Add strnlen.
96615
96616         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96617         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96618
96619         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96620         AC_SEARCH_LIBS call for nanosleep.
96621         (LIB_NANOSLEEP): Set and AC_SUBST.
96622
96623 2000-05-06  Jim Meyering  <meyering@lucent.com>
96624
96625         * lib/strnlen.c: Undefine __strnlen and strnlen.
96626         [!weak_alias]: Define __strnlen to strnlen.
96627
96628         * lib/atexit.c: New file, from libiberty.
96629
96630 2000-05-06  Jim Meyering  <meyering@lucent.com>
96631
96632         * lib/closeout.c (close_stdout_status): Also check for errors on the
96633         stderr stream.
96634
96635 2000-05-05  Jim Meyering  <meyering@lucent.com>
96636
96637         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96638         AC_SEARCH_LIBS call for clock_gettime.
96639         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96640
96641         * m4/search-libs.m4: Update from autoconf.
96642
96643         su doesn't work on Solaris 2.6.
96644         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96645         <shadow.h>.  Reported by Dragos Harabor.
96646
96647 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96648
96649         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96650         memcpy instead of xmalloc, xrealloc, path_concat.
96651         (locale_charset): Treat empty environment variables as absent.
96652         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96653
96654 2000-05-04  Jim Meyering  <meyering@lucent.com>
96655
96656         * lib/getopt.c: Update from glibc.
96657         * lib/obstack.c: Likewise.
96658         * lib/obstack.h: Likewise.
96659         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96660         file
96661
96662         * lib/regex.h: Likewise.
96663         * lib/strndup.c: Likewise.
96664         * lib/strnlen.c: New file, from glibc.
96665
96666 2000-05-03  Jim Meyering  <meyering@lucent.com>
96667
96668         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96669
96670 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96671
96672         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96673         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96674         compile-time test, rather than inspecting host and OS, to
96675         decide whether to define _LARGEFILE_SOURCE.
96676
96677 2000-05-01  Jim Meyering  <meyering@lucent.com>
96678
96679         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96680
96681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96682         Based on a patch from Bruno Haible.
96683
96684 2000-05-01  Jim Meyering  <meyering@lucent.com>
96685
96686         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96687
96688 2000-04-29  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/path-concat.c: Declare strdup only if it's not defined.
96691         * lib/canon-host.c: Likewise.
96692
96693 2000-04-28  Jim Meyering  <meyering@lucent.com>
96694
96695         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96696         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96697         is included first, then limits.h is included by locale.h by libintl.h.
96698         From John David Anglin.
96699
96700 2000-04-25  Jim Meyering  <meyering@lucent.com>
96701
96702         * lib/makepath.c (S_IRWXUGO): Define.
96703         (make_path): Always perform explicit chmod if MODE specifies any
96704         of the `special' permission bits.  Prompted by a bug report against
96705         install from Mate Wierdl and Joost van Baal.
96706
96707 2000-04-18  Jim Meyering  <meyering@lucent.com>
96708
96709         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96710         (jm_PREREQ): Use it.
96711
96712 2000-04-18  Jim Meyering  <meyering@lucent.com>
96713
96714         * lib/README: New file.
96715
96716         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96717         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96718
96719 2000-04-17  Jim Meyering  <meyering@lucent.com>
96720
96721         Get it right :-)
96722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96723         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96724         Suggestion from Akim Demaille.
96725
96726 2000-04-17  Jim Meyering  <meyering@lucent.com>
96727
96728         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96729         the definition of it to rpl_strftime also defined-away the system's
96730         declaration.
96731
96732 2000-04-15  Jim Meyering  <meyering@lucent.com>
96733
96734         Use `C' to denote so-called `contiguous' files, the same way
96735         that tar does.
96736         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96737         (ftypelet): Use S_ISCTG.
96738         From Michael Deutschmann.
96739
96740 2000-04-14  Jim Meyering  <meyering@lucent.com>
96741
96742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96743         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96744         clobbered.
96745
96746 2000-04-14  Jim Meyering  <meyering@lucent.com>
96747
96748         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96749
96750 2000-04-13  Jim Meyering  <meyering@lucent.com>
96751
96752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96753         AH_VERBATIM to insert required #ifndef into config.h.in.
96754         Suggestion from Akim Demaille.
96755
96756 2000-04-12  Jim Meyering  <meyering@lucent.com>
96757
96758         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96759         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96760         Christian Krackowizer.
96761
96762         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96763         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96764         (AC_SYS_LARGEFILE): Require.
96765         (AM_C_PROTOTYPES): Require.
96766
96767 2000-04-08  Jim Meyering  <meyering@lucent.com>
96768
96769         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96770         names don't conflict.  Reported by Eli Zaretskii.
96771
96772 2000-04-07  Jim Meyering  <meyering@lucent.com>
96773
96774         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96775         sys/types.h, to work around system header problems on AIX 3.2.5.
96776         From Bruno Haible.
96777
96778 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96779
96780         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96781         bug.  Deal with the different error behavior of Irix iconv.
96782
96783 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96784
96785         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96786         IRIX if the installer said otherwise.
96787
96788 2000-04-05  Jim Meyering  <meyering@lucent.com>
96789
96790         Portability tweaks required for ultrix4.3.
96791         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96792         (jm_CHECK_DECLS): Add getutent to the list of functions.
96793         (_jm_DECL_HEADERS): Add utmpx.h.
96794         From John David Anglin.
96795
96796         * m4/strftime.m4: Back out the 2000-04-02 change.
96797         Instead of that change, simply undefine putenv in the test program.
96798
96799 2000-04-05  Jim Meyering  <meyering@lucent.com>
96800
96801         Portability tweaks required for ultrix4.3.
96802         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96803         getutent.
96804         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96805         * lib/canon-host.c: Declare strdup.
96806         * lib/path-concat.c: Likewise.
96807         From John David Anglin.
96808
96809 2000-04-04  Jim Meyering  <meyering@lucent.com>
96810
96811         Be more DOS 8.3-friendly.
96812         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96813         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96814         * lib/Makefile.am: Reflect renaming.
96815         Reported by Eli Zaretskii.
96816
96817         Use a temporary file name that won't clash with `charset.alias'
96818         in the DOS 8.3 name space.
96819         * lib/Makefile.am (charset_tmp): Define.
96820         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96821         (uninstall-local): Likewise.
96822         Reported by Eli Zaretskii.
96823
96824 2000-04-03  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/gettext.m4: Fix typo in comment.
96827
96828         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96829         textutils/configure.in).  Suggestion from Paul Eggert.
96830         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96831
96832 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96833
96834         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96835         variable in the shell rather than using putenv, which isn't
96836         portable.  This avoids the configure-time inter-test dependency
96837         on the potentially-renamed putenv function.
96838
96839 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96840
96841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96842         before checking struct stat.st_blksize, so that
96843         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96844
96845 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96846
96847         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96848         since strftime.c uses HAVE_STRFTIME to decide whether to use
96849         the underlying strftime.
96850
96851 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96852
96853         * lib/time/strftime.c (my_strftime): Make sure we call the system
96854         strftime, not ourselves, when invoking the underlying strftime.
96855
96856 2000-03-24  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96859         (charset_alias): Define.
96860         (install-exec-local): Factor out common code.
96861         (uninstall-local): Split lines longer than 80.
96862         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96863         (SUFFIXES): Define.
96864         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96865         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96866
96867 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96868
96869         * lib/config.charset: Output a line containing "Packages using this
96870         file".
96871         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96872         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96873         ref-del.sed): New rules.
96874
96875 2000-03-17  Jim Meyering  <meyering@lucent.com>
96876
96877         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96878         Otherwise, include <strings.h>
96879
96880 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96881
96882         * lib/unicodeio.c (utf8_wctomb): New function.
96883         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96884         format instead of in UCS-4 with platform dependent endianness.
96885
96886 2000-03-10  Jim Meyering  <meyering@lucent.com>
96887
96888         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96889         From Marco Franzen.
96890
96891 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96892
96893         * lib/savedir.c (savedir): Work even if directory size is
96894         negative; this can happen with some screwy NFS configurations.
96895
96896 2000-03-06  Jim Meyering  <meyering@lucent.com>
96897
96898         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96899         if it's NULL (because we ran out of memory).  From Bruno Haible.
96900
96901 2000-03-05  Jim Meyering  <meyering@lucent.com>
96902
96903         * lib/localcharset.c ("path-concat.h"): Include.
96904         (get_charset_aliases): Use path_concat instead of ANSI string
96905         concatenation.
96906
96907         * lib/unicodeio.h (PARAMS): Define.
96908         Use it to guard prototype.
96909
96910 2000-03-04  Jim Meyering  <meyering@lucent.com>
96911
96912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96913         for lib/localcharset.c.
96914
96915 2000-03-04  Jim Meyering  <meyering@lucent.com>
96916
96917         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96918         installing into it.
96919         (uninstall-local): Uncomment this rule so `make distcheck' works
96920         once again.
96921
96922         * lib/unicodeio.c (<errno.h>): Include it.
96923         (errno): Declare if not defined.
96924
96925         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96926
96927         * lib/config.charset: New version, incorporating remarks from a linux
96928         i18n mailing list.  From Bruno Haible.
96929
96930 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96931
96932         * m4/codeset.m4: New file.
96933         * m4/iconv.m4: New file.
96934         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96935
96936 2000-03-03  Jim Meyering  <meyering@lucent.com>
96937
96938         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96939
96940 2000-03-02  Jim Meyering  <meyering@lucent.com>
96941
96942         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96943         the messages come out on separate lines.
96944
96945         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96946         rather than jm_CHECK_DECLARATIONS.
96947         * m4/decl.m4: Remove now-unused file.
96948
96949         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96950         geteuid.
96951
96952 2000-03-02  Jim Meyering  <meyering@lucent.com>
96953
96954         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96955
96956 2000-03-01  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96959         * lib/unicodeio.c: Likewise.
96960
96961 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96962
96963         * lib/config.charset: New file.
96964         * lib/localcharset.c: New file.
96965         * lib/unicodeio.h, lib/unicodeio.c: New files.
96966         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96967         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96968         (noinst_HEADERS): Add unicodeio.h.
96969         (all-local, install-exec-local, charset.alias): New targets.
96970
96971 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96972
96973         * lib/quotearg.c (ALERT_CHAR): New macro.
96974         (quotearg_buffer_restyled): Use it.
96975
96976 2000-02-27  Jim Meyering  <meyering@lucent.com>
96977
96978         * m4/check-decl.m4: Add getenv to the list.
96979
96980 2000-02-27  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96983         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96984
96985         * lib/backupfile.c: Guard inclusion of stdlib.h with
96986         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96987         Declare malloc if needed.
96988
96989         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96990         `#ifndef HAVE_DECL..'
96991         now that autoconf always defines the HAVE_DECL_ symbols.
96992         * lib/human.c: Likewise.
96993         * lib/same.c: Likewise.
96994         * lib/strtoumax.c: Likewise.
96995
96996         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96997         declaration check was not run.
96998         * lib/hash.c: Likewise.
96999         * lib/human.c: Likewise.
97000         * lib/same.c: Likewise.
97001         * lib/strtoumax.c: Likewise.
97002
97003         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97004         `.', then first look up the entire `.'-containing string as a login
97005         name.
97006
97007 2000-02-23  Jim Meyering  <meyering@lucent.com>
97008
97009         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97010         in place of my hack.
97011
97012 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97013
97014         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97015         (textint): New typedef.
97016         (parser_control): Member year changed from int to textint.
97017         All uses changed.
97018         (YYSTYPE): Removed; replaced by %union with int and textint members.
97019         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97020         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97021         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97022         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97023         (date, number, to_year): Use width of number in digits, not its value,
97024         to determine whether it's a 2-digit year, or a 2-digit time.
97025         (yylex): Store number of digits of numeric tokens.
97026         Reported by John Kendall.
97027
97028         (parser_control): Changed from struct parser_control to typedef (for
97029         consistency).  All uses changed.
97030
97031         (tID): Removed; not used.
97032         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97033
97034 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97035
97036         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97037         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97038
97039 2000-02-12  Jim Meyering  <meyering@lucent.com>
97040
97041         * lib/userspec.c (ISDIGIT): Define it.
97042         (isdigit): Remove definition.
97043         (is_number): Use ISDIGIT, not isdigit.
97044         <libintl.h>: Include.
97045         (_ and N_): Define.
97046         (parse_user_spec): Mark translatable strings.
97047
97048 2000-02-10  Jim Meyering  <meyering@lucent.com>
97049
97050         With these changes, nanosleep.[ch] are finally enough like the other
97051         lib/* replacement files to compile on a few more losing systems.
97052
97053         * lib/nanosleep.h: Don't include config.h.
97054         Remove prototype from declaration of nanosleep.
97055         (PARAMS): Remove now-unneeded definition.
97056         * lib/nanosleep.c: #undef nanosleep.
97057         (rpl_nanosleep): Rename from nanosleep.
97058
97059 2000-02-10  Jim Meyering  <meyering@lucent.com>
97060
97061         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97062         gnu_nanosleep to rpl_nanosleep.
97063
97064 2000-02-09  Jim Meyering  <meyering@lucent.com>
97065
97066         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97067         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97068
97069 2000-02-08  Akim Demaille  <akim@epita.fr>
97070
97071         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97072         `[' and `]' and remove uses of `changequote'.
97073         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97074         (AC_SYS_LARGEFILE): Likewise.
97075         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97076         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97077         of changequote.
97078         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97079         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97080         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97081         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97082
97083 2000-02-05  Jim Meyering  <meyering@lucent.com>
97084
97085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97086         Remove explicit use of AC_HEADER_TIME.  It is required by
97087         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97088         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97089         in autoconf whereby the expansion of the latter ended up preceding
97090         the expansion of its prerequisite, AC_HEADER_TIME.
97091         Reported by Volker Borchert.
97092
97093 2000-02-03  Jim Meyering  <meyering@lucent.com>
97094
97095         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97096
97097 2000-02-03  Jim Meyering  <meyering@lucent.com>
97098
97099         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97100         rather than with `#if HAVE_UTMPNAME'.
97101
97102 2000-02-02  Jim Meyering  <meyering@lucent.com>
97103
97104         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97105         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97106         Reported by Eli Zaretskii.
97107
97108 2000-02-01  Jim Meyering  <meyering@lucent.com>
97109
97110         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97111
97112 2000-01-31  Jim Meyering  <meyering@lucent.com>
97113
97114         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97115         functions.  Add the time.h and sys/time.h headers along with the
97116         AC_REQUIRE'ment of AC_HEADER_TIME.
97117
97118 2000-01-31  Jim Meyering  <meyering@lucent.com>
97119
97120         * lib/nanosleep.h (nanosleep): Guard declaration with
97121         `#if ! HAVE_DECL_NANOSLEEP'.
97122         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97123         the declaration in that vendor's sys/timers.h.
97124         Reported by Christian Krackowizer.
97125
97126         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97127         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97128         (ISPRINT): Likewise.
97129         Reported by Tom Tromey.
97130
97131 2000-01-30  Jim Meyering  <meyering@lucent.com>
97132
97133         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97134
97135         * m4/prereq.m4 (utmp_includes): Define.
97136         Check for ut_user and ut_name members in both struct utmpx
97137         and struct utmp.
97138
97139 2000-01-30  Jim Meyering  <meyering@lucent.com>
97140
97141         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97142         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97143         header files where only utmpx.ut_user is declared.
97144
97145         * lib/readutmp.h (UT_USER): Define.
97146
97147 2000-01-29  Jim Meyering  <meyering@lucent.com>
97148
97149         * m4/lib-check.m4: New file containing library-related checks from
97150         fileutils and sh-utils (textutils had none).
97151
97152 2000-01-28  Jim Meyering  <meyering@lucent.com>
97153
97154         * m4/perl.m4: Change format of warning message to look more like that
97155         from the missing script.  Suggestion from François Pinard.
97156
97157 2000-01-25  Jim Meyering  <meyering@lucent.com>
97158
97159         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97160         well as time.h in the compile check.
97161         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97162         Fix typo in cross-compiling case: s/yes/no/.
97163
97164 2000-01-23  Jim Meyering  <meyering@lucent.com>
97165
97166         * m4/jm-macros.m4: Move df-related tests here from
97167         fileutils/configure.in
97168
97169         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97170         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97171
97172         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97173         s/space/ac_fsusage_space/.
97174         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97175
97176         * m4/ftruncate.m4: New file (derived from part of
97177         fileutils/configure.in).
97178         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97179         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97180
97181         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97182         AC_SUBST these here, rather than just in sh-util/configure.in, so
97183         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97184         all the same.
97185         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97186         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97187         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97188         (AC_SUBST(POW_LIBM)): Likewise.
97189         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97190
97191 2000-01-23  Jim Meyering  <meyering@lucent.com>
97192
97193         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97194         obstack.c.
97195
97196 2000-01-22  Jim Meyering  <meyering@lucent.com>
97197
97198         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97199
97200         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97201
97202         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97203         configure.in
97204         (AC_CHECK_HEADERS): Likewise for sh-utils.
97205         (AC_CHECK_HEADERS): Likewise for textutils.
97206         Merge the three lists of headers.
97207
97208         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97209         from fileutils' configure.in.
97210
97211         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97212         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97213         check-decl.m4.
97214
97215         * m4/check-decl.m4: Use #if rather than #ifdef.
97216         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97217         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97218         (_jm_DECL_HEADERS): Define new function.
97219         (jm_CHECK_DECLARATIONS): Require it.
97220
97221 2000-01-22  Jim Meyering  <meyering@lucent.com>
97222
97223         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97224         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97225         Required for some AIX systems.  Reported by Christian Krackowizer.
97226         [TESTING] (main): New function.
97227
97228         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97229         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97230         letters.
97231
97232         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97233         iswprint.
97234
97235         * lib/strverscmp.c (ISDIGIT): Define.
97236         (strverscmp): Use ISDIGIT, not isdigit.
97237
97238 2000-01-19  Jim Meyering  <meyering@lucent.com>
97239
97240         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97241         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97242         defines `struct timespec' in <sys/time.h>
97243
97244         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97245         Thanks to Akim for explaining.
97246
97247 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97248
97249         * lib/nanosleep.c (nanosleep):
97250         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97251         POSIX.1 doesn't require SA_INTERRUPT and some systems
97252         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97253         it's been part of POSIX.1 since day 1 (in 1988).
97254
97255 2000-01-17  Jim Meyering  <meyering@lucent.com>
97256
97257         * lib/interlock: Remove unused file.  Reported by François Pinard.
97258
97259 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97260
97261         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97262         alert, backslash, formfeed, and vertical tab unnecessarily in
97263         shell quoting style.
97264
97265 2000-01-16  Jim Meyering  <meyering@lucent.com>
97266
97267         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97268         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97269         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97270         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97271
97272 2000-01-16  Jim Meyering  <meyering@lucent.com>
97273
97274         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97275         because the latter didn't work.
97276
97277 2000-01-15  Jim Meyering  <meyering@lucent.com>
97278
97279         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97280         (AC_REPLACE_FUNCS): Add memcpy and memset.
97281         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97282         Add strpbrk.
97283         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97284
97285 2000-01-12  Jim Meyering  <meyering@lucent.com>
97286
97287         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97288         (jm_PREREQ): Use it.
97289         (jm_PREREQ_READUTMP): New macro.
97290         (jm_PREREQ): Use it.
97291
97292 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97293
97294         Quote multibyte characters correctly.
97295         * m4/c-bs-a.m4: New file.
97296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97297         (jm_PREREQ): Use it.
97298
97299 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97300
97301         * m4/uintmax_t.m4: Port to autoconf 2.13.
97302
97303 2000-01-08  Jim Meyering  <meyering@ascend.com>
97304
97305         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97306         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97307
97308 2000-01-04  Jim Meyering  <meyering@ascend.com>
97309
97310         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97311         jm_STRUCT_DIRENT_D_TYPE.
97312         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97313         jm_STRUCT_DIRENT_D_INO.
97314         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97315         jm_STRUCT_UTIMBUF.
97316         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97317         renamings.
97318         * m4/utime.m4: Likewise.
97319
97320         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97321         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97322
97323 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97324
97325         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97326         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97327
97328 2000-01-02  Jim Meyering  <meyering@ascend.com>
97329
97330         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97331         remember if this is necessary.
97332
97333 1999-12-26  Jim Meyering  <meyering@ascend.com>
97334
97335         * m4/jm-macros.m4: Use it here.
97336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97337
97338 1999-12-23  Jim Meyering  <meyering@ascend.com>
97339
97340         * m4/jm-macros.m4: Check for clock_gettime (moved from
97341         fileutils/configure.in)
97342         Check for gettimeofday.
97343
97344 1999-12-20  Jim Meyering  <meyering@ascend.com>
97345
97346         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97347         autoconf-2.14a-1999-12-20.
97348
97349 1999-12-19  Jim Meyering  <meyering@ascend.com>
97350
97351         * m4/lstat-slash.m4: New file.
97352         * m4/jm-macros.m4: Use the new macro:
97353         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97354
97355 1999-12-07  Jim Meyering  <meyering@ascend.com>
97356
97357         * m4/perl.m4: Require that File::Compare be available, too.
97358         Too many systems seem to lack it.
97359
97360         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97361         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97362
97363 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97364
97365         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97366         problem with the QNX 4.25 shell, which doesn't propagate exit
97367         status of failed commands inside shell assignments.
97368
97369 1999-11-17  Jim Meyering  <meyering@ascend.com>
97370
97371         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97372
97373 1999-11-07  Jim Meyering  <meyering@ascend.com>
97374
97375         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97376
97377 1999-11-06  Jim Meyering  <meyering@ascend.com>
97378
97379         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97380         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97381
97382 1999-11-05  Jim Meyering  <meyering@ascend.com>
97383
97384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97385         configure.in of textutils, fileutils, and sh-utils into this one
97386         (shared between those packages) file.
97387         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97388         AC_STRUCT_ST_BLKSIZE.
97389
97390 1999-11-03  Jim Meyering  <meyering@ascend.com>
97391
97392         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97393         of AC_CHECK_TYPE checks includes unistd.h.
97394         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97395         Suggestion from Akim Demaille.
97396
97397 1999-10-30  Jim Meyering  <meyering@ascend.com>
97398
97399         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97400         m4-quoted string.
97401         * m4/ls-mntd-fs.m4: Likewise.
97402         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97403         * m4/jm-winsz1.m4: Likewise.
97404
97405         * m4/const.m4: Remove file, since the fix made it into the experimental
97406         version of autoconf.
97407         * m4/mktime.m4: Likewise.
97408
97409         * m4/check-type.m4: Remove file, now that the latest version of
97410         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97411
97412         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97413         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97414         AC_CHECK_TYPE.
97415
97416 1999-10-04  Jim Meyering  <meyering@ascend.com>
97417
97418         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97419
97420 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97421
97422         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97423         2.95.1 bug with HP-UX 10.20.
97424
97425 1999-09-17  Jim Meyering  <meyering@ascend.com>
97426
97427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97428         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97429         due to missing strdup (against sh-utils-2.0).
97430
97431 1999-08-29  Jim Meyering  <meyering@ascend.com>
97432
97433         * m4/jm-macros.m4: Require jm_BISON.
97434         * m4/bison.m4: New file.
97435
97436 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97437
97438         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97439         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97440
97441 1999-08-05  Jim Meyering  <meyering@ascend.com>
97442
97443         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97444         to avoid conflicts with `conftest' on 8+3 filesystems.
97445         Suggestion from Eli Zaretskii.
97446
97447 1999-08-04  Jim Meyering  <meyering@ascend.com>
97448
97449         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97450         fileutils and sh-utils (textutils's getline test was inadequate).
97451         (AM_FUNC_GETLINE): Run this test.
97452         (AC_CHECK_FUNCS): Check for getdelim.
97453         Reported by Bob Proulx.
97454
97455 1999-08-02  Jim Meyering  <meyering@ascend.com>
97456
97457         * m4/jm-macros.m4: Add a comment.
97458
97459 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97460
97461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97462         <inttypes.h> defines strtoumax as a macro (and not as a
97463         function).
97464
97465 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97466
97467         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97468         that we can shift, multiply and divide unsigned long long
97469         values; Ultrix cc can't do it.
97470
97471 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97472
97473         * m4/mktime.m4: New file, which is a preview of what should appear
97474         in the next public autoconf release.
97475
97476 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97477
97478         * m4/lfs.m4: Remove this file.
97479         * m4/largefile.m4: New file.  It contains the old contents of
97480         lfs.m4, except that all names with prefix AC_LFS have been
97481         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97482         compatible with future autoconf versions.  Also, some minor m4
97483         quoting problems have been fixed.
97484
97485 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97486
97487         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97488         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97489         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97490         and simplify the shell code.
97491
97492 1999-08-01  Jim Meyering  <meyering@ascend.com>
97493
97494         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97495         m4.
97496
97497 1999-07-20  Jim Meyering  <meyering@ascend.com>
97498
97499         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97500
97501 1999-07-15  Jim Meyering  <meyering@ascend.com>
97502
97503         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97504
97505 1999-05-22  Jim Meyering  <meyering@ascend.com>
97506
97507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97508
97509 1999-05-20  Jim Meyering  <meyering@ascend.com>
97510
97511         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97512         Add a colon after each `then' in case $4 is empty.
97513
97514 1999-05-16  Jim Meyering  <meyering@ascend.com>
97515
97516         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97517
97518 1999-05-10  Jim Meyering  <meyering@ascend.com>
97519
97520         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97521
97522         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97523         AC_FUNC_MKTIME.
97524
97525 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97526
97527         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97528
97529 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97530
97531         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97532         not CPPFLAGS, so that linking works correctly in IRIX.
97533
97534 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97535
97536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97537
97538 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97539
97540         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97541         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97543         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97545
97546         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97547
97548 1999-04-20  Jim Meyering  <meyering@ascend.com>
97549
97550         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97551         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97552         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97553
97554 1999-04-18  Jim Meyering  <meyering@ascend.com>
97555
97556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97557         * m4/jm-macros.m4: Use it.
97558
97559 1999-04-06  Jim Meyering  <meyering@ascend.com>
97560
97561         * m4/strftime.m4: Remove test for %f.
97562
97563 1999-03-29  Jim Meyering  <meyering@ascend.com>
97564
97565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97566         superset of the AC_TYPE_* checks in the textutils, fileutils,
97567         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97568         AC_TYPE_PID_T.
97569
97570 1999-03-28  Jim Meyering  <meyering@ascend.com>
97571
97572         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97573         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97574         replaced e.g., in the *.sh files of the sh-utils.
97575
97576 1999-03-20  Jim Meyering  <meyering@ascend.com>
97577
97578         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97579         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97580         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97581
97582 1999-03-19  Jim Meyering  <meyering@ascend.com>
97583
97584         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97585
97586 1999-03-12  Jim Meyering  <meyering@ascend.com>
97587
97588         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97589
97590 1999-03-07  Jim Meyering  <meyering@ascend.com>
97591
97592         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97593         declared.
97594
97595 1999-02-17  Jim Meyering  <meyering@ascend.com>
97596
97597         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97598         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97599
97600 1999-02-07  Jim Meyering  <meyering@ascend.com>
97601
97602         * m4/group-member.m4: New file -- extracted from sh-utils'
97603         configure.in.
97604
97605         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97606         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97607
97608 1999-02-06  Jim Meyering  <meyering@ascend.com>
97609
97610         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97611         * m4/fnmatch.m4: Likewise.
97612         * m4/getgroups.m4: Likewise.
97613         * m4/lstat.m4: Likewise.
97614         * m4/malloc.m4: Likewise.
97615         * m4/putenv.m4: Likewise.
97616         * m4/realloc.m4: Likewise.
97617         * m4/regex.m4: Likewise.
97618         * m4/stat.m4: Likewise.
97619         * m4/strftime.m4: Likewise.
97620         Suggestion from Alain Magloire.
97621
97622         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97623         * m4/fnmatch.m4: Likewise.
97624         * m4/getgroups.m4: Likewise.
97625         * m4/getline.m4: Likewise.
97626         * m4/lstat.m4: Likewise.
97627         * m4/malloc.m4: Likewise.
97628         * m4/memcmp.m4: Likewise.
97629         * m4/putenv.m4: Likewise.
97630         * m4/realloc.m4: Likewise.
97631         * m4/regex.m4: Likewise.
97632         * m4/stat.m4: Likewise.
97633         * m4/strftime.m4: Likewise.
97634         Suggestion from Alain Magloire.
97635
97636         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97637         an argument.
97638
97639         * m4/regex.m4: Add a run-time Test for proper operation of
97640         re_compile_pattern.
97641
97642 1999-01-31  Jim Meyering  <meyering@ascend.com>
97643
97644         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97645
97646 1999-01-30  Jim Meyering  <meyering@ascend.com>
97647
97648         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97649
97650         * m4/jm-mktime.m4: Make this a wrapper around the official
97651         AM_FUNC_MKTIME rather than my private copy, now that the official one
97652         is up to date.
97653         * m4/mktime.m4: Remove file.
97654
97655         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97656         * m4/uptime.m4: Likewise.
97657         * m4/uintmax_t.m4: Likewise.
97658
97659 1999-01-28  Jim Meyering  <meyering@ascend.com>
97660
97661         * m4/jm-macros.m4: Use jm_AFS.
97662         * m4/afs.m4: New file (from fileutils' configure.in).
97663
97664         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97665         * m4/chown.m4: Likewise.
97666         * m4/d-ino.m4: Likewise.
97667         * m4/d-type.m4: Likewise.
97668         * m4/fnmatch.m4: Likewise.
97669         * m4/getgroups.m4: Likewise.
97670         * m4/gettext.m4: Likewise.
97671         * m4/jm-mktime.m4: Likewise.
97672         * m4/jm-winsz2.m4: Likewise.
97673         * m4/lcmessage.m4: Likewise.
97674         * m4/ls-mntd-fs.m4: Likewise.
97675         * m4/malloc.m4: Likewise.
97676         * m4/memcmp.m4: Likewise.
97677         * m4/putenv.m4: Likewise.
97678         * m4/realloc.m4: Likewise.
97679         * m4/st_mtim.m4: Likewise.
97680         * m4/strftime.m4: Likewise.
97681
97682 1999-01-16  Jim Meyering  <meyering@ascend.com>
97683
97684         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97685         (ARGMATCH_DIE_DECL): Define.
97686
97687 1999-01-12  Jim Meyering  <meyering@ascend.com>
97688
97689         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97690         Reported by Lars Hecking.
97691
97692 1999-01-10  Jim Meyering  <meyering@ascend.com>
97693
97694         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97695         gross kludge.
97696         * m4/inttypes_h.m4: Likewise.
97697         * m4/lstat.m4: Likewise.
97698         * m4/malloc.m4: Likewise.
97699         * m4/readdir.m4: Likewise.
97700         * m4/realloc.m4: Likewise.
97701         * m4/st_dm_mode.m4: Likewise.
97702         * m4/stat.m4: Likewise.
97703         * m4/utimbuf.m4: Likewise.
97704         * m4/utimes.m4: Likewise.
97705
97706         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97707         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97708         comments in config.h.in are meaningful.
97709
97710         * m4/jm-macros.m4: Require autoconf-2.13 here.
97711
97712         * m4/regex.m4: By default, don't use the included regex.c on systems
97713         with glibc 2.  Suggestion from Uli Drepper.
97714
97715 1999-01-02  Jim Meyering  <meyering@ascend.com>
97716
97717         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97718
97719 1998-12-18  Jim Meyering  <meyering@ascend.com>
97720
97721         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97722         Based on a suggestion from Lars Hecking.
97723
97724 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97725
97726         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97727
97728 1998-11-16  Jim Meyering  <meyering@ascend.com>
97729
97730         * m4/lfs.m4: Double-quote the `uname...` expression.
97731
97732 1998-11-14  Jim Meyering  <meyering@ascend.com>
97733
97734         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97735         * m4/stat.m4: Likewise.
97736
97737 1998-11-03  Jim Meyering  <meyering@ascend.com>
97738
97739         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97740         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97741
97742 1998-10-18  Jim Meyering  <meyering@ascend.com>
97743
97744         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97745
97746 1998-10-17  Jim Meyering  <meyering@ascend.com>
97747
97748         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97749         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97750         calls for those previously hard-coded headers.  Instead, take a new
97751         parameter.
97752         (jm_CHECK_DECLARATIONS): Reflect interface change.
97753         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97754         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97755
97756         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97757
97758 1998-10-14  Jim Meyering  <meyering@ascend.com>
97759
97760         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97761         instead of "TZ=America/Vancouver".  From Paul Eggert.
97762
97763 1998-10-11  Jim Meyering  <meyering@ascend.com>
97764
97765         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97766         This adds a test for a recently added compatibility fix for mktime.c.
97767         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97768
97769 1998-09-27  Jim Meyering  <meyering@ascend.com>
97770
97771         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97772
97773         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97774         ../configure.in, including a change from Gordon Matzigkeit to allow
97775         cross-compiling for the Hurd.
97776
97777         * m4/glibc.m4: New file/macro to test for the GNU C Library
97778         versions 1 and 2.  From Gordon Matzigkeit.
97779         Indent.
97780
97781 1998-09-21  Jim Meyering  <meyering@ascend.com>
97782
97783         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97784
97785 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97786
97787         Port nanosecond-resolution times to UnixWare 2.1.2 and
97788         pedantic Solaris 2.6.
97789
97790         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97791         AC_STRUCT_ST_MTIM.
97792         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97793         Generate name of ns member, instead of just 1 or undef.
97794         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97795
97796 1998-08-15  Jim Meyering  <meyering@ascend.com>
97797
97798         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97799         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97800         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97801         instead of jm_TYPE_SSIZE_T.
97802
97803 1998-08-12  Jim Meyering  <meyering@ascend.com>
97804
97805         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97806
97807 1998-08-02  Jim Meyering  <meyering@ascend.com>
97808
97809         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97810         in acconfig.h manually.
97811
97812 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97813
97814         * m4/st_mtim.m4: New file.
97815
97816 1998-07-28  Jim Meyering  <meyering@ascend.com>
97817
97818         * m4/utimes.m4: Undef stat.
97819
97820 1998-07-25  Jim Meyering  <meyering@ascend.com>
97821
97822         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97823         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97824
97825 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97826
97827         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97828         uid and gid actually remain unchanged.
97829
97830 1998-07-07  Jim Meyering  <meyering@ascend.com>
97831
97832         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97833
97834 1998-07-04  Jim Meyering  <meyering@ascend.com>
97835
97836         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97837         to prove that this macro can be used in packages without regex.c.
97838
97839 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97840
97841         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97842         is to be used.
97843
97844 1998-07-03  Jim Meyering  <meyering@ascend.com>
97845
97846         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97847
97848         * m4/gettext.m4: New file -- from gettext-0.10.35.
97849         * m4/lcmessage.m4: Likewise.
97850         * m4/progtest.m4: Likewise.
97851
97852         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97853         * m4/jm-macros.m4: Require the new macro.
97854
97855 1998-06-29  Jim Meyering  <meyering@ascend.com>
97856
97857         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97858         for the definition of NGROUPS (used in a system header included
97859         by sys/mount.h).
97860
97861 1998-06-28  Jim Meyering  <meyering@ascend.com>
97862
97863         * m4/ls-mntd-fs.m4: New file.
97864         * m4/fstypename.m4: New file.
97865
97866         * m4/jm-macros.m4: Require the new macro.
97867         * m4/jm-glibc-io.m4: New file.
97868
97869 1998-05-19  Jim Meyering  <meyering@ascend.com>
97870
97871         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97872         * m4/lchown.m4: New file.
97873
97874         * m4/Makefile.am.in: New file.
97875         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97876
97877 1998-05-14  Jim Meyering  <meyering@ascend.com>
97878
97879         * m4/Makefile.am (EXTRA_DIST): Add them.
97880         * m4/jm-macros.m4: New file.
97881         * m4/utimbuf.m4: New file.
97882
97883 1998-05-12  Jim Meyering  <meyering@ascend.com>
97884
97885         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97886
97887 1998-05-11  Jim Meyering  <meyering@ascend.com>
97888
97889         * m4/isc-posix.m4: New file.
97890
97891 1998-05-10  Jim Meyering  <meyering@ascend.com>
97892
97893         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97894
97895 1998-05-09  Jim Meyering  <meyering@ascend.com>
97896
97897         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97898         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97899         with automake.
97900
97901         * m4/ssize_t.m4: New file.
97902         * m4/mktime.m4: Remove file -- the new automake has this now.
97903
97904 1998-04-26  Jim Meyering  <meyering@ascend.com>
97905
97906         * m4/assert.m4: New file.
97907         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97908
97909 1998-04-05  Jim Meyering  <meyering@ascend.com>
97910
97911         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97912         (jm_PREREQ): Use it here.
97913
97914 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97915
97916         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97917         in acconfig.h.
97918
97919 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97920
97921         * m4/prereq.m4: New file.
97922         * m4/error.m4: New file.
97923         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97924
97925 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97926
97927         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97928         cache-check for the same variable -- that defeated the purpose of
97929         the test; the test program was never run.  This was a problem only
97930         on systems with losing getline functions -- HP-UX 10.20 is one.
97931         Reported by Bjorn Helgaas.
97932
97933 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97934
97935         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97936
97937 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97938
97939         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97940
97941         * m4/const.m4: New file.  Use an initializer in this declaration
97942         typedef int charset[2]; const charset x;
97943         Reported by Bob Glickstein.
97944
97945 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97946
97947         * m4/chown.m4: Fix reversed types on -1 args to chown.
97948         From Kaveh Ghazi.
97949
97950 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97951
97952         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97953         Add lseek and memchr.
97954
97955         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97956         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97957         have a 20-character limit on names.
97958
97959 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97960
97961         * m4/inttypes_h.m4: New file.
97962         * m4/uintmax_t.m4: New file.
97963         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97964
97965
97966         -----
97967
97968         Local Variables:
97969         coding: utf-8
97970         End:
97971
97972         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97973
97974         Copying and distribution of this file, with or without
97975         modification, are permitted provided the copyright notice
97976         and this notice are preserved.